]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
2aeb72e9 | 3 | # Generated by GNU Autoconf 2.59. |
671aa708 | 4 | # |
2aeb72e9 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
671aa708 NN |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
1c710c3c DJ |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
2aeb72e9 | 12 | # Be Bourne compatible |
1c710c3c DJ |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
2aeb72e9 DD |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
1c710c3c | 21 | fi |
2aeb72e9 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
1c710c3c DJ |
23 | |
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
2aeb72e9 | 33 | $as_unset ENV MAIL MAILPATH |
1c710c3c DJ |
34 | PS1='$ ' |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
2aeb72e9 | 47 | $as_unset $as_var |
1c710c3c DJ |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
2aeb72e9 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
2aeb72e9 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
1c710c3c DJ |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
2aeb72e9 | 66 | as_me=`$as_basename "$0" || |
1c710c3c DJ |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 71 | echo X/"$0" | |
2aeb72e9 DD |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
1c710c3c | 76 | |
1c710c3c | 77 | |
2aeb72e9 DD |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 85 | |
2aeb72e9 DD |
86 | # The user is always right. |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
11a67599 ZW |
97 | fi |
98 | ||
11a67599 | 99 | |
2aeb72e9 DD |
100 | as_lineno_1=$LINENO |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
11a67599 | 116 | |
2aeb72e9 DD |
117 | ;; |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
1c710c3c DJ |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
2aeb72e9 DD |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
1c710c3c | 137 | /*) |
2aeb72e9 | 138 | if ("$as_dir/$as_base" -c ' |
11a67599 ZW |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
2aeb72e9 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
11a67599 | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
2aeb72e9 DD |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
1c710c3c DJ |
155 | |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
2aeb72e9 DD |
158 | # line-number line before each line; the second 'sed' does the real |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
1c710c3c | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
2aeb72e9 DD |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
1c710c3c DJ |
165 | sed ' |
166 | N | |
2aeb72e9 DD |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
1c710c3c | 170 | t loop |
2aeb72e9 DD |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
1c710c3c | 173 | ' >$as_me.lineno && |
2aeb72e9 | 174 | chmod +x $as_me.lineno || |
1c710c3c DJ |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
2aeb72e9 DD |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
1c710c3c DJ |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
2aeb72e9 DD |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
1c710c3c DJ |
192 | esac |
193 | ||
2aeb72e9 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
195 | as_expr=expr |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 DD |
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
1c710c3c | 207 | as_ln_s='cp -p' |
2aeb72e9 DD |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
1c710c3c DJ |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
2aeb72e9 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
1c710c3c DJ |
217 | |
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
2aeb72e9 | 225 | as_executable_p="test -f" |
0b0dc272 | 226 | |
1c710c3c DJ |
227 | # Sed expression to map a string onto a valid CPP name. |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
2aeb72e9 DD |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
1c710c3c DJ |
242 | |
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
2aeb72e9 DD |
249 | exec 6>&1 |
250 | ||
1c710c3c DJ |
251 | # |
252 | # Initializations. | |
253 | # | |
671aa708 | 254 | ac_default_prefix=/usr/local |
1c710c3c DJ |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
2aeb72e9 DD |
262 | # Maximum number of lines to put in a shell here document. |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
1c710c3c DJ |
267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="move-if-change" | |
f8bf9252 | 275 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS' |
2aeb72e9 | 276 | ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag' |
18c04407 | 277 | ac_pwd=`pwd` |
671aa708 NN |
278 | |
279 | # Initialize some variables set by options. | |
1c710c3c DJ |
280 | ac_init_help= |
281 | ac_init_version=false | |
671aa708 NN |
282 | # The variables have the same names as the options, with |
283 | # dashes changed to underlines. | |
1c710c3c | 284 | cache_file=/dev/null |
671aa708 | 285 | exec_prefix=NONE |
671aa708 | 286 | no_create= |
671aa708 NN |
287 | no_recursion= |
288 | prefix=NONE | |
289 | program_prefix=NONE | |
290 | program_suffix=NONE | |
291 | program_transform_name=s,x,x, | |
292 | silent= | |
293 | site= | |
294 | srcdir= | |
671aa708 NN |
295 | verbose= |
296 | x_includes=NONE | |
297 | x_libraries=NONE | |
1c710c3c DJ |
298 | |
299 | # Installation directory options. | |
300 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
301 | # and all the variables that are supposed to be based on exec_prefix | |
302 | # by default will actually change. | |
303 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
671aa708 NN |
304 | bindir='${exec_prefix}/bin' |
305 | sbindir='${exec_prefix}/sbin' | |
306 | libexecdir='${exec_prefix}/libexec' | |
2aeb72e9 | 307 | datadir='${prefix}/share' |
671aa708 NN |
308 | sysconfdir='${prefix}/etc' |
309 | sharedstatedir='${prefix}/com' | |
310 | localstatedir='${prefix}/var' | |
2aeb72e9 | 311 | libdir='${exec_prefix}/lib' |
671aa708 NN |
312 | includedir='${prefix}/include' |
313 | oldincludedir='/usr/include' | |
2aeb72e9 DD |
314 | infodir='${prefix}/info' |
315 | mandir='${prefix}/man' | |
79c06341 | 316 | |
671aa708 NN |
317 | ac_prev= |
318 | for ac_option | |
319 | do | |
671aa708 NN |
320 | # If the previous option needs an argument, assign it. |
321 | if test -n "$ac_prev"; then | |
2aeb72e9 | 322 | eval "$ac_prev=\$ac_option" |
671aa708 NN |
323 | ac_prev= |
324 | continue | |
325 | fi | |
79c06341 | 326 | |
2aeb72e9 | 327 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
671aa708 NN |
328 | |
329 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
330 | ||
2aeb72e9 | 331 | case $ac_option in |
671aa708 NN |
332 | |
333 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
334 | ac_prev=bindir ;; | |
335 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 336 | bindir=$ac_optarg ;; |
671aa708 NN |
337 | |
338 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 339 | ac_prev=build_alias ;; |
671aa708 | 340 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 341 | build_alias=$ac_optarg ;; |
671aa708 NN |
342 | |
343 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
344 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
345 | ac_prev=cache_file ;; | |
346 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
347 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
348 | cache_file=$ac_optarg ;; |
349 | ||
350 | --config-cache | -C) | |
351 | cache_file=config.cache ;; | |
671aa708 | 352 | |
2aeb72e9 | 353 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
671aa708 | 354 | ac_prev=datadir ;; |
2aeb72e9 DD |
355 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
356 | | --da=*) | |
1c710c3c | 357 | datadir=$ac_optarg ;; |
671aa708 NN |
358 | |
359 | -disable-* | --disable-*) | |
1c710c3c | 360 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 361 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 362 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
363 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
364 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
365 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
366 | eval "enable_$ac_feature=no" ;; | |
671aa708 NN |
367 | |
368 | -enable-* | --enable-*) | |
1c710c3c | 369 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 370 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 371 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
372 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
373 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
374 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
375 | case $ac_option in | |
376 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
377 | *) ac_optarg=yes ;; | |
378 | esac | |
379 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
671aa708 NN |
380 | |
381 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
382 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
383 | | --exec | --exe | --ex) | |
384 | ac_prev=exec_prefix ;; | |
385 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
386 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
387 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 388 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
389 | |
390 | -gas | --gas | --ga | --g) | |
391 | # Obsolete; use --with-gas. | |
392 | with_gas=yes ;; | |
393 | ||
1c710c3c DJ |
394 | -help | --help | --hel | --he | -h) |
395 | ac_init_help=long ;; | |
396 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
397 | ac_init_help=recursive ;; | |
398 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
399 | ac_init_help=short ;; | |
671aa708 NN |
400 | |
401 | -host | --host | --hos | --ho) | |
1c710c3c | 402 | ac_prev=host_alias ;; |
671aa708 | 403 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 404 | host_alias=$ac_optarg ;; |
671aa708 NN |
405 | |
406 | -includedir | --includedir | --includedi | --included | --include \ | |
407 | | --includ | --inclu | --incl | --inc) | |
408 | ac_prev=includedir ;; | |
409 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
410 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 411 | includedir=$ac_optarg ;; |
671aa708 NN |
412 | |
413 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
414 | ac_prev=infodir ;; | |
415 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 416 | infodir=$ac_optarg ;; |
671aa708 NN |
417 | |
418 | -libdir | --libdir | --libdi | --libd) | |
419 | ac_prev=libdir ;; | |
420 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 421 | libdir=$ac_optarg ;; |
671aa708 NN |
422 | |
423 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
424 | | --libexe | --libex | --libe) | |
425 | ac_prev=libexecdir ;; | |
426 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
427 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 428 | libexecdir=$ac_optarg ;; |
671aa708 NN |
429 | |
430 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
2aeb72e9 DD |
431 | | --localstate | --localstat | --localsta | --localst \ |
432 | | --locals | --local | --loca | --loc | --lo) | |
671aa708 NN |
433 | ac_prev=localstatedir ;; |
434 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
2aeb72e9 DD |
435 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
436 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
1c710c3c | 437 | localstatedir=$ac_optarg ;; |
671aa708 NN |
438 | |
439 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
440 | ac_prev=mandir ;; | |
441 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 442 | mandir=$ac_optarg ;; |
671aa708 NN |
443 | |
444 | -nfp | --nfp | --nf) | |
445 | # Obsolete; use --without-fp. | |
446 | with_fp=no ;; | |
447 | ||
448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 449 | | --no-cr | --no-c | -n) |
671aa708 NN |
450 | no_create=yes ;; |
451 | ||
452 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
453 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
454 | no_recursion=yes ;; | |
455 | ||
456 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
457 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
458 | | --oldin | --oldi | --old | --ol | --o) | |
459 | ac_prev=oldincludedir ;; | |
460 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
461 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
462 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 463 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
464 | |
465 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
466 | ac_prev=prefix ;; | |
467 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 468 | prefix=$ac_optarg ;; |
671aa708 NN |
469 | |
470 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
471 | | --program-pre | --program-pr | --program-p) | |
472 | ac_prev=program_prefix ;; | |
473 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
474 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 475 | program_prefix=$ac_optarg ;; |
671aa708 NN |
476 | |
477 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
478 | | --program-suf | --program-su | --program-s) | |
479 | ac_prev=program_suffix ;; | |
480 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
481 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 482 | program_suffix=$ac_optarg ;; |
671aa708 NN |
483 | |
484 | -program-transform-name | --program-transform-name \ | |
485 | | --program-transform-nam | --program-transform-na \ | |
486 | | --program-transform-n | --program-transform- \ | |
487 | | --program-transform | --program-transfor \ | |
488 | | --program-transfo | --program-transf \ | |
489 | | --program-trans | --program-tran \ | |
490 | | --progr-tra | --program-tr | --program-t) | |
491 | ac_prev=program_transform_name ;; | |
492 | -program-transform-name=* | --program-transform-name=* \ | |
493 | | --program-transform-nam=* | --program-transform-na=* \ | |
494 | | --program-transform-n=* | --program-transform-=* \ | |
495 | | --program-transform=* | --program-transfor=* \ | |
496 | | --program-transfo=* | --program-transf=* \ | |
497 | | --program-trans=* | --program-tran=* \ | |
498 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 499 | program_transform_name=$ac_optarg ;; |
671aa708 NN |
500 | |
501 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
502 | | -silent | --silent | --silen | --sile | --sil) | |
503 | silent=yes ;; | |
504 | ||
505 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
506 | ac_prev=sbindir ;; | |
507 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
508 | | --sbi=* | --sb=*) | |
1c710c3c | 509 | sbindir=$ac_optarg ;; |
671aa708 NN |
510 | |
511 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
512 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
513 | | --sharedst | --shareds | --shared | --share | --shar \ | |
514 | | --sha | --sh) | |
515 | ac_prev=sharedstatedir ;; | |
516 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
517 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
518 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
519 | | --sha=* | --sh=*) | |
1c710c3c | 520 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
521 | |
522 | -site | --site | --sit) | |
523 | ac_prev=site ;; | |
524 | -site=* | --site=* | --sit=*) | |
1c710c3c | 525 | site=$ac_optarg ;; |
671aa708 NN |
526 | |
527 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
528 | ac_prev=srcdir ;; | |
529 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 530 | srcdir=$ac_optarg ;; |
671aa708 NN |
531 | |
532 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
533 | | --syscon | --sysco | --sysc | --sys | --sy) | |
534 | ac_prev=sysconfdir ;; | |
535 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
536 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 537 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
538 | |
539 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 540 | ac_prev=target_alias ;; |
671aa708 | 541 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 542 | target_alias=$ac_optarg ;; |
671aa708 NN |
543 | |
544 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
545 | verbose=yes ;; | |
546 | ||
1c710c3c DJ |
547 | -version | --version | --versio | --versi | --vers | -V) |
548 | ac_init_version=: ;; | |
671aa708 NN |
549 | |
550 | -with-* | --with-*) | |
1c710c3c | 551 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 552 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 553 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
554 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
555 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
556 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
557 | case $ac_option in | |
558 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
559 | *) ac_optarg=yes ;; | |
560 | esac | |
561 | eval "with_$ac_package='$ac_optarg'" ;; | |
671aa708 NN |
562 | |
563 | -without-* | --without-*) | |
1c710c3c | 564 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 565 | # Reject names that are not valid shell variable names. |
2aeb72e9 | 566 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1c710c3c DJ |
567 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
568 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
569 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
570 | eval "with_$ac_package=no" ;; | |
671aa708 NN |
571 | |
572 | --x) | |
573 | # Obsolete; use --with-x. | |
574 | with_x=yes ;; | |
575 | ||
576 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
577 | | --x-incl | --x-inc | --x-in | --x-i) | |
578 | ac_prev=x_includes ;; | |
579 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
580 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 581 | x_includes=$ac_optarg ;; |
671aa708 NN |
582 | |
583 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
584 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
585 | ac_prev=x_libraries ;; | |
586 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
587 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 588 | x_libraries=$ac_optarg ;; |
671aa708 | 589 | |
1c710c3c DJ |
590 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
591 | Try \`$0 --help' for more information." >&2 | |
592 | { (exit 1); exit 1; }; } | |
671aa708 NN |
593 | ;; |
594 | ||
1c710c3c DJ |
595 | *=*) |
596 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
597 | # Reject names that are not valid shell variable names. | |
598 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
599 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
600 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
601 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
602 | eval "$ac_envvar='$ac_optarg'" | |
1c710c3c DJ |
603 | export $ac_envvar ;; |
604 | ||
671aa708 | 605 | *) |
1c710c3c DJ |
606 | # FIXME: should be removed in autoconf 3.0. |
607 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
608 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
609 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
610 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
671aa708 NN |
611 | ;; |
612 | ||
613 | esac | |
614 | done | |
615 | ||
616 | if test -n "$ac_prev"; then | |
1c710c3c DJ |
617 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
618 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
619 | { (exit 1); exit 1; }; } | |
af71363e | 620 | fi |
af71363e | 621 | |
2aeb72e9 DD |
622 | # Be sure to have absolute paths. |
623 | for ac_var in exec_prefix prefix | |
671aa708 | 624 | do |
2aeb72e9 | 625 | eval ac_val=$`echo $ac_var` |
1c710c3c | 626 | case $ac_val in |
2aeb72e9 DD |
627 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
628 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
629 | { (exit 1); exit 1; }; };; | |
630 | esac | |
631 | done | |
632 | ||
633 | # Be sure to have absolute paths. | |
634 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
635 | localstatedir libdir includedir oldincludedir infodir mandir | |
636 | do | |
637 | eval ac_val=$`echo $ac_var` | |
638 | case $ac_val in | |
639 | [\\/$]* | ?:[\\/]* ) ;; | |
640 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
641 | { (exit 1); exit 1; }; };; | |
671aa708 NN |
642 | esac |
643 | done | |
644 | ||
1c710c3c DJ |
645 | # There might be people who depend on the old broken behavior: `$host' |
646 | # used to hold the argument of --host etc. | |
647 | # FIXME: To remove some day. | |
648 | build=$build_alias | |
649 | host=$host_alias | |
650 | target=$target_alias | |
0b0dc272 | 651 | |
1c710c3c DJ |
652 | # FIXME: To remove some day. |
653 | if test "x$host_alias" != x; then | |
654 | if test "x$build_alias" = x; then | |
655 | cross_compiling=maybe | |
656 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
657 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
658 | elif test "x$build_alias" != "x$host_alias"; then | |
659 | cross_compiling=yes | |
660 | fi | |
661 | fi | |
662 | ||
663 | ac_tool_prefix= | |
664 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
665 | ||
666 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 667 | |
671aa708 NN |
668 | |
669 | # Find the source files, if location was not specified. | |
670 | if test -z "$srcdir"; then | |
671 | ac_srcdir_defaulted=yes | |
2aeb72e9 DD |
672 | # Try the directory containing this script, then its parent. |
673 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
1c710c3c DJ |
674 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
675 | X"$0" : 'X\(//\)[^/]' \| \ | |
676 | X"$0" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
677 | X"$0" : 'X\(/\)' \| \ |
678 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 679 | echo X"$0" | |
2aeb72e9 DD |
680 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
681 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
682 | /^X\(\/\/\)$/{ s//\1/; q; } | |
683 | /^X\(\/\).*/{ s//\1/; q; } | |
684 | s/.*/./; q'` | |
671aa708 | 685 | srcdir=$ac_confdir |
2aeb72e9 | 686 | if test ! -r $srcdir/$ac_unique_file; then |
671aa708 NN |
687 | srcdir=.. |
688 | fi | |
689 | else | |
690 | ac_srcdir_defaulted=no | |
691 | fi | |
2aeb72e9 DD |
692 | if test ! -r $srcdir/$ac_unique_file; then |
693 | if test "$ac_srcdir_defaulted" = yes; then | |
694 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
695 | { (exit 1); exit 1; }; } | |
696 | else | |
697 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1c710c3c | 698 | { (exit 1); exit 1; }; } |
2aeb72e9 | 699 | fi |
1c710c3c | 700 | fi |
2aeb72e9 DD |
701 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
702 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
1c710c3c | 703 | { (exit 1); exit 1; }; } |
2aeb72e9 DD |
704 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
705 | ac_env_build_alias_set=${build_alias+set} | |
706 | ac_env_build_alias_value=$build_alias | |
707 | ac_cv_env_build_alias_set=${build_alias+set} | |
708 | ac_cv_env_build_alias_value=$build_alias | |
709 | ac_env_host_alias_set=${host_alias+set} | |
710 | ac_env_host_alias_value=$host_alias | |
711 | ac_cv_env_host_alias_set=${host_alias+set} | |
712 | ac_cv_env_host_alias_value=$host_alias | |
713 | ac_env_target_alias_set=${target_alias+set} | |
714 | ac_env_target_alias_value=$target_alias | |
715 | ac_cv_env_target_alias_set=${target_alias+set} | |
716 | ac_cv_env_target_alias_value=$target_alias | |
ac9e6043 RW |
717 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
718 | ||
2aeb72e9 DD |
719 | ac_env_CC_set=${CC+set} |
720 | ac_env_CC_value=$CC | |
721 | ac_cv_env_CC_set=${CC+set} | |
722 | ac_cv_env_CC_value=$CC | |
723 | ac_env_CFLAGS_set=${CFLAGS+set} | |
724 | ac_env_CFLAGS_value=$CFLAGS | |
725 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
726 | ac_cv_env_CFLAGS_value=$CFLAGS | |
727 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
728 | ac_env_LDFLAGS_value=$LDFLAGS | |
729 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
730 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
731 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
732 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
733 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
734 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
735 | ac_env_CXX_set=${CXX+set} | |
736 | ac_env_CXX_value=$CXX | |
737 | ac_cv_env_CXX_set=${CXX+set} | |
738 | ac_cv_env_CXX_value=$CXX | |
739 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
740 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
741 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
742 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
743 | ac_env_AR_set=${AR+set} | |
744 | ac_env_AR_value=$AR | |
745 | ac_cv_env_AR_set=${AR+set} | |
746 | ac_cv_env_AR_value=$AR | |
747 | ac_env_AS_set=${AS+set} | |
748 | ac_env_AS_value=$AS | |
749 | ac_cv_env_AS_set=${AS+set} | |
750 | ac_cv_env_AS_value=$AS | |
751 | ac_env_DLLTOOL_set=${DLLTOOL+set} | |
752 | ac_env_DLLTOOL_value=$DLLTOOL | |
753 | ac_cv_env_DLLTOOL_set=${DLLTOOL+set} | |
754 | ac_cv_env_DLLTOOL_value=$DLLTOOL | |
755 | ac_env_LD_set=${LD+set} | |
756 | ac_env_LD_value=$LD | |
757 | ac_cv_env_LD_set=${LD+set} | |
758 | ac_cv_env_LD_value=$LD | |
759 | ac_env_LIPO_set=${LIPO+set} | |
760 | ac_env_LIPO_value=$LIPO | |
761 | ac_cv_env_LIPO_set=${LIPO+set} | |
762 | ac_cv_env_LIPO_value=$LIPO | |
763 | ac_env_NM_set=${NM+set} | |
764 | ac_env_NM_value=$NM | |
765 | ac_cv_env_NM_set=${NM+set} | |
766 | ac_cv_env_NM_value=$NM | |
767 | ac_env_RANLIB_set=${RANLIB+set} | |
768 | ac_env_RANLIB_value=$RANLIB | |
769 | ac_cv_env_RANLIB_set=${RANLIB+set} | |
770 | ac_cv_env_RANLIB_value=$RANLIB | |
771 | ac_env_STRIP_set=${STRIP+set} | |
772 | ac_env_STRIP_value=$STRIP | |
773 | ac_cv_env_STRIP_set=${STRIP+set} | |
774 | ac_cv_env_STRIP_value=$STRIP | |
775 | ac_env_WINDRES_set=${WINDRES+set} | |
776 | ac_env_WINDRES_value=$WINDRES | |
777 | ac_cv_env_WINDRES_set=${WINDRES+set} | |
778 | ac_cv_env_WINDRES_value=$WINDRES | |
901119ae KT |
779 | ac_env_WINDMC_set=${WINDMC+set} |
780 | ac_env_WINDMC_value=$WINDMC | |
781 | ac_cv_env_WINDMC_set=${WINDMC+set} | |
782 | ac_cv_env_WINDMC_value=$WINDMC | |
2aeb72e9 DD |
783 | ac_env_OBJCOPY_set=${OBJCOPY+set} |
784 | ac_env_OBJCOPY_value=$OBJCOPY | |
785 | ac_cv_env_OBJCOPY_set=${OBJCOPY+set} | |
786 | ac_cv_env_OBJCOPY_value=$OBJCOPY | |
787 | ac_env_OBJDUMP_set=${OBJDUMP+set} | |
788 | ac_env_OBJDUMP_value=$OBJDUMP | |
789 | ac_cv_env_OBJDUMP_set=${OBJDUMP+set} | |
790 | ac_cv_env_OBJDUMP_value=$OBJDUMP | |
791 | ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set} | |
792 | ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET | |
793 | ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set} | |
794 | ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET | |
795 | ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set} | |
796 | ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET | |
797 | ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set} | |
798 | ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET | |
799 | ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set} | |
800 | ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET | |
801 | ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set} | |
802 | ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET | |
803 | ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set} | |
804 | ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET | |
805 | ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set} | |
806 | ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET | |
807 | ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set} | |
808 | ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET | |
809 | ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set} | |
810 | ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET | |
811 | ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set} | |
812 | ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET | |
813 | ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set} | |
814 | ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET | |
815 | ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set} | |
816 | ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET | |
817 | ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set} | |
818 | ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET | |
819 | ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set} | |
820 | ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET | |
821 | ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set} | |
822 | ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET | |
823 | ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set} | |
824 | ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET | |
825 | ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set} | |
826 | ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET | |
827 | ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set} | |
828 | ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET | |
829 | ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set} | |
830 | ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET | |
831 | ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set} | |
832 | ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET | |
833 | ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set} | |
834 | ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET | |
835 | ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set} | |
836 | ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET | |
837 | ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set} | |
838 | ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET | |
839 | ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set} | |
840 | ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET | |
841 | ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set} | |
842 | ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET | |
843 | ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set} | |
844 | ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET | |
845 | ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set} | |
846 | ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET | |
847 | ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set} | |
848 | ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET | |
849 | ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set} | |
850 | ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET | |
901119ae KT |
851 | ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set} |
852 | ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET | |
853 | ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set} | |
854 | ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET | |
1c710c3c DJ |
855 | |
856 | # | |
857 | # Report the --help message. | |
858 | # | |
859 | if test "$ac_init_help" = "long"; then | |
860 | # Omit some internal or obsolete options to make the list less imposing. | |
861 | # This message is too long to be a string in the A/UX 3.1 sh. | |
862 | cat <<_ACEOF | |
863 | \`configure' configures this package to adapt to many kinds of systems. | |
864 | ||
865 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
866 | ||
867 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
868 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
869 | ||
870 | Defaults for the options are specified in brackets. | |
871 | ||
872 | Configuration: | |
873 | -h, --help display this help and exit | |
874 | --help=short display options specific to this package | |
875 | --help=recursive display the short help of all the included packages | |
876 | -V, --version display version information and exit | |
877 | -q, --quiet, --silent do not print \`checking...' messages | |
878 | --cache-file=FILE cache test results in FILE [disabled] | |
879 | -C, --config-cache alias for \`--cache-file=config.cache' | |
880 | -n, --no-create do not create output files | |
881 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
882 | ||
2aeb72e9 DD |
883 | _ACEOF |
884 | ||
885 | cat <<_ACEOF | |
1c710c3c DJ |
886 | Installation directories: |
887 | --prefix=PREFIX install architecture-independent files in PREFIX | |
888 | [$ac_default_prefix] | |
889 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
890 | [PREFIX] | |
891 | ||
892 | By default, \`make install' will install all the files in | |
893 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
894 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
895 | for instance \`--prefix=\$HOME'. | |
896 | ||
897 | For better control, use the options below. | |
898 | ||
899 | Fine tuning of the installation directories: | |
900 | --bindir=DIR user executables [EPREFIX/bin] | |
901 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
902 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
2aeb72e9 | 903 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
1c710c3c DJ |
904 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
905 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
906 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
907 | --libdir=DIR object code libraries [EPREFIX/lib] | |
908 | --includedir=DIR C header files [PREFIX/include] | |
909 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
2aeb72e9 DD |
910 | --infodir=DIR info documentation [PREFIX/info] |
911 | --mandir=DIR man documentation [PREFIX/man] | |
1c710c3c DJ |
912 | _ACEOF |
913 | ||
914 | cat <<\_ACEOF | |
915 | ||
916 | Program names: | |
917 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
918 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
919 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
920 | ||
921 | System types: | |
922 | --build=BUILD configure for building on BUILD [guessed] | |
923 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
924 | --target=TARGET configure for building compilers for TARGET [HOST] | |
925 | _ACEOF | |
926 | fi | |
927 | ||
928 | if test -n "$ac_init_help"; then | |
929 | ||
930 | cat <<\_ACEOF | |
931 | ||
932 | Optional Features: | |
933 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
934 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
5afab7ad | 935 | --enable-gold use gold instead of ld |
30b74385 RW |
936 | --enable-libada build libada directory |
937 | --enable-libssp build libssp directory | |
938 | --enable-stage1-languages[=all] choose additional languages to build during | |
1c710c3c | 939 | stage1. Mostly useful for compiler development. |
30b74385 RW |
940 | --enable-objc-gc enable use of Boehm's garbage collector with the |
941 | GNU Objective-C runtime | |
942 | --enable-bootstrap enable bootstrapping [yes if native build] | |
943 | --enable-serial-[{host,target,build}-]configure | |
944 | force sequential configuration of | |
1c710c3c | 945 | sub-packages for the host, target or build |
30b74385 | 946 | machine, or all sub-packages |
1c710c3c DJ |
947 | --enable-maintainer-mode enable make rules and dependencies not useful |
948 | (and sometimes confusing) to the casual installer | |
30b74385 RW |
949 | --enable-stage1-checking[=all] choose additional checking for stage1 |
950 | of the compiler | |
1c710c3c DJ |
951 | --enable-werror enable -Werror in bootstrap stage2 and later |
952 | ||
953 | Optional Packages: | |
954 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
955 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
956 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
30b74385 RW |
957 | --with-mpfr-dir=PATH this option has been REMOVED |
958 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
1c710c3c DJ |
959 | Equivalent to --with-mpfr-include=PATH/include |
960 | plus --with-mpfr-lib=PATH/lib | |
961 | --with-mpfr-include=PATH | |
30b74385 RW |
962 | specify directory for installed MPFR include files |
963 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
964 | --with-gmp-dir=PATH this option has been REMOVED | |
965 | --with-gmp=PATH specify prefix directory for the installed GMP package. | |
1c710c3c DJ |
966 | Equivalent to --with-gmp-include=PATH/include |
967 | plus --with-gmp-lib=PATH/lib | |
30b74385 RW |
968 | --with-gmp-include=PATH specify directory for installed GMP include files |
969 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
f8bf9252 SP |
970 | --with-ppl=PATH Specify prefix directory for the installed PPL package |
971 | Equivalent to --with-ppl-include=PATH/include | |
972 | plus --with-ppl-lib=PATH/lib | |
973 | --with-ppl-include=PATH Specify directory for installed PPL include files | |
974 | --with-ppl-lib=PATH Specify the directory for the installed PPL library | |
975 | --with-cloog=PATH Specify prefix directory for the installed CLOOG package | |
976 | Equivalent to --with-cloog-include=PATH/include | |
977 | plus --with-cloog-lib=PATH/lib | |
978 | --with-cloog-include=PATH Specify directory for installed CLOOG include files | |
979 | --with-cloog-lib=PATH Specify the directory for the installed CLOOG library | |
30b74385 | 980 | --with-build-sysroot=SYSROOT |
1c710c3c | 981 | use sysroot as the system root during the build |
c8aea42c PB |
982 | --with-debug-prefix-map='A=B C=D ...' |
983 | map A to B, C to D ... in debug information | |
30b74385 | 984 | --with-build-time-tools=PATH |
1c710c3c | 985 | use given path to find target tools during the build |
30b74385 RW |
986 | --with-datarootdir use datarootdir as the data root directory. |
987 | --with-docdir install documentation in this directory. | |
988 | --with-pdfdir install pdf in this directory. | |
989 | --with-htmldir install html in this directory. | |
1c710c3c DJ |
990 | |
991 | Some influential environment variables: | |
992 | CC C compiler command | |
993 | CFLAGS C compiler flags | |
994 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
995 | nonstandard directory <lib dir> | |
2aeb72e9 DD |
996 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
997 | headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
998 | CXX C++ compiler command |
999 | CXXFLAGS C++ compiler flags | |
278a7a38 AO |
1000 | AR AR for the host |
1001 | AS AS for the host | |
1002 | DLLTOOL DLLTOOL for the host | |
1003 | LD LD for the host | |
1004 | LIPO LIPO for the host | |
1005 | NM NM for the host | |
1006 | RANLIB RANLIB for the host | |
1007 | STRIP STRIP for the host | |
1008 | WINDRES WINDRES for the host | |
901119ae | 1009 | WINDMC WINDMC for the host |
278a7a38 AO |
1010 | OBJCOPY OBJCOPY for the host |
1011 | OBJDUMP OBJDUMP for the host | |
1012 | CC_FOR_TARGET | |
1013 | CC for the target | |
1014 | CXX_FOR_TARGET | |
1015 | CXX for the target | |
1016 | GCC_FOR_TARGET | |
1017 | GCC for the target | |
1018 | GCJ_FOR_TARGET | |
1019 | GCJ for the target | |
1020 | GFORTRAN_FOR_TARGET | |
1021 | GFORTRAN for the target | |
1022 | AR_FOR_TARGET | |
1023 | AR for the target | |
1024 | AS_FOR_TARGET | |
1025 | AS for the target | |
1026 | DLLTOOL_FOR_TARGET | |
1027 | DLLTOOL for the target | |
1028 | LD_FOR_TARGET | |
1029 | LD for the target | |
1030 | LIPO_FOR_TARGET | |
1031 | LIPO for the target | |
1032 | NM_FOR_TARGET | |
1033 | NM for the target | |
1034 | OBJDUMP_FOR_TARGET | |
1035 | OBJDUMP for the target | |
1036 | RANLIB_FOR_TARGET | |
1037 | RANLIB for the target | |
1038 | STRIP_FOR_TARGET | |
1039 | STRIP for the target | |
1040 | WINDRES_FOR_TARGET | |
1041 | WINDRES for the target | |
901119ae KT |
1042 | WINDMC_FOR_TARGET |
1043 | WINDMC for the target | |
1c710c3c DJ |
1044 | |
1045 | Use these variables to override the choices made by `configure' or to help | |
1046 | it to find libraries and programs with nonstandard names/locations. | |
1047 | ||
1048 | _ACEOF | |
1049 | fi | |
1050 | ||
1051 | if test "$ac_init_help" = "recursive"; then | |
1052 | # If there are subdirs, report their specific --help. | |
2aeb72e9 | 1053 | ac_popdir=`pwd` |
1c710c3c | 1054 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
2aeb72e9 | 1055 | test -d $ac_dir || continue |
1c710c3c DJ |
1056 | ac_builddir=. |
1057 | ||
2aeb72e9 | 1058 | if test "$ac_dir" != .; then |
1c710c3c | 1059 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
2aeb72e9 DD |
1060 | # A "../" for each directory in $ac_dir_suffix. |
1061 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1062 | else | |
1063 | ac_dir_suffix= ac_top_builddir= | |
1064 | fi | |
1c710c3c DJ |
1065 | |
1066 | case $srcdir in | |
2aeb72e9 | 1067 | .) # No --srcdir option. We are building in place. |
1c710c3c | 1068 | ac_srcdir=. |
2aeb72e9 DD |
1069 | if test -z "$ac_top_builddir"; then |
1070 | ac_top_srcdir=. | |
1071 | else | |
1072 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1073 | fi ;; | |
1074 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1c710c3c | 1075 | ac_srcdir=$srcdir$ac_dir_suffix; |
2aeb72e9 DD |
1076 | ac_top_srcdir=$srcdir ;; |
1077 | *) # Relative path. | |
1078 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1079 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1080 | esac | |
1081 | ||
1082 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1083 | # the directories may not exist. | |
1084 | case `pwd` in | |
1085 | .) ac_abs_builddir="$ac_dir";; | |
1086 | *) | |
1087 | case "$ac_dir" in | |
1088 | .) ac_abs_builddir=`pwd`;; | |
1089 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1090 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1091 | esac;; | |
1092 | esac | |
1093 | case $ac_abs_builddir in | |
1094 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1095 | *) | |
1096 | case ${ac_top_builddir}. in | |
1097 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1098 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1099 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1100 | esac;; | |
1101 | esac | |
1102 | case $ac_abs_builddir in | |
1103 | .) ac_abs_srcdir=$ac_srcdir;; | |
1104 | *) | |
1105 | case $ac_srcdir in | |
1106 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1107 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1108 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1109 | esac;; | |
1110 | esac | |
1111 | case $ac_abs_builddir in | |
1112 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1113 | *) | |
1114 | case $ac_top_srcdir in | |
1115 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1116 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1117 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1118 | esac;; | |
1c710c3c | 1119 | esac |
2aeb72e9 DD |
1120 | |
1121 | cd $ac_dir | |
1122 | # Check for guested configure; otherwise get Cygnus style configure. | |
1123 | if test -f $ac_srcdir/configure.gnu; then | |
1124 | echo | |
1125 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1126 | elif test -f $ac_srcdir/configure; then | |
1127 | echo | |
1128 | $SHELL $ac_srcdir/configure --help=recursive | |
1129 | elif test -f $ac_srcdir/configure.ac || | |
1130 | test -f $ac_srcdir/configure.in; then | |
1131 | echo | |
1132 | $ac_configure --help | |
1c710c3c DJ |
1133 | else |
1134 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
2aeb72e9 DD |
1135 | fi |
1136 | cd $ac_popdir | |
1c710c3c DJ |
1137 | done |
1138 | fi | |
1139 | ||
2aeb72e9 | 1140 | test -n "$ac_init_help" && exit 0 |
1c710c3c DJ |
1141 | if $ac_init_version; then |
1142 | cat <<\_ACEOF | |
1143 | ||
2aeb72e9 | 1144 | Copyright (C) 2003 Free Software Foundation, Inc. |
1c710c3c DJ |
1145 | This configure script is free software; the Free Software Foundation |
1146 | gives unlimited permission to copy, distribute and modify it. | |
1147 | _ACEOF | |
2aeb72e9 | 1148 | exit 0 |
0b0dc272 | 1149 | fi |
2aeb72e9 DD |
1150 | exec 5>config.log |
1151 | cat >&5 <<_ACEOF | |
1c710c3c DJ |
1152 | This file contains any messages produced by compilers while |
1153 | running configure, to aid debugging if configure makes a mistake. | |
1154 | ||
1155 | It was created by $as_me, which was | |
2aeb72e9 | 1156 | generated by GNU Autoconf 2.59. Invocation command line was |
1c710c3c DJ |
1157 | |
1158 | $ $0 $@ | |
1159 | ||
1160 | _ACEOF | |
1161 | { | |
1162 | cat <<_ASUNAME | |
1163 | ## --------- ## | |
1164 | ## Platform. ## | |
1165 | ## --------- ## | |
1166 | ||
1167 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1168 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1169 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1170 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1171 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1172 | ||
1173 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1174 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1175 | ||
1176 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1177 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1178 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2aeb72e9 | 1179 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1180 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1181 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1182 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1183 | ||
1184 | _ASUNAME | |
1185 | ||
1186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1187 | for as_dir in $PATH | |
1188 | do | |
1189 | IFS=$as_save_IFS | |
1190 | test -z "$as_dir" && as_dir=. | |
1191 | echo "PATH: $as_dir" | |
1192 | done | |
1193 | ||
1194 | } >&5 | |
1195 | ||
1196 | cat >&5 <<_ACEOF | |
1197 | ||
1198 | ||
1199 | ## ----------- ## | |
1200 | ## Core tests. ## | |
1201 | ## ----------- ## | |
1202 | ||
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | # Keep a trace of the command line. | |
1207 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1208 | # Strip out --silent because we don't want to record it for future runs. | |
1209 | # Also quote any args containing shell meta-characters. | |
1210 | # Make two passes to allow for proper duplicate-argument suppression. | |
1211 | ac_configure_args= | |
1212 | ac_configure_args0= | |
1213 | ac_configure_args1= | |
2aeb72e9 | 1214 | ac_sep= |
1c710c3c DJ |
1215 | ac_must_keep_next=false |
1216 | for ac_pass in 1 2 | |
1217 | do | |
1218 | for ac_arg | |
1219 | do | |
1220 | case $ac_arg in | |
1221 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1222 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1223 | | -silent | --silent | --silen | --sile | --sil) | |
1224 | continue ;; | |
2aeb72e9 | 1225 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1c710c3c DJ |
1226 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1227 | esac | |
1228 | case $ac_pass in | |
1229 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1230 | 2) | |
1231 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1232 | if test $ac_must_keep_next = true; then | |
1233 | ac_must_keep_next=false # Got value, back to normal. | |
1234 | else | |
1235 | case $ac_arg in | |
1236 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1237 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1238 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1239 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1240 | case "$ac_configure_args0 " in | |
1241 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1242 | esac | |
1243 | ;; | |
1244 | -* ) ac_must_keep_next=true ;; | |
1245 | esac | |
1246 | fi | |
2aeb72e9 DD |
1247 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1248 | # Get rid of the leading space. | |
1249 | ac_sep=" " | |
1c710c3c DJ |
1250 | ;; |
1251 | esac | |
1252 | done | |
1253 | done | |
1254 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1255 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1256 | ||
1257 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1258 | # config.log. We remove comments because anyway the quotes in there | |
1259 | # would cause problems or look ugly. | |
2aeb72e9 DD |
1260 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1261 | # such as our DU 5.0 friend, will then `close' the trap. | |
1c710c3c DJ |
1262 | trap 'exit_status=$? |
1263 | # Save into config.log some information that might help in debugging. | |
1264 | { | |
1265 | echo | |
1266 | ||
1267 | cat <<\_ASBOX | |
1268 | ## ---------------- ## | |
1269 | ## Cache variables. ## | |
1270 | ## ---------------- ## | |
1271 | _ASBOX | |
1272 | echo | |
1273 | # The following way of writing the cache mishandles newlines in values, | |
2aeb72e9 | 1274 | { |
1c710c3c | 1275 | (set) 2>&1 | |
2aeb72e9 DD |
1276 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1277 | *ac_space=\ *) | |
1c710c3c | 1278 | sed -n \ |
2aeb72e9 DD |
1279 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1280 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1281 | ;; | |
1c710c3c | 1282 | *) |
2aeb72e9 DD |
1283 | sed -n \ |
1284 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1c710c3c | 1285 | ;; |
2aeb72e9 DD |
1286 | esac; |
1287 | } | |
1c710c3c DJ |
1288 | echo |
1289 | ||
1290 | cat <<\_ASBOX | |
1291 | ## ----------------- ## | |
1292 | ## Output variables. ## | |
1293 | ## ----------------- ## | |
1294 | _ASBOX | |
1295 | echo | |
1296 | for ac_var in $ac_subst_vars | |
1297 | do | |
2aeb72e9 DD |
1298 | eval ac_val=$`echo $ac_var` |
1299 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1c710c3c DJ |
1300 | done | sort |
1301 | echo | |
1302 | ||
1303 | if test -n "$ac_subst_files"; then | |
1304 | cat <<\_ASBOX | |
2aeb72e9 DD |
1305 | ## ------------- ## |
1306 | ## Output files. ## | |
1307 | ## ------------- ## | |
1c710c3c DJ |
1308 | _ASBOX |
1309 | echo | |
1310 | for ac_var in $ac_subst_files | |
1311 | do | |
2aeb72e9 DD |
1312 | eval ac_val=$`echo $ac_var` |
1313 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1c710c3c DJ |
1314 | done | sort |
1315 | echo | |
1316 | fi | |
1317 | ||
1318 | if test -s confdefs.h; then | |
1319 | cat <<\_ASBOX | |
1320 | ## ----------- ## | |
1321 | ## confdefs.h. ## | |
1322 | ## ----------- ## | |
1323 | _ASBOX | |
1324 | echo | |
2aeb72e9 | 1325 | sed "/^$/d" confdefs.h | sort |
1c710c3c DJ |
1326 | echo |
1327 | fi | |
1328 | test "$ac_signal" != 0 && | |
1329 | echo "$as_me: caught signal $ac_signal" | |
1330 | echo "$as_me: exit $exit_status" | |
1331 | } >&5 | |
2aeb72e9 DD |
1332 | rm -f core *.core && |
1333 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 1334 | exit $exit_status |
2aeb72e9 | 1335 | ' 0 |
1c710c3c DJ |
1336 | for ac_signal in 1 2 13 15; do |
1337 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1338 | done | |
1339 | ac_signal=0 | |
1340 | ||
1341 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2aeb72e9 DD |
1342 | rm -rf conftest* confdefs.h |
1343 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1344 | echo >confdefs.h | |
1c710c3c DJ |
1345 | |
1346 | # Predefined preprocessor variables. | |
1347 | ||
1348 | cat >>confdefs.h <<_ACEOF | |
1349 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1350 | _ACEOF | |
1351 | ||
1352 | ||
1353 | cat >>confdefs.h <<_ACEOF | |
1354 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1355 | _ACEOF | |
1356 | ||
1357 | ||
1358 | cat >>confdefs.h <<_ACEOF | |
1359 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1360 | _ACEOF | |
0b0dc272 | 1361 | |
1c710c3c DJ |
1362 | |
1363 | cat >>confdefs.h <<_ACEOF | |
1364 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1365 | _ACEOF | |
1366 | ||
1367 | ||
1368 | cat >>confdefs.h <<_ACEOF | |
1369 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1370 | _ACEOF | |
1371 | ||
1372 | ||
1373 | # Let the site file select an alternate cache file if it wants to. | |
671aa708 | 1374 | # Prefer explicitly selected file to automatically selected ones. |
2aeb72e9 DD |
1375 | if test -z "$CONFIG_SITE"; then |
1376 | if test "x$prefix" != xNONE; then | |
1377 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1378 | else | |
1379 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1380 | fi | |
671aa708 | 1381 | fi |
2aeb72e9 | 1382 | for ac_site_file in $CONFIG_SITE; do |
671aa708 | 1383 | if test -r "$ac_site_file"; then |
1c710c3c DJ |
1384 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1385 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1386 | sed 's/^/| /' "$ac_site_file" >&5 | |
671aa708 NN |
1387 | . "$ac_site_file" |
1388 | fi | |
1389 | done | |
1390 | ||
1391 | if test -r "$cache_file"; then | |
1c710c3c DJ |
1392 | # Some versions of bash will fail to source /dev/null (special |
1393 | # files actually), so we avoid doing that. | |
1394 | if test -f "$cache_file"; then | |
1395 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1396 | echo "$as_me: loading cache $cache_file" >&6;} | |
1397 | case $cache_file in | |
2aeb72e9 DD |
1398 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1399 | *) . ./$cache_file;; | |
1c710c3c DJ |
1400 | esac |
1401 | fi | |
671aa708 | 1402 | else |
1c710c3c DJ |
1403 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1404 | echo "$as_me: creating cache $cache_file" >&6;} | |
1405 | >$cache_file | |
1406 | fi | |
1407 | ||
1408 | # Check that the precious variables saved in the cache have kept the same | |
1409 | # value. | |
1410 | ac_cache_corrupted=false | |
2aeb72e9 DD |
1411 | for ac_var in `(set) 2>&1 | |
1412 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1c710c3c DJ |
1413 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1414 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2aeb72e9 DD |
1415 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1416 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1c710c3c DJ |
1417 | case $ac_old_set,$ac_new_set in |
1418 | set,) | |
1419 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1420 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1421 | ac_cache_corrupted=: ;; | |
1422 | ,set) | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1424 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1425 | ac_cache_corrupted=: ;; | |
1426 | ,);; | |
1427 | *) | |
1428 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
7142fb32 PB |
1429 | # differences in whitespace do not lead to failure. |
1430 | ac_old_val_w=`echo x $ac_old_val` | |
1431 | ac_new_val_w=`echo x $ac_new_val` | |
1432 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1433 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1c710c3c | 1434 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
7142fb32 PB |
1435 | ac_cache_corrupted=: |
1436 | else | |
1437 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1438 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1439 | eval $ac_var=\$ac_old_val | |
1440 | fi | |
1441 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1442 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1443 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1444 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
1445 | fi;; |
1446 | esac | |
1447 | # Pass precious variables to config.status. | |
1448 | if test "$ac_new_set" = set; then | |
1449 | case $ac_new_val in | |
2aeb72e9 DD |
1450 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1451 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1452 | *) ac_arg=$ac_var=$ac_new_val ;; |
1453 | esac | |
1454 | case " $ac_configure_args " in | |
1455 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1456 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1457 | esac | |
1458 | fi | |
1459 | done | |
1460 | if $ac_cache_corrupted; then | |
18c04407 RW |
1461 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1462 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1c710c3c DJ |
1463 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1464 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1465 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1466 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1467 | { (exit 1); exit 1; }; } | |
671aa708 NN |
1468 | fi |
1469 | ||
2aeb72e9 DD |
1470 | ac_ext=c |
1471 | ac_cpp='$CPP $CPPFLAGS' | |
1472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1475 | ||
1c710c3c DJ |
1476 | |
1477 | ||
1478 | ||
1479 | ||
671aa708 NN |
1480 | |
1481 | ||
d02c69be | 1482 | |
1c710c3c DJ |
1483 | |
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
18c04407 RW |
1492 | |
1493 | ||
1494 | ||
1c710c3c DJ |
1495 | |
1496 | ||
1497 | ||
ad33ff57 RW |
1498 | |
1499 | progname=$0 | |
1500 | # if PWD already has a value, it is probably wrong. | |
1501 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
1502 | ||
1503 | # Export original configure arguments for use by sub-configures. | |
1504 | # Quote arguments with shell meta charatcers. | |
1505 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
1506 | set -- "$progname" "$@" | |
1507 | for ac_arg | |
1508 | do | |
1509 | case "$ac_arg" in | |
1510 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
1511 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
1512 | # if the argument is of the form -foo=baz, quote the baz part only | |
1513 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
1514 | *) ;; | |
1515 | esac | |
1516 | # Add the quoted argument to the list. | |
1517 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
1518 | done | |
1519 | if test "$silent" = yes; then | |
1520 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
1521 | fi | |
1522 | # Remove the initial space we just introduced and, as these will be | |
1523 | # expanded by make, quote '$'. | |
1524 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
1525 | ||
1c710c3c DJ |
1526 | |
1527 | # Find the build, host, and target systems. | |
671aa708 | 1528 | ac_aux_dir= |
2aeb72e9 DD |
1529 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1530 | if test -f $ac_dir/install-sh; then | |
671aa708 NN |
1531 | ac_aux_dir=$ac_dir |
1532 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1533 | break | |
2aeb72e9 | 1534 | elif test -f $ac_dir/install.sh; then |
671aa708 NN |
1535 | ac_aux_dir=$ac_dir |
1536 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1537 | break | |
2aeb72e9 | 1538 | elif test -f $ac_dir/shtool; then |
1c710c3c DJ |
1539 | ac_aux_dir=$ac_dir |
1540 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1541 | break | |
671aa708 NN |
1542 | fi |
1543 | done | |
1544 | if test -z "$ac_aux_dir"; then | |
2aeb72e9 DD |
1545 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1546 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1c710c3c | 1547 | { (exit 1); exit 1; }; } |
671aa708 | 1548 | fi |
2aeb72e9 DD |
1549 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1550 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1551 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
671aa708 | 1552 | |
1c710c3c | 1553 | # Make sure we can run config.sub. |
2aeb72e9 DD |
1554 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1555 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1556 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1c710c3c DJ |
1557 | { (exit 1); exit 1; }; } |
1558 | ||
2aeb72e9 DD |
1559 | echo "$as_me:$LINENO: checking build system type" >&5 |
1560 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1c710c3c DJ |
1561 | if test "${ac_cv_build+set}" = set; then |
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1563 | else | |
2aeb72e9 DD |
1564 | ac_cv_build_alias=$build_alias |
1565 | test -z "$ac_cv_build_alias" && | |
1566 | ac_cv_build_alias=`$ac_config_guess` | |
1567 | test -z "$ac_cv_build_alias" && | |
1c710c3c DJ |
1568 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1569 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1570 | { (exit 1); exit 1; }; } | |
2aeb72e9 DD |
1571 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1572 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1573 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1c710c3c DJ |
1574 | { (exit 1); exit 1; }; } |
1575 | ||
1576 | fi | |
2aeb72e9 DD |
1577 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1578 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1c710c3c | 1579 | build=$ac_cv_build |
2aeb72e9 DD |
1580 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1581 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1582 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
671aa708 | 1583 | |
671aa708 | 1584 | |
1c710c3c DJ |
1585 | case ${build_alias} in |
1586 | "") build_noncanonical=${build} ;; | |
1587 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
1588 | esac |
1589 | ||
1590 | ||
af71363e | 1591 | |
1c710c3c DJ |
1592 | case ${host_alias} in |
1593 | "") host_noncanonical=${build_noncanonical} ;; | |
1594 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
1595 | esac |
1596 | ||
af71363e | 1597 | |
1c710c3c DJ |
1598 | |
1599 | case ${target_alias} in | |
1600 | "") target_noncanonical=${host_noncanonical} ;; | |
1601 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
1602 | esac |
1603 | ||
af71363e | 1604 | |
1c710c3c DJ |
1605 | |
1606 | ||
1607 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
1608 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1609 | NONENONEs,x,x, && | |
1c710c3c | 1610 | program_transform_name=s,y,y, |
af71363e | 1611 | |
2aeb72e9 DD |
1612 | echo "$as_me:$LINENO: checking host system type" >&5 |
1613 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1c710c3c DJ |
1614 | if test "${ac_cv_host+set}" = set; then |
1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af71363e | 1616 | else |
2aeb72e9 DD |
1617 | ac_cv_host_alias=$host_alias |
1618 | test -z "$ac_cv_host_alias" && | |
1619 | ac_cv_host_alias=$ac_cv_build_alias | |
1620 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1621 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1622 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1c710c3c DJ |
1623 | { (exit 1); exit 1; }; } |
1624 | ||
af71363e | 1625 | fi |
2aeb72e9 DD |
1626 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1627 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1c710c3c | 1628 | host=$ac_cv_host |
2aeb72e9 DD |
1629 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1630 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1631 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1632 | ||
1633 | ||
1634 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1635 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1c710c3c DJ |
1636 | if test "${ac_cv_target+set}" = set; then |
1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1638 | else | |
2aeb72e9 DD |
1639 | ac_cv_target_alias=$target_alias |
1640 | test "x$ac_cv_target_alias" = "x" && | |
1641 | ac_cv_target_alias=$ac_cv_host_alias | |
1642 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1643 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1644 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1c710c3c DJ |
1645 | { (exit 1); exit 1; }; } |
1646 | ||
1647 | fi | |
2aeb72e9 DD |
1648 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1649 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1c710c3c | 1650 | target=$ac_cv_target |
2aeb72e9 DD |
1651 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1652 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1653 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1c710c3c DJ |
1654 | |
1655 | ||
1656 | # The aliases save the names the user supplied, while $host etc. | |
1657 | # will get canonicalized. | |
1658 | test -n "$target_alias" && | |
1659 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1660 | NONENONEs,x,x, && | |
1661 | program_prefix=${target_alias}- | |
671aa708 | 1662 | test "$program_prefix" != NONE && |
2aeb72e9 | 1663 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
671aa708 NN |
1664 | # Use a double $ so make ignores it. |
1665 | test "$program_suffix" != NONE && | |
2aeb72e9 | 1666 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1c710c3c DJ |
1667 | # Double any \ or $. echo might interpret backslashes. |
1668 | # By default was `s,x,x', remove it if useless. | |
1669 | cat <<\_ACEOF >conftest.sed | |
1670 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1671 | _ACEOF | |
1672 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2aeb72e9 | 1673 | rm conftest.sed |
af71363e | 1674 | |
671aa708 NN |
1675 | |
1676 | ||
775956d0 NN |
1677 | # Get 'install' or 'install-sh' and its variants. |
1678 | # Find a good install program. We prefer a C program (faster), | |
1679 | # so one script is as good as another. But avoid the broken or | |
1680 | # incompatible versions: | |
1681 | # SysV /etc/install, /usr/sbin/install | |
1682 | # SunOS /usr/etc/install | |
1683 | # IRIX /sbin/install | |
1684 | # AIX /bin/install | |
1c710c3c | 1685 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
1686 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1687 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1688 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 1689 | # OS/2's system install, which has a completely different semantic |
775956d0 | 1690 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 1691 | # Reject install programs that cannot install multiple files. |
2aeb72e9 DD |
1692 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1693 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
775956d0 | 1694 | if test -z "$INSTALL"; then |
1c710c3c DJ |
1695 | if test "${ac_cv_path_install+set}" = set; then |
1696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1697 | else | |
1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1699 | for as_dir in $PATH | |
1700 | do | |
1701 | IFS=$as_save_IFS | |
1702 | test -z "$as_dir" && as_dir=. | |
1703 | # Account for people who put trailing slashes in PATH elements. | |
1704 | case $as_dir/ in | |
1705 | ./ | .// | /cC/* | \ | |
1706 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1707 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1708 | /usr/ucb/* ) ;; | |
1709 | *) | |
1710 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1711 | # Don't use installbsd from OSF since it installs stuff as root | |
1712 | # by default. | |
1713 | for ac_prog in ginstall scoinst install; do | |
1714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 1715 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 1716 | if test $ac_prog = install && |
1c710c3c | 1717 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
1718 | # AIX install. It has an incompatible calling convention. |
1719 | : | |
1c710c3c DJ |
1720 | elif test $ac_prog = install && |
1721 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1722 | # program-specific install script used by HP pwplus--don't use. | |
1723 | : | |
775956d0 | 1724 | else |
38d24731 RW |
1725 | rm -rf conftest.one conftest.two conftest.dir |
1726 | echo one > conftest.one | |
1727 | echo two > conftest.two | |
1728 | mkdir conftest.dir | |
1729 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1730 | test -s conftest.one && test -s conftest.two && | |
1731 | test -s conftest.dir/conftest.one && | |
1732 | test -s conftest.dir/conftest.two | |
1733 | then | |
1734 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1735 | break 3 | |
1736 | fi | |
775956d0 NN |
1737 | fi |
1738 | fi | |
1739 | done | |
1c710c3c DJ |
1740 | done |
1741 | ;; | |
1742 | esac | |
1743 | done | |
1744 | ||
38d24731 | 1745 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
1746 | |
1747 | fi | |
1748 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 1749 | INSTALL=$ac_cv_path_install |
775956d0 | 1750 | else |
38d24731 RW |
1751 | # As a last resort, use the slow shell script. Don't cache a |
1752 | # value for INSTALL within a source directory, because that will | |
775956d0 | 1753 | # break other packages using the cache if that directory is |
38d24731 | 1754 | # removed, or if the value is a relative name. |
1c710c3c | 1755 | INSTALL=$ac_install_sh |
775956d0 NN |
1756 | fi |
1757 | fi | |
2aeb72e9 DD |
1758 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1759 | echo "${ECHO_T}$INSTALL" >&6 | |
775956d0 NN |
1760 | |
1761 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1762 | # It thinks the first close brace ends the variable substitution. | |
1763 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1764 | ||
1c710c3c | 1765 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
1766 | |
1767 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1768 | ||
2aeb72e9 DD |
1769 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
1770 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 | |
1c710c3c DJ |
1771 | if test "${acx_cv_prog_LN+set}" = set; then |
1772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ad6717df PB |
1773 | else |
1774 | rm -f conftestdata_t | |
1775 | echo >conftestdata_f | |
1776 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1777 | then | |
1778 | acx_cv_prog_LN=ln | |
1779 | else | |
1780 | acx_cv_prog_LN=no | |
1781 | fi | |
1782 | rm -f conftestdata_f conftestdata_t | |
1783 | ||
1784 | fi | |
1785 | if test $acx_cv_prog_LN = no; then | |
1786 | LN="cp" | |
2aeb72e9 DD |
1787 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
1788 | echo "${ECHO_T}no, using $LN" >&6 | |
ad6717df PB |
1789 | else |
1790 | LN="$acx_cv_prog_LN" | |
2aeb72e9 DD |
1791 | echo "$as_me:$LINENO: result: yes" >&5 |
1792 | echo "${ECHO_T}yes" >&6 | |
ad6717df PB |
1793 | fi |
1794 | ||
2aeb72e9 DD |
1795 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
1796 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
1c710c3c DJ |
1797 | LN_S=$as_ln_s |
1798 | if test "$LN_S" = "ln -s"; then | |
2aeb72e9 DD |
1799 | echo "$as_me:$LINENO: result: yes" >&5 |
1800 | echo "${ECHO_T}yes" >&6 | |
fb0103e5 | 1801 | else |
2aeb72e9 DD |
1802 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
1803 | echo "${ECHO_T}no, using $LN_S" >&6 | |
148907ea PB |
1804 | fi |
1805 | ||
775956d0 | 1806 | |
79c06341 | 1807 | ### we might need to use some other shell than /bin/sh for running subshells |
79c06341 JL |
1808 | ### If we are on Windows, search for the shell. This will permit people |
1809 | ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure | |
1810 | ### without also having to set CONFIG_SHELL. This code will work when | |
1811 | ### using bash, which sets OSTYPE. | |
1812 | case "${OSTYPE}" in | |
1813 | *win32*) | |
671aa708 NN |
1814 | if test x${CONFIG_SHELL} = x ; then |
1815 | if test ! -f /bin/sh ; then | |
1816 | if test x${SHELL} != x && test -f ${SHELL} ; then | |
79c06341 JL |
1817 | CONFIG_SHELL=${SHELL} |
1818 | export CONFIG_SHELL | |
1819 | else | |
1820 | for prog in sh sh.exe bash bash.exe; do | |
1821 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1822 | for dir in $PATH; do | |
1823 | test -z "$dir" && dir=. | |
1824 | if test -f $dir/$prog; then | |
1825 | CONFIG_SHELL=$dir/$prog | |
1826 | export CONFIG_SHELL | |
1827 | break | |
1828 | fi | |
1829 | done | |
1830 | IFS="$save_ifs" | |
1831 | test -n "${CONFIG_SHELL}" && break | |
1832 | done | |
1833 | fi | |
1834 | fi | |
1835 | fi | |
1836 | ;; | |
1837 | esac | |
1838 | ||
1839 | config_shell=${CONFIG_SHELL-/bin/sh} | |
1840 | ||
671aa708 | 1841 | moveifchange=${srcdir}/move-if-change |
79c06341 | 1842 | |
ee6a22df L |
1843 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
1844 | ||
1845 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
1846 | # a relative path. | |
1847 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
1848 | INSTALL="${srcpwd}/install-sh -c" | |
1849 | fi | |
1850 | ||
671aa708 NN |
1851 | # Set srcdir to "." if that's what it is. |
1852 | # This is important for multilib support. | |
1853 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
1854 | if test "${pwd}" = "${srcpwd}" ; then |
1855 | srcdir=. | |
79c06341 JL |
1856 | fi |
1857 | ||
671aa708 | 1858 | topsrcdir=$srcpwd |
5d4a5ee6 | 1859 | |
671aa708 | 1860 | extra_host_args= |
afabd8e6 | 1861 | |
671aa708 NN |
1862 | ### To add a new directory to the tree, first choose whether it is a target |
1863 | ### or a host dependent tool. Then put it into the appropriate list | |
1864 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 1865 | |
1c710c3c | 1866 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 1867 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 1868 | |
1c710c3c DJ |
1869 | # Dependency sorting is only needed when *configuration* must be done in |
1870 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 1871 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 1872 | |
671aa708 NN |
1873 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
1874 | # cause circular dependencies and break everything horribly. | |
79c06341 | 1875 | |
23f6b2f9 PB |
1876 | # these library is used by various programs built for the build |
1877 | # environment | |
1878 | # | |
1879 | build_libs="build-libiberty" | |
1880 | ||
1881 | # these tools are built for the build environment | |
71b5d516 | 1882 | build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 1883 | |
671aa708 NN |
1884 | # these libraries are used by various programs built for the host environment |
1885 | # | |
f8bf9252 | 1886 | host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog" |
671aa708 | 1887 | |
671aa708 NN |
1888 | # these tools are built for the host environment |
1889 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
1890 | # know that we are building the simulator. | |
1891 | # binutils, gas and ld appear in that order because it makes sense to run | |
1892 | # "make check" in that particular order. | |
5afab7ad | 1893 | # If --enable-gold is used, "gold" will replace "ld". |
5395b47b | 1894 | host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" |
671aa708 NN |
1895 | |
1896 | # libgcj represents the runtime libraries only used by gcj. | |
1897 | libgcj="target-libffi \ | |
671aa708 NN |
1898 | target-zlib \ |
1899 | target-qthreads \ | |
1900 | target-libjava" | |
1901 | ||
1902 | # these libraries are built for the target environment, and are built after | |
1903 | # the host libraries and the host tools (which may be a cross compiler) | |
1904 | # | |
291f172e DJ |
1905 | target_libraries="target-libgcc \ |
1906 | target-libiberty \ | |
671aa708 NN |
1907 | target-libgloss \ |
1908 | target-newlib \ | |
6d3b5aea | 1909 | target-libgomp \ |
cb543528 | 1910 | target-libstdc++-v3 \ |
6de9cd9a | 1911 | target-libmudflap \ |
77008252 | 1912 | target-libssp \ |
6de9cd9a | 1913 | target-libgfortran \ |
7cd0cf9c | 1914 | target-boehm-gc \ |
77d187bc | 1915 | ${libgcj} \ |
d9cdb878 | 1916 | target-libobjc \ |
6d3b5aea | 1917 | target-libada" |
671aa708 | 1918 | |
4dbda6f0 NN |
1919 | # these tools are built using the target libraries, and are intended to |
1920 | # run only in the target environment | |
671aa708 | 1921 | # |
4dbda6f0 | 1922 | # note: any program that *uses* libraries that are in the "target_libraries" |
671aa708 NN |
1923 | # list belongs in this list. those programs are also very likely |
1924 | # candidates for the "native_only" list which follows | |
1925 | # | |
97286f7f | 1926 | target_tools="target-examples target-groff target-gperf target-rda" |
79c06341 | 1927 | |
671aa708 | 1928 | ################################################################################ |
79c06341 | 1929 | |
671aa708 NN |
1930 | ## All tools belong in one of the four categories, and are assigned above |
1931 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
1932 | ## is important because configure will choke if they ever get through. | |
1933 | ## ${configdirs} is directories we build using the host tools. | |
1934 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 1935 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 1936 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 1937 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 1938 | |
ac9e6043 RW |
1939 | |
1940 | ||
671aa708 | 1941 | ################################################################################ |
79c06341 | 1942 | |
671aa708 | 1943 | srcname="gnu development package" |
79c06341 | 1944 | |
671aa708 NN |
1945 | # This gets set non-empty for some net releases of packages. |
1946 | appdirs="" | |
79c06341 | 1947 | |
671aa708 NN |
1948 | # Define is_cross_compiler to save on calls to 'test'. |
1949 | is_cross_compiler= | |
1950 | if test x"${host}" = x"${target}" ; then | |
1951 | is_cross_compiler=no | |
79c06341 | 1952 | else |
671aa708 | 1953 | is_cross_compiler=yes |
1c710c3c | 1954 | fi |
79c06341 | 1955 | |
b4acb5ef | 1956 | # Find the build and target subdir names. |
8b87bb96 | 1957 | |
2e9e6f68 DJ |
1958 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
1959 | # have matching libraries, they should use host libraries: Makefile.tpl | |
1960 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
1961 | # However, they still use the build modules, because the corresponding | |
1962 | # host modules (e.g. bison) are only built for the host when bootstrap | |
1963 | # finishes. So: | |
1964 | # - build_subdir is where we find build modules, and never changes. | |
1965 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
1966 | ||
1967 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 1968 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 1969 | |
2aeb72e9 | 1970 | # Check whether --with-build-libsubdir or --without-build-libsubdir was given. |
2e9e6f68 | 1971 | if test "${with_build_libsubdir+set}" = set; then |
2aeb72e9 DD |
1972 | withval="$with_build_libsubdir" |
1973 | build_libsubdir="$withval" | |
2e9e6f68 DJ |
1974 | else |
1975 | build_libsubdir="$build_subdir" | |
2aeb72e9 | 1976 | fi; |
215c351a PB |
1977 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
1978 | if ( test $srcdir = . && test -d gcc ) \ | |
1979 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1980 | host_subdir="host-${host_noncanonical}" | |
1981 | else | |
1982 | host_subdir=. | |
1983 | fi | |
8b87bb96 NN |
1984 | # No prefix. |
1985 | target_subdir=${target_noncanonical} | |
1c710c3c | 1986 | |
79c06341 | 1987 | |
671aa708 NN |
1988 | # Skipdirs are removed silently. |
1989 | skipdirs= | |
1990 | # Noconfigdirs are removed loudly. | |
1991 | noconfigdirs="" | |
79c06341 | 1992 | |
671aa708 NN |
1993 | use_gnu_ld= |
1994 | # Make sure we don't let GNU ld be added if we didn't want it. | |
1995 | if test x$with_gnu_ld = xno ; then | |
1996 | use_gnu_ld=no | |
5afab7ad | 1997 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
1998 | fi |
1999 | ||
671aa708 NN |
2000 | use_gnu_as= |
2001 | # Make sure we don't let GNU as be added if we didn't want it. | |
2002 | if test x$with_gnu_as = xno ; then | |
2003 | use_gnu_as=no | |
2004 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2005 | fi |
2006 | ||
1c710c3c | 2007 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2008 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2009 | |
671aa708 NN |
2010 | case ${with_x} in |
2011 | yes | "") ;; # the default value for this tree is that X11 is available | |
2012 | no) | |
b4f96efe | 2013 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2014 | # We won't be able to build gdbtk without X. |
1c710c3c | 2015 | enable_gdbtk=no |
671aa708 NN |
2016 | ;; |
2017 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2018 | esac | |
79c06341 | 2019 | |
671aa708 | 2020 | # Some tools are only suitable for building in a "native" situation. |
1c710c3c | 2021 | # Remove these if host!=target. |
9e299237 | 2022 | native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" |
79c06341 | 2023 | |
671aa708 NN |
2024 | # Similarly, some are only suitable for cross toolchains. |
2025 | # Remove these if host=target. | |
2026 | cross_only="target-libgloss target-newlib target-opcodes" | |
2027 | ||
2028 | case $is_cross_compiler in | |
2029 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
2030 | yes) skipdirs="${skipdirs} ${native_only}" ;; | |
2031 | esac | |
79c06341 | 2032 | |
671aa708 NN |
2033 | # If both --with-headers and --with-libs are specified, default to |
2034 | # --without-newlib. | |
ee6a22df L |
2035 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2036 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2037 | if test x"${with_newlib}" = x ; then |
2038 | with_newlib=no | |
2039 | fi | |
79c06341 JL |
2040 | fi |
2041 | ||
671aa708 NN |
2042 | # Recognize --with-newlib/--without-newlib. |
2043 | case ${with_newlib} in | |
2044 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2045 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2046 | esac | |
79c06341 | 2047 | |
5afab7ad ILT |
2048 | # Handle --enable-gold. |
2049 | ||
2050 | # Check whether --enable-gold or --disable-gold was given. | |
2051 | if test "${enable_gold+set}" = set; then | |
2052 | enableval="$enable_gold" | |
2053 | ENABLE_GOLD=$enableval | |
2054 | else | |
2055 | ENABLE_GOLD=no | |
2056 | fi; | |
2057 | if test "${ENABLE_GOLD}" = "yes"; then | |
2058 | # Check for ELF target. | |
2059 | is_elf=no | |
2060 | case "${target}" in | |
2061 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2062 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
2063 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*) | |
2064 | case "${target}" in | |
2065 | *-*-linux*aout* | *-*-linux*oldld*) | |
2066 | ;; | |
2067 | *) | |
2068 | is_elf=yes | |
2069 | ;; | |
2070 | esac | |
2071 | esac | |
2072 | ||
2073 | if test "$is_elf" = "yes"; then | |
2074 | # Check for target supported by gold. | |
2075 | case "${target}" in | |
01b79d11 | 2076 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*) |
5afab7ad ILT |
2077 | configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`" |
2078 | ;; | |
2079 | esac | |
2080 | fi | |
2081 | fi | |
2082 | ||
671aa708 | 2083 | # Configure extra directories which are host specific |
79c06341 | 2084 | |
671aa708 NN |
2085 | case "${host}" in |
2086 | *-cygwin*) | |
2087 | configdirs="$configdirs libtermcap" ;; | |
2088 | esac | |
79c06341 | 2089 | |
4fab7234 HPN |
2090 | # A target can indicate whether a language isn't supported for some reason. |
2091 | # Only spaces may be used in this macro; not newlines or tabs. | |
2092 | unsupported_languages= | |
2093 | ||
1c710c3c | 2094 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
2095 | # target this usually means that a port of the program doesn't |
2096 | # exist yet. | |
ec8d6ddc | 2097 | |
671aa708 NN |
2098 | case "${host}" in |
2099 | hppa*64*-*-*) | |
2100 | noconfigdirs="$noconfigdirs byacc" | |
2101 | ;; | |
f2a0e225 | 2102 | i[3456789]86-*-vsta) |
b4f96efe | 2103 | noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext" |
671aa708 | 2104 | ;; |
f2a0e225 | 2105 | i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) |
b4f96efe | 2106 | noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi" |
3aa83176 | 2107 | ;; |
95af8923 KT |
2108 | x86_64-*-mingw*) |
2109 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" | |
2110 | ;; | |
f2a0e225 | 2111 | i[3456789]86-*-mingw32*) |
b4f96efe | 2112 | # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv" |
b91f0a41 | 2113 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" |
3aa83176 | 2114 | ;; |
f2a0e225 | 2115 | i[3456789]86-*-beos*) |
b4f96efe | 2116 | noconfigdirs="$noconfigdirs tk itcl libgui gdb" |
3aa83176 | 2117 | ;; |
671aa708 | 2118 | *-*-cygwin*) |
a22c2d8d | 2119 | noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" |
671aa708 NN |
2120 | ;; |
2121 | *-*-netbsd*) | |
a22c2d8d | 2122 | noconfigdirs="$noconfigdirs rcs" |
671aa708 NN |
2123 | ;; |
2124 | ppc*-*-pe) | |
b4f96efe | 2125 | noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv" |
671aa708 NN |
2126 | ;; |
2127 | powerpc-*-beos*) | |
b4f96efe | 2128 | noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" |
671aa708 | 2129 | ;; |
671aa708 | 2130 | esac |
ec8d6ddc | 2131 | |
6de9cd9a | 2132 | |
2aeb72e9 | 2133 | # Check whether --enable-libada or --disable-libada was given. |
d9cdb878 | 2134 | if test "${enable_libada+set}" = set; then |
2aeb72e9 DD |
2135 | enableval="$enable_libada" |
2136 | ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
2137 | else |
2138 | ENABLE_LIBADA=yes | |
2aeb72e9 | 2139 | fi; |
d9cdb878 | 2140 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 2141 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
2142 | fi |
2143 | ||
2aeb72e9 | 2144 | # Check whether --enable-libssp or --disable-libssp was given. |
ef0087a7 | 2145 | if test "${enable_libssp+set}" = set; then |
2aeb72e9 DD |
2146 | enableval="$enable_libssp" |
2147 | ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
2148 | else |
2149 | ENABLE_LIBSSP=yes | |
2aeb72e9 | 2150 | fi; |
ef0087a7 | 2151 | |
671aa708 NN |
2152 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2153 | # front-end isn't enabled, we still get libgcj disabled. | |
2154 | libgcj_saved=$libgcj | |
2155 | case $enable_libgcj in | |
2156 | yes) | |
2157 | # If we reset it here, it won't get added to noconfigdirs in the | |
2158 | # target-specific build rules, so it will be forcibly enabled | |
2159 | # (unless the Java language itself isn't enabled). | |
2160 | libgcj= | |
2161 | ;; | |
2162 | no) | |
2163 | # Make sure we get it printed in the list of not supported target libs. | |
2164 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2165 | ;; | |
2166 | esac | |
ec8d6ddc | 2167 | |
6de9cd9a | 2168 | |
27079765 AH |
2169 | # Disable libmudflap on some systems. |
2170 | if test x$enable_libmudflap = x ; then | |
dfcada9a | 2171 | case "${target}" in |
1c00b503 | 2172 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*) |
98a5bb3b | 2173 | # Enable libmudflap by default in GNU and friends. |
dfcada9a | 2174 | ;; |
a3e8d8b4 LR |
2175 | *-*-freebsd*) |
2176 | # Enable libmudflap by default in FreeBSD. | |
2177 | ;; | |
dfcada9a MM |
2178 | *) |
2179 | # Disable it by default everywhere else. | |
2180 | noconfigdirs="$noconfigdirs target-libmudflap" | |
2181 | ;; | |
2182 | esac | |
27079765 | 2183 | fi |
6de9cd9a | 2184 | |
27079765 AH |
2185 | # Disable libgomp on non POSIX hosted systems. |
2186 | if test x$enable_libgomp = x ; then | |
953ff289 DN |
2187 | # Enable libgomp by default on hosted POSIX systems. |
2188 | case "${target}" in | |
670cbfcf | 2189 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
953ff289 DN |
2190 | ;; |
2191 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*) | |
2192 | ;; | |
04879af3 | 2193 | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
953ff289 | 2194 | ;; |
cac90078 | 2195 | *-*-darwin* | *-*-aix*) |
953ff289 DN |
2196 | ;; |
2197 | *) | |
2198 | noconfigdirs="$noconfigdirs target-libgomp" | |
2199 | ;; | |
2200 | esac | |
27079765 | 2201 | fi |
953ff289 | 2202 | |
c03353e2 RIL |
2203 | # Default libgloss CPU subdirectory. |
2204 | libgloss_dir="$target_cpu" | |
6de9cd9a | 2205 | |
671aa708 NN |
2206 | case "${target}" in |
2207 | *-*-chorusos) | |
cb253473 | 2208 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2209 | ;; |
0fe0f073 | 2210 | powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*) |
e1514c3f | 2211 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 2212 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 2213 | ;; |
42c1cd8a AT |
2214 | *-*-darwin*) |
2215 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
2216 | noconfigdirs="$noconfigdirs sim target-rda" | |
2217 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2218 | ;; | |
671aa708 | 2219 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
cb253473 | 2220 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2221 | ;; |
c3f84f61 | 2222 | *-*-freebsd*) |
6de9cd9a DN |
2223 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
2224 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
2225 | && test -f /usr/local/include/gmp.h; then | |
2226 | with_gmp=/usr/local | |
2227 | fi | |
2228 | ||
2229 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
2230 | case "${target}" in | |
2231 | i*86-*-*) ;; | |
2232 | alpha*-*-*) ;; | |
2233 | *) | |
cb253473 | 2234 | noconfigdirs="$noconfigdirs ${libgcj}" |
6de9cd9a DN |
2235 | ;; |
2236 | esac | |
2237 | ;; | |
ef4e7569 US |
2238 | *-*-kaos*) |
2239 | # Remove unsupported stuff on all kaOS configurations. | |
cb253473 | 2240 | skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" |
ef4e7569 US |
2241 | skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" |
2242 | skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" | |
2243 | noconfigdirs="$noconfigdirs target-libgloss" | |
2244 | ;; | |
671aa708 NN |
2245 | *-*-netbsd*) |
2246 | # Skip some stuff on all NetBSD configurations. | |
2247 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" | |
2248 | ||
2249 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
2250 | case "${target}" in | |
2251 | i*86-*-netbsdelf*) ;; | |
0590b963 | 2252 | arm*-*-netbsdelf*) ;; |
671aa708 | 2253 | *) |
cb253473 | 2254 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2255 | ;; |
2256 | esac | |
2257 | ;; | |
61fec9ff | 2258 | *-*-netware*) |
cb253473 | 2259 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" |
671aa708 NN |
2260 | ;; |
2261 | *-*-rtems*) | |
cb253473 | 2262 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2263 | ;; |
a8ba31f2 EC |
2264 | # The tpf target doesn't support gdb yet. |
2265 | *-*-tpf*) | |
cb253473 | 2266 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" |
a8ba31f2 | 2267 | ;; |
5785c0ed | 2268 | *-*-uclinux*) |
cb253473 | 2269 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" |
5785c0ed | 2270 | ;; |
671aa708 | 2271 | *-*-vxworks*) |
cb253473 | 2272 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
2273 | ;; |
2274 | alpha*-dec-osf*) | |
2275 | # ld works, but does not support shared libraries. | |
2276 | # newlib is not 64 bit ready. I'm not sure about fileutils. | |
2277 | # gas doesn't generate exception information. | |
2278 | noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" | |
2279 | ;; | |
2280 | alpha*-*-*vms*) | |
cb253473 | 2281 | noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" |
671aa708 NN |
2282 | ;; |
2283 | alpha*-*-linux*) | |
2284 | # newlib is not 64 bit ready | |
2285 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2286 | ;; | |
671aa708 NN |
2287 | alpha*-*-*) |
2288 | # newlib is not 64 bit ready | |
cb253473 | 2289 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2290 | ;; |
33952f6f | 2291 | am33_2.0-*-linux*) |
cb253473 | 2292 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
33952f6f | 2293 | ;; |
671aa708 | 2294 | sh-*-linux*) |
cb253473 | 2295 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
1c710c3c | 2296 | ;; |
671aa708 | 2297 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
cb253473 | 2298 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2299 | noconfigdirs="$noconfigdirs target-examples" |
2300 | noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" | |
b4f96efe | 2301 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 NN |
2302 | noconfigdirs="$noconfigdirs expect dejagnu" |
2303 | # the C++ libraries don't build on top of CE's C libraries | |
cb543528 | 2304 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
671aa708 NN |
2305 | noconfigdirs="$noconfigdirs target-newlib" |
2306 | case "${host}" in | |
2307 | *-*-cygwin*) ;; # keep gdb and readline | |
aa9c3ab4 | 2308 | *) noconfigdirs="$noconfigdirs gdb readline" |
671aa708 NN |
2309 | ;; |
2310 | esac | |
c03353e2 | 2311 | libgloss_dir=wince |
671aa708 NN |
2312 | ;; |
2313 | arc-*-*) | |
cb253473 | 2314 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2315 | ;; |
ee6a22df | 2316 | arm-semi-aof ) |
ee6a22df | 2317 | ;; |
671aa708 | 2318 | arm-*-coff | strongarm-*-coff | xscale-*-coff) |
cb253473 | 2319 | noconfigdirs="$noconfigdirs ${libgcj}" |
c03353e2 | 2320 | libgloss_dir=arm |
671aa708 | 2321 | ;; |
b3f8d95d | 2322 | arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) |
671aa708 | 2323 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" |
c03353e2 | 2324 | libgloss_dir=arm |
671aa708 | 2325 | ;; |
077fc835 | 2326 | arm*-*-linux-gnueabi) |
c4e9bf2b | 2327 | noconfigdirs="$noconfigdirs target-qthreads" |
1c00b503 PB |
2328 | case ${with_newlib} in |
2329 | no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2330 | esac | |
c03353e2 | 2331 | libgloss_dir=arm |
077fc835 | 2332 | ;; |
972974fc | 2333 | arm*-*-symbianelf*) |
cb253473 | 2334 | noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" |
c03353e2 | 2335 | libgloss_dir=arm |
972974fc | 2336 | ;; |
671aa708 | 2337 | arm-*-pe*) |
cb253473 | 2338 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2339 | ;; |
671aa708 | 2340 | thumb-*-coff) |
cb253473 | 2341 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2342 | ;; |
2343 | thumb-*-elf) | |
cb253473 | 2344 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2345 | ;; |
671aa708 | 2346 | thumb-*-pe) |
cb253473 | 2347 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2348 | ;; |
2349 | arm-*-riscix*) | |
cb253473 | 2350 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" |
671aa708 NN |
2351 | ;; |
2352 | avr-*-*) | |
ac3949d9 | 2353 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp" |
671aa708 | 2354 | ;; |
6b65a26d | 2355 | bfin-*-*) |
8b3c6c5a | 2356 | noconfigdirs="$noconfigdirs gdb" |
61efc800 | 2357 | if test x${is_cross_compiler} != xno ; then |
6b65a26d CM |
2358 | target_configdirs="${target_configdirs} target-bsp target-cygmon" |
2359 | fi | |
2360 | ;; | |
671aa708 | 2361 | c4x-*-* | tic4x-*-*) |
cb253473 | 2362 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2363 | ;; |
2364 | c54x*-*-* | tic54x-*-*) | |
cb253473 | 2365 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" |
671aa708 | 2366 | ;; |
c993ae60 SR |
2367 | cr16-*-*) |
2368 | noconfigdirs="$noconfigdirs ${libgcj} gdb" | |
2369 | ;; | |
40d64b5a | 2370 | cris-*-* | crisv32-*-*) |
4fab7234 | 2371 | unsupported_languages="$unsupported_languages java" |
40d64b5a | 2372 | case "${target}" in |
c2e0d3a9 | 2373 | *-*-aout) |
7f26dfa3 | 2374 | unsupported_languages="$unsupported_languages fortran" |
4fab7234 | 2375 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; |
c2e0d3a9 | 2376 | *-*-elf) |
789ec619 | 2377 | noconfigdirs="$noconfigdirs target-boehm-gc";; |
c2e0d3a9 | 2378 | *-*-linux*) |
789ec619 | 2379 | noconfigdirs="$noconfigdirs target-newlib target-libgloss";; |
40d64b5a | 2380 | *) |
7f26dfa3 | 2381 | unsupported_languages="$unsupported_languages fortran" |
cb253473 | 2382 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; |
40d64b5a | 2383 | esac |
c03353e2 | 2384 | libgloss_dir=cris |
671aa708 | 2385 | ;; |
25b656e7 | 2386 | crx-*-*) |
cb253473 | 2387 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" |
25b656e7 | 2388 | ;; |
671aa708 | 2389 | d10v-*-*) |
cb253473 | 2390 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2391 | ;; |
2392 | d30v-*-*) | |
cb253473 | 2393 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 | 2394 | ;; |
c03353e2 RIL |
2395 | ep9312-*-elf | ep9312-*-coff) |
2396 | libgloss_dir=arm | |
2397 | ;; | |
671aa708 | 2398 | fr30-*-elf*) |
cb253473 | 2399 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
2400 | ;; |
2401 | frv-*-*) | |
cb253473 | 2402 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2403 | ;; |
2404 | h8300*-*-*) | |
cb253473 | 2405 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2406 | ;; |
2407 | h8500-*-*) | |
cb253473 | 2408 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2409 | ;; |
ee6a22df | 2410 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 2411 | ;; |
671aa708 NN |
2412 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
2413 | # In this case, it's because the hppa64-linux target is for | |
2414 | # the kernel only at this point and has no libc, and thus no | |
2415 | # headers, crt*.o, etc., all of which are needed by these. | |
2416 | noconfigdirs="$noconfigdirs target-zlib" | |
2417 | ;; | |
3e732ba0 JDA |
2418 | parisc*-*-linux* | hppa*-*-linux*) |
2419 | ;; | |
671aa708 | 2420 | hppa*-*-*elf* | \ |
671aa708 NN |
2421 | hppa*-*-lites* | \ |
2422 | hppa*-*-openbsd* | \ | |
2423 | hppa*64*-*-*) | |
cb253473 | 2424 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2425 | ;; |
2a332582 JDA |
2426 | hppa*-hp-hpux11*) |
2427 | noconfigdirs="$noconfigdirs ld shellutils" | |
2428 | ;; | |
c03353e2 RIL |
2429 | hppa*-*-pro*) |
2430 | libgloss_dir=pa | |
2431 | ;; | |
671aa708 NN |
2432 | hppa*-*-*) |
2433 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
2434 | # build on HP-UX 10.20. | |
cb253473 | 2435 | noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" |
671aa708 | 2436 | ;; |
fb87ad5d | 2437 | i960-*-*) |
cb253473 | 2438 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
fb87ad5d | 2439 | ;; |
671aa708 NN |
2440 | ia64*-*-elf*) |
2441 | # No gdb support yet. | |
b4f96efe | 2442 | noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" |
671aa708 NN |
2443 | ;; |
2444 | ia64*-**-hpux*) | |
2445 | # No gdb or ld support yet. | |
cb253473 | 2446 | noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" |
671aa708 | 2447 | ;; |
ee6a22df | 2448 | i370-*-opened*) |
ee6a22df | 2449 | ;; |
f2a0e225 | 2450 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
cb253473 | 2451 | noconfigdirs="$noconfigdirs ${libgcj}" |
c03353e2 | 2452 | libgloss_dir=i386 |
671aa708 | 2453 | ;; |
f2a0e225 | 2454 | i[3456789]86-*-linux*) |
671aa708 NN |
2455 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's |
2456 | # not build java stuff by default. | |
2457 | case "${target}" in | |
2458 | *-*-*libc1*) | |
cb253473 | 2459 | noconfigdirs="$noconfigdirs ${libgcj}";; |
671aa708 NN |
2460 | esac |
2461 | ||
2462 | # This section makes it possible to build newlib natively on linux. | |
2463 | # If we are using a cross compiler then don't configure newlib. | |
2464 | if test x${is_cross_compiler} != xno ; then | |
3aa83176 | 2465 | noconfigdirs="$noconfigdirs target-newlib" |
671aa708 NN |
2466 | fi |
2467 | noconfigdirs="$noconfigdirs target-libgloss" | |
2468 | # If we are not using a cross compiler, do configure newlib. | |
2469 | # Note however, that newlib will only be configured in this situation | |
2470 | # if the --with-newlib option has been given, because otherwise | |
2471 | # 'target-newlib' will appear in skipdirs. | |
2472 | ;; | |
f2a0e225 | 2473 | i[3456789]86-*-mingw32*) |
b91f0a41 CV |
2474 | target_configdirs="$target_configdirs target-winsup" |
2475 | noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" | |
1c710c3c | 2476 | ;; |
95af8923 KT |
2477 | x86_64-*-mingw*) |
2478 | target_configdirs="$target_configdirs target-winsup" | |
2479 | noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" | |
1c710c3c | 2480 | ;; |
671aa708 NN |
2481 | *-*-cygwin*) |
2482 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
cb253473 | 2483 | noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" |
801e2270 | 2484 | # always build newlib if winsup directory is present. |
b91f0a41 | 2485 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 2486 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 2487 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 2488 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 2489 | fi |
1c710c3c | 2490 | ;; |
ee6a22df L |
2491 | i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \ |
2492 | i[3456789]86-*-uwin* | i[3456789]86-*-interix* ) | |
ee6a22df | 2493 | ;; |
f2a0e225 | 2494 | i[3456789]86-*-pe) |
cb253473 | 2495 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2496 | ;; |
f2a0e225 | 2497 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
2498 | # The linker does not yet know about weak symbols in COFF, |
2499 | # and is not configured to handle mixed ELF and COFF. | |
cb253473 | 2500 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" |
671aa708 | 2501 | ;; |
f2a0e225 | 2502 | i[3456789]86-*-sco*) |
cb253473 | 2503 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2504 | ;; |
f2a0e225 | 2505 | i[3456789]86-*-solaris2*) |
671aa708 NN |
2506 | noconfigdirs="$noconfigdirs target-libgloss" |
2507 | ;; | |
f2a0e225 | 2508 | i[3456789]86-*-sysv4*) |
cb253473 | 2509 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2510 | ;; |
f2a0e225 | 2511 | i[3456789]86-*-beos*) |
cb253473 | 2512 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
3aa83176 | 2513 | ;; |
d1f8db0c PB |
2514 | i[3456789]86-*-rdos*) |
2515 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
2516 | ;; | |
fb87ad5d | 2517 | m32r-*-*) |
cb253473 | 2518 | noconfigdirs="$noconfigdirs ${libgcj}" |
fb87ad5d | 2519 | ;; |
671aa708 | 2520 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
cb253473 | 2521 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
c03353e2 | 2522 | libgloss_dir=m68hc11 |
671aa708 NN |
2523 | ;; |
2524 | m68k-*-elf*) | |
cb253473 | 2525 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2526 | ;; |
2527 | m68k-*-coff*) | |
cb253473 | 2528 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2529 | ;; |
c03353e2 RIL |
2530 | m68*-*-* | fido-*-*) |
2531 | libgloss_dir=m68k | |
2532 | ;; | |
671aa708 NN |
2533 | mcore-*-pe*) |
2534 | # The EPOC C++ environment does not support exceptions or rtti, | |
2535 | # and so building libstdc++-v3 tends not to always work. | |
2536 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
2537 | ;; | |
2538 | mmix-*-*) | |
4fab7234 | 2539 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" |
7f26dfa3 | 2540 | unsupported_languages="$unsupported_languages fortran java" |
671aa708 NN |
2541 | ;; |
2542 | mn10200-*-*) | |
cb253473 | 2543 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2544 | ;; |
2545 | mn10300-*-*) | |
cb253473 | 2546 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 | 2547 | ;; |
ab34901f | 2548 | mt-*-*) |
79dd769c AH |
2549 | noconfigdirs="$noconfigdirs sim" |
2550 | ;; | |
671aa708 NN |
2551 | powerpc-*-aix*) |
2552 | # copied from rs6000-*-* entry | |
cb253473 | 2553 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2554 | ;; |
2555 | powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) | |
2556 | target_configdirs="$target_configdirs target-winsup" | |
cb253473 | 2557 | noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}" |
671aa708 NN |
2558 | # always build newlib. |
2559 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
2560 | ;; | |
2561 | # This is temporary until we can link against shared libraries | |
2562 | powerpcle-*-solaris*) | |
cb253473 | 2563 | noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" |
c03353e2 | 2564 | libgloss_dir=rs6000 |
671aa708 NN |
2565 | ;; |
2566 | powerpc-*-beos*) | |
cb253473 | 2567 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
671aa708 | 2568 | ;; |
671aa708 | 2569 | powerpc-*-eabi) |
cb253473 | 2570 | noconfigdirs="$noconfigdirs ${libgcj}" |
c03353e2 | 2571 | libgloss_dir=rs6000 |
ee6a22df L |
2572 | ;; |
2573 | powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) | |
c03353e2 | 2574 | libgloss_dir=rs6000 |
671aa708 | 2575 | ;; |
671aa708 | 2576 | rs6000-*-lynxos*) |
cb253473 | 2577 | noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" |
671aa708 NN |
2578 | ;; |
2579 | rs6000-*-aix*) | |
cb253473 | 2580 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2581 | ;; |
2582 | rs6000-*-*) | |
cb253473 | 2583 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
671aa708 NN |
2584 | ;; |
2585 | m68k-apollo-*) | |
cb253473 | 2586 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" |
671aa708 | 2587 | ;; |
d9dced13 RS |
2588 | mips*-sde-elf*) |
2589 | skipdirs="$skipdirs target-libiberty" | |
2590 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2591 | if test x$with_newlib = xyes; then | |
2592 | noconfigdirs="$noconfigdirs gprof" | |
2593 | fi | |
2594 | libgloss_dir=mips | |
2595 | ;; | |
671aa708 | 2596 | mips*-*-irix5*) |
cb253473 | 2597 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
2598 | ;; |
2599 | mips*-*-irix6*) | |
671aa708 NN |
2600 | # Linking libjava exceeds command-line length limits on at least |
2601 | # IRIX 6.2, but not on IRIX 6.5. | |
2602 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
2603 | # <oldham@codesourcery.com> | |
cb253473 | 2604 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2605 | ;; |
671aa708 | 2606 | mips*-*-bsd*) |
cb253473 | 2607 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 | 2608 | ;; |
671aa708 NN |
2609 | mips*-*-linux*) |
2610 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2611 | ;; | |
2612 | mips*-*-*) | |
cb253473 | 2613 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
c03353e2 | 2614 | libgloss_dir=mips |
671aa708 NN |
2615 | ;; |
2616 | romp-*-*) | |
cb253473 | 2617 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" |
671aa708 | 2618 | ;; |
669f01d8 | 2619 | sh-*-* | sh64-*-*) |
671aa708 | 2620 | case "${host}" in |
f2a0e225 KC |
2621 | i[3456789]86-*-vsta) ;; # don't add gprof back in |
2622 | i[3456789]86-*-go32*) ;; # don't add gprof back in | |
2623 | i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in | |
671aa708 NN |
2624 | *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; |
2625 | esac | |
cb253473 | 2626 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 | 2627 | ;; |
c03353e2 RIL |
2628 | sparclet-*-aout* | sparc86x-*-*) |
2629 | libgloss_dir=sparc | |
2630 | ;; | |
671aa708 | 2631 | sparc-*-elf*) |
cb253473 | 2632 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2633 | ;; |
2634 | sparc64-*-elf*) | |
cb253473 | 2635 | noconfigdirs="$noconfigdirs ${libgcj}" |
c03353e2 | 2636 | libgloss_dir=sparc |
671aa708 NN |
2637 | ;; |
2638 | sparclite-*-*) | |
cb253473 | 2639 | noconfigdirs="$noconfigdirs ${libgcj}" |
c03353e2 | 2640 | libgloss_dir=sparc |
671aa708 NN |
2641 | ;; |
2642 | sparc-*-sunos4*) | |
cb253473 | 2643 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2644 | if test x${is_cross_compiler} != xno ; then |
2645 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
2646 | else | |
2647 | use_gnu_ld=no | |
2648 | fi | |
2649 | ;; | |
bba5e0ca | 2650 | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
cb253473 | 2651 | noconfigdirs="$noconfigdirs ${libgcj}" |
bba5e0ca | 2652 | ;; |
671aa708 NN |
2653 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) |
2654 | ;; | |
85d9c13c | 2655 | spu-*-*) |
ea6f5c57 | 2656 | skipdirs="target-libssp" |
85d9c13c | 2657 | ;; |
671aa708 | 2658 | v810-*-*) |
cb253473 | 2659 | noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" |
671aa708 NN |
2660 | ;; |
2661 | v850-*-*) | |
cb253473 | 2662 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2663 | ;; |
2664 | v850e-*-*) | |
cb253473 | 2665 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2666 | ;; |
2667 | v850ea-*-*) | |
cb253473 | 2668 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2669 | ;; |
2670 | vax-*-vms) | |
cb253473 | 2671 | noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" |
671aa708 NN |
2672 | ;; |
2673 | vax-*-*) | |
cb253473 | 2674 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
671aa708 | 2675 | ;; |
aa12a573 | 2676 | xtensa*-*-*) |
cb253473 | 2677 | noconfigdirs="$noconfigdirs ${libgcj}" |
0d4f1b4e | 2678 | ;; |
671aa708 | 2679 | ip2k-*-*) |
cb253473 | 2680 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 2681 | ;; |
c3f84f61 | 2682 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
671aa708 NN |
2683 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
2684 | ;; | |
2685 | *-*-lynxos*) | |
cb253473 | 2686 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
1c710c3c | 2687 | ;; |
671aa708 | 2688 | *-*-*) |
cb253473 | 2689 | noconfigdirs="$noconfigdirs ${libgcj}" |
671aa708 NN |
2690 | ;; |
2691 | esac | |
79c06341 | 2692 | |
671aa708 NN |
2693 | # If we aren't building newlib, then don't build libgloss, since libgloss |
2694 | # depends upon some newlib header files. | |
2695 | case "${noconfigdirs}" in | |
2696 | *target-libgloss*) ;; | |
2697 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
2698 | esac | |
2699 | ||
671aa708 NN |
2700 | # Work in distributions that contain no compiler tools, like Autoconf. |
2701 | tentative_cc="" | |
2702 | host_makefile_frag=/dev/null | |
2703 | if test -d ${srcdir}/config ; then | |
2704 | case "${host}" in | |
2705 | m68k-hp-hpux*) | |
2706 | # Avoid "too much defining" errors from HPUX compiler. | |
2707 | tentative_cc="cc -Wp,-H256000" | |
2708 | # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. | |
2709 | # If it's HP/UX ar, this should be harmless. | |
2710 | RANLIB="ar ts" | |
2711 | ;; | |
2712 | m68k-apollo-sysv*) | |
2713 | tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" | |
2714 | ;; | |
2715 | m68k-apollo-bsd*) | |
2716 | #None of the Apollo compilers can compile gas or binutils. The preprocessor | |
2717 | # chokes on bfd, the compiler won't let you assign integers to enums, and | |
2718 | # other problems. Defining CC to gcc is a questionable way to say "don't use | |
2719 | # the apollo compiler" (the preferred version of GCC could be called cc, | |
2720 | # or whatever), but I'm not sure leaving CC as cc is any better... | |
2721 | #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG | |
2722 | # Used to have BISON=yacc. | |
2723 | tentative_cc=gcc | |
2724 | ;; | |
2725 | m88k-dg-dgux*) | |
2726 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" | |
671aa708 NN |
2727 | ;; |
2728 | m88k-harris-cxux*) | |
2729 | # Under CX/UX, we want to tell the compiler to use ANSI mode. | |
2730 | tentative_cc="cc -Xa" | |
2731 | host_makefile_frag="config/mh-cxux" | |
2732 | ;; | |
2733 | m88k-motorola-sysv*) | |
2734 | ;; | |
2735 | mips*-dec-ultrix*) | |
2736 | tentative_cc="cc -Wf,-XNg1000" | |
2737 | host_makefile_frag="config/mh-decstation" | |
2738 | ;; | |
2739 | mips*-nec-sysv4*) | |
2740 | # The C compiler on NEC MIPS SVR4 needs bigger tables. | |
2741 | tentative_cc="cc -ZXNd=5000 -ZXNg=1000" | |
2742 | host_makefile_frag="config/mh-necv4" | |
2743 | ;; | |
2744 | mips*-sgi-irix4*) | |
2745 | # Tell compiler to use K&R C. We can't compile under the SGI Ansi | |
2746 | # environment. Also bump switch table size so that cp-parse will | |
2747 | # compile. Bump string length limit so linker builds. | |
2748 | tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" | |
2749 | ;; | |
2750 | mips*-*-sysv4*) | |
2751 | host_makefile_frag="config/mh-sysv4" | |
2752 | ;; | |
2753 | mips*-*-sysv*) | |
2754 | # This is for a MIPS running RISC/os 4.52C. | |
2755 | ||
2756 | # This is needed for GDB, but needs to be in the top-level make because | |
2757 | # if a library is compiled with the bsd headers and gets linked with the | |
2758 | # sysv system libraries all hell can break loose (e.g. a jmp_buf might be | |
2759 | # a different size). | |
2760 | # ptrace(2) apparently has problems in the BSD environment. No workaround is | |
2761 | # known except to select the sysv environment. Could we use /proc instead? | |
2762 | # These "sysv environments" and "bsd environments" often end up being a pain. | |
2763 | # | |
2764 | # This is not part of CFLAGS because perhaps not all C compilers have this | |
2765 | # option. | |
2766 | tentative_cc="cc -systype sysv" | |
2767 | ;; | |
2768 | i370-ibm-opened*) | |
2769 | tentative_cc="c89" | |
2770 | ;; | |
f2a0e225 | 2771 | i[3456789]86-*-sysv5*) |
671aa708 NN |
2772 | host_makefile_frag="config/mh-sysv5" |
2773 | ;; | |
f2a0e225 | 2774 | i[3456789]86-*-dgux*) |
671aa708 NN |
2775 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" |
2776 | host_makefile_frag="config/mh-dgux386" | |
2777 | ;; | |
f2a0e225 | 2778 | i[3456789]86-ncr-sysv4.3*) |
671aa708 NN |
2779 | # The MetaWare compiler will generate a copyright message unless you |
2780 | # turn it off by adding the -Hnocopyr flag. | |
2781 | tentative_cc="cc -Hnocopyr" | |
2782 | ;; | |
f2a0e225 | 2783 | i[3456789]86-ncr-sysv4*) |
671aa708 NN |
2784 | # for an NCR 3000 (i486/SVR4) system. |
2785 | # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. | |
2786 | # This compiler not only emits obnoxious copyright messages every time | |
2787 | # you run it, but it chokes and dies on a whole bunch of GNU source | |
2788 | # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. | |
2789 | tentative_cc="/usr/ccs/ATT/cc" | |
2790 | host_makefile_frag="config/mh-ncr3000" | |
2791 | ;; | |
f2a0e225 | 2792 | i[3456789]86-*-sco3.2v5*) |
671aa708 | 2793 | ;; |
f2a0e225 | 2794 | i[3456789]86-*-sco*) |
671aa708 NN |
2795 | # The native C compiler botches some simple uses of const. Unfortunately, |
2796 | # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. | |
2797 | tentative_cc="cc -Dconst=" | |
2798 | host_makefile_frag="config/mh-sco" | |
2799 | ;; | |
f2a0e225 | 2800 | i[3456789]86-*-udk*) |
671aa708 NN |
2801 | host_makefile_frag="config/mh-sysv5" |
2802 | ;; | |
f2a0e225 | 2803 | i[3456789]86-*-solaris2*) |
671aa708 NN |
2804 | host_makefile_frag="config/mh-sysv4" |
2805 | ;; | |
f2a0e225 | 2806 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
2807 | host_makefile_frag="config/mh-djgpp" |
2808 | ;; | |
2809 | *-cygwin*) | |
2a79c47f NC |
2810 | |
2811 | echo "$as_me:$LINENO: checking to see if cat works as expected" >&5 | |
2812 | echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6 | |
2813 | echo a >cygwin-cat-check | |
2814 | if test `cat cygwin-cat-check` == a ; then | |
2815 | rm cygwin-cat-check | |
2816 | echo "$as_me:$LINENO: result: yes" >&5 | |
2817 | echo "${ECHO_T}yes" >&6 | |
2818 | else | |
2819 | rm cygwin-cat-check | |
2820 | echo "$as_me:$LINENO: result: no" >&5 | |
2821 | echo "${ECHO_T}no" >&6 | |
2822 | { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters. | |
2823 | Please either mount the build directory in binary mode or run the following | |
2824 | commands before running any configure script: | |
2825 | set -o igncr | |
2826 | export SHELLOPTS | |
2827 | " >&5 | |
2828 | echo "$as_me: error: The cat command does not ignore carriage return characters. | |
2829 | Please either mount the build directory in binary mode or run the following | |
2830 | commands before running any configure script: | |
2831 | set -o igncr | |
2832 | export SHELLOPTS | |
2833 | " >&2;} | |
2834 | { (exit 1); exit 1; }; } | |
2835 | fi | |
2836 | ||
671aa708 NN |
2837 | host_makefile_frag="config/mh-cygwin" |
2838 | ;; | |
c53a18d3 | 2839 | *-mingw*) |
1f5a6b84 | 2840 | host_makefile_frag="config/mh-mingw" |
95af8923 | 2841 | ;; |
671aa708 NN |
2842 | *-interix*) |
2843 | host_makefile_frag="config/mh-interix" | |
2844 | ;; | |
2845 | vax-*-ultrix2*) | |
2846 | # The old BSD pcc isn't up to compiling parts of gdb so use gcc | |
2847 | tentative_cc=gcc | |
2848 | ;; | |
2849 | *-*-solaris2*) | |
2850 | host_makefile_frag="config/mh-solaris" | |
2851 | ;; | |
2852 | m68k-sun-sunos*) | |
2853 | # Sun's C compiler needs the -J flag to be able to compile cp-parse.c | |
2854 | # without overflowing the jump tables (-J says to use a 32 bit table) | |
2855 | tentative_cc="cc -J" | |
2856 | ;; | |
efd41714 | 2857 | hppa*-hp-hpux10*) |
671aa708 | 2858 | tentative_cc="cc -Wp,-H256000" |
efd41714 | 2859 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 2860 | ;; |
efd41714 PB |
2861 | hppa*-hp-hpux* | hppa*-*-hiux*) |
2862 | tentative_cc="cc -Wp,-H256000" | |
2863 | host_makefile_frag="config/mh-pa" | |
2864 | ;; | |
2865 | hppa*-*) | |
2866 | host_makefile_frag="config/mh-pa" | |
2867 | ;; | |
2868 | *-hp-hpux* | *-*-hiux*) | |
671aa708 NN |
2869 | tentative_cc="cc -Wp,-H256000" |
2870 | ;; | |
2871 | rs6000-*-lynxos*) | |
2872 | # /bin/cc is less than useful for our purposes. Always use GCC | |
2873 | tentative_cc="/usr/cygnus/progressive/bin/gcc" | |
2874 | host_makefile_frag="config/mh-lynxrs6k" | |
2875 | ;; | |
45f366ab | 2876 | powerpc-*-darwin*) |
be8fff81 RB |
2877 | host_makefile_frag="config/mh-ppc-darwin" |
2878 | ;; | |
d19bca38 PB |
2879 | powerpc-*-aix*) |
2880 | host_makefile_frag="config/mh-ppc-aix" | |
2881 | ;; | |
2882 | rs6000-*-aix*) | |
2883 | host_makefile_frag="config/mh-ppc-aix" | |
2884 | ;; | |
671aa708 NN |
2885 | *-*-lynxos*) |
2886 | # /bin/cc is less than useful for our purposes. Always use GCC | |
2887 | tentative_cc="/bin/gcc" | |
2888 | ;; | |
2889 | *-*-sysv4*) | |
2890 | host_makefile_frag="config/mh-sysv4" | |
2891 | ;; | |
95c53c62 RS |
2892 | # This is placed last to prevent interfering with the cases above. |
2893 | i[3456789]86-*-*) | |
2894 | # Build the stage2 and stage3 compilers with -fomit-frame-pointer. | |
2895 | host_makefile_frag="config/mh-x86omitfp" | |
2896 | ;; | |
671aa708 NN |
2897 | esac |
2898 | fi | |
2899 | ||
55ffb5ed NN |
2900 | # If we aren't going to be using gcc, see if we can extract a definition |
2901 | # of CC from the fragment. | |
2902 | # Actually, use the 'pre-extracted' version above. | |
2903 | if test -z "${CC}" && test "${build}" = "${host}" ; then | |
2904 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
2905 | found= | |
2906 | for dir in $PATH; do | |
2907 | test -z "$dir" && dir=. | |
2908 | if test -f $dir/gcc; then | |
2909 | found=yes | |
2910 | break | |
2911 | fi | |
2912 | done | |
2913 | IFS="$save_ifs" | |
2914 | if test -z "${found}" && test -n "${tentative_cc}" ; then | |
2915 | CC=$tentative_cc | |
2916 | fi | |
2917 | fi | |
2918 | ||
2919 | if test "${build}" != "${host}" ; then | |
0999159b PB |
2920 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
2921 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 2922 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b PB |
2923 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
2924 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
2925 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
2926 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} | |
2927 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
2928 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
2929 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
2930 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
2931 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
2932 | else | |
2933 | AR_FOR_BUILD="\$(AR)" | |
2934 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 2935 | CC_FOR_BUILD="\$(CC)" |
0999159b PB |
2936 | CXX_FOR_BUILD="\$(CXX)" |
2937 | GCJ_FOR_BUILD="\$(GCJ)" | |
2938 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
2939 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" | |
2940 | LD_FOR_BUILD="\$(LD)" | |
2941 | NM_FOR_BUILD="\$(NM)" | |
2942 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
2943 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
2944 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
2945 | fi |
2946 | ||
2947 | ac_ext=c | |
1c710c3c DJ |
2948 | ac_cpp='$CPP $CPPFLAGS' |
2949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2952 | if test -n "$ac_tool_prefix"; then | |
2953 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2954 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2aeb72e9 DD |
2955 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2956 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
2957 | if test "${ac_cv_prog_CC+set}" = set; then |
2958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2959 | else | |
2960 | if test -n "$CC"; then | |
2961 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2962 | else | |
2963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2964 | for as_dir in $PATH | |
2965 | do | |
2966 | IFS=$as_save_IFS | |
2967 | test -z "$as_dir" && as_dir=. | |
2968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 2969 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
2970 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2971 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2972 | break 2 | |
2973 | fi | |
2974 | done | |
2975 | done | |
2976 | ||
2977 | fi | |
2978 | fi | |
2979 | CC=$ac_cv_prog_CC | |
2980 | if test -n "$CC"; then | |
2aeb72e9 DD |
2981 | echo "$as_me:$LINENO: result: $CC" >&5 |
2982 | echo "${ECHO_T}$CC" >&6 | |
1c710c3c | 2983 | else |
2aeb72e9 DD |
2984 | echo "$as_me:$LINENO: result: no" >&5 |
2985 | echo "${ECHO_T}no" >&6 | |
1c710c3c DJ |
2986 | fi |
2987 | ||
2988 | fi | |
2989 | if test -z "$ac_cv_prog_CC"; then | |
2990 | ac_ct_CC=$CC | |
fb0103e5 RG |
2991 | # Extract the first word of "gcc", so it can be a program name with args. |
2992 | set dummy gcc; ac_word=$2 | |
2aeb72e9 DD |
2993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
2995 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2997 | else | |
2998 | if test -n "$ac_ct_CC"; then | |
2999 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3000 | else | |
3001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3002 | for as_dir in $PATH | |
3003 | do | |
3004 | IFS=$as_save_IFS | |
3005 | test -z "$as_dir" && as_dir=. | |
3006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
3008 | ac_cv_prog_ac_ct_CC="gcc" |
3009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3010 | break 2 | |
3011 | fi | |
3012 | done | |
3013 | done | |
3014 | ||
3015 | fi | |
3016 | fi | |
3017 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3018 | if test -n "$ac_ct_CC"; then | |
2aeb72e9 DD |
3019 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3020 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1c710c3c | 3021 | else |
2aeb72e9 DD |
3022 | echo "$as_me:$LINENO: result: no" >&5 |
3023 | echo "${ECHO_T}no" >&6 | |
1c710c3c DJ |
3024 | fi |
3025 | ||
2aeb72e9 | 3026 | CC=$ac_ct_CC |
1c710c3c DJ |
3027 | else |
3028 | CC="$ac_cv_prog_CC" | |
3029 | fi | |
3030 | ||
3031 | if test -z "$CC"; then | |
2aeb72e9 DD |
3032 | if test -n "$ac_tool_prefix"; then |
3033 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 3034 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2aeb72e9 DD |
3035 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
3037 | if test "${ac_cv_prog_CC+set}" = set; then |
3038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3039 | else |
3040 | if test -n "$CC"; then | |
3041 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3042 | else | |
1c710c3c DJ |
3043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3044 | for as_dir in $PATH | |
3045 | do | |
3046 | IFS=$as_save_IFS | |
3047 | test -z "$as_dir" && as_dir=. | |
3048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
3050 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3052 | break 2 | |
3053 | fi | |
3054 | done | |
3055 | done | |
3056 | ||
0b0dc272 | 3057 | fi |
0b0dc272 | 3058 | fi |
1c710c3c | 3059 | CC=$ac_cv_prog_CC |
af71363e | 3060 | if test -n "$CC"; then |
2aeb72e9 DD |
3061 | echo "$as_me:$LINENO: result: $CC" >&5 |
3062 | echo "${ECHO_T}$CC" >&6 | |
0b0dc272 | 3063 | else |
2aeb72e9 DD |
3064 | echo "$as_me:$LINENO: result: no" >&5 |
3065 | echo "${ECHO_T}no" >&6 | |
0b0dc272 AM |
3066 | fi |
3067 | ||
2aeb72e9 DD |
3068 | fi |
3069 | if test -z "$ac_cv_prog_CC"; then | |
3070 | ac_ct_CC=$CC | |
3071 | # Extract the first word of "cc", so it can be a program name with args. | |
3072 | set dummy cc; ac_word=$2 | |
3073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3075 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3077 | else | |
3078 | if test -n "$ac_ct_CC"; then | |
3079 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3080 | else | |
3081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3082 | for as_dir in $PATH | |
3083 | do | |
3084 | IFS=$as_save_IFS | |
3085 | test -z "$as_dir" && as_dir=. | |
3086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3088 | ac_cv_prog_ac_ct_CC="cc" | |
3089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3090 | break 2 | |
11a67599 | 3091 | fi |
2aeb72e9 DD |
3092 | done |
3093 | done | |
3094 | ||
3095 | fi | |
3096 | fi | |
3097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3098 | if test -n "$ac_ct_CC"; then | |
3099 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3100 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3101 | else | |
3102 | echo "$as_me:$LINENO: result: no" >&5 | |
3103 | echo "${ECHO_T}no" >&6 | |
3104 | fi | |
3105 | ||
3106 | CC=$ac_ct_CC | |
3107 | else | |
3108 | CC="$ac_cv_prog_CC" | |
3109 | fi | |
3110 | ||
1c710c3c | 3111 | fi |
55ffb5ed NN |
3112 | if test -z "$CC"; then |
3113 | # Extract the first word of "cc", so it can be a program name with args. | |
3114 | set dummy cc; ac_word=$2 | |
2aeb72e9 DD |
3115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
3117 | if test "${ac_cv_prog_CC+set}" = set; then |
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3119 | else |
3120 | if test -n "$CC"; then | |
3121 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3122 | else | |
0b0dc272 | 3123 | ac_prog_rejected=no |
1c710c3c DJ |
3124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3125 | for as_dir in $PATH | |
3126 | do | |
3127 | IFS=$as_save_IFS | |
3128 | test -z "$as_dir" && as_dir=. | |
3129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
3131 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3132 | ac_prog_rejected=yes | |
3133 | continue | |
3134 | fi | |
3135 | ac_cv_prog_CC="cc" | |
3136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3137 | break 2 | |
3138 | fi | |
3139 | done | |
3140 | done | |
3141 | ||
55ffb5ed NN |
3142 | if test $ac_prog_rejected = yes; then |
3143 | # We found a bogon in the path, so make sure we never use it. | |
3144 | set dummy $ac_cv_prog_CC | |
3145 | shift | |
1c710c3c | 3146 | if test $# != 0; then |
55ffb5ed NN |
3147 | # We chose a different compiler from the bogus one. |
3148 | # However, it has the same basename, so the bogon will be chosen | |
3149 | # first if we set CC to just the basename; use the full file name. | |
3150 | shift | |
1c710c3c | 3151 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
3152 | fi |
3153 | fi | |
3154 | fi | |
3155 | fi | |
1c710c3c | 3156 | CC=$ac_cv_prog_CC |
55ffb5ed | 3157 | if test -n "$CC"; then |
2aeb72e9 DD |
3158 | echo "$as_me:$LINENO: result: $CC" >&5 |
3159 | echo "${ECHO_T}$CC" >&6 | |
55ffb5ed | 3160 | else |
2aeb72e9 DD |
3161 | echo "$as_me:$LINENO: result: no" >&5 |
3162 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
3163 | fi |
3164 | ||
1c710c3c DJ |
3165 | fi |
3166 | if test -z "$CC"; then | |
3167 | if test -n "$ac_tool_prefix"; then | |
2aeb72e9 | 3168 | for ac_prog in cl |
1c710c3c DJ |
3169 | do |
3170 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3171 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2aeb72e9 DD |
3172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
3174 | if test "${ac_cv_prog_CC+set}" = set; then |
3175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3176 | else |
3177 | if test -n "$CC"; then | |
3178 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3179 | else | |
1c710c3c DJ |
3180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3181 | for as_dir in $PATH | |
3182 | do | |
3183 | IFS=$as_save_IFS | |
3184 | test -z "$as_dir" && as_dir=. | |
3185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
3187 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3189 | break 2 | |
3190 | fi | |
3191 | done | |
3192 | done | |
3193 | ||
55ffb5ed NN |
3194 | fi |
3195 | fi | |
1c710c3c | 3196 | CC=$ac_cv_prog_CC |
55ffb5ed | 3197 | if test -n "$CC"; then |
2aeb72e9 DD |
3198 | echo "$as_me:$LINENO: result: $CC" >&5 |
3199 | echo "${ECHO_T}$CC" >&6 | |
a4b9e93e | 3200 | else |
2aeb72e9 DD |
3201 | echo "$as_me:$LINENO: result: no" >&5 |
3202 | echo "${ECHO_T}no" >&6 | |
fb0103e5 | 3203 | fi |
af71363e | 3204 | |
1c710c3c DJ |
3205 | test -n "$CC" && break |
3206 | done | |
af71363e | 3207 | fi |
1c710c3c DJ |
3208 | if test -z "$CC"; then |
3209 | ac_ct_CC=$CC | |
2aeb72e9 | 3210 | for ac_prog in cl |
1c710c3c DJ |
3211 | do |
3212 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3213 | set dummy $ac_prog; ac_word=$2 | |
2aeb72e9 DD |
3214 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
3216 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0b0dc272 | 3218 | else |
1c710c3c DJ |
3219 | if test -n "$ac_ct_CC"; then |
3220 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 3221 | else |
1c710c3c DJ |
3222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3223 | for as_dir in $PATH | |
3224 | do | |
3225 | IFS=$as_save_IFS | |
3226 | test -z "$as_dir" && as_dir=. | |
3227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3228 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
3229 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3231 | break 2 | |
3232 | fi | |
3233 | done | |
3234 | done | |
3235 | ||
af71363e AS |
3236 | fi |
3237 | fi | |
1c710c3c DJ |
3238 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3239 | if test -n "$ac_ct_CC"; then | |
2aeb72e9 DD |
3240 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3241 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
fb0103e5 | 3242 | else |
2aeb72e9 DD |
3243 | echo "$as_me:$LINENO: result: no" >&5 |
3244 | echo "${ECHO_T}no" >&6 | |
af71363e | 3245 | fi |
0b0dc272 | 3246 | |
1c710c3c DJ |
3247 | test -n "$ac_ct_CC" && break |
3248 | done | |
3249 | ||
2aeb72e9 | 3250 | CC=$ac_ct_CC |
1c710c3c DJ |
3251 | fi |
3252 | ||
3253 | fi | |
3254 | ||
3255 | ||
18c04407 RW |
3256 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3257 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3258 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1c710c3c DJ |
3259 | See \`config.log' for more details." >&5 |
3260 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3261 | See \`config.log' for more details." >&2;} | |
18c04407 | 3262 | { (exit 1); exit 1; }; }; } |
1c710c3c DJ |
3263 | |
3264 | # Provide some information about the compiler. | |
2aeb72e9 DD |
3265 | echo "$as_me:$LINENO:" \ |
3266 | "checking for C compiler version" >&5 | |
1c710c3c | 3267 | ac_compiler=`set X $ac_compile; echo $2` |
2aeb72e9 DD |
3268 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3269 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1c710c3c DJ |
3270 | ac_status=$? |
3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3272 | (exit $ac_status); } | |
2aeb72e9 DD |
3273 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
3274 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1c710c3c DJ |
3275 | ac_status=$? |
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3277 | (exit $ac_status); } | |
2aeb72e9 DD |
3278 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
3279 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1c710c3c DJ |
3280 | ac_status=$? |
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3282 | (exit $ac_status); } | |
3283 | ||
3284 | cat >conftest.$ac_ext <<_ACEOF | |
3285 | /* confdefs.h. */ | |
3286 | _ACEOF | |
3287 | cat confdefs.h >>conftest.$ac_ext | |
3288 | cat >>conftest.$ac_ext <<_ACEOF | |
3289 | /* end confdefs.h. */ | |
3290 | ||
3291 | int | |
3292 | main () | |
3293 | { | |
3294 | ||
3295 | ; | |
3296 | return 0; | |
3297 | } | |
3298 | _ACEOF | |
3299 | ac_clean_files_save=$ac_clean_files | |
3300 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3301 | # Try to create an executable without -o first, disregard a.out. | |
3302 | # It will help us diagnose broken compilers, and finding out an intuition | |
3303 | # of exeext. | |
2aeb72e9 DD |
3304 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3305 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1c710c3c | 3306 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2aeb72e9 DD |
3307 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
3308 | (eval $ac_link_default) 2>&5 | |
1c710c3c DJ |
3309 | ac_status=$? |
3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3311 | (exit $ac_status); }; then | |
2aeb72e9 DD |
3312 | # Find the output, starting from the most likely. This scheme is |
3313 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3314 | # resort. | |
3315 | ||
3316 | # Be careful to initialize this variable, since it used to be cached. | |
3317 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3318 | ac_cv_exeext= | |
3319 | # b.out is created by i960 compilers. | |
3320 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1c710c3c DJ |
3321 | do |
3322 | test -f "$ac_file" || continue | |
3323 | case $ac_file in | |
2aeb72e9 DD |
3324 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
3325 | ;; | |
3326 | conftest.$ac_ext ) | |
3327 | # This is the source file. | |
1c710c3c DJ |
3328 | ;; |
3329 | [ab].out ) | |
3330 | # We found the default executable, but exeext='' is most | |
3331 | # certainly right. | |
3332 | break;; | |
3333 | *.* ) | |
2aeb72e9 DD |
3334 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3335 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3336 | # but it would be cool to find out if it's true. Does anybody | |
3337 | # maintain Libtool? --akim. | |
3338 | export ac_cv_exeext | |
1c710c3c DJ |
3339 | break;; |
3340 | * ) | |
3341 | break;; | |
3342 | esac | |
3343 | done | |
3344 | else | |
3345 | echo "$as_me: failed program was:" >&5 | |
3346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3347 | ||
18c04407 RW |
3348 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3349 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1c710c3c DJ |
3350 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
3351 | See \`config.log' for more details." >&5 | |
3352 | echo "$as_me: error: C compiler cannot create executables | |
3353 | See \`config.log' for more details." >&2;} | |
18c04407 | 3354 | { (exit 77); exit 77; }; }; } |
1c710c3c DJ |
3355 | fi |
3356 | ||
3357 | ac_exeext=$ac_cv_exeext | |
2aeb72e9 DD |
3358 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
3359 | echo "${ECHO_T}$ac_file" >&6 | |
1c710c3c | 3360 | |
2aeb72e9 | 3361 | # Check the compiler produces executables we can run. If not, either |
1c710c3c | 3362 | # the compiler is broken, or we cross compile. |
2aeb72e9 DD |
3363 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3364 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1c710c3c DJ |
3365 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3366 | # If not cross compiling, check that we can run a simple program. | |
3367 | if test "$cross_compiling" != yes; then | |
3368 | if { ac_try='./$ac_file' | |
2aeb72e9 DD |
3369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3370 | (eval $ac_try) 2>&5 | |
1c710c3c DJ |
3371 | ac_status=$? |
3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3373 | (exit $ac_status); }; }; then | |
3374 | cross_compiling=no | |
3375 | else | |
3376 | if test "$cross_compiling" = maybe; then | |
3377 | cross_compiling=yes | |
3378 | else | |
18c04407 RW |
3379 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3380 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3381 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1c710c3c DJ |
3382 | If you meant to cross compile, use \`--host'. |
3383 | See \`config.log' for more details." >&5 | |
3384 | echo "$as_me: error: cannot run C compiled programs. | |
3385 | If you meant to cross compile, use \`--host'. | |
3386 | See \`config.log' for more details." >&2;} | |
18c04407 | 3387 | { (exit 1); exit 1; }; }; } |
1c710c3c DJ |
3388 | fi |
3389 | fi | |
3390 | fi | |
2aeb72e9 DD |
3391 | echo "$as_me:$LINENO: result: yes" >&5 |
3392 | echo "${ECHO_T}yes" >&6 | |
1c710c3c DJ |
3393 | |
3394 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3395 | ac_clean_files=$ac_clean_files_save | |
2aeb72e9 | 3396 | # Check the compiler produces executables we can run. If not, either |
1c710c3c | 3397 | # the compiler is broken, or we cross compile. |
2aeb72e9 DD |
3398 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3399 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
3400 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3401 | echo "${ECHO_T}$cross_compiling" >&6 | |
3402 | ||
3403 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3404 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3406 | (eval $ac_link) 2>&5 | |
1c710c3c DJ |
3407 | ac_status=$? |
3408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3409 | (exit $ac_status); }; then | |
3410 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3411 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3412 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3413 | # `rm'. | |
3414 | for ac_file in conftest.exe conftest conftest.*; do | |
3415 | test -f "$ac_file" || continue | |
3416 | case $ac_file in | |
2aeb72e9 | 3417 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1c710c3c | 3418 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2aeb72e9 | 3419 | export ac_cv_exeext |
1c710c3c DJ |
3420 | break;; |
3421 | * ) break;; | |
3422 | esac | |
3423 | done | |
af71363e | 3424 | else |
18c04407 RW |
3425 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3426 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3427 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1c710c3c DJ |
3428 | See \`config.log' for more details." >&5 |
3429 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3430 | See \`config.log' for more details." >&2;} | |
18c04407 | 3431 | { (exit 1); exit 1; }; }; } |
1c710c3c DJ |
3432 | fi |
3433 | ||
3434 | rm -f conftest$ac_cv_exeext | |
2aeb72e9 DD |
3435 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3436 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1c710c3c DJ |
3437 | |
3438 | rm -f conftest.$ac_ext | |
3439 | EXEEXT=$ac_cv_exeext | |
3440 | ac_exeext=$EXEEXT | |
2aeb72e9 DD |
3441 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3442 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1c710c3c DJ |
3443 | if test "${ac_cv_objext+set}" = set; then |
3444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3445 | else | |
3446 | cat >conftest.$ac_ext <<_ACEOF | |
3447 | /* confdefs.h. */ | |
3448 | _ACEOF | |
3449 | cat confdefs.h >>conftest.$ac_ext | |
3450 | cat >>conftest.$ac_ext <<_ACEOF | |
3451 | /* end confdefs.h. */ | |
3452 | ||
3453 | int | |
3454 | main () | |
3455 | { | |
3456 | ||
3457 | ; | |
3458 | return 0; | |
3459 | } | |
3460 | _ACEOF | |
3461 | rm -f conftest.o conftest.obj | |
2aeb72e9 DD |
3462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3463 | (eval $ac_compile) 2>&5 | |
1c710c3c DJ |
3464 | ac_status=$? |
3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3466 | (exit $ac_status); }; then | |
2aeb72e9 | 3467 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1c710c3c | 3468 | case $ac_file in |
2aeb72e9 | 3469 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1c710c3c DJ |
3470 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3471 | break;; | |
3472 | esac | |
3473 | done | |
3474 | else | |
3475 | echo "$as_me: failed program was:" >&5 | |
3476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3477 | ||
18c04407 RW |
3478 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3479 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1c710c3c DJ |
3480 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3481 | See \`config.log' for more details." >&5 | |
3482 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3483 | See \`config.log' for more details." >&2;} | |
18c04407 | 3484 | { (exit 1); exit 1; }; }; } |
1c710c3c DJ |
3485 | fi |
3486 | ||
3487 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3488 | fi | |
2aeb72e9 DD |
3489 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3490 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1c710c3c DJ |
3491 | OBJEXT=$ac_cv_objext |
3492 | ac_objext=$OBJEXT | |
2aeb72e9 DD |
3493 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3494 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1c710c3c DJ |
3495 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3497 | else | |
3498 | cat >conftest.$ac_ext <<_ACEOF | |
3499 | /* confdefs.h. */ | |
3500 | _ACEOF | |
3501 | cat confdefs.h >>conftest.$ac_ext | |
3502 | cat >>conftest.$ac_ext <<_ACEOF | |
3503 | /* end confdefs.h. */ | |
3504 | ||
3505 | int | |
3506 | main () | |
3507 | { | |
3508 | #ifndef __GNUC__ | |
3509 | choke me | |
3510 | #endif | |
3511 | ||
3512 | ; | |
3513 | return 0; | |
3514 | } | |
3515 | _ACEOF | |
3516 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3518 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
3519 | ac_status=$? |
3520 | grep -v '^ *+' conftest.er1 >conftest.err | |
3521 | rm -f conftest.er1 | |
3522 | cat conftest.err >&5 | |
3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3524 | (exit $ac_status); } && |
3525 | { ac_try='test -z "$ac_c_werror_flag" | |
3526 | || test ! -s conftest.err' | |
3527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3528 | (eval $ac_try) 2>&5 | |
3529 | ac_status=$? | |
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3531 | (exit $ac_status); }; } && | |
3532 | { ac_try='test -s conftest.$ac_objext' | |
3533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3534 | (eval $ac_try) 2>&5 | |
3535 | ac_status=$? | |
3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3537 | (exit $ac_status); }; }; then | |
1c710c3c DJ |
3538 | ac_compiler_gnu=yes |
3539 | else | |
3540 | echo "$as_me: failed program was:" >&5 | |
3541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3542 | ||
2aeb72e9 | 3543 | ac_compiler_gnu=no |
1c710c3c | 3544 | fi |
2aeb72e9 | 3545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
3546 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3547 | ||
3548 | fi | |
2aeb72e9 DD |
3549 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3550 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1c710c3c DJ |
3551 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3552 | ac_test_CFLAGS=${CFLAGS+set} | |
3553 | ac_save_CFLAGS=$CFLAGS | |
2aeb72e9 DD |
3554 | CFLAGS="-g" |
3555 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3556 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1c710c3c DJ |
3557 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3559 | else | |
2aeb72e9 | 3560 | cat >conftest.$ac_ext <<_ACEOF |
1c710c3c DJ |
3561 | /* confdefs.h. */ |
3562 | _ACEOF | |
3563 | cat confdefs.h >>conftest.$ac_ext | |
3564 | cat >>conftest.$ac_ext <<_ACEOF | |
3565 | /* end confdefs.h. */ | |
3566 | ||
3567 | int | |
3568 | main () | |
3569 | { | |
3570 | ||
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3577 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
3578 | ac_status=$? |
3579 | grep -v '^ *+' conftest.er1 >conftest.err | |
3580 | rm -f conftest.er1 | |
3581 | cat conftest.err >&5 | |
3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3583 | (exit $ac_status); } && |
3584 | { ac_try='test -z "$ac_c_werror_flag" | |
3585 | || test ! -s conftest.err' | |
3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3587 | (eval $ac_try) 2>&5 | |
1c710c3c DJ |
3588 | ac_status=$? |
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3590 | (exit $ac_status); }; } && |
3591 | { ac_try='test -s conftest.$ac_objext' | |
3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3593 | (eval $ac_try) 2>&5 | |
1c710c3c DJ |
3594 | ac_status=$? |
3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 | 3596 | (exit $ac_status); }; }; then |
55ffb5ed NN |
3597 | ac_cv_prog_cc_g=yes |
3598 | else | |
1c710c3c DJ |
3599 | echo "$as_me: failed program was:" >&5 |
3600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
af71363e | 3601 | |
2aeb72e9 | 3602 | ac_cv_prog_cc_g=no |
0b0dc272 | 3603 | fi |
2aeb72e9 | 3604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 3605 | fi |
2aeb72e9 DD |
3606 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3607 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
55ffb5ed | 3608 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 3609 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
3610 | elif test $ac_cv_prog_cc_g = yes; then |
3611 | if test "$GCC" = yes; then | |
3612 | CFLAGS="-g -O2" | |
3613 | else | |
3614 | CFLAGS="-g" | |
3615 | fi | |
3616 | else | |
3617 | if test "$GCC" = yes; then | |
3618 | CFLAGS="-O2" | |
3619 | else | |
3620 | CFLAGS= | |
3621 | fi | |
3622 | fi | |
2aeb72e9 DD |
3623 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3624 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3625 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
1c710c3c DJ |
3626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3627 | else | |
2aeb72e9 | 3628 | ac_cv_prog_cc_stdc=no |
1c710c3c DJ |
3629 | ac_save_CC=$CC |
3630 | cat >conftest.$ac_ext <<_ACEOF | |
3631 | /* confdefs.h. */ | |
3632 | _ACEOF | |
3633 | cat confdefs.h >>conftest.$ac_ext | |
3634 | cat >>conftest.$ac_ext <<_ACEOF | |
3635 | /* end confdefs.h. */ | |
3636 | #include <stdarg.h> | |
3637 | #include <stdio.h> | |
3638 | #include <sys/types.h> | |
3639 | #include <sys/stat.h> | |
3640 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3641 | struct buf { int x; }; | |
3642 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3643 | static char *e (p, i) | |
3644 | char **p; | |
3645 | int i; | |
3646 | { | |
3647 | return p[i]; | |
3648 | } | |
3649 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3650 | { | |
3651 | char *s; | |
3652 | va_list v; | |
3653 | va_start (v,p); | |
3654 | s = g (p, va_arg (v,int)); | |
3655 | va_end (v); | |
3656 | return s; | |
3657 | } | |
3658 | ||
3659 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3660 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3661 | These don't provoke an error unfortunately, instead are silently treated | |
2aeb72e9 | 3662 | as 'x'. The following induces an error, until -std1 is added to get |
1c710c3c DJ |
3663 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3664 | array size at least. It's necessary to write '\x00'==0 to get something | |
2aeb72e9 | 3665 | that's true only with -std1. */ |
1c710c3c DJ |
3666 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3667 | ||
3668 | int test (int i, double x); | |
3669 | struct s1 {int (*f) (int a);}; | |
3670 | struct s2 {int (*f) (double a);}; | |
3671 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3672 | int argc; | |
3673 | char **argv; | |
3674 | int | |
3675 | main () | |
3676 | { | |
3677 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3678 | ; | |
3679 | return 0; | |
3680 | } | |
3681 | _ACEOF | |
2aeb72e9 DD |
3682 | # Don't try gcc -ansi; that turns off useful extensions and |
3683 | # breaks some systems' header files. | |
3684 | # AIX -qlanglvl=ansi | |
3685 | # Ultrix and OSF/1 -std1 | |
3686 | # HP-UX 10.20 and later -Ae | |
3687 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3688 | # SVR4 -Xc -D__EXTENSIONS__ | |
3689 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
3690 | do |
3691 | CC="$ac_save_CC $ac_arg" | |
3692 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
3693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3694 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
3695 | ac_status=$? |
3696 | grep -v '^ *+' conftest.er1 >conftest.err | |
3697 | rm -f conftest.er1 | |
3698 | cat conftest.err >&5 | |
3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
3700 | (exit $ac_status); } && |
3701 | { ac_try='test -z "$ac_c_werror_flag" | |
3702 | || test ! -s conftest.err' | |
3703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3704 | (eval $ac_try) 2>&5 | |
3705 | ac_status=$? | |
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 | (exit $ac_status); }; } && | |
3708 | { ac_try='test -s conftest.$ac_objext' | |
3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3710 | (eval $ac_try) 2>&5 | |
3711 | ac_status=$? | |
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3713 | (exit $ac_status); }; }; then | |
3714 | ac_cv_prog_cc_stdc=$ac_arg | |
3715 | break | |
1c710c3c DJ |
3716 | else |
3717 | echo "$as_me: failed program was:" >&5 | |
3718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3719 | ||
3720 | fi | |
2aeb72e9 | 3721 | rm -f conftest.err conftest.$ac_objext |
1c710c3c | 3722 | done |
2aeb72e9 | 3723 | rm -f conftest.$ac_ext conftest.$ac_objext |
1c710c3c DJ |
3724 | CC=$ac_save_CC |
3725 | ||
3726 | fi | |
2aeb72e9 DD |
3727 | |
3728 | case "x$ac_cv_prog_cc_stdc" in | |
3729 | x|xno) | |
3730 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3731 | echo "${ECHO_T}none needed" >&6 ;; | |
1c710c3c | 3732 | *) |
2aeb72e9 DD |
3733 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
3734 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3735 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
1c710c3c DJ |
3736 | esac |
3737 | ||
2aeb72e9 DD |
3738 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3739 | # in C++ we need to declare it. In case someone uses the same compiler | |
3740 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3741 | # the declaration of exit, since it's the most demanding environment. | |
3742 | cat >conftest.$ac_ext <<_ACEOF | |
3743 | #ifndef __cplusplus | |
3744 | choke me | |
3745 | #endif | |
3746 | _ACEOF | |
3747 | rm -f conftest.$ac_objext | |
3748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3749 | (eval $ac_compile) 2>conftest.er1 | |
3750 | ac_status=$? | |
3751 | grep -v '^ *+' conftest.er1 >conftest.err | |
3752 | rm -f conftest.er1 | |
3753 | cat conftest.err >&5 | |
3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3755 | (exit $ac_status); } && | |
3756 | { ac_try='test -z "$ac_c_werror_flag" | |
3757 | || test ! -s conftest.err' | |
3758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3759 | (eval $ac_try) 2>&5 | |
3760 | ac_status=$? | |
3761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3762 | (exit $ac_status); }; } && | |
3763 | { ac_try='test -s conftest.$ac_objext' | |
3764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3765 | (eval $ac_try) 2>&5 | |
3766 | ac_status=$? | |
3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3768 | (exit $ac_status); }; }; then | |
3769 | for ac_declaration in \ | |
3770 | '' \ | |
3771 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3772 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3773 | 'extern "C" void exit (int) throw ();' \ | |
3774 | 'extern "C" void exit (int);' \ | |
3775 | 'void exit (int);' | |
3776 | do | |
3777 | cat >conftest.$ac_ext <<_ACEOF | |
3778 | /* confdefs.h. */ | |
3779 | _ACEOF | |
3780 | cat confdefs.h >>conftest.$ac_ext | |
3781 | cat >>conftest.$ac_ext <<_ACEOF | |
3782 | /* end confdefs.h. */ | |
3783 | $ac_declaration | |
3784 | #include <stdlib.h> | |
3785 | int | |
3786 | main () | |
3787 | { | |
3788 | exit (42); | |
3789 | ; | |
3790 | return 0; | |
3791 | } | |
3792 | _ACEOF | |
3793 | rm -f conftest.$ac_objext | |
3794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3795 | (eval $ac_compile) 2>conftest.er1 | |
3796 | ac_status=$? | |
3797 | grep -v '^ *+' conftest.er1 >conftest.err | |
3798 | rm -f conftest.er1 | |
3799 | cat conftest.err >&5 | |
3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3801 | (exit $ac_status); } && | |
3802 | { ac_try='test -z "$ac_c_werror_flag" | |
3803 | || test ! -s conftest.err' | |
3804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3805 | (eval $ac_try) 2>&5 | |
3806 | ac_status=$? | |
3807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3808 | (exit $ac_status); }; } && | |
3809 | { ac_try='test -s conftest.$ac_objext' | |
3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3811 | (eval $ac_try) 2>&5 | |
3812 | ac_status=$? | |
3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3814 | (exit $ac_status); }; }; then | |
3815 | : | |
3816 | else | |
3817 | echo "$as_me: failed program was:" >&5 | |
3818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3819 | ||
3820 | continue | |
3821 | fi | |
3822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3823 | cat >conftest.$ac_ext <<_ACEOF | |
3824 | /* confdefs.h. */ | |
3825 | _ACEOF | |
3826 | cat confdefs.h >>conftest.$ac_ext | |
3827 | cat >>conftest.$ac_ext <<_ACEOF | |
3828 | /* end confdefs.h. */ | |
3829 | $ac_declaration | |
3830 | int | |
3831 | main () | |
3832 | { | |
3833 | exit (42); | |
3834 | ; | |
3835 | return 0; | |
3836 | } | |
3837 | _ACEOF | |
3838 | rm -f conftest.$ac_objext | |
3839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3840 | (eval $ac_compile) 2>conftest.er1 | |
3841 | ac_status=$? | |
3842 | grep -v '^ *+' conftest.er1 >conftest.err | |
3843 | rm -f conftest.er1 | |
3844 | cat conftest.err >&5 | |
3845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3846 | (exit $ac_status); } && | |
3847 | { ac_try='test -z "$ac_c_werror_flag" | |
3848 | || test ! -s conftest.err' | |
3849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3850 | (eval $ac_try) 2>&5 | |
3851 | ac_status=$? | |
3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3853 | (exit $ac_status); }; } && | |
3854 | { ac_try='test -s conftest.$ac_objext' | |
3855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3856 | (eval $ac_try) 2>&5 | |
3857 | ac_status=$? | |
3858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3859 | (exit $ac_status); }; }; then | |
3860 | break | |
3861 | else | |
3862 | echo "$as_me: failed program was:" >&5 | |
3863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3864 | ||
3865 | fi | |
3866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3867 | done | |
3868 | rm -f conftest* | |
3869 | if test -n "$ac_declaration"; then | |
3870 | echo '#ifdef __cplusplus' >>confdefs.h | |
3871 | echo $ac_declaration >>confdefs.h | |
3872 | echo '#endif' >>confdefs.h | |
3873 | fi | |
3874 | ||
3875 | else | |
3876 | echo "$as_me: failed program was:" >&5 | |
3877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3878 | ||
3879 | fi | |
3880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3881 | ac_ext=c | |
3882 | ac_cpp='$CPP $CPPFLAGS' | |
3883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3886 | ||
3887 | ac_ext=cc | |
3888 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3889 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3890 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3891 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3892 | if test -n "$ac_tool_prefix"; then | |
3893 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3894 | do | |
3895 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3896 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3899 | if test "${ac_cv_prog_CXX+set}" = set; then | |
3900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3901 | else | |
3902 | if test -n "$CXX"; then | |
3903 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3904 | else | |
3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3906 | for as_dir in $PATH | |
3907 | do | |
3908 | IFS=$as_save_IFS | |
3909 | test -z "$as_dir" && as_dir=. | |
3910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3912 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3914 | break 2 | |
3915 | fi | |
3916 | done | |
3917 | done | |
55ffb5ed | 3918 | |
c3a86da9 DJ |
3919 | fi |
3920 | fi | |
3921 | CXX=$ac_cv_prog_CXX | |
3922 | if test -n "$CXX"; then | |
2aeb72e9 DD |
3923 | echo "$as_me:$LINENO: result: $CXX" >&5 |
3924 | echo "${ECHO_T}$CXX" >&6 | |
c3a86da9 | 3925 | else |
2aeb72e9 DD |
3926 | echo "$as_me:$LINENO: result: no" >&5 |
3927 | echo "${ECHO_T}no" >&6 | |
c3a86da9 DJ |
3928 | fi |
3929 | ||
3930 | test -n "$CXX" && break | |
3931 | done | |
3932 | fi | |
3933 | if test -z "$CXX"; then | |
3934 | ac_ct_CXX=$CXX | |
2aeb72e9 | 3935 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
3936 | do |
3937 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3938 | set dummy $ac_prog; ac_word=$2 | |
2aeb72e9 DD |
3939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c3a86da9 DJ |
3941 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3943 | else | |
3944 | if test -n "$ac_ct_CXX"; then | |
3945 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3946 | else | |
3947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3948 | for as_dir in $PATH | |
3949 | do | |
3950 | IFS=$as_save_IFS | |
3951 | test -z "$as_dir" && as_dir=. | |
3952 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 3953 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 DJ |
3954 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3955 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3956 | break 2 | |
3957 | fi | |
3958 | done | |
3959 | done | |
3960 | ||
3961 | fi | |
3962 | fi | |
3963 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3964 | if test -n "$ac_ct_CXX"; then | |
2aeb72e9 DD |
3965 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3966 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
c3a86da9 | 3967 | else |
2aeb72e9 DD |
3968 | echo "$as_me:$LINENO: result: no" >&5 |
3969 | echo "${ECHO_T}no" >&6 | |
c3a86da9 DJ |
3970 | fi |
3971 | ||
3972 | test -n "$ac_ct_CXX" && break | |
3973 | done | |
2aeb72e9 | 3974 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
c3a86da9 | 3975 | |
2aeb72e9 | 3976 | CXX=$ac_ct_CXX |
c3a86da9 DJ |
3977 | fi |
3978 | ||
2aeb72e9 | 3979 | |
c3a86da9 | 3980 | # Provide some information about the compiler. |
2aeb72e9 DD |
3981 | echo "$as_me:$LINENO:" \ |
3982 | "checking for C++ compiler version" >&5 | |
c3a86da9 | 3983 | ac_compiler=`set X $ac_compile; echo $2` |
2aeb72e9 DD |
3984 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3985 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
c3a86da9 DJ |
3986 | ac_status=$? |
3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3988 | (exit $ac_status); } | |
2aeb72e9 DD |
3989 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
3990 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
c3a86da9 DJ |
3991 | ac_status=$? |
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3993 | (exit $ac_status); } | |
2aeb72e9 DD |
3994 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
3995 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
c3a86da9 DJ |
3996 | ac_status=$? |
3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3998 | (exit $ac_status); } | |
3999 | ||
2aeb72e9 DD |
4000 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4001 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
c3a86da9 DJ |
4002 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4004 | else | |
4005 | cat >conftest.$ac_ext <<_ACEOF | |
4006 | /* confdefs.h. */ | |
4007 | _ACEOF | |
4008 | cat confdefs.h >>conftest.$ac_ext | |
4009 | cat >>conftest.$ac_ext <<_ACEOF | |
4010 | /* end confdefs.h. */ | |
4011 | ||
4012 | int | |
4013 | main () | |
4014 | { | |
4015 | #ifndef __GNUC__ | |
4016 | choke me | |
4017 | #endif | |
4018 | ||
4019 | ; | |
4020 | return 0; | |
4021 | } | |
4022 | _ACEOF | |
4023 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
4024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4025 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
4026 | ac_status=$? |
4027 | grep -v '^ *+' conftest.er1 >conftest.err | |
4028 | rm -f conftest.er1 | |
4029 | cat conftest.err >&5 | |
4030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4031 | (exit $ac_status); } && |
4032 | { ac_try='test -z "$ac_cxx_werror_flag" | |
4033 | || test ! -s conftest.err' | |
4034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4035 | (eval $ac_try) 2>&5 | |
4036 | ac_status=$? | |
4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4038 | (exit $ac_status); }; } && | |
4039 | { ac_try='test -s conftest.$ac_objext' | |
4040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4041 | (eval $ac_try) 2>&5 | |
4042 | ac_status=$? | |
4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4044 | (exit $ac_status); }; }; then | |
c3a86da9 DJ |
4045 | ac_compiler_gnu=yes |
4046 | else | |
4047 | echo "$as_me: failed program was:" >&5 | |
4048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4049 | ||
2aeb72e9 | 4050 | ac_compiler_gnu=no |
c3a86da9 | 4051 | fi |
2aeb72e9 | 4052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4053 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4054 | ||
4055 | fi | |
2aeb72e9 DD |
4056 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4057 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
c3a86da9 DJ |
4058 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4059 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4060 | ac_save_CXXFLAGS=$CXXFLAGS | |
2aeb72e9 DD |
4061 | CXXFLAGS="-g" |
4062 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4063 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
c3a86da9 DJ |
4064 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4066 | else | |
2aeb72e9 | 4067 | cat >conftest.$ac_ext <<_ACEOF |
c3a86da9 DJ |
4068 | /* confdefs.h. */ |
4069 | _ACEOF | |
4070 | cat confdefs.h >>conftest.$ac_ext | |
4071 | cat >>conftest.$ac_ext <<_ACEOF | |
4072 | /* end confdefs.h. */ | |
4073 | ||
4074 | int | |
4075 | main () | |
4076 | { | |
4077 | ||
4078 | ; | |
4079 | return 0; | |
4080 | } | |
4081 | _ACEOF | |
4082 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
4083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4084 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
4085 | ac_status=$? |
4086 | grep -v '^ *+' conftest.er1 >conftest.err | |
4087 | rm -f conftest.er1 | |
4088 | cat conftest.err >&5 | |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4090 | (exit $ac_status); } && |
4091 | { ac_try='test -z "$ac_cxx_werror_flag" | |
4092 | || test ! -s conftest.err' | |
4093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4094 | (eval $ac_try) 2>&5 | |
4095 | ac_status=$? | |
4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4097 | (exit $ac_status); }; } && | |
4098 | { ac_try='test -s conftest.$ac_objext' | |
4099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4100 | (eval $ac_try) 2>&5 | |
4101 | ac_status=$? | |
4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4103 | (exit $ac_status); }; }; then | |
c3a86da9 DJ |
4104 | ac_cv_prog_cxx_g=yes |
4105 | else | |
4106 | echo "$as_me: failed program was:" >&5 | |
4107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4108 | ||
2aeb72e9 DD |
4109 | ac_cv_prog_cxx_g=no |
4110 | fi | |
4111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4112 | fi | |
4113 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
4114 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
4115 | if test "$ac_test_CXXFLAGS" = set; then | |
4116 | CXXFLAGS=$ac_save_CXXFLAGS | |
4117 | elif test $ac_cv_prog_cxx_g = yes; then | |
4118 | if test "$GXX" = yes; then | |
4119 | CXXFLAGS="-g -O2" | |
4120 | else | |
4121 | CXXFLAGS="-g" | |
4122 | fi | |
4123 | else | |
4124 | if test "$GXX" = yes; then | |
4125 | CXXFLAGS="-O2" | |
4126 | else | |
4127 | CXXFLAGS= | |
4128 | fi | |
4129 | fi | |
4130 | for ac_declaration in \ | |
4131 | '' \ | |
4132 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4133 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4134 | 'extern "C" void exit (int) throw ();' \ | |
4135 | 'extern "C" void exit (int);' \ | |
4136 | 'void exit (int);' | |
4137 | do | |
4138 | cat >conftest.$ac_ext <<_ACEOF | |
c3a86da9 DJ |
4139 | /* confdefs.h. */ |
4140 | _ACEOF | |
4141 | cat confdefs.h >>conftest.$ac_ext | |
4142 | cat >>conftest.$ac_ext <<_ACEOF | |
4143 | /* end confdefs.h. */ | |
2aeb72e9 DD |
4144 | $ac_declaration |
4145 | #include <stdlib.h> | |
c3a86da9 DJ |
4146 | int |
4147 | main () | |
4148 | { | |
2aeb72e9 | 4149 | exit (42); |
c3a86da9 DJ |
4150 | ; |
4151 | return 0; | |
4152 | } | |
4153 | _ACEOF | |
4154 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
4155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4156 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
4157 | ac_status=$? |
4158 | grep -v '^ *+' conftest.er1 >conftest.err | |
4159 | rm -f conftest.er1 | |
4160 | cat conftest.err >&5 | |
4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4162 | (exit $ac_status); } && |
4163 | { ac_try='test -z "$ac_cxx_werror_flag" | |
4164 | || test ! -s conftest.err' | |
4165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4166 | (eval $ac_try) 2>&5 | |
4167 | ac_status=$? | |
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4169 | (exit $ac_status); }; } && | |
4170 | { ac_try='test -s conftest.$ac_objext' | |
4171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4172 | (eval $ac_try) 2>&5 | |
4173 | ac_status=$? | |
4174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4175 | (exit $ac_status); }; }; then | |
c3a86da9 DJ |
4176 | : |
4177 | else | |
4178 | echo "$as_me: failed program was:" >&5 | |
4179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23f6b2f9 | 4180 | |
2aeb72e9 DD |
4181 | continue |
4182 | fi | |
4183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4184 | cat >conftest.$ac_ext <<_ACEOF | |
c3a86da9 DJ |
4185 | /* confdefs.h. */ |
4186 | _ACEOF | |
4187 | cat confdefs.h >>conftest.$ac_ext | |
4188 | cat >>conftest.$ac_ext <<_ACEOF | |
4189 | /* end confdefs.h. */ | |
2aeb72e9 | 4190 | $ac_declaration |
c3a86da9 DJ |
4191 | int |
4192 | main () | |
4193 | { | |
2aeb72e9 | 4194 | exit (42); |
c3a86da9 DJ |
4195 | ; |
4196 | return 0; | |
4197 | } | |
4198 | _ACEOF | |
4199 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
4200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4201 | (eval $ac_compile) 2>conftest.er1 | |
c3a86da9 DJ |
4202 | ac_status=$? |
4203 | grep -v '^ *+' conftest.er1 >conftest.err | |
4204 | rm -f conftest.er1 | |
4205 | cat conftest.err >&5 | |
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4207 | (exit $ac_status); } && |
4208 | { ac_try='test -z "$ac_cxx_werror_flag" | |
4209 | || test ! -s conftest.err' | |
4210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4211 | (eval $ac_try) 2>&5 | |
4212 | ac_status=$? | |
4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4214 | (exit $ac_status); }; } && | |
4215 | { ac_try='test -s conftest.$ac_objext' | |
4216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4217 | (eval $ac_try) 2>&5 | |
4218 | ac_status=$? | |
4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4220 | (exit $ac_status); }; }; then | |
4221 | break | |
c3a86da9 DJ |
4222 | else |
4223 | echo "$as_me: failed program was:" >&5 | |
4224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4225 | ||
11a67599 | 4226 | fi |
2aeb72e9 DD |
4227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4228 | done | |
4229 | rm -f conftest* | |
4230 | if test -n "$ac_declaration"; then | |
4231 | echo '#ifdef __cplusplus' >>confdefs.h | |
4232 | echo $ac_declaration >>confdefs.h | |
4233 | echo '#endif' >>confdefs.h | |
c3a86da9 DJ |
4234 | fi |
4235 | ||
4236 | ac_ext=c | |
4237 | ac_cpp='$CPP $CPPFLAGS' | |
4238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4241 | ||
4242 | ||
4243 | # We must set the default linker to the linker used by gcc for the correct | |
4244 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4245 | # set the LD default to the ld used by gcc. | |
4246 | if test -z "$LD"; then | |
4247 | if test "$GCC" = yes; then | |
4248 | case $build in | |
4249 | *-*-mingw*) | |
4250 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4251 | *) | |
4252 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4253 | esac | |
4254 | case $gcc_prog_ld in | |
4255 | # Accept absolute paths. | |
4256 | [\\/]* | [A-Za-z]:[\\/]*) | |
4257 | LD="$gcc_prog_ld" ;; | |
4258 | esac | |
4259 | fi | |
23f6b2f9 PB |
4260 | fi |
4261 | ||
23f6b2f9 PB |
4262 | |
4263 | ||
55ffb5ed | 4264 | |
1c710c3c DJ |
4265 | if test -n "$ac_tool_prefix"; then |
4266 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 4267 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
2aeb72e9 DD |
4268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4270 | if test "${ac_cv_prog_GNATBIND+set}" = set; then |
4271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
4272 | else |
4273 | if test -n "$GNATBIND"; then | |
4274 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4275 | else | |
1c710c3c DJ |
4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4277 | for as_dir in $PATH | |
4278 | do | |
4279 | IFS=$as_save_IFS | |
4280 | test -z "$as_dir" && as_dir=. | |
4281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4283 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
4284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4285 | break 2 | |
4286 | fi | |
4287 | done | |
4288 | done | |
4289 | ||
55ffb5ed NN |
4290 | fi |
4291 | fi | |
1c710c3c | 4292 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 4293 | if test -n "$GNATBIND"; then |
2aeb72e9 DD |
4294 | echo "$as_me:$LINENO: result: $GNATBIND" >&5 |
4295 | echo "${ECHO_T}$GNATBIND" >&6 | |
55ffb5ed | 4296 | else |
2aeb72e9 DD |
4297 | echo "$as_me:$LINENO: result: no" >&5 |
4298 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
4299 | fi |
4300 | ||
1c710c3c | 4301 | fi |
55ffb5ed | 4302 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 4303 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
4304 | # Extract the first word of "gnatbind", so it can be a program name with args. |
4305 | set dummy gnatbind; ac_word=$2 | |
2aeb72e9 DD |
4306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4308 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then |
4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed | 4310 | else |
1c710c3c DJ |
4311 | if test -n "$ac_ct_GNATBIND"; then |
4312 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 4313 | else |
1c710c3c DJ |
4314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4315 | for as_dir in $PATH | |
4316 | do | |
4317 | IFS=$as_save_IFS | |
4318 | test -z "$as_dir" && as_dir=. | |
4319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4321 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
4322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4323 | break 2 | |
4324 | fi | |
4325 | done | |
4326 | done | |
4327 | ||
2aeb72e9 | 4328 | test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no" |
55ffb5ed NN |
4329 | fi |
4330 | fi | |
1c710c3c DJ |
4331 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4332 | if test -n "$ac_ct_GNATBIND"; then | |
2aeb72e9 DD |
4333 | echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5 |
4334 | echo "${ECHO_T}$ac_ct_GNATBIND" >&6 | |
55ffb5ed | 4335 | else |
2aeb72e9 DD |
4336 | echo "$as_me:$LINENO: result: no" >&5 |
4337 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
4338 | fi |
4339 | ||
2aeb72e9 | 4340 | GNATBIND=$ac_ct_GNATBIND |
55ffb5ed | 4341 | else |
1c710c3c | 4342 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
4343 | fi |
4344 | ||
1c710c3c DJ |
4345 | if test -n "$ac_tool_prefix"; then |
4346 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 4347 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
2aeb72e9 DD |
4348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4350 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then |
4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5305be7e RG |
4352 | else |
4353 | if test -n "$GNATMAKE"; then | |
4354 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4355 | else | |
1c710c3c DJ |
4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4357 | for as_dir in $PATH | |
4358 | do | |
4359 | IFS=$as_save_IFS | |
4360 | test -z "$as_dir" && as_dir=. | |
4361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4363 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
4364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4365 | break 2 | |
4366 | fi | |
4367 | done | |
4368 | done | |
4369 | ||
5305be7e RG |
4370 | fi |
4371 | fi | |
1c710c3c | 4372 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 4373 | if test -n "$GNATMAKE"; then |
2aeb72e9 DD |
4374 | echo "$as_me:$LINENO: result: $GNATMAKE" >&5 |
4375 | echo "${ECHO_T}$GNATMAKE" >&6 | |
5305be7e | 4376 | else |
2aeb72e9 DD |
4377 | echo "$as_me:$LINENO: result: no" >&5 |
4378 | echo "${ECHO_T}no" >&6 | |
5305be7e RG |
4379 | fi |
4380 | ||
1c710c3c | 4381 | fi |
5305be7e | 4382 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 4383 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
4384 | # Extract the first word of "gnatmake", so it can be a program name with args. |
4385 | set dummy gnatmake; ac_word=$2 | |
2aeb72e9 DD |
4386 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
4388 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then |
4389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5305be7e | 4390 | else |
1c710c3c DJ |
4391 | if test -n "$ac_ct_GNATMAKE"; then |
4392 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 4393 | else |
1c710c3c DJ |
4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4395 | for as_dir in $PATH | |
4396 | do | |
4397 | IFS=$as_save_IFS | |
4398 | test -z "$as_dir" && as_dir=. | |
4399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 4400 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4401 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
4402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4403 | break 2 | |
4404 | fi | |
4405 | done | |
4406 | done | |
4407 | ||
2aeb72e9 | 4408 | test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no" |
5305be7e RG |
4409 | fi |
4410 | fi | |
1c710c3c DJ |
4411 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4412 | if test -n "$ac_ct_GNATMAKE"; then | |
2aeb72e9 DD |
4413 | echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5 |
4414 | echo "${ECHO_T}$ac_ct_GNATMAKE" >&6 | |
5305be7e | 4415 | else |
2aeb72e9 DD |
4416 | echo "$as_me:$LINENO: result: no" >&5 |
4417 | echo "${ECHO_T}no" >&6 | |
5305be7e RG |
4418 | fi |
4419 | ||
2aeb72e9 | 4420 | GNATMAKE=$ac_ct_GNATMAKE |
5305be7e | 4421 | else |
1c710c3c | 4422 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
4423 | fi |
4424 | ||
2aeb72e9 DD |
4425 | echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5 |
4426 | echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6 | |
1c710c3c DJ |
4427 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then |
4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
4429 | else |
4430 | cat >conftest.adb <<EOF | |
4431 | procedure conftest is begin null; end conftest; | |
4432 | EOF | |
4433 | acx_cv_cc_gcc_supports_ada=no | |
4434 | # There is a bug in old released versions of GCC which causes the | |
4435 | # driver to exit successfully when the appropriate language module | |
4436 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4437 | # Therefore we must check for the error message as well as an | |
4438 | # unsuccessful exit. | |
1db673ca RO |
4439 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4440 | # given a .adb file, but produce no object file. So we must check | |
4441 | # if an object file was really produced to guard against this. | |
55ffb5ed | 4442 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 4443 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 4444 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
4445 | fi |
4446 | rm -f conftest.* | |
4447 | fi | |
2aeb72e9 DD |
4448 | echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4449 | echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6 | |
55ffb5ed | 4450 | |
5305be7e | 4451 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
4452 | have_gnat=yes |
4453 | else | |
4454 | have_gnat=no | |
4455 | fi | |
4456 | ||
2aeb72e9 DD |
4457 | echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5 |
4458 | echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6 | |
1c710c3c DJ |
4459 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then |
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a76494aa PB |
4461 | else |
4462 | echo abfoo >t1 | |
4463 | echo cdfoo >t2 | |
4464 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
4465 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4466 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4467 | : | |
4468 | else | |
4469 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4470 | fi | |
4471 | fi | |
a76494aa PB |
4472 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4473 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 4474 | : |
a76494aa PB |
4475 | else |
4476 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4477 | fi | |
4478 | fi | |
4479 | rm t1 t2 | |
4480 | ||
4481 | fi | |
2aeb72e9 DD |
4482 | echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5 |
4483 | echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6 | |
a76494aa PB |
4484 | do_compare="$gcc_cv_prog_cmp_skip" |
4485 | ||
4486 | ||
55ffb5ed | 4487 | |
bebf829d | 4488 | # Check for GMP and MPFR |
e69bf64b | 4489 | gmplibs="-lmpfr -lgmp" |
6de9cd9a | 4490 | gmpinc= |
e69bf64b PB |
4491 | have_gmp=no |
4492 | ||
bebf829d PB |
4493 | # Specify a location for mpfr |
4494 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 4495 | |
2aeb72e9 | 4496 | # Check whether --with-mpfr-dir or --without-mpfr-dir was given. |
bebf829d | 4497 | if test "${with_mpfr_dir+set}" = set; then |
2aeb72e9 DD |
4498 | withval="$with_mpfr_dir" |
4499 | { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed. | |
1c710c3c DJ |
4500 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5 |
4501 | echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed. | |
4502 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;} | |
4503 | { (exit 1); exit 1; }; } | |
2aeb72e9 | 4504 | fi; |
bebf829d PB |
4505 | |
4506 | ||
2aeb72e9 | 4507 | # Check whether --with-mpfr or --without-mpfr was given. |
bebf829d | 4508 | if test "${with_mpfr+set}" = set; then |
2aeb72e9 | 4509 | withval="$with_mpfr" |
1c710c3c | 4510 | |
2aeb72e9 | 4511 | fi; |
bebf829d | 4512 | |
2aeb72e9 | 4513 | # Check whether --with-mpfr_include or --without-mpfr_include was given. |
8a877c9c | 4514 | if test "${with_mpfr_include+set}" = set; then |
2aeb72e9 | 4515 | withval="$with_mpfr_include" |
1c710c3c | 4516 | |
2aeb72e9 | 4517 | fi; |
8a877c9c | 4518 | |
2aeb72e9 | 4519 | # Check whether --with-mpfr_lib or --without-mpfr_lib was given. |
8a877c9c | 4520 | if test "${with_mpfr_lib+set}" = set; then |
2aeb72e9 | 4521 | withval="$with_mpfr_lib" |
8a877c9c | 4522 | |
2aeb72e9 | 4523 | fi; |
bebf829d PB |
4524 | |
4525 | if test "x$with_mpfr" != x; then | |
4526 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
4527 | gmpinc="-I$with_mpfr/include" | |
4528 | fi | |
8a877c9c KG |
4529 | if test "x$with_mpfr_include" != x; then |
4530 | gmpinc="-I$with_mpfr_include" | |
4531 | fi | |
4532 | if test "x$with_mpfr_lib" != x; then | |
4533 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
4534 | fi | |
e69bf64b PB |
4535 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
4536 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs" | |
4537 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
4538 | # Do not test the mpfr version. Assume that it is sufficient, since | |
4539 | # it is in the source tree, and the library has not been built yet | |
4540 | # but it would be included on the link line in the version check below | |
4541 | # hence making the test fail. | |
4542 | have_gmp=yes | |
4543 | fi | |
bebf829d | 4544 | |
6de9cd9a | 4545 | # Specify a location for gmp |
1c710c3c | 4546 | |
2aeb72e9 | 4547 | # Check whether --with-gmp-dir or --without-gmp-dir was given. |
6de9cd9a | 4548 | if test "${with_gmp_dir+set}" = set; then |
2aeb72e9 DD |
4549 | withval="$with_gmp_dir" |
4550 | { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed. | |
1c710c3c DJ |
4551 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5 |
4552 | echo "$as_me: error: The --with-gmp-dir=PATH option has been removed. | |
4553 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;} | |
4554 | { (exit 1); exit 1; }; } | |
2aeb72e9 | 4555 | fi; |
6de9cd9a | 4556 | |
6de9cd9a | 4557 | |
2aeb72e9 | 4558 | # Check whether --with-gmp or --without-gmp was given. |
6de9cd9a | 4559 | if test "${with_gmp+set}" = set; then |
2aeb72e9 | 4560 | withval="$with_gmp" |
1c710c3c | 4561 | |
2aeb72e9 | 4562 | fi; |
6de9cd9a | 4563 | |
2aeb72e9 | 4564 | # Check whether --with-gmp_include or --without-gmp_include was given. |
8a877c9c | 4565 | if test "${with_gmp_include+set}" = set; then |
2aeb72e9 | 4566 | withval="$with_gmp_include" |
1c710c3c | 4567 | |
2aeb72e9 | 4568 | fi; |
8a877c9c | 4569 | |
2aeb72e9 | 4570 | # Check whether --with-gmp_lib or --without-gmp_lib was given. |
8a877c9c | 4571 | if test "${with_gmp_lib+set}" = set; then |
2aeb72e9 | 4572 | withval="$with_gmp_lib" |
8a877c9c | 4573 | |
2aeb72e9 | 4574 | fi; |
8a877c9c | 4575 | |
6de9cd9a | 4576 | |
bebf829d PB |
4577 | if test "x$with_gmp" != x; then |
4578 | gmplibs="-L$with_gmp/lib $gmplibs" | |
4579 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 4580 | fi |
8a877c9c KG |
4581 | if test "x$with_gmp_include" != x; then |
4582 | gmpinc="-I$with_gmp_include $gmpinc" | |
4583 | fi | |
4584 | if test "x$with_gmp_lib" != x; then | |
4585 | gmplibs="-L$with_gmp_lib $gmplibs" | |
4586 | fi | |
e69bf64b PB |
4587 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
4588 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" | |
4589 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" | |
4590 | # Do not test the gmp version. Assume that it is sufficient, since | |
4591 | # it is in the source tree, and the library has not been built yet | |
4592 | # but it would be included on the link line in the version check below | |
4593 | # hence making the test fail. | |
4594 | have_gmp=yes | |
4595 | fi | |
6de9cd9a | 4596 | |
d943d7c4 | 4597 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
4598 | have_gmp=yes |
4599 | saved_CFLAGS="$CFLAGS" | |
4600 | CFLAGS="$CFLAGS $gmpinc" | |
4601 | # Check GMP actually works | |
2aeb72e9 DD |
4602 | echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5 |
4603 | echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6 | |
1c710c3c DJ |
4604 | |
4605 | cat >conftest.$ac_ext <<_ACEOF | |
4606 | /* confdefs.h. */ | |
4607 | _ACEOF | |
4608 | cat confdefs.h >>conftest.$ac_ext | |
4609 | cat >>conftest.$ac_ext <<_ACEOF | |
4610 | /* end confdefs.h. */ | |
6de9cd9a | 4611 | #include "gmp.h" |
1c710c3c DJ |
4612 | int |
4613 | main () | |
4614 | { | |
6de9cd9a | 4615 | |
e69bf64b PB |
4616 | #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1) |
4617 | choke me | |
4618 | #endif | |
1c710c3c DJ |
4619 | |
4620 | ; | |
4621 | return 0; | |
4622 | } | |
4623 | _ACEOF | |
4624 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
4625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4626 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
4627 | ac_status=$? |
4628 | grep -v '^ *+' conftest.er1 >conftest.err | |
4629 | rm -f conftest.er1 | |
4630 | cat conftest.err >&5 | |
4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4632 | (exit $ac_status); } && |
4633 | { ac_try='test -z "$ac_c_werror_flag" | |
4634 | || test ! -s conftest.err' | |
4635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4636 | (eval $ac_try) 2>&5 | |
4637 | ac_status=$? | |
4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4639 | (exit $ac_status); }; } && | |
4640 | { ac_try='test -s conftest.$ac_objext' | |
4641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4642 | (eval $ac_try) 2>&5 | |
4643 | ac_status=$? | |
4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4645 | (exit $ac_status); }; }; then | |
4646 | echo "$as_me:$LINENO: result: yes" >&5 | |
4647 | echo "${ECHO_T}yes" >&6 | |
1c710c3c DJ |
4648 | else |
4649 | echo "$as_me: failed program was:" >&5 | |
4650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4651 | ||
2aeb72e9 DD |
4652 | echo "$as_me:$LINENO: result: no" >&5 |
4653 | echo "${ECHO_T}no" >&6; have_gmp=no | |
1c710c3c | 4654 | fi |
2aeb72e9 | 4655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 4656 | |
e69bf64b PB |
4657 | if test x"$have_gmp" = xyes; then |
4658 | saved_LIBS="$LIBS" | |
4659 | LIBS="$LIBS $gmplibs" | |
2aeb72e9 DD |
4660 | echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5 |
4661 | echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6 | |
1c710c3c DJ |
4662 | cat >conftest.$ac_ext <<_ACEOF |
4663 | /* confdefs.h. */ | |
4664 | _ACEOF | |
4665 | cat confdefs.h >>conftest.$ac_ext | |
4666 | cat >>conftest.$ac_ext <<_ACEOF | |
4667 | /* end confdefs.h. */ | |
70ec446f | 4668 | #include <gmp.h> |
e69bf64b | 4669 | #include <mpfr.h> |
1c710c3c DJ |
4670 | int |
4671 | main () | |
4672 | { | |
e48d66a9 | 4673 | |
94e1934d | 4674 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1) |
e69bf64b PB |
4675 | choke me |
4676 | #endif | |
54e433bc MK |
4677 | mpfr_t n; |
4678 | mpfr_t x; | |
e69bf64b | 4679 | int t; |
54e433bc MK |
4680 | mpfr_init (n); |
4681 | mpfr_init (x); | |
e69bf64b PB |
4682 | mpfr_atan2 (n, n, x, GMP_RNDN); |
4683 | mpfr_erfc (n, x, GMP_RNDN); | |
4684 | mpfr_subnormalize (x, t, GMP_RNDN); | |
1c710c3c DJ |
4685 | |
4686 | ; | |
4687 | return 0; | |
4688 | } | |
4689 | _ACEOF | |
4690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2aeb72e9 DD |
4691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4692 | (eval $ac_link) 2>conftest.er1 | |
1c710c3c DJ |
4693 | ac_status=$? |
4694 | grep -v '^ *+' conftest.er1 >conftest.err | |
4695 | rm -f conftest.er1 | |
4696 | cat conftest.err >&5 | |
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4698 | (exit $ac_status); } && |
4699 | { ac_try='test -z "$ac_c_werror_flag" | |
4700 | || test ! -s conftest.err' | |
4701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4702 | (eval $ac_try) 2>&5 | |
4703 | ac_status=$? | |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4705 | (exit $ac_status); }; } && | |
4706 | { ac_try='test -s conftest$ac_exeext' | |
4707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4708 | (eval $ac_try) 2>&5 | |
4709 | ac_status=$? | |
4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4711 | (exit $ac_status); }; }; then | |
1c710c3c DJ |
4712 | cat >conftest.$ac_ext <<_ACEOF |
4713 | /* confdefs.h. */ | |
4714 | _ACEOF | |
4715 | cat confdefs.h >>conftest.$ac_ext | |
4716 | cat >>conftest.$ac_ext <<_ACEOF | |
4717 | /* end confdefs.h. */ | |
a3993f33 | 4718 | #include <gmp.h> |
e69bf64b | 4719 | #include <mpfr.h> |
1c710c3c DJ |
4720 | int |
4721 | main () | |
4722 | { | |
a3993f33 | 4723 | |
94e1934d | 4724 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0) |
e69bf64b PB |
4725 | choke me |
4726 | #endif | |
4727 | mpfr_t n; mpfr_init(n); | |
1c710c3c DJ |
4728 | |
4729 | ; | |
4730 | return 0; | |
4731 | } | |
4732 | _ACEOF | |
4733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2aeb72e9 DD |
4734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4735 | (eval $ac_link) 2>conftest.er1 | |
1c710c3c DJ |
4736 | ac_status=$? |
4737 | grep -v '^ *+' conftest.er1 >conftest.err | |
4738 | rm -f conftest.er1 | |
4739 | cat conftest.err >&5 | |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
4741 | (exit $ac_status); } && |
4742 | { ac_try='test -z "$ac_c_werror_flag" | |
4743 | || test ! -s conftest.err' | |
4744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4745 | (eval $ac_try) 2>&5 | |
4746 | ac_status=$? | |
4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4748 | (exit $ac_status); }; } && | |
4749 | { ac_try='test -s conftest$ac_exeext' | |
4750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4751 | (eval $ac_try) 2>&5 | |
4752 | ac_status=$? | |
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4754 | (exit $ac_status); }; }; then | |
4755 | echo "$as_me:$LINENO: result: yes" >&5 | |
4756 | echo "${ECHO_T}yes" >&6 | |
1c710c3c DJ |
4757 | else |
4758 | echo "$as_me: failed program was:" >&5 | |
4759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4760 | ||
2aeb72e9 DD |
4761 | echo "$as_me:$LINENO: result: buggy but acceptable" >&5 |
4762 | echo "${ECHO_T}buggy but acceptable" >&6 | |
1c710c3c | 4763 | fi |
2aeb72e9 | 4764 | rm -f conftest.err conftest.$ac_objext \ |
1c710c3c DJ |
4765 | conftest$ac_exeext conftest.$ac_ext |
4766 | else | |
4767 | echo "$as_me: failed program was:" >&5 | |
4768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4769 | ||
2aeb72e9 DD |
4770 | echo "$as_me:$LINENO: result: no" >&5 |
4771 | echo "${ECHO_T}no" >&6; have_gmp=no | |
1c710c3c | 4772 | fi |
2aeb72e9 | 4773 | rm -f conftest.err conftest.$ac_objext \ |
1c710c3c | 4774 | conftest$ac_exeext conftest.$ac_ext |
e69bf64b PB |
4775 | LIBS="$saved_LIBS" |
4776 | fi | |
4777 | CFLAGS="$saved_CFLAGS" | |
6de9cd9a | 4778 | |
e69bf64b | 4779 | if test x$have_gmp != xyes; then |
94e1934d | 4780 | { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+. |
1c710c3c DJ |
4781 | Try the --with-gmp and/or --with-mpfr options to specify their locations. |
4782 | Copies of these libraries' source code can be found at their respective | |
4783 | hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. | |
4784 | See also http://gcc.gnu.org/install/prerequisites.html for additional info. | |
4785 | If you obtained GMP and/or MPFR from a vendor distribution package, make | |
4786 | sure that you have installed both the libraries and the header files. | |
4787 | They may be located in separate packages." >&5 | |
94e1934d | 4788 | echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+. |
ca558912 KG |
4789 | Try the --with-gmp and/or --with-mpfr options to specify their locations. |
4790 | Copies of these libraries' source code can be found at their respective | |
4791 | hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. | |
dbee1fb3 KG |
4792 | See also http://gcc.gnu.org/install/prerequisites.html for additional info. |
4793 | If you obtained GMP and/or MPFR from a vendor distribution package, make | |
4794 | sure that you have installed both the libraries and the header files. | |
1c710c3c DJ |
4795 | They may be located in separate packages." >&2;} |
4796 | { (exit 1); exit 1; }; } | |
e69bf64b | 4797 | fi |
70ec446f KG |
4798 | fi |
4799 | ||
bebf829d | 4800 | # Flags needed for both GMP and/or MPFR |
6de9cd9a DN |
4801 | |
4802 | ||
4803 | ||
f8bf9252 SP |
4804 | |
4805 | # Check for PPL | |
4806 | ppl_major_version=0 | |
4807 | ppl_minor_version=10 | |
4808 | ppllibs= | |
4809 | pplinc= | |
4810 | ||
4811 | ||
4812 | # Check whether --with-ppl or --without-ppl was given. | |
4813 | if test "${with_ppl+set}" = set; then | |
4814 | withval="$with_ppl" | |
4815 | ||
4816 | fi; | |
4817 | ||
4818 | # Check whether --with-ppl_include or --without-ppl_include was given. | |
4819 | if test "${with_ppl_include+set}" = set; then | |
4820 | withval="$with_ppl_include" | |
4821 | ||
4822 | fi; | |
4823 | ||
4824 | # Check whether --with-ppl_lib or --without-ppl_lib was given. | |
4825 | if test "${with_ppl_lib+set}" = set; then | |
4826 | withval="$with_ppl_lib" | |
4827 | ||
4828 | fi; | |
4829 | ||
4830 | if test "x$with_ppl" != x; then | |
4831 | ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx" | |
4832 | pplinc="-I$with_ppl/include $pplinc" | |
4833 | LIBS="$ppllibs $LIBS" | |
4834 | fi | |
4835 | if test "x$with_ppl_include" != x; then | |
4836 | pplinc="-I$with_ppl_include $pplinc" | |
4837 | fi | |
4838 | if test "x$with_ppl_lib" != x; then | |
4839 | ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx" | |
4840 | LIBS="$ppllibs $LIBS" | |
4841 | fi | |
4842 | if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
4843 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx ' | |
4844 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include ' | |
4845 | LIBS="$ppllibs $LIBS" | |
4846 | fi | |
4847 | ||
4848 | # Flags needed for PPL | |
4849 | ||
4850 | ||
4851 | ||
4852 | ||
4853 | # Check for CLOOG | |
4854 | clooglibs= | |
4855 | clooginc= | |
4856 | ||
4857 | ||
4858 | # Check whether --with-cloog or --without-cloog was given. | |
4859 | if test "${with_cloog+set}" = set; then | |
4860 | withval="$with_cloog" | |
4861 | ||
4862 | fi; | |
4863 | ||
4864 | # Check whether --with-cloog_include or --without-cloog_include was given. | |
4865 | if test "${with_cloog_include+set}" = set; then | |
4866 | withval="$with_cloog_include" | |
4867 | ||
4868 | fi; | |
4869 | ||
4870 | # Check whether --with-cloog_lib or --without-cloog_lib was given. | |
4871 | if test "${with_cloog_lib+set}" = set; then | |
4872 | withval="$with_cloog_lib" | |
4873 | ||
4874 | fi; | |
4875 | ||
4876 | if test "x$with_cloog" != x; then | |
4877 | clooglibs="-L$with_cloog/lib -lcloog" | |
4878 | clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND " | |
4879 | LIBS="$clooglibs $LIBS" | |
4880 | fi | |
4881 | if test "x$with_cloog_include" != x; then | |
4882 | clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND " | |
4883 | fi | |
4884 | if test "x$with_cloog_lib" != x; then | |
4885 | clooglibs="-L$with_cloog_lib -lcloog" | |
4886 | LIBS="$clooglibs $LIBS" | |
4887 | fi | |
4888 | if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then | |
4889 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog ' | |
4890 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND ' | |
4891 | LIBS="$clooglibs $LIBS" | |
4892 | fi | |
4893 | ||
4894 | saved_CFLAGS="$CFLAGS" | |
4895 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
4896 | ||
4897 | echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5 | |
4898 | echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6 | |
4899 | cat >conftest.$ac_ext <<_ACEOF | |
4900 | /* confdefs.h. */ | |
4901 | _ACEOF | |
4902 | cat confdefs.h >>conftest.$ac_ext | |
4903 | cat >>conftest.$ac_ext <<_ACEOF | |
4904 | /* end confdefs.h. */ | |
4905 | #include "ppl_c.h" | |
4906 | int | |
4907 | main () | |
4908 | { | |
4909 | ||
4910 | #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version | |
4911 | choke me | |
4912 | #endif | |
4913 | ||
4914 | ; | |
4915 | return 0; | |
4916 | } | |
4917 | _ACEOF | |
4918 | rm -f conftest.$ac_objext | |
4919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4920 | (eval $ac_compile) 2>conftest.er1 | |
4921 | ac_status=$? | |
4922 | grep -v '^ *+' conftest.er1 >conftest.err | |
4923 | rm -f conftest.er1 | |
4924 | cat conftest.err >&5 | |
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4926 | (exit $ac_status); } && | |
4927 | { ac_try='test -z "$ac_c_werror_flag" | |
4928 | || test ! -s conftest.err' | |
4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4930 | (eval $ac_try) 2>&5 | |
4931 | ac_status=$? | |
4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4933 | (exit $ac_status); }; } && | |
4934 | { ac_try='test -s conftest.$ac_objext' | |
4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4936 | (eval $ac_try) 2>&5 | |
4937 | ac_status=$? | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); }; }; then | |
4940 | echo "$as_me:$LINENO: result: yes" >&5 | |
4941 | echo "${ECHO_T}yes" >&6 | |
4942 | else | |
4943 | echo "$as_me: failed program was:" >&5 | |
4944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4945 | ||
4946 | echo "$as_me:$LINENO: result: no" >&5 | |
4947 | echo "${ECHO_T}no" >&6; clooglibs= ; clooginc= | |
4948 | fi | |
4949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4950 | CFLAGS="$saved_CFLAGS" | |
4951 | ||
4952 | saved_CFLAGS="$CFLAGS" | |
4953 | CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc" | |
4954 | ||
4955 | echo "$as_me:$LINENO: checking for correct version of CLooG" >&5 | |
4956 | echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6 | |
4957 | cat >conftest.$ac_ext <<_ACEOF | |
4958 | /* confdefs.h. */ | |
4959 | _ACEOF | |
4960 | cat confdefs.h >>conftest.$ac_ext | |
4961 | cat >>conftest.$ac_ext <<_ACEOF | |
4962 | /* end confdefs.h. */ | |
4963 | #include "cloog/cloog.h" | |
4964 | int | |
4965 | main () | |
4966 | { | |
4967 | ||
4968 | #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 | |
4969 | choke me | |
4970 | #endif | |
4971 | ||
4972 | ; | |
4973 | return 0; | |
4974 | } | |
4975 | _ACEOF | |
4976 | rm -f conftest.$ac_objext | |
4977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4978 | (eval $ac_compile) 2>conftest.er1 | |
4979 | ac_status=$? | |
4980 | grep -v '^ *+' conftest.er1 >conftest.err | |
4981 | rm -f conftest.er1 | |
4982 | cat conftest.err >&5 | |
4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4984 | (exit $ac_status); } && | |
4985 | { ac_try='test -z "$ac_c_werror_flag" | |
4986 | || test ! -s conftest.err' | |
4987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4988 | (eval $ac_try) 2>&5 | |
4989 | ac_status=$? | |
4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4991 | (exit $ac_status); }; } && | |
4992 | { ac_try='test -s conftest.$ac_objext' | |
4993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4994 | (eval $ac_try) 2>&5 | |
4995 | ac_status=$? | |
4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4997 | (exit $ac_status); }; }; then | |
4998 | echo "$as_me:$LINENO: result: yes" >&5 | |
4999 | echo "${ECHO_T}yes" >&6 | |
5000 | else | |
5001 | echo "$as_me: failed program was:" >&5 | |
5002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5003 | ||
5004 | echo "$as_me:$LINENO: result: no" >&5 | |
5005 | echo "${ECHO_T}no" >&6; clooglibs= ; clooginc= | |
5006 | fi | |
5007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5008 | CFLAGS="$saved_CFLAGS" | |
5009 | ||
5010 | # Flags needed for CLOOG | |
5011 | ||
5012 | ||
5013 | ||
5014 | ||
1e0f07d3 | 5015 | # By default, C is the only stage 1 language. |
e1888513 | 5016 | stage1_languages=,c, |
2805b53a | 5017 | |
55ffb5ed NN |
5018 | # Figure out what language subdirectories are present. |
5019 | # Look if the user specified --enable-languages="..."; if not, use | |
5020 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
5021 | # go away some day. | |
5022 | # NB: embedded tabs in this IF block -- do not untabify | |
5023 | if test -d ${srcdir}/gcc; then | |
5024 | if test x"${enable_languages+set}" != xset; then | |
5025 | if test x"${LANGUAGES+set}" = xset; then | |
5026 | enable_languages="${LANGUAGES}" | |
5027 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
5028 | else | |
5029 | enable_languages=all | |
5030 | fi | |
5031 | else | |
5032 | if test x"${enable_languages}" = x || | |
5033 | test x"${enable_languages}" = xyes; | |
5034 | then | |
5035 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
5036 | exit 1 | |
5037 | fi | |
5038 | fi | |
5039 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
5040 | ||
7f26dfa3 FXC |
5041 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
5042 | # and make the substitution. | |
5043 | case ,${enable_languages}, in | |
5044 | *,f95,*) | |
5045 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
5046 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
5047 | ;; | |
5048 | esac | |
5049 | ||
55ffb5ed NN |
5050 | # First scan to see if an enabled language requires some other language. |
5051 | # We assume that a given config-lang.in will list all the language | |
5052 | # front ends it requires, even if some are required indirectly. | |
5053 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
5054 | case ${lang_frag} in | |
5055 | ..) ;; | |
5056 | # The odd quoting in the next line works around | |
5057 | # an apparent bug in bash 1.12 on linux. | |
5058 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
5059 | *) | |
5060 | # From the config-lang.in, get $language, $lang_requires | |
5061 | language= | |
5062 | lang_requires= | |
5063 | . ${lang_frag} | |
5064 | for other in ${lang_requires} ; do | |
5065 | case ,${enable_languages}, in | |
5066 | *,$other,*) ;; | |
5067 | *,all,*) ;; | |
5068 | *,$language,*) | |
5069 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
5070 | enable_languages="${enable_languages},${other}" | |
5071 | ;; | |
5072 | esac | |
5073 | done | |
5074 | ;; | |
5075 | esac | |
5076 | done | |
5077 | ||
e1888513 | 5078 | new_enable_languages=,c, |
55ffb5ed | 5079 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 5080 | potential_languages=,c, |
55ffb5ed NN |
5081 | |
5082 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
5083 | case ${lang_frag} in | |
5084 | ..) ;; | |
5085 | # The odd quoting in the next line works around | |
5086 | # an apparent bug in bash 1.12 on linux. | |
5087 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
5088 | *) | |
1c710c3c | 5089 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 5090 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
5091 | language= |
5092 | target_libs= | |
5093 | lang_dirs= | |
1546bb64 | 5094 | subdir_requires= |
e1888513 PB |
5095 | boot_language=no |
5096 | build_by_default=yes | |
55ffb5ed | 5097 | . ${lang_frag} |
e1888513 PB |
5098 | if test x${language} = x; then |
5099 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
5100 | exit 1 | |
5101 | fi | |
5102 | ||
5103 | case ,${enable_languages}, in | |
5104 | *,${language},*) | |
55ffb5ed NN |
5105 | # Language was explicitly selected; include it. |
5106 | add_this_lang=yes | |
5107 | ;; | |
e1888513 PB |
5108 | *,all,*) |
5109 | # 'all' was selected, select it if it is a default language | |
5110 | add_this_lang=${build_by_default} | |
55ffb5ed NN |
5111 | ;; |
5112 | *) | |
5113 | add_this_lang=no | |
5114 | ;; | |
5115 | esac | |
6de9cd9a | 5116 | |
1546bb64 | 5117 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 5118 | for i in $subdir_requires; do |
b6348cb3 | 5119 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
5120 | case ,${enable_languages}, in |
5121 | *,${language},*) | |
5122 | # Specifically requested language; tell them. | |
1c710c3c DJ |
5123 | { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5 |
5124 | echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
5125 | { (exit 1); exit 1; }; } | |
1546bb64 PB |
5126 | ;; |
5127 | *) | |
5128 | # Silently disable. | |
e1888513 | 5129 | add_this_lang=unsupported |
1546bb64 PB |
5130 | ;; |
5131 | esac | |
5132 | done | |
5133 | ||
e1888513 PB |
5134 | # Disable Ada if no preexisting GNAT is available. |
5135 | case ,${enable_languages},:${language}:${have_gnat} in | |
5136 | *,${language},*:ada:no) | |
5137 | # Specifically requested language; tell them. | |
1c710c3c DJ |
5138 | { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5 |
5139 | echo "$as_me: error: GNAT is required to build $language" >&2;} | |
5140 | { (exit 1); exit 1; }; } | |
e1888513 PB |
5141 | ;; |
5142 | *:ada:no) | |
5143 | # Silently disable. | |
5144 | add_this_lang=unsupported | |
5145 | ;; | |
5146 | esac | |
5147 | ||
4fab7234 HPN |
5148 | # Disable a language that is unsupported by the target. |
5149 | case " $unsupported_languages " in | |
5150 | *" $language "*) | |
e1888513 | 5151 | add_this_lang=unsupported |
4fab7234 HPN |
5152 | ;; |
5153 | esac | |
5154 | ||
6de9cd9a | 5155 | case $add_this_lang in |
e1888513 | 5156 | unsupported) |
55ffb5ed | 5157 | # Remove language-dependent dirs. |
2805b53a NN |
5158 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" |
5159 | ;; | |
e1888513 PB |
5160 | no) |
5161 | # Remove language-dependent dirs; still show language as supported. | |
5162 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" | |
5163 | potential_languages="${potential_languages}${language}," | |
5164 | ;; | |
5165 | yes) | |
5166 | new_enable_languages="${new_enable_languages}${language}," | |
5167 | potential_languages="${potential_languages}${language}," | |
2805b53a NN |
5168 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
5169 | case ${boot_language} in | |
5170 | yes) | |
340de83f | 5171 | # Add to (comma-separated) list of stage 1 languages. |
e1888513 | 5172 | stage1_languages="${stage1_languages}${language}," |
2805b53a NN |
5173 | ;; |
5174 | esac | |
5175 | ;; | |
55ffb5ed NN |
5176 | esac |
5177 | ;; | |
5178 | esac | |
5179 | done | |
5180 | ||
2aeb72e9 | 5181 | # Check whether --enable-stage1-languages or --disable-stage1-languages was given. |
e1888513 | 5182 | if test "${enable_stage1_languages+set}" = set; then |
2aeb72e9 DD |
5183 | enableval="$enable_stage1_languages" |
5184 | case ,${enable_stage1_languages}, in | |
e1888513 PB |
5185 | ,no,|,,) |
5186 | # Set it to something that will have no effect in the loop below | |
5187 | enable_stage1_languages=c ;; | |
5188 | ,yes,) | |
5189 | enable_stage1_languages=`echo $new_enable_languages | \ | |
5190 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
5191 | *,all,*) | |
5192 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
5193 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
5194 | esac | |
5195 | ||
5196 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
5197 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
5198 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
5199 | case $potential_languages in | |
5200 | *,$i,*) | |
5201 | case $stage1_languages in | |
5202 | *,$i,*) ;; | |
5203 | *) stage1_languages="$stage1_languages$i," ;; | |
5204 | esac ;; | |
5205 | *) | |
5206 | case $missing_languages in | |
5207 | *,$i,*) ;; | |
5208 | *) missing_languages="$missing_languages$i," ;; | |
5209 | esac ;; | |
5210 | esac | |
5211 | done | |
2aeb72e9 | 5212 | fi; |
e1888513 PB |
5213 | |
5214 | # Remove leading/trailing commas that were added for simplicity | |
5215 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 5216 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
5217 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
5218 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
5219 | ||
55ffb5ed | 5220 | if test "x$missing_languages" != x; then |
1c710c3c | 5221 | { { echo "$as_me:$LINENO: error: |
0cf085e4 | 5222 | The following requested languages could not be built: ${missing_languages} |
1c710c3c DJ |
5223 | Supported languages are: ${potential_languages}" >&5 |
5224 | echo "$as_me: error: | |
5225 | The following requested languages could not be built: ${missing_languages} | |
5226 | Supported languages are: ${potential_languages}" >&2;} | |
5227 | { (exit 1); exit 1; }; } | |
55ffb5ed | 5228 | fi |
55ffb5ed NN |
5229 | if test "x$new_enable_languages" != "x$enable_languages"; then |
5230 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 5231 | enable_languages="$new_enable_languages" |
55ffb5ed | 5232 | fi |
e1888513 | 5233 | |
1c710c3c | 5234 | |
b2eaac4a | 5235 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
5236 | fi |
5237 | ||
27079765 AH |
5238 | # Handle --disable-<component> generically. |
5239 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
5240 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
5241 | varname=`echo $dirname | sed -e s/+/_/g` |
5242 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
5243 | noconfigdirs="$noconfigdirs $dir" |
5244 | fi | |
5245 | done | |
5246 | ||
7cd0cf9c | 5247 | # Check for Boehm's garbage collector |
2aeb72e9 | 5248 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
7cd0cf9c | 5249 | if test "${enable_objc_gc+set}" = set; then |
2aeb72e9 DD |
5250 | enableval="$enable_objc_gc" |
5251 | case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
7cd0cf9c | 5252 | *,objc,*:*:yes:*target-boehm-gc*) |
1c710c3c DJ |
5253 | { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5 |
5254 | echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;} | |
5255 | { (exit 1); exit 1; }; } | |
7cd0cf9c DA |
5256 | ;; |
5257 | esac | |
2aeb72e9 | 5258 | fi; |
7cd0cf9c DA |
5259 | |
5260 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
5261 | case ,${enable_languages},:${enable_objc_gc} in |
5262 | *,objc,*:yes) | |
7cd0cf9c DA |
5263 | # Keep target-boehm-gc if requested for Objective-C. |
5264 | ;; | |
7cd0cf9c | 5265 | *) |
2a79fd67 DA |
5266 | # Otherwise remove target-boehm-gc depending on target-libjava. |
5267 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
5268 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
5269 | fi | |
7cd0cf9c DA |
5270 | ;; |
5271 | esac | |
5272 | ||
ee6a22df L |
5273 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
5274 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
5275 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
5276 | ||
5277 | notsupp="" | |
5278 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 5279 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
5280 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
5281 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
5282 | if test -r $srcdir/$dirname/configure ; then | |
5283 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5284 | true | |
5285 | else | |
5286 | notsupp="$notsupp $dir" | |
5287 | fi | |
5288 | fi | |
5289 | fi | |
ee6a22df L |
5290 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
5291 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
5292 | if test -r $srcdir/$dirname/configure ; then | |
5293 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5294 | true | |
5295 | else | |
5296 | notsupp="$notsupp $dir" | |
5297 | fi | |
5298 | fi | |
5299 | fi | |
55ffb5ed NN |
5300 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
5301 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
5302 | if test -r $srcdir/$dirname/configure ; then | |
5303 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5304 | true | |
5305 | else | |
5306 | notsupp="$notsupp $dir" | |
5307 | fi | |
5308 | fi | |
5309 | fi | |
5310 | done | |
5311 | ||
5312 | # Sometimes the tools are distributed with libiberty but with no other | |
5313 | # libraries. In that case, we don't want to build target-libiberty. | |
54fdc474 | 5314 | # Don't let libgcc imply libiberty either. |
55ffb5ed | 5315 | if test -n "${target_configdirs}" ; then |
54fdc474 | 5316 | libgcc= |
55ffb5ed NN |
5317 | others= |
5318 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
54fdc474 DJ |
5319 | if test "$i" = "libgcc"; then |
5320 | libgcc=target-libgcc | |
5321 | elif test "$i" != "libiberty" ; then | |
55ffb5ed NN |
5322 | if test -r $srcdir/$i/configure ; then |
5323 | others=yes; | |
5324 | break; | |
5325 | fi | |
5326 | fi | |
5327 | done | |
5328 | if test -z "${others}" ; then | |
54fdc474 | 5329 | target_configdirs=$libgcc |
55ffb5ed NN |
5330 | fi |
5331 | fi | |
5332 | ||
5333 | # Quietly strip out all directories which aren't configurable in this tree. | |
5334 | # This relies on all configurable subdirectories being autoconfiscated, which | |
5335 | # is now the case. | |
23f6b2f9 PB |
5336 | build_configdirs_all="$build_configdirs" |
5337 | build_configdirs= | |
5338 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 5339 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
5340 | if test -f ${srcdir}/$j/configure ; then |
5341 | build_configdirs="${build_configdirs} $i" | |
5342 | fi | |
5343 | done | |
5344 | ||
55ffb5ed NN |
5345 | configdirs_all="$configdirs" |
5346 | configdirs= | |
5347 | for i in ${configdirs_all} ; do | |
5348 | if test -f ${srcdir}/$i/configure ; then | |
5349 | configdirs="${configdirs} $i" | |
5350 | fi | |
5351 | done | |
23f6b2f9 | 5352 | |
55ffb5ed NN |
5353 | target_configdirs_all="$target_configdirs" |
5354 | target_configdirs= | |
5355 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 5356 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
5357 | if test -f ${srcdir}/$j/configure ; then |
5358 | target_configdirs="${target_configdirs} $i" | |
5359 | fi | |
5360 | done | |
5361 | ||
5362 | # Produce a warning message for the subdirs we can't configure. | |
5363 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
5364 | # FSF releases, it's important to let people know when their machine isn't | |
5365 | # supported by the one or two programs in a package. | |
5366 | ||
5367 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
5368 | # If $appdirs is non-empty, at least one of those directories must still | |
5369 | # be configured, or we error out. (E.g., if the gas release supports a | |
5370 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
5371 | # pretend that all is well.) | |
5372 | if test -n "$appdirs" ; then | |
5373 | for dir in $appdirs ; do | |
5374 | if test -r $dir/Makefile.in ; then | |
5375 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
5376 | appdirs="" | |
5377 | break | |
5378 | fi | |
23f6b2f9 | 5379 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
5380 | appdirs="" |
5381 | break | |
5382 | fi | |
5383 | fi | |
5384 | done | |
5385 | if test -n "$appdirs" ; then | |
5386 | echo "*** This configuration is not supported by this package." 1>&2 | |
5387 | exit 1 | |
5388 | fi | |
5389 | fi | |
5390 | # Okay, some application will build, or we don't care to check. Still | |
5391 | # notify of subdirs not getting built. | |
5392 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
5393 | echo " ${notsupp}" 1>&2 | |
5394 | echo " (Any other directories should still work fine.)" 1>&2 | |
5395 | fi | |
5396 | ||
5397 | case "$host" in | |
5398 | *msdosdjgpp*) | |
5399 | enable_gdbtk=no ;; | |
5400 | esac | |
5401 | ||
c3a86da9 DJ |
5402 | # To find our prefix, in gcc_cv_tool_prefix. |
5403 | ||
5404 | # The user is always right. | |
5405 | if test "${PATH_SEPARATOR+set}" != set; then | |
5406 | echo "#! /bin/sh" >conf$$.sh | |
5407 | echo "exit 0" >>conf$$.sh | |
5408 | chmod +x conf$$.sh | |
5409 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5410 | PATH_SEPARATOR=';' | |
5411 | else | |
5412 | PATH_SEPARATOR=: | |
5413 | fi | |
5414 | rm -f conf$$.sh | |
5415 | fi | |
5416 | ||
5417 | ||
5418 | ||
5419 | if test "x$exec_prefix" = xNONE; then | |
5420 | if test "x$prefix" = xNONE; then | |
5421 | gcc_cv_tool_prefix=$ac_default_prefix | |
5422 | else | |
5423 | gcc_cv_tool_prefix=$prefix | |
5424 | fi | |
5425 | else | |
5426 | gcc_cv_tool_prefix=$exec_prefix | |
5427 | fi | |
5428 | ||
5429 | # If there is no compiler in the tree, use the PATH only. In any | |
5430 | # case, if there is no compiler in the tree nobody should use | |
5431 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
5432 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
5433 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
5434 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5435 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
5436 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5437 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
5438 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
5439 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
5440 | else | |
5441 | gcc_cv_tool_dirs= | |
5442 | fi | |
5443 | ||
5444 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
5445 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
5446 | fi | |
5447 | ||
5448 | ||
5449 | ||
55ffb5ed NN |
5450 | copy_dirs= |
5451 | ||
1c710c3c | 5452 | |
2aeb72e9 | 5453 | # Check whether --with-build-sysroot or --without-build-sysroot was given. |
526635cb | 5454 | if test "${with_build_sysroot+set}" = set; then |
2aeb72e9 DD |
5455 | withval="$with_build_sysroot" |
5456 | if test x"$withval" != x ; then | |
526635cb MM |
5457 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
5458 | fi | |
5459 | else | |
5460 | SYSROOT_CFLAGS_FOR_TARGET= | |
2aeb72e9 | 5461 | fi; |
526635cb MM |
5462 | |
5463 | ||
c8aea42c PB |
5464 | |
5465 | # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given. | |
5466 | if test "${with_debug_prefix_map+set}" = set; then | |
5467 | withval="$with_debug_prefix_map" | |
5468 | if test x"$withval" != x; then | |
5469 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5470 | for debug_map in $withval; do | |
5471 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
5472 | done | |
5473 | fi | |
5474 | else | |
5475 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5476 | fi; | |
5477 | ||
5478 | ||
1c8bd6a3 PB |
5479 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
5480 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
5481 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
5482 | # We want to ensure that TARGET libraries (which we know are built with | |
5483 | # gcc) are built with "-O2 -g", so include those options when setting | |
5484 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
5485 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
5486 | CFLAGS_FOR_TARGET=$CFLAGS | |
5487 | case " $CFLAGS " in | |
5488 | *" -O2 "*) ;; | |
5489 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
5490 | esac | |
5491 | case " $CFLAGS " in | |
5492 | *" -g "* | *" -g3 "*) ;; | |
5493 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
5494 | esac | |
5495 | fi | |
5496 | ||
5497 | ||
5498 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
5499 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
5500 | case " $CXXFLAGS " in | |
5501 | *" -O2 "*) ;; | |
5502 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
5503 | esac | |
5504 | case " $CXXFLAGS " in | |
5505 | *" -g "* | *" -g3 "*) ;; | |
5506 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
5507 | esac | |
5508 | fi | |
5509 | ||
5510 | ||
55ffb5ed NN |
5511 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
5512 | # the named directory are copied to $(tooldir)/sys-include. | |
5513 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
5514 | if test x${is_cross_compiler} = xno ; then | |
5515 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
5516 | exit 1 | |
5517 | fi | |
5518 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 5519 | x=${gcc_cv_tool_prefix} |
1c710c3c | 5520 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
5521 | fi |
5522 | fi | |
5523 | ||
5524 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
5525 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
5526 | # are permitted. | |
5527 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
5528 | if test x${is_cross_compiler} = xno ; then | |
5529 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
5530 | exit 1 | |
5531 | fi | |
5532 | if test x"${with_libs}" != xyes ; then | |
5533 | # Copy the libraries in reverse order, so that files in the first named | |
5534 | # library override files in subsequent libraries. | |
c3a86da9 | 5535 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 5536 | for l in ${with_libs}; do |
1c710c3c | 5537 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
5538 | done |
5539 | fi | |
5540 | fi | |
5541 | ||
e8b05380 PB |
5542 | # Set with_gnu_as and with_gnu_ld as appropriate. |
5543 | # | |
5544 | # This is done by determining whether or not the appropriate directory | |
5545 | # is available, and by checking whether or not specific configurations | |
5546 | # have requested that this magic not happen. | |
1c710c3c DJ |
5547 | # |
5548 | # The command line options always override the explicit settings in | |
e8b05380 PB |
5549 | # configure.in, and the settings in configure.in override this magic. |
5550 | # | |
1c710c3c | 5551 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 PB |
5552 | # want to do that, then you should use the --without-gnu-as and |
5553 | # --without-gnu-ld options for the configure script. | |
5554 | ||
5555 | if test x${use_gnu_as} = x && | |
5556 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
5557 | with_gnu_as=yes | |
5558 | extra_host_args="$extra_host_args --with-gnu-as" | |
5559 | fi | |
5560 | ||
5561 | if test x${use_gnu_ld} = x && | |
5afab7ad | 5562 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
5563 | with_gnu_ld=yes |
5564 | extra_host_args="$extra_host_args --with-gnu-ld" | |
5565 | fi | |
5566 | ||
5567 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure | |
5568 | # can detect this case. | |
5569 | ||
5570 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
5571 | with_newlib=yes | |
5572 | extra_host_args="$extra_host_args --with-newlib" | |
5573 | fi | |
5574 | ||
55ffb5ed NN |
5575 | # Handle ${copy_dirs} |
5576 | set fnord ${copy_dirs} | |
5577 | shift | |
5578 | while test $# != 0 ; do | |
5579 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
5580 | : | |
5581 | else | |
5582 | echo Copying $1 to $2 | |
5583 | ||
5584 | # Use the install script to create the directory and all required | |
5585 | # parent directories. | |
5586 | if test -d $2 ; then | |
5587 | : | |
5588 | else | |
5589 | echo >config.temp | |
5590 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
5591 | fi | |
5592 | ||
5593 | # Copy the directory, assuming we have tar. | |
5594 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
5595 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
5596 | ||
5597 | # It is the responsibility of the user to correctly adjust all | |
5598 | # symlinks. If somebody can figure out how to handle them correctly | |
5599 | # here, feel free to add the code. | |
5600 | ||
5601 | echo $1 > $2/COPIED | |
5602 | fi | |
5603 | shift; shift | |
5604 | done | |
5605 | ||
e8b05380 PB |
5606 | # Determine a target-dependent exec_prefix that the installed |
5607 | # gcc will search in. Keep this list sorted by triplet, with | |
5608 | # the *-*-osname triplets last. | |
5609 | md_exec_prefix= | |
5610 | case "${target}" in | |
5611 | alpha*-*-*vms*) | |
5612 | md_exec_prefix=/gnu/lib/gcc-lib | |
5613 | ;; | |
30b74385 | 5614 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
5615 | md_exec_prefix=/dev/env/DJDIR/bin |
5616 | ;; | |
30b74385 | 5617 | i[34567]86-*-sco3.2v5*) |
e8b05380 PB |
5618 | if test $with_gnu_as = yes; then |
5619 | md_exec_prefix=/usr/gnu/bin | |
5620 | else | |
5621 | md_exec_prefix=/usr/ccs/bin/elf | |
5622 | fi | |
5623 | ;; | |
5624 | ||
5625 | mn10300-*-* | \ | |
5626 | powerpc-*-chorusos* | \ | |
5627 | powerpc*-*-eabi* | \ | |
5628 | powerpc*-*-sysv* | \ | |
5629 | powerpc*-*-kaos* | \ | |
5630 | s390x-ibm-tpf*) | |
5631 | md_exec_prefix=/usr/ccs/bin | |
5632 | ;; | |
5633 | sparc64-*-elf*) | |
5634 | ;; | |
5635 | v850*-*-*) | |
5636 | md_exec_prefix=/usr/ccs/bin | |
5637 | ;; | |
aa12a573 | 5638 | xtensa*-*-elf*) |
e8b05380 PB |
5639 | ;; |
5640 | ||
5641 | *-*-beos* | \ | |
5642 | *-*-elf* | \ | |
5643 | *-*-hpux* | \ | |
5644 | *-*-netware* | \ | |
5645 | *-*-nto-qnx* | \ | |
5646 | *-*-rtems* | \ | |
5647 | *-*-solaris2* | \ | |
30b74385 | 5648 | *-*-sysv[45]* | \ |
e8b05380 PB |
5649 | *-*-vxworks* | \ |
5650 | *-wrs-windiss) | |
5651 | md_exec_prefix=/usr/ccs/bin | |
5652 | ;; | |
5653 | esac | |
5654 | ||
671aa708 NN |
5655 | extra_arflags_for_target= |
5656 | extra_nmflags_for_target= | |
5657 | extra_ranlibflags_for_target= | |
5658 | target_makefile_frag=/dev/null | |
5659 | case "${target}" in | |
3e19841a PB |
5660 | mep*-*-*) |
5661 | target_makefile_frag="config/mt-mep" | |
5662 | ;; | |
58e24147 AM |
5663 | spu-*-*) |
5664 | target_makefile_frag="config/mt-spu" | |
5665 | ;; | |
4bf6c438 RS |
5666 | mips*-sde-elf*) |
5667 | target_makefile_frag="config/mt-sde" | |
5668 | ;; | |
1ec3b87b RS |
5669 | mipsisa*-*-elfoabi*) |
5670 | target_makefile_frag="config/mt-mips-elfoabi" | |
5671 | ;; | |
08d0963a RS |
5672 | mips*-*-*linux* | mips*-*-gnu*) |
5673 | target_makefile_frag="config/mt-mips-gnu" | |
5674 | ;; | |
61fec9ff | 5675 | *-*-netware*) |
671aa708 NN |
5676 | target_makefile_frag="config/mt-netware" |
5677 | ;; | |
98a5bb3b RM |
5678 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
5679 | target_makefile_frag="config/mt-gnu" | |
671aa708 NN |
5680 | ;; |
5681 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 5682 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
5683 | # commands to handle both 32-bit and 64-bit objects. These flags are |
5684 | # harmless if we're using GNU nm or ar. | |
5685 | extra_arflags_for_target=" -X32_64" | |
5686 | extra_nmflags_for_target=" -B -X32_64" | |
5687 | ;; | |
5688 | *-*-darwin*) | |
5689 | # ranlib from Darwin requires the -c flag to look at common symbols. | |
5690 | extra_ranlibflags_for_target=" -c" | |
5691 | ;; | |
5692 | mips*-*-pe | sh*-*-pe | *arm-wince-pe) | |
5693 | target_makefile_frag="config/mt-wince" | |
5694 | ;; | |
5695 | esac | |
5696 | ||
5697 | alphaieee_frag=/dev/null | |
5698 | case $target in | |
5699 | alpha*-*-*) | |
5700 | # This just makes sure to use the -mieee option to build target libs. | |
5701 | # This should probably be set individually by each library. | |
5702 | alphaieee_frag="config/mt-alphaieee" | |
5703 | ;; | |
5704 | esac | |
5705 | ||
5706 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
5707 | # the target libraries, similarly if it is not specified, use -Os | |
5708 | # on selected platforms. | |
5709 | ospace_frag=/dev/null | |
5710 | case "${enable_target_optspace}:${target}" in | |
5711 | yes:*) | |
5712 | ospace_frag="config/mt-ospace" | |
5713 | ;; | |
5714 | :d30v-*) | |
5715 | ospace_frag="config/mt-d30v" | |
5716 | ;; | |
5717 | :m32r-* | :d10v-* | :fr30-*) | |
5718 | ospace_frag="config/mt-ospace" | |
5719 | ;; | |
5720 | no:* | :*) | |
5721 | ;; | |
5722 | *) | |
5723 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
5724 | ;; | |
5725 | esac | |
5726 | ||
671aa708 NN |
5727 | # Default to using --with-stabs for certain targets. |
5728 | if test x${with_stabs} = x ; then | |
5729 | case "${target}" in | |
89a95129 | 5730 | mips*-*-irix[56]*) |
671aa708 NN |
5731 | ;; |
5732 | mips*-*-* | alpha*-*-osf*) | |
5733 | with_stabs=yes; | |
5734 | extra_host_args="${extra_host_args} --with-stabs" | |
5735 | ;; | |
5736 | esac | |
5737 | fi | |
5738 | ||
5739 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
5740 | # them automatically. | |
5741 | case "${host}" in | |
1c710c3c | 5742 | hppa*64*-*-hpux11*) |
671aa708 NN |
5743 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" |
5744 | ;; | |
5745 | esac | |
5746 | ||
671aa708 NN |
5747 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
5748 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 5749 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
5750 | build_tooldir=${tooldir} |
5751 | ||
671aa708 NN |
5752 | # Create a .gdbinit file which runs the one in srcdir |
5753 | # and tells GDB to look there for source files. | |
5754 | ||
5755 | if test -r ${srcdir}/.gdbinit ; then | |
5756 | case ${srcdir} in | |
5757 | .) ;; | |
5758 | *) cat > ./.gdbinit <<EOF | |
5759 | # ${NO_EDIT} | |
5760 | dir ${srcdir} | |
5761 | dir . | |
5762 | source ${srcdir}/.gdbinit | |
5763 | EOF | |
5764 | ;; | |
5765 | esac | |
5766 | fi | |
5767 | ||
671aa708 NN |
5768 | # Make sure that the compiler is able to generate an executable. If it |
5769 | # can't, we are probably in trouble. We don't care whether we can run the | |
5770 | # executable--we might be using a cross compiler--we only care whether it | |
5771 | # can be created. At this point the main configure script has set CC. | |
5772 | we_are_ok=no | |
5773 | echo "int main () { return 0; }" > conftest.c | |
5774 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
5775 | if test $? = 0 ; then | |
5776 | if test -s conftest || test -s conftest.exe ; then | |
5777 | we_are_ok=yes | |
5778 | fi | |
1c710c3c | 5779 | fi |
671aa708 NN |
5780 | case $we_are_ok in |
5781 | no) | |
5782 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
5783 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
5784 | rm -f conftest* | |
5785 | exit 1 | |
5786 | ;; | |
5787 | esac | |
5788 | rm -f conftest* | |
5789 | ||
5790 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
5791 | case "${host}" in | |
5792 | sparc-sun-solaris2*) | |
5793 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
5794 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
5795 | could_use= | |
5796 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
5797 | if test -d /opt/cygnus/bin ; then | |
5798 | if test "$could_use" = "" ; then | |
5799 | could_use="/opt/cygnus/bin" | |
5800 | else | |
5801 | could_use="$could_use or /opt/cygnus/bin" | |
5802 | fi | |
5803 | fi | |
5804 | if test "$could_use" = "" ; then | |
5805 | echo "Warning: compilation may fail because you're using" | |
5806 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
5807 | echo "variable and rerun configure." | |
5808 | else | |
5809 | echo "Warning: compilation may fail because you're using" | |
5810 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
5811 | echo "$could_use. You should change your" | |
5812 | echo "PATH or CC variable and rerun configure." | |
5813 | fi | |
5814 | fi | |
5815 | ;; | |
5816 | esac | |
5817 | ||
d89f0ad6 | 5818 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
5819 | case "${host}" in |
5820 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
256f7136 | 5821 | *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 5822 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
5823 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
5824 | esac | |
5825 | ||
d89f0ad6 AL |
5826 | # On systems where the dynamic library environment variable is PATH, |
5827 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
5828 | # built executables to PATH. | |
5829 | if test "$RPATH_ENVVAR" = PATH; then | |
5830 | GCC_SHLIB_SUBDIR=/shlib | |
5831 | else | |
5832 | GCC_SHLIB_SUBDIR= | |
5833 | fi | |
5834 | ||
671aa708 NN |
5835 | # Record target_configdirs and the configure arguments for target and |
5836 | # build configuration in Makefile. | |
5837 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 5838 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
671aa708 | 5839 | |
671aa708 NN |
5840 | # Determine whether gdb needs tk/tcl or not. |
5841 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
5842 | # and in that case we want gdb to be built without tk. Ugh! | |
5843 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
5844 | # so we should be able to put the 'maybe's in unconditionally and | |
5845 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
5846 | # 100% sure that that's safe though. | |
e914a571 | 5847 | |
b4f96efe | 5848 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
5849 | case "$enable_gdbtk" in |
5850 | no) | |
5851 | GDB_TK="" ;; | |
e914a571 AC |
5852 | yes) |
5853 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 5854 | *) |
e914a571 AC |
5855 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
5856 | # distro. Eventually someone will fix this and move Insight, nee | |
5857 | # gdbtk to a separate directory. | |
5858 | if test -d ${srcdir}/gdb/gdbtk ; then | |
5859 | GDB_TK="${gdb_tk}" | |
5860 | else | |
5861 | GDB_TK="" | |
5862 | fi | |
5863 | ;; | |
671aa708 | 5864 | esac |
ef9db8d5 DJ |
5865 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
5866 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 5867 | |
60975492 | 5868 | # Strip out unwanted targets. |
8b87bb96 NN |
5869 | |
5870 | # While at that, we remove Makefiles if we were started for recursive | |
5871 | # configuration, so that the top-level Makefile reconfigures them, | |
5872 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 5873 | |
60975492 PB |
5874 | # Loop over modules. $extrasub must be used with care, limiting as |
5875 | # much as possible the usage of range addresses. That's because autoconf | |
5876 | # splits the sed script to overcome limits in the number of commands, | |
5877 | # and relying on carefully-timed sed passes may turn out to be very hard | |
5878 | # to maintain later. In this particular case, you just have to be careful | |
5879 | # not to nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 5880 | |
2aeb72e9 | 5881 | # Check whether --enable-bootstrap or --disable-bootstrap was given. |
f516a7da | 5882 | if test "${enable_bootstrap+set}" = set; then |
2aeb72e9 DD |
5883 | enableval="$enable_bootstrap" |
5884 | ||
f516a7da | 5885 | else |
ce521a9c | 5886 | enable_bootstrap=default |
2aeb72e9 | 5887 | fi; |
f516a7da | 5888 | |
ce521a9c PB |
5889 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
5890 | case "$configdirs" in | |
5891 | *gcc*) have_compiler=yes ;; | |
5892 | *) have_compiler=no ;; | |
5893 | esac | |
5894 | ||
5895 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5896 | *:*:*:no) ;; | |
5897 | ||
1ca26cd2 | 5898 | # Default behavior. Enable bootstrap if we have a compiler |
ce521a9c PB |
5899 | # and we are in a native configuration. |
5900 | yes:$build:$build:default) | |
1ca26cd2 | 5901 | enable_bootstrap=yes ;; |
ce521a9c PB |
5902 | |
5903 | *:*:*:default) | |
5904 | enable_bootstrap=no ;; | |
5905 | ||
5906 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
2d309510 | 5907 | yes:$build:$build:yes) |
ce521a9c PB |
5908 | ;; |
5909 | ||
5910 | # Other configurations, but we have a compiler. Assume the user knows | |
5911 | # what he's doing. | |
2d309510 | 5912 | yes:*:*:yes) |
1c710c3c DJ |
5913 | { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5 |
5914 | echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
ce521a9c PB |
5915 | ;; |
5916 | ||
5917 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
2d309510 | 5918 | no:*:*:yes) |
1c710c3c DJ |
5919 | { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5 |
5920 | echo "$as_me: error: cannot bootstrap without a compiler" >&2;} | |
5921 | { (exit 1); exit 1; }; } ;; | |
ce521a9c PB |
5922 | |
5923 | # Fail if wrong command line | |
5924 | *) | |
1c710c3c DJ |
5925 | { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5 |
5926 | echo "$as_me: error: invalid option for --enable-bootstrap" >&2;} | |
5927 | { (exit 1); exit 1; }; } | |
ce521a9c PB |
5928 | ;; |
5929 | esac | |
5930 | ||
5931 | # Adjust the toplevel makefile according to whether bootstrap was selected. | |
f516a7da PB |
5932 | case "$enable_bootstrap" in |
5933 | yes) | |
5607edfd | 5934 | bootstrap_suffix=bootstrap ;; |
f516a7da | 5935 | no) |
5607edfd | 5936 | bootstrap_suffix=no-bootstrap ;; |
f516a7da PB |
5937 | esac |
5938 | ||
23f6b2f9 | 5939 | for module in ${build_configdirs} ; do |
5607edfd PB |
5940 | if test -z "${no_recursion}" \ |
5941 | && test -f ${build_subdir}/${module}/Makefile; then | |
5942 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
5943 | rm -f ${build_subdir}/${module}/Makefile | |
5944 | fi | |
5945 | extrasub="$extrasub | |
5946 | /^@if build-$module\$/d | |
5947 | /^@endif build-$module\$/d | |
5948 | /^@if build-$module-$bootstrap_suffix\$/d | |
5949 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
5950 | done | |
5951 | for module in ${configdirs} ; do | |
a6fbc1e2 | 5952 | if test -z "${no_recursion}"; then |
f063a9ed | 5953 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
5954 | if test -f ${file}; then |
5955 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
5956 | rm -f ${file} | |
5957 | fi | |
5958 | done | |
5607edfd PB |
5959 | fi |
5960 | extrasub="$extrasub | |
5961 | /^@if $module\$/d | |
5962 | /^@endif $module\$/d | |
5963 | /^@if $module-$bootstrap_suffix\$/d | |
5964 | /^@endif $module-$bootstrap_suffix\$/d" | |
5965 | done | |
5966 | for module in ${target_configdirs} ; do | |
5967 | if test -z "${no_recursion}" \ | |
5968 | && test -f ${target_subdir}/${module}/Makefile; then | |
5969 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
5970 | rm -f ${target_subdir}/${module}/Makefile | |
5971 | fi | |
5972 | extrasub="$extrasub | |
5973 | /^@if target-$module\$/d | |
5974 | /^@endif target-$module\$/d | |
5975 | /^@if target-$module-$bootstrap_suffix\$/d | |
5976 | /^@endif target-$module-$bootstrap_suffix\$/d" | |
5977 | done | |
5978 | ||
60975492 PB |
5979 | extrasub="$extrasub |
5980 | /^@if /,/^@endif /d" | |
671aa708 NN |
5981 | |
5982 | # Create the serialization dependencies. This uses a temporary file. | |
5983 | ||
2aeb72e9 | 5984 | # Check whether --enable-serial-configure or --disable-serial-configure was given. |
ade82b16 | 5985 | if test "${enable_serial_configure+set}" = set; then |
2aeb72e9 | 5986 | enableval="$enable_serial_configure" |
ade82b16 | 5987 | |
2aeb72e9 | 5988 | fi; |
ade82b16 | 5989 | |
bf1d3e81 NN |
5990 | case ${enable_serial_configure} in |
5991 | yes) | |
5992 | enable_serial_build_configure=yes | |
5993 | enable_serial_host_configure=yes | |
5994 | enable_serial_target_configure=yes | |
5995 | ;; | |
5996 | esac | |
5997 | ||
671aa708 NN |
5998 | # These force 'configure's to be done one at a time, to avoid problems |
5999 | # with contention over a shared config.cache. | |
6000 | rm -f serdep.tmp | |
ade82b16 | 6001 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 6002 | olditem= |
bf1d3e81 | 6003 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
6004 | for item in ${build_configdirs} ; do |
6005 | case ${olditem} in | |
6006 | "") ;; | |
ade82b16 | 6007 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6008 | esac |
6009 | olditem=${item} | |
6010 | done | |
6011 | olditem= | |
bf1d3e81 | 6012 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
6013 | for item in ${configdirs} ; do |
6014 | case ${olditem} in | |
6015 | "") ;; | |
ade82b16 | 6016 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6017 | esac |
6018 | olditem=${item} | |
6019 | done | |
6020 | olditem= | |
bf1d3e81 | 6021 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
6022 | for item in ${target_configdirs} ; do |
6023 | case ${olditem} in | |
6024 | "") ;; | |
ade82b16 | 6025 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
6026 | esac |
6027 | olditem=${item} | |
6028 | done | |
6029 | serialization_dependencies=serdep.tmp | |
6030 | ||
6031 | ||
ade82b16 | 6032 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c DJ |
6033 | # target, nonopt, and variable assignments. These are the ones we |
6034 | # might not want to pass down to subconfigures. Also strip | |
6035 | # program-prefix, program-suffix, and program-transform-name, so that | |
6036 | # we can pass down a consistent program-transform-name. | |
6037 | baseargs= | |
6038 | keep_next=no | |
6039 | skip_next=no | |
6040 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
6041 | for ac_arg |
6042 | do | |
1c710c3c DJ |
6043 | if test X"$skip_next" = X"yes"; then |
6044 | skip_next=no | |
6045 | continue | |
6046 | fi | |
6047 | if test X"$keep_next" = X"yes"; then | |
6048 | case $ac_arg in | |
6049 | *\'*) | |
6050 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6051 | esac | |
6052 | baseargs="$baseargs '$ac_arg'" | |
6053 | keep_next=no | |
6054 | continue | |
6055 | fi | |
6056 | ||
6057 | # Handle separated arguments. Based on the logic generated by | |
6058 | # autoconf 2.59. | |
6059 | case $ac_arg in | |
6060 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
6061 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
6062 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
6063 | | -with-* | --with-* | -without-* | --without-* | --x) | |
6064 | separate_arg=no | |
6065 | ;; | |
6066 | -*) | |
6067 | separate_arg=yes | |
6068 | ;; | |
6069 | *) | |
6070 | separate_arg=no | |
6071 | ;; | |
6072 | esac | |
6073 | ||
6074 | case "$ac_arg" in | |
6075 | --no*) | |
6076 | continue | |
6077 | ;; | |
6078 | --c* | \ | |
6079 | --sr* | \ | |
6080 | --ho* | \ | |
6081 | --bu* | \ | |
6082 | --t* | \ | |
6083 | --program-* | \ | |
6084 | -cache_file* | \ | |
6085 | -srcdir* | \ | |
6086 | -host* | \ | |
6087 | -build* | \ | |
6088 | -target* | \ | |
6089 | -program-prefix* | \ | |
6090 | -program-suffix* | \ | |
6091 | -program-transform-name* ) | |
6092 | skip_next=$separate_arg | |
6093 | continue | |
6094 | ;; | |
6095 | -*) | |
6096 | # An option. Add it. | |
6097 | case $ac_arg in | |
6098 | *\'*) | |
6099 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6100 | esac | |
6101 | baseargs="$baseargs '$ac_arg'" | |
6102 | keep_next=$separate_arg | |
6103 | ;; | |
6104 | *) | |
6105 | # Either a variable assignment, or a nonopt (triplet). Don't | |
6106 | # pass it down; let the Makefile handle this. | |
6107 | continue | |
6108 | ;; | |
6109 | esac | |
6110 | done | |
6111 | # Remove the initial space we just introduced and, as these will be | |
6112 | # expanded by make, quote '$'. | |
6113 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 6114 | |
43bb47c2 DJ |
6115 | # Add in --program-transform-name, after --program-prefix and |
6116 | # --program-suffix have been applied to it. Autoconf has already | |
6117 | # doubled dollar signs and backslashes in program_transform_name; we want | |
6118 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 6119 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
6120 | # Also, because we want to override the logic in subdir configure scripts to |
6121 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
6122 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
6123 | ${program_transform_name} | |
6124 | EOF_SED | |
6125 | gcc_transform_name=`cat conftestsed.out` | |
6126 | rm -f conftestsed.out | |
6127 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
d9acb717 RW |
6128 | if test "$silent" = yes; then |
6129 | baseargs="$baseargs --silent" | |
6130 | fi | |
43bb47c2 | 6131 | |
671aa708 NN |
6132 | # For the build-side libraries, we just need to pretend we're native, |
6133 | # and not use the same cache file. Multilibs are neither needed nor | |
6134 | # desired. | |
e69bf64b | 6135 | build_configargs="--cache-file=../config.cache ${baseargs}" |
671aa708 NN |
6136 | |
6137 | # For host modules, accept cache file option, or specification as blank. | |
6138 | case "${cache_file}" in | |
6139 | "") # empty | |
6140 | cache_file_option="" ;; | |
6141 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
6142 | cache_file_option="--cache-file=${cache_file}" ;; | |
6143 | *) # relative path | |
6144 | cache_file_option="--cache-file=../${cache_file}" ;; | |
6145 | esac | |
6146 | ||
09438bde NN |
6147 | # Host dirs don't like to share a cache file either, horribly enough. |
6148 | # This seems to be due to autoconf 2.5x stupidity. | |
e69bf64b | 6149 | host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 NN |
6150 | |
6151 | target_configargs=${baseargs} | |
6152 | ||
6153 | # Passing a --with-cross-host argument lets the target libraries know | |
6154 | # whether they are being built with a cross-compiler or being built | |
6155 | # native. However, it would be better to use other mechanisms to make the | |
6156 | # sorts of decisions they want to make on this basis. Please consider | |
6157 | # this option to be deprecated. FIXME. | |
6158 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 6159 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
6160 | fi |
6161 | ||
6162 | # Default to --enable-multilib. | |
6163 | if test x${enable_multilib} = x ; then | |
6164 | target_configargs="--enable-multilib ${target_configargs}" | |
6165 | fi | |
6166 | ||
6167 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
6168 | # changed from the earlier setting of with_newlib. | |
6169 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
6170 | target_configargs="--with-newlib ${target_configargs}" | |
6171 | fi | |
6172 | ||
6b9eb62c NN |
6173 | # Different target subdirs use different values of certain variables |
6174 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
6175 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
6176 | # it doesn't automatically accept command-line overrides of them. | |
6177 | # This means it's not safe for target subdirs to share a cache file, | |
6178 | # which is disgusting, but there you have it. Hopefully this can be | |
6179 | # fixed in future. It's still worthwhile to use a cache file for each | |
6180 | # directory. I think. | |
6181 | ||
bebcd931 MS |
6182 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
6183 | # We need to pass --target, as newer autoconf's requires consistency | |
6184 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 6185 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 6186 | |
671aa708 NN |
6187 | FLAGS_FOR_TARGET= |
6188 | case " $target_configdirs " in | |
6189 | *" newlib "*) | |
6190 | case " $target_configargs " in | |
6191 | *" --with-newlib "*) | |
6192 | case "$target" in | |
6193 | *-cygwin*) | |
aa8f1f57 | 6194 | 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' ;; |
671aa708 NN |
6195 | esac |
6196 | ||
6197 | # If we're not building GCC, don't discard standard headers. | |
6198 | if test -d ${srcdir}/gcc; then | |
6199 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
6200 | ||
6201 | if test "${build}" != "${host}"; then | |
6202 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
6203 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
6204 | # to it. This is right: we don't want to search that directory | |
6205 | # for binaries, but we want the header files in there, so add | |
6206 | # them explicitly. | |
215c351a | 6207 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' |
671aa708 NN |
6208 | |
6209 | # Someone might think of using the pre-installed headers on | |
6210 | # Canadian crosses, in case the installed compiler is not fully | |
6211 | # compatible with the compiler being built. In this case, it | |
6212 | # would be better to flag an error than risking having | |
6213 | # incompatible object files being constructed. We can't | |
6214 | # guarantee that an error will be flagged, but let's hope the | |
6215 | # compiler will do it, when presented with incompatible header | |
6216 | # files. | |
6217 | fi | |
6218 | fi | |
6219 | ||
6220 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 6221 | i[3456789]86-*-linux*-no) |
671aa708 NN |
6222 | # Here host == target, so we don't need to build gcc, |
6223 | # so we don't want to discard standard headers. | |
6224 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
6225 | ;; | |
6226 | *) | |
6227 | # If we're building newlib, use its generic headers last, but search | |
6228 | # for any libc-related directories first (so make it the last -B | |
6229 | # switch). | |
6230 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
c03353e2 RIL |
6231 | |
6232 | # If we're building libgloss, find the startup file, simulator library | |
6233 | # and linker script. | |
6234 | case " $target_configdirs " in | |
6235 | *" libgloss "*) | |
6236 | # Look for startup file, simulator library and maybe linker script. | |
6237 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
6238 | # Look for libnosys.a in case the target needs it. | |
6239 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
6240 | # Most targets have the linker script in the source directory. | |
6241 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
6242 | ;; | |
6243 | esac | |
671aa708 NN |
6244 | ;; |
6245 | esac | |
6246 | ;; | |
6247 | esac | |
6248 | ;; | |
6249 | esac | |
b91f0a41 CV |
6250 | case "$target" in |
6251 | *-mingw*) | |
6252 | # Can't be handled as Cygwin above since Mingw does not use newlib. | |
6253 | 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' ;; | |
6254 | esac | |
671aa708 | 6255 | |
6691a79e ME |
6256 | # Allow the user to override the flags for |
6257 | # our build compiler if desired. | |
f019adc1 MF |
6258 | if test x"${build}" = x"${host}" ; then |
6259 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
6260 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
6261 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
6262 | fi | |
6691a79e | 6263 | |
671aa708 NN |
6264 | # On Canadian crosses, we'll be searching the right directories for |
6265 | # the previously-installed cross compiler, so don't bother to add | |
6266 | # flags for directories within the install tree of the compiler | |
6267 | # being built; programs in there won't even run. | |
6268 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
6269 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 6270 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
6271 | fi |
6272 | ||
6273 | if test "x${use_gnu_ld}" = x && | |
6274 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
6275 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 6276 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
6277 | fi |
6278 | ||
e88a2c09 DD |
6279 | # Search for other target-specific linker scripts and such. |
6280 | case "${target}" in | |
3e19841a PB |
6281 | mep*) |
6282 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
6283 | ;; | |
e88a2c09 DD |
6284 | esac |
6285 | ||
671aa708 | 6286 | # Makefile fragments. |
7b61653a PE |
6287 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
6288 | do | |
6289 | eval fragval=\$$frag | |
6290 | if test $fragval != /dev/null; then | |
6291 | eval $frag=${srcdir}/$fragval | |
6292 | fi | |
6293 | done | |
671aa708 NN |
6294 | |
6295 | ||
6296 | ||
6297 | ||
6298 | ||
6299 | # Miscellanea: directories, flags, etc. | |
6300 | ||
6301 | ||
6302 | ||
6303 | ||
6304 | ||
6305 | ||
6306 | ||
d89f0ad6 | 6307 | |
23f6b2f9 | 6308 | # Build module lists & subconfigure args. |
671aa708 NN |
6309 | |
6310 | ||
6311 | ||
2abefe3d PB |
6312 | # Host module lists & subconfigure args. |
6313 | ||
6314 | ||
6315 | ||
6316 | # Target module lists & subconfigure args. | |
6317 | ||
6318 | ||
6319 | ||
6320 | # Build tools. | |
6321 | ||
6322 | ||
6323 | ||
0999159b PB |
6324 | |
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | ||
6333 | ||
6334 | ||
6335 | ||
6336 | ||
6337 | ||
2abefe3d PB |
6338 | # Generate default definitions for YACC, M4, LEX and other programs that run |
6339 | # on the build machine. These are used if the Makefile can't locate these | |
6340 | # programs in objdir. | |
6341 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
6342 | ||
6343 | for ac_prog in 'bison -y' byacc yacc | |
6344 | do | |
1c710c3c | 6345 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6346 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6349 | if test "${ac_cv_prog_YACC+set}" = set; then |
6350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6351 | else |
6352 | if test -n "$YACC"; then | |
6353 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6354 | else | |
1c710c3c DJ |
6355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6356 | for as_dir in $PATH | |
6357 | do | |
6358 | IFS=$as_save_IFS | |
6359 | test -z "$as_dir" && as_dir=. | |
6360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6362 | ac_cv_prog_YACC="$ac_prog" |
6363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6364 | break 2 | |
6365 | fi | |
6366 | done | |
6367 | done | |
6368 | ||
2abefe3d PB |
6369 | fi |
6370 | fi | |
1c710c3c | 6371 | YACC=$ac_cv_prog_YACC |
2abefe3d | 6372 | if test -n "$YACC"; then |
2aeb72e9 DD |
6373 | echo "$as_me:$LINENO: result: $YACC" >&5 |
6374 | echo "${ECHO_T}$YACC" >&6 | |
2abefe3d | 6375 | else |
2aeb72e9 DD |
6376 | echo "$as_me:$LINENO: result: no" >&5 |
6377 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6378 | fi |
6379 | ||
1c710c3c | 6380 | test -n "$YACC" && break |
2abefe3d PB |
6381 | done |
6382 | test -n "$YACC" || YACC="$MISSING bison -y" | |
6383 | ||
6384 | case " $build_configdirs " in | |
6385 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
6386 | *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;; | |
6387 | esac | |
6388 | ||
6389 | for ac_prog in bison | |
6390 | do | |
1c710c3c | 6391 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6392 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6395 | if test "${ac_cv_prog_BISON+set}" = set; then |
6396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6397 | else |
6398 | if test -n "$BISON"; then | |
6399 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
6400 | else | |
1c710c3c DJ |
6401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6402 | for as_dir in $PATH | |
6403 | do | |
6404 | IFS=$as_save_IFS | |
6405 | test -z "$as_dir" && as_dir=. | |
6406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6408 | ac_cv_prog_BISON="$ac_prog" |
6409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6410 | break 2 | |
6411 | fi | |
6412 | done | |
6413 | done | |
6414 | ||
2abefe3d PB |
6415 | fi |
6416 | fi | |
1c710c3c | 6417 | BISON=$ac_cv_prog_BISON |
2abefe3d | 6418 | if test -n "$BISON"; then |
2aeb72e9 DD |
6419 | echo "$as_me:$LINENO: result: $BISON" >&5 |
6420 | echo "${ECHO_T}$BISON" >&6 | |
2abefe3d | 6421 | else |
2aeb72e9 DD |
6422 | echo "$as_me:$LINENO: result: no" >&5 |
6423 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6424 | fi |
6425 | ||
1c710c3c | 6426 | test -n "$BISON" && break |
2abefe3d PB |
6427 | done |
6428 | test -n "$BISON" || BISON="$MISSING bison" | |
6429 | ||
6430 | case " $build_configdirs " in | |
6431 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
6432 | esac | |
6433 | ||
6434 | for ac_prog in gm4 gnum4 m4 | |
6435 | do | |
1c710c3c | 6436 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6437 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6438 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6440 | if test "${ac_cv_prog_M4+set}" = set; then |
6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6442 | else |
6443 | if test -n "$M4"; then | |
6444 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
6445 | else | |
1c710c3c DJ |
6446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6447 | for as_dir in $PATH | |
6448 | do | |
6449 | IFS=$as_save_IFS | |
6450 | test -z "$as_dir" && as_dir=. | |
6451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6453 | ac_cv_prog_M4="$ac_prog" |
6454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6455 | break 2 | |
6456 | fi | |
6457 | done | |
6458 | done | |
6459 | ||
2abefe3d PB |
6460 | fi |
6461 | fi | |
1c710c3c | 6462 | M4=$ac_cv_prog_M4 |
2abefe3d | 6463 | if test -n "$M4"; then |
2aeb72e9 DD |
6464 | echo "$as_me:$LINENO: result: $M4" >&5 |
6465 | echo "${ECHO_T}$M4" >&6 | |
2abefe3d | 6466 | else |
2aeb72e9 DD |
6467 | echo "$as_me:$LINENO: result: no" >&5 |
6468 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6469 | fi |
6470 | ||
1c710c3c | 6471 | test -n "$M4" && break |
2abefe3d PB |
6472 | done |
6473 | test -n "$M4" || M4="$MISSING m4" | |
6474 | ||
6475 | case " $build_configdirs " in | |
6476 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
6477 | esac | |
6478 | ||
6479 | for ac_prog in flex lex | |
6480 | do | |
1c710c3c | 6481 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6482 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6483 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6485 | if test "${ac_cv_prog_LEX+set}" = set; then |
6486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6487 | else |
6488 | if test -n "$LEX"; then | |
6489 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6490 | else | |
1c710c3c DJ |
6491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6492 | for as_dir in $PATH | |
6493 | do | |
6494 | IFS=$as_save_IFS | |
6495 | test -z "$as_dir" && as_dir=. | |
6496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6497 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6498 | ac_cv_prog_LEX="$ac_prog" |
6499 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6500 | break 2 | |
6501 | fi | |
6502 | done | |
6503 | done | |
6504 | ||
2abefe3d PB |
6505 | fi |
6506 | fi | |
1c710c3c | 6507 | LEX=$ac_cv_prog_LEX |
2abefe3d | 6508 | if test -n "$LEX"; then |
2aeb72e9 DD |
6509 | echo "$as_me:$LINENO: result: $LEX" >&5 |
6510 | echo "${ECHO_T}$LEX" >&6 | |
2abefe3d | 6511 | else |
2aeb72e9 DD |
6512 | echo "$as_me:$LINENO: result: no" >&5 |
6513 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6514 | fi |
6515 | ||
1c710c3c | 6516 | test -n "$LEX" && break |
2abefe3d PB |
6517 | done |
6518 | test -n "$LEX" || LEX="$MISSING flex" | |
6519 | ||
6520 | case " $build_configdirs " in | |
6521 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
6522 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
6523 | esac | |
6524 | ||
6525 | for ac_prog in flex | |
6526 | do | |
1c710c3c | 6527 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6528 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6531 | if test "${ac_cv_prog_FLEX+set}" = set; then |
6532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6533 | else |
6534 | if test -n "$FLEX"; then | |
6535 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
6536 | else | |
1c710c3c DJ |
6537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6538 | for as_dir in $PATH | |
6539 | do | |
6540 | IFS=$as_save_IFS | |
6541 | test -z "$as_dir" && as_dir=. | |
6542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6544 | ac_cv_prog_FLEX="$ac_prog" |
6545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6546 | break 2 | |
6547 | fi | |
6548 | done | |
6549 | done | |
6550 | ||
2abefe3d PB |
6551 | fi |
6552 | fi | |
1c710c3c | 6553 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 6554 | if test -n "$FLEX"; then |
2aeb72e9 DD |
6555 | echo "$as_me:$LINENO: result: $FLEX" >&5 |
6556 | echo "${ECHO_T}$FLEX" >&6 | |
2abefe3d | 6557 | else |
2aeb72e9 DD |
6558 | echo "$as_me:$LINENO: result: no" >&5 |
6559 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6560 | fi |
6561 | ||
1c710c3c | 6562 | test -n "$FLEX" && break |
2abefe3d PB |
6563 | done |
6564 | test -n "$FLEX" || FLEX="$MISSING flex" | |
6565 | ||
6566 | case " $build_configdirs " in | |
6567 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
6568 | esac | |
6569 | ||
6570 | for ac_prog in makeinfo | |
6571 | do | |
1c710c3c | 6572 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6573 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6574 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6576 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
6577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6578 | else |
6579 | if test -n "$MAKEINFO"; then | |
6580 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
6581 | else | |
1c710c3c DJ |
6582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6583 | for as_dir in $PATH | |
6584 | do | |
6585 | IFS=$as_save_IFS | |
6586 | test -z "$as_dir" && as_dir=. | |
6587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6588 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6589 | ac_cv_prog_MAKEINFO="$ac_prog" |
6590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6591 | break 2 | |
6592 | fi | |
6593 | done | |
6594 | done | |
6595 | ||
2abefe3d PB |
6596 | fi |
6597 | fi | |
1c710c3c | 6598 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 6599 | if test -n "$MAKEINFO"; then |
2aeb72e9 DD |
6600 | echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
6601 | echo "${ECHO_T}$MAKEINFO" >&6 | |
2abefe3d | 6602 | else |
2aeb72e9 DD |
6603 | echo "$as_me:$LINENO: result: no" >&5 |
6604 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
6605 | fi |
6606 | ||
1c710c3c | 6607 | test -n "$MAKEINFO" && break |
2abefe3d PB |
6608 | done |
6609 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
6610 | ||
6611 | case " $build_configdirs " in | |
6612 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
6613 | *) | |
6614 | ||
4fe7e755 | 6615 | # For an installed makeinfo, we require it to be from texinfo 4.6 or |
2abefe3d PB |
6616 | # higher, else we use the "missing" dummy. |
6617 | if ${MAKEINFO} --version \ | |
4fe7e755 | 6618 | | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
6619 | : |
6620 | else | |
6621 | MAKEINFO="$MISSING makeinfo" | |
6622 | fi | |
6623 | ;; | |
6624 | ||
6625 | esac | |
671aa708 | 6626 | |
2abefe3d | 6627 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 6628 | |
2abefe3d PB |
6629 | for ac_prog in expect |
6630 | do | |
1c710c3c | 6631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6632 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6635 | if test "${ac_cv_prog_EXPECT+set}" = set; then |
6636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6637 | else |
6638 | if test -n "$EXPECT"; then | |
6639 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
6640 | else | |
1c710c3c DJ |
6641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6642 | for as_dir in $PATH | |
6643 | do | |
6644 | IFS=$as_save_IFS | |
6645 | test -z "$as_dir" && as_dir=. | |
6646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6648 | ac_cv_prog_EXPECT="$ac_prog" |
6649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6650 | break 2 | |
6651 | fi | |
6652 | done | |
6653 | done | |
6654 | ||
2abefe3d PB |
6655 | fi |
6656 | fi | |
1c710c3c | 6657 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 6658 | if test -n "$EXPECT"; then |
2aeb72e9 DD |
6659 | echo "$as_me:$LINENO: result: $EXPECT" >&5 |
6660 | echo "${ECHO_T}$EXPECT" >&6 | |
2abefe3d | 6661 | else |
2aeb72e9 DD |
6662 | echo "$as_me:$LINENO: result: no" >&5 |
6663 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 6664 | fi |
671aa708 | 6665 | |
1c710c3c | 6666 | test -n "$EXPECT" && break |
2abefe3d PB |
6667 | done |
6668 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 6669 | |
2abefe3d PB |
6670 | case " $configdirs " in |
6671 | *" expect "*) | |
6672 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
6673 | ;; | |
6674 | esac | |
671aa708 | 6675 | |
2abefe3d PB |
6676 | for ac_prog in runtest |
6677 | do | |
1c710c3c | 6678 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 6679 | set dummy $ac_prog; ac_word=$2 |
2aeb72e9 DD |
6680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6682 | if test "${ac_cv_prog_RUNTEST+set}" = set; then |
6683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
6684 | else |
6685 | if test -n "$RUNTEST"; then | |
6686 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 6687 | else |
1c710c3c DJ |
6688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6689 | for as_dir in $PATH | |
6690 | do | |
6691 | IFS=$as_save_IFS | |
6692 | test -z "$as_dir" && as_dir=. | |
6693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6695 | ac_cv_prog_RUNTEST="$ac_prog" |
6696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6697 | break 2 | |
6698 | fi | |
6699 | done | |
6700 | done | |
6701 | ||
2abefe3d PB |
6702 | fi |
6703 | fi | |
1c710c3c | 6704 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 6705 | if test -n "$RUNTEST"; then |
2aeb72e9 DD |
6706 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
6707 | echo "${ECHO_T}$RUNTEST" >&6 | |
2abefe3d | 6708 | else |
2aeb72e9 DD |
6709 | echo "$as_me:$LINENO: result: no" >&5 |
6710 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 6711 | fi |
671aa708 | 6712 | |
1c710c3c | 6713 | test -n "$RUNTEST" && break |
2abefe3d PB |
6714 | done |
6715 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 6716 | |
2abefe3d PB |
6717 | case " $configdirs " in |
6718 | *" dejagnu "*) | |
c394e891 | 6719 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
6720 | ;; |
6721 | esac | |
671aa708 NN |
6722 | |
6723 | ||
671aa708 | 6724 | # Host tools. |
ca9f4b81 AO |
6725 | ncn_tool_prefix= |
6726 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
6727 | ncn_target_tool_prefix= | |
6728 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
6729 | ||
278a7a38 AO |
6730 | |
6731 | ||
6732 | if test -n "$AR"; then | |
6733 | ac_cv_prog_AR=$AR | |
6734 | elif test -n "$ac_cv_prog_AR"; then | |
6735 | AR=$ac_cv_prog_AR | |
6736 | fi | |
6737 | ||
6738 | if test -n "$ac_cv_prog_AR"; then | |
6739 | for ncn_progname in ar; do | |
6740 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6741 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
6744 | if test "${ac_cv_prog_AR+set}" = set; then |
6745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6746 | else | |
6747 | if test -n "$AR"; then | |
6748 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6749 | else | |
6750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6751 | for as_dir in $PATH | |
6752 | do | |
6753 | IFS=$as_save_IFS | |
6754 | test -z "$as_dir" && as_dir=. | |
6755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
6757 | ac_cv_prog_AR="${ncn_progname}" |
6758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6759 | break 2 | |
6760 | fi | |
6761 | done | |
6762 | done | |
6763 | ||
6764 | fi | |
6765 | fi | |
6766 | AR=$ac_cv_prog_AR | |
6767 | if test -n "$AR"; then | |
2aeb72e9 DD |
6768 | echo "$as_me:$LINENO: result: $AR" >&5 |
6769 | echo "${ECHO_T}$AR" >&6 | |
278a7a38 | 6770 | else |
2aeb72e9 DD |
6771 | echo "$as_me:$LINENO: result: no" >&5 |
6772 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
6773 | fi |
6774 | ||
6775 | done | |
6776 | fi | |
6777 | ||
6778 | for ncn_progname in ar; do | |
2693c0b0 PB |
6779 | if test -n "$ncn_tool_prefix"; then |
6780 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6781 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6784 | if test "${ac_cv_prog_AR+set}" = set; then |
6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6786 | else |
6787 | if test -n "$AR"; then | |
6788 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6789 | else | |
1c710c3c DJ |
6790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6791 | for as_dir in $PATH | |
6792 | do | |
6793 | IFS=$as_save_IFS | |
6794 | test -z "$as_dir" && as_dir=. | |
6795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6797 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
6798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6799 | break 2 | |
6800 | fi | |
6801 | done | |
6802 | done | |
6803 | ||
ca9f4b81 AO |
6804 | fi |
6805 | fi | |
1c710c3c | 6806 | AR=$ac_cv_prog_AR |
ca9f4b81 | 6807 | if test -n "$AR"; then |
2aeb72e9 DD |
6808 | echo "$as_me:$LINENO: result: $AR" >&5 |
6809 | echo "${ECHO_T}$AR" >&6 | |
ca9f4b81 | 6810 | else |
2aeb72e9 DD |
6811 | echo "$as_me:$LINENO: result: no" >&5 |
6812 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6813 | fi |
6814 | ||
2693c0b0 PB |
6815 | fi |
6816 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
6817 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6818 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6821 | if test "${ac_cv_prog_AR+set}" = set; then |
6822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6823 | else |
2693c0b0 | 6824 | if test -n "$AR"; then |
af71363e AS |
6825 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6826 | else | |
1c710c3c DJ |
6827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6828 | for as_dir in $PATH | |
6829 | do | |
6830 | IFS=$as_save_IFS | |
6831 | test -z "$as_dir" && as_dir=. | |
6832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6834 | ac_cv_prog_AR="${ncn_progname}" |
6835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6836 | break 2 | |
6837 | fi | |
6838 | done | |
6839 | done | |
6840 | ||
ca9f4b81 AO |
6841 | fi |
6842 | fi | |
1c710c3c | 6843 | AR=$ac_cv_prog_AR |
2693c0b0 | 6844 | if test -n "$AR"; then |
2aeb72e9 DD |
6845 | echo "$as_me:$LINENO: result: $AR" >&5 |
6846 | echo "${ECHO_T}$AR" >&6 | |
ca9f4b81 | 6847 | else |
2aeb72e9 DD |
6848 | echo "$as_me:$LINENO: result: no" >&5 |
6849 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6850 | fi |
1c710c3c | 6851 | |
2693c0b0 PB |
6852 | fi |
6853 | test -n "$ac_cv_prog_AR" && break | |
6854 | done | |
6855 | ||
6856 | if test -z "$ac_cv_prog_AR" ; then | |
6857 | set dummy ar | |
6858 | if test $build = $host ; then | |
6859 | AR="$2" | |
ca9f4b81 | 6860 | else |
2693c0b0 | 6861 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 6862 | fi |
ca9f4b81 AO |
6863 | fi |
6864 | ||
278a7a38 AO |
6865 | |
6866 | ||
6867 | if test -n "$AS"; then | |
6868 | ac_cv_prog_AS=$AS | |
6869 | elif test -n "$ac_cv_prog_AS"; then | |
6870 | AS=$ac_cv_prog_AS | |
6871 | fi | |
6872 | ||
6873 | if test -n "$ac_cv_prog_AS"; then | |
6874 | for ncn_progname in as; do | |
6875 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6876 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
6879 | if test "${ac_cv_prog_AS+set}" = set; then |
6880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6881 | else | |
6882 | if test -n "$AS"; then | |
6883 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6884 | else | |
6885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6886 | for as_dir in $PATH | |
6887 | do | |
6888 | IFS=$as_save_IFS | |
6889 | test -z "$as_dir" && as_dir=. | |
6890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
6892 | ac_cv_prog_AS="${ncn_progname}" |
6893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6894 | break 2 | |
6895 | fi | |
6896 | done | |
6897 | done | |
6898 | ||
6899 | fi | |
6900 | fi | |
6901 | AS=$ac_cv_prog_AS | |
6902 | if test -n "$AS"; then | |
2aeb72e9 DD |
6903 | echo "$as_me:$LINENO: result: $AS" >&5 |
6904 | echo "${ECHO_T}$AS" >&6 | |
278a7a38 | 6905 | else |
2aeb72e9 DD |
6906 | echo "$as_me:$LINENO: result: no" >&5 |
6907 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
6908 | fi |
6909 | ||
6910 | done | |
6911 | fi | |
6912 | ||
6913 | for ncn_progname in as; do | |
2693c0b0 PB |
6914 | if test -n "$ncn_tool_prefix"; then |
6915 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6916 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6919 | if test "${ac_cv_prog_AS+set}" = set; then |
6920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
6921 | else |
6922 | if test -n "$AS"; then | |
6923 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 6924 | else |
1c710c3c DJ |
6925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6926 | for as_dir in $PATH | |
6927 | do | |
6928 | IFS=$as_save_IFS | |
6929 | test -z "$as_dir" && as_dir=. | |
6930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6932 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
6933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6934 | break 2 | |
6935 | fi | |
6936 | done | |
6937 | done | |
6938 | ||
ca9f4b81 AO |
6939 | fi |
6940 | fi | |
1c710c3c | 6941 | AS=$ac_cv_prog_AS |
ca9f4b81 | 6942 | if test -n "$AS"; then |
2aeb72e9 DD |
6943 | echo "$as_me:$LINENO: result: $AS" >&5 |
6944 | echo "${ECHO_T}$AS" >&6 | |
ca9f4b81 | 6945 | else |
2aeb72e9 DD |
6946 | echo "$as_me:$LINENO: result: no" >&5 |
6947 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6948 | fi |
6949 | ||
2693c0b0 PB |
6950 | fi |
6951 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
6952 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6953 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
6954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
6956 | if test "${ac_cv_prog_AS+set}" = set; then |
6957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6958 | else |
2693c0b0 PB |
6959 | if test -n "$AS"; then |
6960 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 6961 | else |
1c710c3c DJ |
6962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6963 | for as_dir in $PATH | |
6964 | do | |
6965 | IFS=$as_save_IFS | |
6966 | test -z "$as_dir" && as_dir=. | |
6967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 6968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
6969 | ac_cv_prog_AS="${ncn_progname}" |
6970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6971 | break 2 | |
6972 | fi | |
6973 | done | |
6974 | done | |
6975 | ||
ca9f4b81 AO |
6976 | fi |
6977 | fi | |
1c710c3c | 6978 | AS=$ac_cv_prog_AS |
2693c0b0 | 6979 | if test -n "$AS"; then |
2aeb72e9 DD |
6980 | echo "$as_me:$LINENO: result: $AS" >&5 |
6981 | echo "${ECHO_T}$AS" >&6 | |
ca9f4b81 | 6982 | else |
2aeb72e9 DD |
6983 | echo "$as_me:$LINENO: result: no" >&5 |
6984 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6985 | fi |
1c710c3c | 6986 | |
2693c0b0 PB |
6987 | fi |
6988 | test -n "$ac_cv_prog_AS" && break | |
6989 | done | |
6990 | ||
6991 | if test -z "$ac_cv_prog_AS" ; then | |
6992 | set dummy as | |
6993 | if test $build = $host ; then | |
6994 | AS="$2" | |
ca9f4b81 | 6995 | else |
2693c0b0 | 6996 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 6997 | fi |
ca9f4b81 AO |
6998 | fi |
6999 | ||
278a7a38 AO |
7000 | |
7001 | ||
7002 | if test -n "$DLLTOOL"; then | |
7003 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
7004 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
7005 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7006 | fi | |
7007 | ||
7008 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
7009 | for ncn_progname in dlltool; do | |
7010 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7011 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7012 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7014 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
7015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7016 | else | |
7017 | if test -n "$DLLTOOL"; then | |
7018 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7019 | else | |
7020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7021 | for as_dir in $PATH | |
7022 | do | |
7023 | IFS=$as_save_IFS | |
7024 | test -z "$as_dir" && as_dir=. | |
7025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7027 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
7028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7029 | break 2 | |
7030 | fi | |
7031 | done | |
7032 | done | |
7033 | ||
7034 | fi | |
7035 | fi | |
7036 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7037 | if test -n "$DLLTOOL"; then | |
2aeb72e9 DD |
7038 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
7039 | echo "${ECHO_T}$DLLTOOL" >&6 | |
278a7a38 | 7040 | else |
2aeb72e9 DD |
7041 | echo "$as_me:$LINENO: result: no" >&5 |
7042 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7043 | fi |
7044 | ||
7045 | done | |
7046 | fi | |
7047 | ||
7048 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
7049 | if test -n "$ncn_tool_prefix"; then |
7050 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7051 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7052 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7054 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
7055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7056 | else |
7057 | if test -n "$DLLTOOL"; then | |
7058 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7059 | else | |
1c710c3c DJ |
7060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7061 | for as_dir in $PATH | |
7062 | do | |
7063 | IFS=$as_save_IFS | |
7064 | test -z "$as_dir" && as_dir=. | |
7065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7066 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7067 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
7068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7069 | break 2 | |
7070 | fi | |
7071 | done | |
7072 | done | |
7073 | ||
ca9f4b81 AO |
7074 | fi |
7075 | fi | |
1c710c3c | 7076 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 7077 | if test -n "$DLLTOOL"; then |
2aeb72e9 DD |
7078 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
7079 | echo "${ECHO_T}$DLLTOOL" >&6 | |
ca9f4b81 | 7080 | else |
2aeb72e9 DD |
7081 | echo "$as_me:$LINENO: result: no" >&5 |
7082 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7083 | fi |
7084 | ||
2693c0b0 PB |
7085 | fi |
7086 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
7087 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7088 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7091 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
7092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7093 | else |
2693c0b0 PB |
7094 | if test -n "$DLLTOOL"; then |
7095 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 7096 | else |
1c710c3c DJ |
7097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7098 | for as_dir in $PATH | |
7099 | do | |
7100 | IFS=$as_save_IFS | |
7101 | test -z "$as_dir" && as_dir=. | |
7102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7103 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7104 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
7105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7106 | break 2 | |
7107 | fi | |
7108 | done | |
7109 | done | |
7110 | ||
ca9f4b81 AO |
7111 | fi |
7112 | fi | |
1c710c3c | 7113 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 7114 | if test -n "$DLLTOOL"; then |
2aeb72e9 DD |
7115 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
7116 | echo "${ECHO_T}$DLLTOOL" >&6 | |
ca9f4b81 | 7117 | else |
2aeb72e9 DD |
7118 | echo "$as_me:$LINENO: result: no" >&5 |
7119 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7120 | fi |
1c710c3c | 7121 | |
2693c0b0 PB |
7122 | fi |
7123 | test -n "$ac_cv_prog_DLLTOOL" && break | |
7124 | done | |
7125 | ||
7126 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
7127 | set dummy dlltool | |
7128 | if test $build = $host ; then | |
7129 | DLLTOOL="$2" | |
ca9f4b81 | 7130 | else |
2693c0b0 | 7131 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 7132 | fi |
ca9f4b81 AO |
7133 | fi |
7134 | ||
278a7a38 AO |
7135 | |
7136 | ||
7137 | if test -n "$LD"; then | |
7138 | ac_cv_prog_LD=$LD | |
7139 | elif test -n "$ac_cv_prog_LD"; then | |
7140 | LD=$ac_cv_prog_LD | |
7141 | fi | |
7142 | ||
7143 | if test -n "$ac_cv_prog_LD"; then | |
7144 | for ncn_progname in ld; do | |
7145 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7146 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7149 | if test "${ac_cv_prog_LD+set}" = set; then |
7150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7151 | else | |
7152 | if test -n "$LD"; then | |
7153 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7154 | else | |
7155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7156 | for as_dir in $PATH | |
7157 | do | |
7158 | IFS=$as_save_IFS | |
7159 | test -z "$as_dir" && as_dir=. | |
7160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7162 | ac_cv_prog_LD="${ncn_progname}" |
7163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7164 | break 2 | |
7165 | fi | |
7166 | done | |
7167 | done | |
7168 | ||
7169 | fi | |
7170 | fi | |
7171 | LD=$ac_cv_prog_LD | |
7172 | if test -n "$LD"; then | |
2aeb72e9 DD |
7173 | echo "$as_me:$LINENO: result: $LD" >&5 |
7174 | echo "${ECHO_T}$LD" >&6 | |
278a7a38 | 7175 | else |
2aeb72e9 DD |
7176 | echo "$as_me:$LINENO: result: no" >&5 |
7177 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7178 | fi |
7179 | ||
7180 | done | |
7181 | fi | |
7182 | ||
7183 | for ncn_progname in ld; do | |
2693c0b0 PB |
7184 | if test -n "$ncn_tool_prefix"; then |
7185 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7186 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7189 | if test "${ac_cv_prog_LD+set}" = set; then |
7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7191 | else |
7192 | if test -n "$LD"; then | |
7193 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7194 | else | |
1c710c3c DJ |
7195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7196 | for as_dir in $PATH | |
7197 | do | |
7198 | IFS=$as_save_IFS | |
7199 | test -z "$as_dir" && as_dir=. | |
7200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7202 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
7203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7204 | break 2 | |
7205 | fi | |
7206 | done | |
7207 | done | |
7208 | ||
ca9f4b81 AO |
7209 | fi |
7210 | fi | |
1c710c3c | 7211 | LD=$ac_cv_prog_LD |
ca9f4b81 | 7212 | if test -n "$LD"; then |
2aeb72e9 DD |
7213 | echo "$as_me:$LINENO: result: $LD" >&5 |
7214 | echo "${ECHO_T}$LD" >&6 | |
ca9f4b81 | 7215 | else |
2aeb72e9 DD |
7216 | echo "$as_me:$LINENO: result: no" >&5 |
7217 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7218 | fi |
7219 | ||
2693c0b0 PB |
7220 | fi |
7221 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
7222 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7223 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7226 | if test "${ac_cv_prog_LD+set}" = set; then |
7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7228 | else |
2693c0b0 PB |
7229 | if test -n "$LD"; then |
7230 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 7231 | else |
1c710c3c DJ |
7232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7233 | for as_dir in $PATH | |
7234 | do | |
7235 | IFS=$as_save_IFS | |
7236 | test -z "$as_dir" && as_dir=. | |
7237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7239 | ac_cv_prog_LD="${ncn_progname}" |
7240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7241 | break 2 | |
7242 | fi | |
7243 | done | |
7244 | done | |
7245 | ||
ca9f4b81 AO |
7246 | fi |
7247 | fi | |
1c710c3c | 7248 | LD=$ac_cv_prog_LD |
2693c0b0 | 7249 | if test -n "$LD"; then |
2aeb72e9 DD |
7250 | echo "$as_me:$LINENO: result: $LD" >&5 |
7251 | echo "${ECHO_T}$LD" >&6 | |
ca9f4b81 | 7252 | else |
2aeb72e9 DD |
7253 | echo "$as_me:$LINENO: result: no" >&5 |
7254 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7255 | fi |
1c710c3c | 7256 | |
2693c0b0 PB |
7257 | fi |
7258 | test -n "$ac_cv_prog_LD" && break | |
7259 | done | |
7260 | ||
7261 | if test -z "$ac_cv_prog_LD" ; then | |
7262 | set dummy ld | |
7263 | if test $build = $host ; then | |
7264 | LD="$2" | |
ca9f4b81 | 7265 | else |
2693c0b0 | 7266 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 7267 | fi |
ca9f4b81 AO |
7268 | fi |
7269 | ||
278a7a38 AO |
7270 | |
7271 | ||
7272 | if test -n "$LIPO"; then | |
7273 | ac_cv_prog_LIPO=$LIPO | |
7274 | elif test -n "$ac_cv_prog_LIPO"; then | |
7275 | LIPO=$ac_cv_prog_LIPO | |
7276 | fi | |
7277 | ||
7278 | if test -n "$ac_cv_prog_LIPO"; then | |
7279 | for ncn_progname in lipo; do | |
7280 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7281 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7284 | if test "${ac_cv_prog_LIPO+set}" = set; then |
7285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7286 | else | |
7287 | if test -n "$LIPO"; then | |
7288 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7289 | else | |
7290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7291 | for as_dir in $PATH | |
7292 | do | |
7293 | IFS=$as_save_IFS | |
7294 | test -z "$as_dir" && as_dir=. | |
7295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7296 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7297 | ac_cv_prog_LIPO="${ncn_progname}" |
7298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7299 | break 2 | |
7300 | fi | |
7301 | done | |
7302 | done | |
7303 | ||
7304 | fi | |
7305 | fi | |
7306 | LIPO=$ac_cv_prog_LIPO | |
7307 | if test -n "$LIPO"; then | |
2aeb72e9 DD |
7308 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
7309 | echo "${ECHO_T}$LIPO" >&6 | |
278a7a38 | 7310 | else |
2aeb72e9 DD |
7311 | echo "$as_me:$LINENO: result: no" >&5 |
7312 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7313 | fi |
7314 | ||
7315 | done | |
7316 | fi | |
7317 | ||
7318 | for ncn_progname in lipo; do | |
2abefe3d PB |
7319 | if test -n "$ncn_tool_prefix"; then |
7320 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7321 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7322 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7324 | if test "${ac_cv_prog_LIPO+set}" = set; then |
7325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7326 | else |
7327 | if test -n "$LIPO"; then | |
7328 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7329 | else | |
1c710c3c DJ |
7330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7331 | for as_dir in $PATH | |
7332 | do | |
7333 | IFS=$as_save_IFS | |
7334 | test -z "$as_dir" && as_dir=. | |
7335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7336 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7337 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
7338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7339 | break 2 | |
7340 | fi | |
7341 | done | |
7342 | done | |
7343 | ||
2abefe3d PB |
7344 | fi |
7345 | fi | |
1c710c3c | 7346 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 7347 | if test -n "$LIPO"; then |
2aeb72e9 DD |
7348 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
7349 | echo "${ECHO_T}$LIPO" >&6 | |
2abefe3d | 7350 | else |
2aeb72e9 DD |
7351 | echo "$as_me:$LINENO: result: no" >&5 |
7352 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
7353 | fi |
7354 | ||
7355 | fi | |
7356 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
7357 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7358 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7361 | if test "${ac_cv_prog_LIPO+set}" = set; then |
7362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7363 | else |
7364 | if test -n "$LIPO"; then | |
7365 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7366 | else | |
1c710c3c DJ |
7367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7368 | for as_dir in $PATH | |
7369 | do | |
7370 | IFS=$as_save_IFS | |
7371 | test -z "$as_dir" && as_dir=. | |
7372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7374 | ac_cv_prog_LIPO="${ncn_progname}" |
7375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7376 | break 2 | |
7377 | fi | |
7378 | done | |
7379 | done | |
7380 | ||
2abefe3d PB |
7381 | fi |
7382 | fi | |
1c710c3c | 7383 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 7384 | if test -n "$LIPO"; then |
2aeb72e9 DD |
7385 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
7386 | echo "${ECHO_T}$LIPO" >&6 | |
2abefe3d | 7387 | else |
2aeb72e9 DD |
7388 | echo "$as_me:$LINENO: result: no" >&5 |
7389 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 7390 | fi |
1c710c3c | 7391 | |
2abefe3d PB |
7392 | fi |
7393 | test -n "$ac_cv_prog_LIPO" && break | |
7394 | done | |
7395 | ||
7396 | if test -z "$ac_cv_prog_LIPO" ; then | |
7397 | set dummy lipo | |
7398 | if test $build = $host ; then | |
7399 | LIPO="$2" | |
7400 | else | |
7401 | LIPO="${ncn_tool_prefix}$2" | |
7402 | fi | |
7403 | fi | |
7404 | ||
278a7a38 AO |
7405 | |
7406 | ||
7407 | if test -n "$NM"; then | |
7408 | ac_cv_prog_NM=$NM | |
7409 | elif test -n "$ac_cv_prog_NM"; then | |
7410 | NM=$ac_cv_prog_NM | |
7411 | fi | |
7412 | ||
7413 | if test -n "$ac_cv_prog_NM"; then | |
7414 | for ncn_progname in nm; do | |
7415 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7416 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7417 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7419 | if test "${ac_cv_prog_NM+set}" = set; then |
7420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7421 | else |
7422 | if test -n "$NM"; then | |
7423 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
7424 | else | |
1c710c3c DJ |
7425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7426 | for as_dir in $PATH | |
7427 | do | |
7428 | IFS=$as_save_IFS | |
7429 | test -z "$as_dir" && as_dir=. | |
7430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7431 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 7432 | ac_cv_prog_NM="${ncn_progname}" |
1c710c3c DJ |
7433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7434 | break 2 | |
7435 | fi | |
7436 | done | |
7437 | done | |
7438 | ||
ca9f4b81 AO |
7439 | fi |
7440 | fi | |
1c710c3c | 7441 | NM=$ac_cv_prog_NM |
ca9f4b81 | 7442 | if test -n "$NM"; then |
2aeb72e9 DD |
7443 | echo "$as_me:$LINENO: result: $NM" >&5 |
7444 | echo "${ECHO_T}$NM" >&6 | |
ca9f4b81 | 7445 | else |
2aeb72e9 DD |
7446 | echo "$as_me:$LINENO: result: no" >&5 |
7447 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7448 | fi |
7449 | ||
278a7a38 AO |
7450 | done |
7451 | fi | |
7452 | ||
7453 | for ncn_progname in nm; do | |
7454 | if test -n "$ncn_tool_prefix"; then | |
7455 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7456 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7457 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7459 | if test "${ac_cv_prog_NM+set}" = set; then |
7460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7461 | else |
2693c0b0 PB |
7462 | if test -n "$NM"; then |
7463 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 7464 | else |
1c710c3c DJ |
7465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7466 | for as_dir in $PATH | |
7467 | do | |
7468 | IFS=$as_save_IFS | |
7469 | test -z "$as_dir" && as_dir=. | |
7470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7471 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 7472 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
1c710c3c DJ |
7473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7474 | break 2 | |
7475 | fi | |
7476 | done | |
7477 | done | |
7478 | ||
ca9f4b81 AO |
7479 | fi |
7480 | fi | |
1c710c3c | 7481 | NM=$ac_cv_prog_NM |
2693c0b0 | 7482 | if test -n "$NM"; then |
2aeb72e9 DD |
7483 | echo "$as_me:$LINENO: result: $NM" >&5 |
7484 | echo "${ECHO_T}$NM" >&6 | |
ca9f4b81 | 7485 | else |
2aeb72e9 DD |
7486 | echo "$as_me:$LINENO: result: no" >&5 |
7487 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7488 | fi |
1c710c3c | 7489 | |
2693c0b0 | 7490 | fi |
278a7a38 AO |
7491 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
7492 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7493 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7496 | if test "${ac_cv_prog_NM+set}" = set; then |
7497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7498 | else | |
7499 | if test -n "$NM"; then | |
7500 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
7501 | else | |
7502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7503 | for as_dir in $PATH | |
7504 | do | |
7505 | IFS=$as_save_IFS | |
7506 | test -z "$as_dir" && as_dir=. | |
7507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7509 | ac_cv_prog_NM="${ncn_progname}" |
7510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7511 | break 2 | |
7512 | fi | |
7513 | done | |
7514 | done | |
7515 | ||
7516 | fi | |
7517 | fi | |
7518 | NM=$ac_cv_prog_NM | |
7519 | if test -n "$NM"; then | |
2aeb72e9 DD |
7520 | echo "$as_me:$LINENO: result: $NM" >&5 |
7521 | echo "${ECHO_T}$NM" >&6 | |
278a7a38 | 7522 | else |
2aeb72e9 DD |
7523 | echo "$as_me:$LINENO: result: no" >&5 |
7524 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7525 | fi |
7526 | ||
7527 | fi | |
7528 | test -n "$ac_cv_prog_NM" && break | |
7529 | done | |
7530 | ||
7531 | if test -z "$ac_cv_prog_NM" ; then | |
7532 | set dummy nm | |
7533 | if test $build = $host ; then | |
7534 | NM="$2" | |
7535 | else | |
7536 | NM="${ncn_tool_prefix}$2" | |
7537 | fi | |
7538 | fi | |
7539 | ||
7540 | ||
7541 | ||
7542 | if test -n "$RANLIB"; then | |
7543 | ac_cv_prog_RANLIB=$RANLIB | |
7544 | elif test -n "$ac_cv_prog_RANLIB"; then | |
7545 | RANLIB=$ac_cv_prog_RANLIB | |
7546 | fi | |
7547 | ||
7548 | if test -n "$ac_cv_prog_RANLIB"; then | |
7549 | for ncn_progname in ranlib; do | |
7550 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7551 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7554 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7556 | else | |
7557 | if test -n "$RANLIB"; then | |
7558 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7559 | else | |
7560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7561 | for as_dir in $PATH | |
7562 | do | |
7563 | IFS=$as_save_IFS | |
7564 | test -z "$as_dir" && as_dir=. | |
7565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7567 | ac_cv_prog_RANLIB="${ncn_progname}" |
7568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7569 | break 2 | |
7570 | fi | |
7571 | done | |
7572 | done | |
7573 | ||
7574 | fi | |
7575 | fi | |
7576 | RANLIB=$ac_cv_prog_RANLIB | |
7577 | if test -n "$RANLIB"; then | |
2aeb72e9 DD |
7578 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7579 | echo "${ECHO_T}$RANLIB" >&6 | |
278a7a38 | 7580 | else |
2aeb72e9 DD |
7581 | echo "$as_me:$LINENO: result: no" >&5 |
7582 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7583 | fi |
7584 | ||
7585 | done | |
7586 | fi | |
ca9f4b81 | 7587 | |
278a7a38 | 7588 | for ncn_progname in ranlib; do |
2693c0b0 PB |
7589 | if test -n "$ncn_tool_prefix"; then |
7590 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7591 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7594 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7596 | else |
7597 | if test -n "$RANLIB"; then | |
7598 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7599 | else | |
1c710c3c DJ |
7600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7601 | for as_dir in $PATH | |
7602 | do | |
7603 | IFS=$as_save_IFS | |
7604 | test -z "$as_dir" && as_dir=. | |
7605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7607 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
7608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7609 | break 2 | |
7610 | fi | |
7611 | done | |
7612 | done | |
7613 | ||
ca9f4b81 AO |
7614 | fi |
7615 | fi | |
1c710c3c | 7616 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 7617 | if test -n "$RANLIB"; then |
2aeb72e9 DD |
7618 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7619 | echo "${ECHO_T}$RANLIB" >&6 | |
ca9f4b81 | 7620 | else |
2aeb72e9 DD |
7621 | echo "$as_me:$LINENO: result: no" >&5 |
7622 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7623 | fi |
7624 | ||
2693c0b0 PB |
7625 | fi |
7626 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
7627 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7628 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7629 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7631 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7633 | else |
2693c0b0 PB |
7634 | if test -n "$RANLIB"; then |
7635 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 7636 | else |
1c710c3c DJ |
7637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7638 | for as_dir in $PATH | |
7639 | do | |
7640 | IFS=$as_save_IFS | |
7641 | test -z "$as_dir" && as_dir=. | |
7642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7644 | ac_cv_prog_RANLIB="${ncn_progname}" |
7645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7646 | break 2 | |
7647 | fi | |
7648 | done | |
7649 | done | |
7650 | ||
ca9f4b81 AO |
7651 | fi |
7652 | fi | |
1c710c3c | 7653 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 7654 | if test -n "$RANLIB"; then |
2aeb72e9 DD |
7655 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7656 | echo "${ECHO_T}$RANLIB" >&6 | |
ca9f4b81 | 7657 | else |
2aeb72e9 DD |
7658 | echo "$as_me:$LINENO: result: no" >&5 |
7659 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7660 | fi |
1c710c3c | 7661 | |
ca9f4b81 | 7662 | fi |
2693c0b0 PB |
7663 | test -n "$ac_cv_prog_RANLIB" && break |
7664 | done | |
7665 | ||
7666 | if test -z "$ac_cv_prog_RANLIB" ; then | |
7667 | RANLIB=":" | |
ca9f4b81 AO |
7668 | fi |
7669 | ||
278a7a38 AO |
7670 | |
7671 | ||
7672 | if test -n "$STRIP"; then | |
7673 | ac_cv_prog_STRIP=$STRIP | |
7674 | elif test -n "$ac_cv_prog_STRIP"; then | |
7675 | STRIP=$ac_cv_prog_STRIP | |
7676 | fi | |
7677 | ||
7678 | if test -n "$ac_cv_prog_STRIP"; then | |
7679 | for ncn_progname in strip; do | |
7680 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7681 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7684 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7686 | else | |
7687 | if test -n "$STRIP"; then | |
7688 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7689 | else | |
7690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7691 | for as_dir in $PATH | |
7692 | do | |
7693 | IFS=$as_save_IFS | |
7694 | test -z "$as_dir" && as_dir=. | |
7695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7697 | ac_cv_prog_STRIP="${ncn_progname}" |
7698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7699 | break 2 | |
7700 | fi | |
7701 | done | |
7702 | done | |
7703 | ||
7704 | fi | |
7705 | fi | |
7706 | STRIP=$ac_cv_prog_STRIP | |
7707 | if test -n "$STRIP"; then | |
2aeb72e9 DD |
7708 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
7709 | echo "${ECHO_T}$STRIP" >&6 | |
278a7a38 | 7710 | else |
2aeb72e9 DD |
7711 | echo "$as_me:$LINENO: result: no" >&5 |
7712 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7713 | fi |
7714 | ||
7715 | done | |
7716 | fi | |
7717 | ||
7718 | for ncn_progname in strip; do | |
2abefe3d PB |
7719 | if test -n "$ncn_tool_prefix"; then |
7720 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7721 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7724 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7726 | else |
7727 | if test -n "$STRIP"; then | |
7728 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7729 | else | |
1c710c3c DJ |
7730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7731 | for as_dir in $PATH | |
7732 | do | |
7733 | IFS=$as_save_IFS | |
7734 | test -z "$as_dir" && as_dir=. | |
7735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7737 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
7738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7739 | break 2 | |
7740 | fi | |
7741 | done | |
7742 | done | |
7743 | ||
2abefe3d PB |
7744 | fi |
7745 | fi | |
1c710c3c | 7746 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 7747 | if test -n "$STRIP"; then |
2aeb72e9 DD |
7748 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
7749 | echo "${ECHO_T}$STRIP" >&6 | |
2abefe3d | 7750 | else |
2aeb72e9 DD |
7751 | echo "$as_me:$LINENO: result: no" >&5 |
7752 | echo "${ECHO_T}no" >&6 | |
2abefe3d PB |
7753 | fi |
7754 | ||
7755 | fi | |
7756 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
7757 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7758 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7761 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2abefe3d PB |
7763 | else |
7764 | if test -n "$STRIP"; then | |
7765 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7766 | else | |
1c710c3c DJ |
7767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7768 | for as_dir in $PATH | |
7769 | do | |
7770 | IFS=$as_save_IFS | |
7771 | test -z "$as_dir" && as_dir=. | |
7772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7774 | ac_cv_prog_STRIP="${ncn_progname}" |
7775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7776 | break 2 | |
7777 | fi | |
7778 | done | |
7779 | done | |
7780 | ||
2abefe3d PB |
7781 | fi |
7782 | fi | |
1c710c3c | 7783 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 7784 | if test -n "$STRIP"; then |
2aeb72e9 DD |
7785 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
7786 | echo "${ECHO_T}$STRIP" >&6 | |
2abefe3d | 7787 | else |
2aeb72e9 DD |
7788 | echo "$as_me:$LINENO: result: no" >&5 |
7789 | echo "${ECHO_T}no" >&6 | |
2abefe3d | 7790 | fi |
1c710c3c | 7791 | |
2abefe3d PB |
7792 | fi |
7793 | test -n "$ac_cv_prog_STRIP" && break | |
7794 | done | |
7795 | ||
7796 | if test -z "$ac_cv_prog_STRIP" ; then | |
7797 | STRIP=":" | |
7798 | fi | |
7799 | ||
278a7a38 AO |
7800 | |
7801 | ||
7802 | if test -n "$WINDRES"; then | |
7803 | ac_cv_prog_WINDRES=$WINDRES | |
7804 | elif test -n "$ac_cv_prog_WINDRES"; then | |
7805 | WINDRES=$ac_cv_prog_WINDRES | |
7806 | fi | |
7807 | ||
7808 | if test -n "$ac_cv_prog_WINDRES"; then | |
7809 | for ncn_progname in windres; do | |
7810 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7811 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
7814 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7816 | else | |
7817 | if test -n "$WINDRES"; then | |
7818 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7819 | else | |
7820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7821 | for as_dir in $PATH | |
7822 | do | |
7823 | IFS=$as_save_IFS | |
7824 | test -z "$as_dir" && as_dir=. | |
7825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7826 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
7827 | ac_cv_prog_WINDRES="${ncn_progname}" |
7828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7829 | break 2 | |
7830 | fi | |
7831 | done | |
7832 | done | |
7833 | ||
7834 | fi | |
7835 | fi | |
7836 | WINDRES=$ac_cv_prog_WINDRES | |
7837 | if test -n "$WINDRES"; then | |
2aeb72e9 DD |
7838 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7839 | echo "${ECHO_T}$WINDRES" >&6 | |
278a7a38 | 7840 | else |
2aeb72e9 DD |
7841 | echo "$as_me:$LINENO: result: no" >&5 |
7842 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
7843 | fi |
7844 | ||
7845 | done | |
7846 | fi | |
7847 | ||
7848 | for ncn_progname in windres; do | |
2693c0b0 PB |
7849 | if test -n "$ncn_tool_prefix"; then |
7850 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7851 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7854 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
7856 | else |
7857 | if test -n "$WINDRES"; then | |
7858 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7859 | else | |
1c710c3c DJ |
7860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7861 | for as_dir in $PATH | |
7862 | do | |
7863 | IFS=$as_save_IFS | |
7864 | test -z "$as_dir" && as_dir=. | |
7865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7867 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
7868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7869 | break 2 | |
7870 | fi | |
7871 | done | |
7872 | done | |
7873 | ||
ca9f4b81 AO |
7874 | fi |
7875 | fi | |
1c710c3c | 7876 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 7877 | if test -n "$WINDRES"; then |
2aeb72e9 DD |
7878 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7879 | echo "${ECHO_T}$WINDRES" >&6 | |
ca9f4b81 | 7880 | else |
2aeb72e9 DD |
7881 | echo "$as_me:$LINENO: result: no" >&5 |
7882 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7883 | fi |
7884 | ||
2693c0b0 PB |
7885 | fi |
7886 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
7887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7888 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
7889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
7891 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
7892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7893 | else |
2693c0b0 PB |
7894 | if test -n "$WINDRES"; then |
7895 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 7896 | else |
1c710c3c DJ |
7897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7898 | for as_dir in $PATH | |
7899 | do | |
7900 | IFS=$as_save_IFS | |
7901 | test -z "$as_dir" && as_dir=. | |
7902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 7903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
7904 | ac_cv_prog_WINDRES="${ncn_progname}" |
7905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7906 | break 2 | |
7907 | fi | |
7908 | done | |
7909 | done | |
7910 | ||
ca9f4b81 AO |
7911 | fi |
7912 | fi | |
1c710c3c | 7913 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 7914 | if test -n "$WINDRES"; then |
2aeb72e9 DD |
7915 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
7916 | echo "${ECHO_T}$WINDRES" >&6 | |
ca9f4b81 | 7917 | else |
2aeb72e9 DD |
7918 | echo "$as_me:$LINENO: result: no" >&5 |
7919 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7920 | fi |
1c710c3c | 7921 | |
2693c0b0 PB |
7922 | fi |
7923 | test -n "$ac_cv_prog_WINDRES" && break | |
7924 | done | |
7925 | ||
7926 | if test -z "$ac_cv_prog_WINDRES" ; then | |
7927 | set dummy windres | |
7928 | if test $build = $host ; then | |
7929 | WINDRES="$2" | |
ca9f4b81 | 7930 | else |
2693c0b0 | 7931 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 7932 | fi |
ca9f4b81 AO |
7933 | fi |
7934 | ||
278a7a38 AO |
7935 | |
7936 | ||
901119ae KT |
7937 | if test -n "$WINDMC"; then |
7938 | ac_cv_prog_WINDMC=$WINDMC | |
7939 | elif test -n "$ac_cv_prog_WINDMC"; then | |
7940 | WINDMC=$ac_cv_prog_WINDMC | |
7941 | fi | |
7942 | ||
7943 | if test -n "$ac_cv_prog_WINDMC"; then | |
7944 | for ncn_progname in windmc; do | |
7945 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7946 | set dummy ${ncn_progname}; ac_word=$2 | |
7947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7949 | if test "${ac_cv_prog_WINDMC+set}" = set; then | |
7950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7951 | else | |
7952 | if test -n "$WINDMC"; then | |
7953 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
7954 | else | |
7955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7956 | for as_dir in $PATH | |
7957 | do | |
7958 | IFS=$as_save_IFS | |
7959 | test -z "$as_dir" && as_dir=. | |
7960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7962 | ac_cv_prog_WINDMC="${ncn_progname}" | |
7963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7964 | break 2 | |
7965 | fi | |
7966 | done | |
7967 | done | |
7968 | ||
7969 | fi | |
7970 | fi | |
7971 | WINDMC=$ac_cv_prog_WINDMC | |
7972 | if test -n "$WINDMC"; then | |
7973 | echo "$as_me:$LINENO: result: $WINDMC" >&5 | |
7974 | echo "${ECHO_T}$WINDMC" >&6 | |
7975 | else | |
7976 | echo "$as_me:$LINENO: result: no" >&5 | |
7977 | echo "${ECHO_T}no" >&6 | |
7978 | fi | |
7979 | ||
7980 | done | |
7981 | fi | |
7982 | ||
7983 | for ncn_progname in windmc; do | |
7984 | if test -n "$ncn_tool_prefix"; then | |
7985 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7986 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
7987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7989 | if test "${ac_cv_prog_WINDMC+set}" = set; then | |
7990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7991 | else | |
7992 | if test -n "$WINDMC"; then | |
7993 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
7994 | else | |
7995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7996 | for as_dir in $PATH | |
7997 | do | |
7998 | IFS=$as_save_IFS | |
7999 | test -z "$as_dir" && as_dir=. | |
8000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8002 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" | |
8003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8004 | break 2 | |
8005 | fi | |
8006 | done | |
8007 | done | |
8008 | ||
8009 | fi | |
8010 | fi | |
8011 | WINDMC=$ac_cv_prog_WINDMC | |
8012 | if test -n "$WINDMC"; then | |
8013 | echo "$as_me:$LINENO: result: $WINDMC" >&5 | |
8014 | echo "${ECHO_T}$WINDMC" >&6 | |
8015 | else | |
8016 | echo "$as_me:$LINENO: result: no" >&5 | |
8017 | echo "${ECHO_T}no" >&6 | |
8018 | fi | |
8019 | ||
8020 | fi | |
8021 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
8022 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8023 | set dummy ${ncn_progname}; ac_word=$2 | |
8024 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8026 | if test "${ac_cv_prog_WINDMC+set}" = set; then | |
8027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8028 | else | |
8029 | if test -n "$WINDMC"; then | |
8030 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
8031 | else | |
8032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8033 | for as_dir in $PATH | |
8034 | do | |
8035 | IFS=$as_save_IFS | |
8036 | test -z "$as_dir" && as_dir=. | |
8037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8039 | ac_cv_prog_WINDMC="${ncn_progname}" | |
8040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8041 | break 2 | |
8042 | fi | |
8043 | done | |
8044 | done | |
8045 | ||
8046 | fi | |
8047 | fi | |
8048 | WINDMC=$ac_cv_prog_WINDMC | |
8049 | if test -n "$WINDMC"; then | |
8050 | echo "$as_me:$LINENO: result: $WINDMC" >&5 | |
8051 | echo "${ECHO_T}$WINDMC" >&6 | |
8052 | else | |
8053 | echo "$as_me:$LINENO: result: no" >&5 | |
8054 | echo "${ECHO_T}no" >&6 | |
8055 | fi | |
8056 | ||
8057 | fi | |
8058 | test -n "$ac_cv_prog_WINDMC" && break | |
8059 | done | |
8060 | ||
8061 | if test -z "$ac_cv_prog_WINDMC" ; then | |
8062 | set dummy windmc | |
8063 | if test $build = $host ; then | |
8064 | WINDMC="$2" | |
8065 | else | |
8066 | WINDMC="${ncn_tool_prefix}$2" | |
8067 | fi | |
8068 | fi | |
8069 | ||
8070 | ||
8071 | ||
278a7a38 AO |
8072 | if test -n "$OBJCOPY"; then |
8073 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
8074 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
8075 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
8076 | fi | |
8077 | ||
8078 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
8079 | for ncn_progname in objcopy; do | |
8080 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8081 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8084 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8086 | else | |
8087 | if test -n "$OBJCOPY"; then | |
8088 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
8089 | else | |
8090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8091 | for as_dir in $PATH | |
8092 | do | |
8093 | IFS=$as_save_IFS | |
8094 | test -z "$as_dir" && as_dir=. | |
8095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8097 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
8098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8099 | break 2 | |
8100 | fi | |
8101 | done | |
8102 | done | |
8103 | ||
8104 | fi | |
8105 | fi | |
8106 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
8107 | if test -n "$OBJCOPY"; then | |
2aeb72e9 DD |
8108 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
8109 | echo "${ECHO_T}$OBJCOPY" >&6 | |
278a7a38 | 8110 | else |
2aeb72e9 DD |
8111 | echo "$as_me:$LINENO: result: no" >&5 |
8112 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8113 | fi |
8114 | ||
8115 | done | |
8116 | fi | |
8117 | ||
8118 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
8119 | if test -n "$ncn_tool_prefix"; then |
8120 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8121 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8122 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8124 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
8125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
8126 | else |
8127 | if test -n "$OBJCOPY"; then | |
8128 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
8129 | else | |
1c710c3c DJ |
8130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8131 | for as_dir in $PATH | |
8132 | do | |
8133 | IFS=$as_save_IFS | |
8134 | test -z "$as_dir" && as_dir=. | |
8135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8137 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
8138 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8139 | break 2 | |
8140 | fi | |
8141 | done | |
8142 | done | |
8143 | ||
ca9f4b81 AO |
8144 | fi |
8145 | fi | |
1c710c3c | 8146 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 8147 | if test -n "$OBJCOPY"; then |
2aeb72e9 DD |
8148 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
8149 | echo "${ECHO_T}$OBJCOPY" >&6 | |
ca9f4b81 | 8150 | else |
2aeb72e9 DD |
8151 | echo "$as_me:$LINENO: result: no" >&5 |
8152 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
8153 | fi |
8154 | ||
2693c0b0 PB |
8155 | fi |
8156 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
8157 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8158 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8161 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then |
8162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8163 | else |
2693c0b0 PB |
8164 | if test -n "$OBJCOPY"; then |
8165 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 8166 | else |
1c710c3c DJ |
8167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8168 | for as_dir in $PATH | |
8169 | do | |
8170 | IFS=$as_save_IFS | |
8171 | test -z "$as_dir" && as_dir=. | |
8172 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8173 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8174 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
8175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8176 | break 2 | |
8177 | fi | |
8178 | done | |
8179 | done | |
8180 | ||
ca9f4b81 AO |
8181 | fi |
8182 | fi | |
1c710c3c | 8183 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 8184 | if test -n "$OBJCOPY"; then |
2aeb72e9 DD |
8185 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
8186 | echo "${ECHO_T}$OBJCOPY" >&6 | |
ca9f4b81 | 8187 | else |
2aeb72e9 DD |
8188 | echo "$as_me:$LINENO: result: no" >&5 |
8189 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 8190 | fi |
1c710c3c | 8191 | |
2693c0b0 PB |
8192 | fi |
8193 | test -n "$ac_cv_prog_OBJCOPY" && break | |
8194 | done | |
8195 | ||
8196 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
8197 | set dummy objcopy | |
8198 | if test $build = $host ; then | |
8199 | OBJCOPY="$2" | |
ca9f4b81 | 8200 | else |
2693c0b0 | 8201 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 8202 | fi |
ca9f4b81 AO |
8203 | fi |
8204 | ||
278a7a38 AO |
8205 | |
8206 | ||
8207 | if test -n "$OBJDUMP"; then | |
8208 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
8209 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
8210 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
8211 | fi | |
8212 | ||
8213 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
8214 | for ncn_progname in objdump; do | |
8215 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8216 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8219 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
8220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8221 | else | |
8222 | if test -n "$OBJDUMP"; then | |
8223 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
8224 | else | |
8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
8230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8232 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
8233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8234 | break 2 | |
8235 | fi | |
8236 | done | |
8237 | done | |
8238 | ||
8239 | fi | |
8240 | fi | |
8241 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
8242 | if test -n "$OBJDUMP"; then | |
2aeb72e9 DD |
8243 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
8244 | echo "${ECHO_T}$OBJDUMP" >&6 | |
278a7a38 | 8245 | else |
2aeb72e9 DD |
8246 | echo "$as_me:$LINENO: result: no" >&5 |
8247 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8248 | fi |
8249 | ||
8250 | done | |
8251 | fi | |
8252 | ||
8253 | for ncn_progname in objdump; do | |
2693c0b0 PB |
8254 | if test -n "$ncn_tool_prefix"; then |
8255 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8256 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8257 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8259 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
8260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
8261 | else |
8262 | if test -n "$OBJDUMP"; then | |
8263 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
8264 | else | |
1c710c3c DJ |
8265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8266 | for as_dir in $PATH | |
8267 | do | |
8268 | IFS=$as_save_IFS | |
8269 | test -z "$as_dir" && as_dir=. | |
8270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8271 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8272 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
8273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8274 | break 2 | |
8275 | fi | |
8276 | done | |
8277 | done | |
8278 | ||
ca9f4b81 AO |
8279 | fi |
8280 | fi | |
1c710c3c | 8281 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 8282 | if test -n "$OBJDUMP"; then |
2aeb72e9 DD |
8283 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
8284 | echo "${ECHO_T}$OBJDUMP" >&6 | |
ca9f4b81 | 8285 | else |
2aeb72e9 DD |
8286 | echo "$as_me:$LINENO: result: no" >&5 |
8287 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
8288 | fi |
8289 | ||
2693c0b0 PB |
8290 | fi |
8291 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
8292 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8293 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8294 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8296 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
8297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8298 | else |
2693c0b0 PB |
8299 | if test -n "$OBJDUMP"; then |
8300 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 8301 | else |
1c710c3c DJ |
8302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8303 | for as_dir in $PATH | |
8304 | do | |
8305 | IFS=$as_save_IFS | |
8306 | test -z "$as_dir" && as_dir=. | |
8307 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8308 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8309 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
8310 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8311 | break 2 | |
8312 | fi | |
8313 | done | |
8314 | done | |
8315 | ||
ca9f4b81 AO |
8316 | fi |
8317 | fi | |
1c710c3c | 8318 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 8319 | if test -n "$OBJDUMP"; then |
2aeb72e9 DD |
8320 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
8321 | echo "${ECHO_T}$OBJDUMP" >&6 | |
ca9f4b81 | 8322 | else |
2aeb72e9 DD |
8323 | echo "$as_me:$LINENO: result: no" >&5 |
8324 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 8325 | fi |
1c710c3c | 8326 | |
2693c0b0 PB |
8327 | fi |
8328 | test -n "$ac_cv_prog_OBJDUMP" && break | |
8329 | done | |
8330 | ||
8331 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
8332 | set dummy objdump | |
8333 | if test $build = $host ; then | |
8334 | OBJDUMP="$2" | |
ca9f4b81 | 8335 | else |
2693c0b0 | 8336 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 8337 | fi |
ca9f4b81 AO |
8338 | fi |
8339 | ||
671aa708 NN |
8340 | |
8341 | ||
8342 | ||
8343 | ||
8344 | ||
2abefe3d | 8345 | # Target tools. |
1c710c3c | 8346 | |
2aeb72e9 | 8347 | # Check whether --with-build-time-tools or --without-build-time-tools was given. |
e8b05380 | 8348 | if test "${with_build_time_tools+set}" = set; then |
2aeb72e9 DD |
8349 | withval="$with_build_time_tools" |
8350 | case x"$withval" in | |
e8b05380 PB |
8351 | x/*) ;; |
8352 | *) | |
8353 | with_build_time_tools= | |
1c710c3c DJ |
8354 | { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
8355 | echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
8356 | ;; |
8357 | esac | |
ca9f4b81 | 8358 | else |
e8b05380 | 8359 | with_build_time_tools= |
2aeb72e9 | 8360 | fi; |
ca9f4b81 | 8361 | |
278a7a38 AO |
8362 | |
8363 | ||
8364 | if test -n "$CC_FOR_TARGET"; then | |
8365 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
8366 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
8367 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
8368 | fi | |
8369 | ||
8370 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
8371 | for ncn_progname in cc gcc; do | |
8372 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8373 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8376 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
8377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8378 | else | |
8379 | if test -n "$CC_FOR_TARGET"; then | |
8380 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
8381 | else | |
8382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8383 | for as_dir in $PATH | |
8384 | do | |
8385 | IFS=$as_save_IFS | |
8386 | test -z "$as_dir" && as_dir=. | |
8387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8389 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
8390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8391 | break 2 | |
8392 | fi | |
8393 | done | |
8394 | done | |
8395 | ||
8396 | fi | |
8397 | fi | |
8398 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
8399 | if test -n "$CC_FOR_TARGET"; then | |
2aeb72e9 DD |
8400 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
8401 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
278a7a38 | 8402 | else |
2aeb72e9 DD |
8403 | echo "$as_me:$LINENO: result: no" >&5 |
8404 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8405 | fi |
8406 | ||
8407 | done | |
8408 | fi | |
8409 | ||
8410 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8411 | for ncn_progname in cc gcc; do |
2aeb72e9 DD |
8412 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8413 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8414 | if test -x $with_build_time_tools/${ncn_progname}; then |
8415 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8416 | echo "$as_me:$LINENO: result: yes" >&5 |
8417 | echo "${ECHO_T}yes" >&6 | |
72a7ab82 | 8418 | break |
e8b05380 | 8419 | else |
2aeb72e9 DD |
8420 | echo "$as_me:$LINENO: result: no" >&5 |
8421 | echo "${ECHO_T}no" >&6 | |
72a7ab82 AP |
8422 | fi |
8423 | done | |
4de997d1 PB |
8424 | fi |
8425 | ||
e8b05380 PB |
8426 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
8427 | for ncn_progname in cc gcc; do | |
8428 | if test -n "$ncn_target_tool_prefix"; then | |
8429 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8430 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8433 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
8434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
8435 | else |
8436 | if test -n "$CC_FOR_TARGET"; then | |
8437 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
8438 | else | |
1c710c3c DJ |
8439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8440 | for as_dir in $PATH | |
8441 | do | |
8442 | IFS=$as_save_IFS | |
8443 | test -z "$as_dir" && as_dir=. | |
8444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8446 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8448 | break 2 | |
8449 | fi | |
8450 | done | |
8451 | done | |
8452 | ||
4de997d1 PB |
8453 | fi |
8454 | fi | |
1c710c3c | 8455 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 8456 | if test -n "$CC_FOR_TARGET"; then |
2aeb72e9 DD |
8457 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
8458 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
4de997d1 | 8459 | else |
2aeb72e9 DD |
8460 | echo "$as_me:$LINENO: result: no" >&5 |
8461 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
8462 | fi |
8463 | ||
e8b05380 PB |
8464 | fi |
8465 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
8466 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8467 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8470 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then |
8471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 8472 | else |
2693c0b0 PB |
8473 | if test -n "$CC_FOR_TARGET"; then |
8474 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 8475 | else |
1c710c3c DJ |
8476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8477 | for as_dir in $PATH | |
8478 | do | |
8479 | IFS=$as_save_IFS | |
8480 | test -z "$as_dir" && as_dir=. | |
8481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8483 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
8484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8485 | break 2 | |
8486 | fi | |
8487 | done | |
8488 | done | |
8489 | ||
4de997d1 PB |
8490 | fi |
8491 | fi | |
1c710c3c | 8492 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 8493 | if test -n "$CC_FOR_TARGET"; then |
2aeb72e9 DD |
8494 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
8495 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
4de997d1 | 8496 | else |
2aeb72e9 DD |
8497 | echo "$as_me:$LINENO: result: no" >&5 |
8498 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 8499 | fi |
1c710c3c | 8500 | |
e8b05380 PB |
8501 | fi |
8502 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
8503 | done | |
8504 | fi | |
1c710c3c | 8505 | |
2693c0b0 PB |
8506 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
8507 | set dummy cc gcc | |
8508 | if test $build = $target ; then | |
8509 | CC_FOR_TARGET="$2" | |
4de997d1 | 8510 | else |
2693c0b0 | 8511 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 8512 | fi |
1c00b503 PB |
8513 | else |
8514 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
8515 | fi |
8516 | ||
278a7a38 AO |
8517 | |
8518 | ||
8519 | if test -n "$CXX_FOR_TARGET"; then | |
8520 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
8521 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8522 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
8523 | fi | |
8524 | ||
8525 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8526 | for ncn_progname in c++ g++ cxx gxx; do | |
8527 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8528 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8531 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8533 | else | |
8534 | if test -n "$CXX_FOR_TARGET"; then | |
8535 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
8536 | else | |
8537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8538 | for as_dir in $PATH | |
8539 | do | |
8540 | IFS=$as_save_IFS | |
8541 | test -z "$as_dir" && as_dir=. | |
8542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8544 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
8545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8546 | break 2 | |
8547 | fi | |
8548 | done | |
8549 | done | |
8550 | ||
8551 | fi | |
8552 | fi | |
8553 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
8554 | if test -n "$CXX_FOR_TARGET"; then | |
2aeb72e9 DD |
8555 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8556 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
278a7a38 | 8557 | else |
2aeb72e9 DD |
8558 | echo "$as_me:$LINENO: result: no" >&5 |
8559 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8560 | fi |
8561 | ||
8562 | done | |
8563 | fi | |
8564 | ||
8565 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8566 | for ncn_progname in c++ g++ cxx gxx; do |
2aeb72e9 DD |
8567 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8568 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8569 | if test -x $with_build_time_tools/${ncn_progname}; then |
8570 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8571 | echo "$as_me:$LINENO: result: yes" >&5 |
8572 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8573 | break |
8574 | else | |
2aeb72e9 DD |
8575 | echo "$as_me:$LINENO: result: no" >&5 |
8576 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8577 | fi |
8578 | done | |
8579 | fi | |
8580 | ||
8581 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
8582 | for ncn_progname in c++ g++ cxx gxx; do | |
8583 | if test -n "$ncn_target_tool_prefix"; then | |
8584 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8585 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8588 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
8590 | else |
8591 | if test -n "$CXX_FOR_TARGET"; then | |
8592 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
8593 | else | |
1c710c3c DJ |
8594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8595 | for as_dir in $PATH | |
8596 | do | |
8597 | IFS=$as_save_IFS | |
8598 | test -z "$as_dir" && as_dir=. | |
8599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8601 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8603 | break 2 | |
8604 | fi | |
8605 | done | |
8606 | done | |
8607 | ||
4de997d1 PB |
8608 | fi |
8609 | fi | |
1c710c3c | 8610 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 8611 | if test -n "$CXX_FOR_TARGET"; then |
2aeb72e9 DD |
8612 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8613 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
4de997d1 | 8614 | else |
2aeb72e9 DD |
8615 | echo "$as_me:$LINENO: result: no" >&5 |
8616 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
8617 | fi |
8618 | ||
e8b05380 PB |
8619 | fi |
8620 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
8621 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8622 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8625 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then |
8626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 8627 | else |
2693c0b0 PB |
8628 | if test -n "$CXX_FOR_TARGET"; then |
8629 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 8630 | else |
1c710c3c DJ |
8631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8632 | for as_dir in $PATH | |
8633 | do | |
8634 | IFS=$as_save_IFS | |
8635 | test -z "$as_dir" && as_dir=. | |
8636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8638 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
8639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8640 | break 2 | |
8641 | fi | |
8642 | done | |
8643 | done | |
8644 | ||
4de997d1 PB |
8645 | fi |
8646 | fi | |
1c710c3c | 8647 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 8648 | if test -n "$CXX_FOR_TARGET"; then |
2aeb72e9 DD |
8649 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
8650 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
4de997d1 | 8651 | else |
2aeb72e9 DD |
8652 | echo "$as_me:$LINENO: result: no" >&5 |
8653 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 8654 | fi |
1c710c3c | 8655 | |
e8b05380 PB |
8656 | fi |
8657 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
8658 | done | |
8659 | fi | |
1c710c3c | 8660 | |
2693c0b0 PB |
8661 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
8662 | set dummy c++ g++ cxx gxx | |
8663 | if test $build = $target ; then | |
8664 | CXX_FOR_TARGET="$2" | |
4de997d1 | 8665 | else |
2693c0b0 | 8666 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 8667 | fi |
1c00b503 PB |
8668 | else |
8669 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
8670 | fi |
8671 | ||
278a7a38 AO |
8672 | |
8673 | ||
8674 | if test -n "$GCC_FOR_TARGET"; then | |
8675 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
8676 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8677 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
8678 | fi | |
8679 | ||
8680 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8681 | for ncn_progname in gcc; do | |
8682 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8683 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8684 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8686 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8688 | else | |
8689 | if test -n "$GCC_FOR_TARGET"; then | |
8690 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
8691 | else | |
8692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8693 | for as_dir in $PATH | |
8694 | do | |
8695 | IFS=$as_save_IFS | |
8696 | test -z "$as_dir" && as_dir=. | |
8697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8698 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8699 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
8700 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8701 | break 2 | |
8702 | fi | |
8703 | done | |
8704 | done | |
8705 | ||
8706 | fi | |
8707 | fi | |
8708 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
8709 | if test -n "$GCC_FOR_TARGET"; then | |
2aeb72e9 DD |
8710 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8711 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
278a7a38 | 8712 | else |
2aeb72e9 DD |
8713 | echo "$as_me:$LINENO: result: no" >&5 |
8714 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8715 | fi |
8716 | ||
8717 | done | |
8718 | fi | |
8719 | ||
8720 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8721 | for ncn_progname in gcc; do |
2aeb72e9 DD |
8722 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8723 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8724 | if test -x $with_build_time_tools/${ncn_progname}; then |
8725 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8726 | echo "$as_me:$LINENO: result: yes" >&5 |
8727 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8728 | break |
8729 | else | |
2aeb72e9 DD |
8730 | echo "$as_me:$LINENO: result: no" >&5 |
8731 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8732 | fi |
8733 | done | |
8734 | fi | |
8735 | ||
8736 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
8737 | for ncn_progname in gcc; do | |
8738 | if test -n "$ncn_target_tool_prefix"; then | |
8739 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8740 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8743 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8745 | else |
e8b05380 PB |
8746 | if test -n "$GCC_FOR_TARGET"; then |
8747 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 8748 | else |
1c710c3c DJ |
8749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8750 | for as_dir in $PATH | |
8751 | do | |
8752 | IFS=$as_save_IFS | |
8753 | test -z "$as_dir" && as_dir=. | |
8754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8756 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8758 | break 2 | |
8759 | fi | |
8760 | done | |
8761 | done | |
8762 | ||
ca9f4b81 AO |
8763 | fi |
8764 | fi | |
1c710c3c | 8765 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 8766 | if test -n "$GCC_FOR_TARGET"; then |
2aeb72e9 DD |
8767 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8768 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
ca9f4b81 | 8769 | else |
2aeb72e9 DD |
8770 | echo "$as_me:$LINENO: result: no" >&5 |
8771 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
8772 | fi |
8773 | ||
e8b05380 PB |
8774 | fi |
8775 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
8776 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 8777 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8780 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then |
8781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 8782 | else |
e8b05380 PB |
8783 | if test -n "$GCC_FOR_TARGET"; then |
8784 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 8785 | else |
1c710c3c DJ |
8786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8787 | for as_dir in $PATH | |
8788 | do | |
8789 | IFS=$as_save_IFS | |
8790 | test -z "$as_dir" && as_dir=. | |
8791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8793 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
8794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8795 | break 2 | |
8796 | fi | |
8797 | done | |
8798 | done | |
8799 | ||
ca9f4b81 AO |
8800 | fi |
8801 | fi | |
1c710c3c | 8802 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 8803 | if test -n "$GCC_FOR_TARGET"; then |
2aeb72e9 DD |
8804 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
8805 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
ca9f4b81 | 8806 | else |
2aeb72e9 DD |
8807 | echo "$as_me:$LINENO: result: no" >&5 |
8808 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 8809 | fi |
1c710c3c | 8810 | |
e8b05380 PB |
8811 | fi |
8812 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
8813 | done | |
8814 | fi | |
1c710c3c | 8815 | |
e8b05380 PB |
8816 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
8817 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
8818 | else |
8819 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
8820 | fi |
8821 | ||
278a7a38 AO |
8822 | |
8823 | ||
8824 | if test -n "$GCJ_FOR_TARGET"; then | |
8825 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
8826 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8827 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8828 | fi | |
8829 | ||
8830 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8831 | for ncn_progname in gcj; do | |
8832 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8833 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8836 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8838 | else | |
8839 | if test -n "$GCJ_FOR_TARGET"; then | |
8840 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8841 | else | |
8842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8843 | for as_dir in $PATH | |
8844 | do | |
8845 | IFS=$as_save_IFS | |
8846 | test -z "$as_dir" && as_dir=. | |
8847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8849 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
8850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8851 | break 2 | |
8852 | fi | |
8853 | done | |
8854 | done | |
8855 | ||
8856 | fi | |
8857 | fi | |
8858 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8859 | if test -n "$GCJ_FOR_TARGET"; then | |
2aeb72e9 DD |
8860 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8861 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
278a7a38 | 8862 | else |
2aeb72e9 DD |
8863 | echo "$as_me:$LINENO: result: no" >&5 |
8864 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8865 | fi |
8866 | ||
8867 | done | |
8868 | fi | |
8869 | ||
8870 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 8871 | for ncn_progname in gcj; do |
2aeb72e9 DD |
8872 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
8873 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
8874 | if test -x $with_build_time_tools/${ncn_progname}; then |
8875 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
8876 | echo "$as_me:$LINENO: result: yes" >&5 |
8877 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
8878 | break |
8879 | else | |
2aeb72e9 DD |
8880 | echo "$as_me:$LINENO: result: no" >&5 |
8881 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
8882 | fi |
8883 | done | |
8884 | fi | |
8885 | ||
8886 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
8887 | for ncn_progname in gcj; do | |
8888 | if test -n "$ncn_target_tool_prefix"; then | |
8889 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8890 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
8893 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 8895 | else |
fb0103e5 RG |
8896 | if test -n "$GCJ_FOR_TARGET"; then |
8897 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8898 | else | |
1c710c3c DJ |
8899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8900 | for as_dir in $PATH | |
8901 | do | |
8902 | IFS=$as_save_IFS | |
8903 | test -z "$as_dir" && as_dir=. | |
8904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
8906 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
8907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8908 | break 2 | |
8909 | fi | |
8910 | done | |
8911 | done | |
8912 | ||
e8b05380 PB |
8913 | fi |
8914 | fi | |
278a7a38 AO |
8915 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
8916 | if test -n "$GCJ_FOR_TARGET"; then | |
2aeb72e9 DD |
8917 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8918 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
278a7a38 | 8919 | else |
2aeb72e9 DD |
8920 | echo "$as_me:$LINENO: result: no" >&5 |
8921 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8922 | fi |
8923 | ||
8924 | fi | |
8925 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
8926 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8927 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
8928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
8930 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then |
8931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8932 | else | |
8933 | if test -n "$GCJ_FOR_TARGET"; then | |
8934 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
8935 | else | |
8936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8937 | for as_dir in $PATH | |
8938 | do | |
8939 | IFS=$as_save_IFS | |
8940 | test -z "$as_dir" && as_dir=. | |
8941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 8942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
8943 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
8944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8945 | break 2 | |
8946 | fi | |
8947 | done | |
8948 | done | |
8949 | ||
8950 | fi | |
8951 | fi | |
8952 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
8953 | if test -n "$GCJ_FOR_TARGET"; then | |
2aeb72e9 DD |
8954 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
8955 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
278a7a38 | 8956 | else |
2aeb72e9 DD |
8957 | echo "$as_me:$LINENO: result: no" >&5 |
8958 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
8959 | fi |
8960 | ||
8961 | fi | |
8962 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
8963 | done | |
8964 | fi | |
8965 | ||
8966 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
8967 | set dummy gcj | |
8968 | if test $build = $target ; then | |
8969 | GCJ_FOR_TARGET="$2" | |
8970 | else | |
8971 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
8972 | fi | |
1c00b503 PB |
8973 | else |
8974 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
278a7a38 AO |
8975 | fi |
8976 | ||
8977 | ||
8978 | ||
8979 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
8980 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
8981 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
8982 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
8983 | fi |
8984 | ||
278a7a38 AO |
8985 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
8986 | for ncn_progname in gfortran; do | |
8987 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 8988 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
8989 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8990 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 | 8991 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
1c710c3c | 8992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e8b05380 | 8993 | else |
278a7a38 AO |
8994 | if test -n "$GFORTRAN_FOR_TARGET"; then |
8995 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 8996 | else |
1c710c3c DJ |
8997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8998 | for as_dir in $PATH | |
8999 | do | |
9000 | IFS=$as_save_IFS | |
9001 | test -z "$as_dir" && as_dir=. | |
9002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9004 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
1c710c3c DJ |
9005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9006 | break 2 | |
9007 | fi | |
9008 | done | |
9009 | done | |
9010 | ||
e8b05380 PB |
9011 | fi |
9012 | fi | |
278a7a38 AO |
9013 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
9014 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
2aeb72e9 DD |
9015 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
9016 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
e8b05380 | 9017 | else |
2aeb72e9 DD |
9018 | echo "$as_me:$LINENO: result: no" >&5 |
9019 | echo "${ECHO_T}no" >&6 | |
e8b05380 | 9020 | fi |
1c710c3c | 9021 | |
e8b05380 PB |
9022 | done |
9023 | fi | |
1c710c3c | 9024 | |
278a7a38 | 9025 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 9026 | for ncn_progname in gfortran; do |
2aeb72e9 DD |
9027 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9028 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9029 | if test -x $with_build_time_tools/${ncn_progname}; then |
9030 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9031 | echo "$as_me:$LINENO: result: yes" >&5 |
9032 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9033 | break |
9034 | else | |
2aeb72e9 DD |
9035 | echo "$as_me:$LINENO: result: no" >&5 |
9036 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9037 | fi |
9038 | done | |
9039 | fi | |
9040 | ||
9041 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
9042 | for ncn_progname in gfortran; do | |
9043 | if test -n "$ncn_target_tool_prefix"; then | |
9044 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9045 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9046 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9048 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
9049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9050 | else |
9051 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
9052 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
9053 | else | |
9054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9055 | for as_dir in $PATH | |
9056 | do | |
9057 | IFS=$as_save_IFS | |
9058 | test -z "$as_dir" && as_dir=. | |
9059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9061 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9063 | break 2 | |
9064 | fi | |
9065 | done | |
9066 | done | |
9067 | ||
e8b05380 PB |
9068 | fi |
9069 | fi | |
1c710c3c | 9070 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 9071 | if test -n "$GFORTRAN_FOR_TARGET"; then |
2aeb72e9 DD |
9072 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
9073 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
e8b05380 | 9074 | else |
2aeb72e9 DD |
9075 | echo "$as_me:$LINENO: result: no" >&5 |
9076 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9077 | fi |
9078 | ||
9079 | fi | |
9080 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
9081 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9082 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9083 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9085 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then |
9086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9087 | else |
9088 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
9089 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
9090 | else | |
1c710c3c DJ |
9091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9092 | for as_dir in $PATH | |
9093 | do | |
9094 | IFS=$as_save_IFS | |
9095 | test -z "$as_dir" && as_dir=. | |
9096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9097 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9098 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
9099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9100 | break 2 | |
9101 | fi | |
9102 | done | |
9103 | done | |
9104 | ||
e8b05380 PB |
9105 | fi |
9106 | fi | |
1c710c3c | 9107 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 9108 | if test -n "$GFORTRAN_FOR_TARGET"; then |
2aeb72e9 DD |
9109 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
9110 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
e8b05380 | 9111 | else |
2aeb72e9 DD |
9112 | echo "$as_me:$LINENO: result: no" >&5 |
9113 | echo "${ECHO_T}no" >&6 | |
e8b05380 | 9114 | fi |
1c710c3c | 9115 | |
e8b05380 PB |
9116 | fi |
9117 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
9118 | done | |
9119 | fi | |
1c710c3c | 9120 | |
e8b05380 PB |
9121 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
9122 | set dummy gfortran | |
2693c0b0 | 9123 | if test $build = $target ; then |
e8b05380 | 9124 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 9125 | else |
e8b05380 PB |
9126 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
9127 | fi | |
1c00b503 PB |
9128 | else |
9129 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
9130 | fi |
9131 | ||
9132 | ||
9133 | ||
e8b05380 PB |
9134 | cat > conftest.c << \EOF |
9135 | #ifdef __GNUC__ | |
9136 | gcc_yay; | |
9137 | #endif | |
9138 | EOF | |
9139 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
9140 | have_gcc_for_target=yes | |
9141 | else | |
9142 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
9143 | have_gcc_for_target=no | |
9144 | fi | |
9145 | rm conftest.c | |
9146 | ||
9147 | ||
9148 | ||
9149 | ||
9150 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9151 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9152 | echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5 |
9153 | echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9154 | if test -x $with_build_time_tools/ar; then |
9155 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
9156 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
2aeb72e9 DD |
9157 | echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
9158 | echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6 | |
d1f8db0c | 9159 | else |
2aeb72e9 DD |
9160 | echo "$as_me:$LINENO: result: no" >&5 |
9161 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9162 | fi |
e8b05380 PB |
9163 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9164 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
9165 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
9166 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
9167 | fi |
9168 | fi | |
3e19841a | 9169 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9170 | # Extract the first word of "ar", so it can be a program name with args. |
9171 | set dummy ar; ac_word=$2 | |
2aeb72e9 DD |
9172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9174 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then |
9175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 9176 | else |
1c710c3c DJ |
9177 | case $AR_FOR_TARGET in |
9178 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9179 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
9180 | ;; | |
e8b05380 | 9181 | *) |
1c710c3c DJ |
9182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9183 | for as_dir in $gcc_cv_tool_dirs | |
9184 | do | |
9185 | IFS=$as_save_IFS | |
9186 | test -z "$as_dir" && as_dir=. | |
9187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9188 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9189 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9191 | break 2 | |
9192 | fi | |
9193 | done | |
9194 | done | |
9195 | ||
e8b05380 PB |
9196 | ;; |
9197 | esac | |
9198 | fi | |
1c710c3c | 9199 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2aeb72e9 | 9200 | |
e8b05380 | 9201 | if test -n "$AR_FOR_TARGET"; then |
2aeb72e9 DD |
9202 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9203 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
e8b05380 | 9204 | else |
2aeb72e9 DD |
9205 | echo "$as_me:$LINENO: result: no" >&5 |
9206 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
9207 | fi |
9208 | ||
e8b05380 PB |
9209 | fi |
9210 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
9211 | |
9212 | ||
9213 | if test -n "$AR_FOR_TARGET"; then | |
9214 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
9215 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
9216 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
9217 | fi | |
9218 | ||
9219 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
9220 | for ncn_progname in ar; do | |
9221 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9222 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9225 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
9226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9227 | else | |
9228 | if test -n "$AR_FOR_TARGET"; then | |
9229 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
9230 | else | |
9231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9232 | for as_dir in $PATH | |
9233 | do | |
9234 | IFS=$as_save_IFS | |
9235 | test -z "$as_dir" && as_dir=. | |
9236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9238 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
9239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9240 | break 2 | |
9241 | fi | |
9242 | done | |
9243 | done | |
9244 | ||
9245 | fi | |
9246 | fi | |
9247 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
9248 | if test -n "$AR_FOR_TARGET"; then | |
2aeb72e9 DD |
9249 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9250 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
278a7a38 | 9251 | else |
2aeb72e9 DD |
9252 | echo "$as_me:$LINENO: result: no" >&5 |
9253 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9254 | fi |
9255 | ||
9256 | done | |
9257 | fi | |
9258 | ||
9259 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9260 | for ncn_progname in ar; do |
2aeb72e9 DD |
9261 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9262 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9263 | if test -x $with_build_time_tools/${ncn_progname}; then |
9264 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9265 | echo "$as_me:$LINENO: result: yes" >&5 |
9266 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9267 | break |
9268 | else | |
2aeb72e9 DD |
9269 | echo "$as_me:$LINENO: result: no" >&5 |
9270 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9271 | fi |
9272 | done | |
9273 | fi | |
9274 | ||
9275 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
9276 | for ncn_progname in ar; do | |
9277 | if test -n "$ncn_target_tool_prefix"; then | |
9278 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9279 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9282 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
9283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9284 | else |
e8b05380 PB |
9285 | if test -n "$AR_FOR_TARGET"; then |
9286 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9287 | else |
1c710c3c DJ |
9288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9289 | for as_dir in $PATH | |
9290 | do | |
9291 | IFS=$as_save_IFS | |
9292 | test -z "$as_dir" && as_dir=. | |
9293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9295 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9297 | break 2 | |
9298 | fi | |
9299 | done | |
9300 | done | |
9301 | ||
4de997d1 PB |
9302 | fi |
9303 | fi | |
1c710c3c | 9304 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 9305 | if test -n "$AR_FOR_TARGET"; then |
2aeb72e9 DD |
9306 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9307 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
4de997d1 | 9308 | else |
2aeb72e9 DD |
9309 | echo "$as_me:$LINENO: result: no" >&5 |
9310 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
9311 | fi |
9312 | ||
e8b05380 PB |
9313 | fi |
9314 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
9315 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9316 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9317 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9318 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9319 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then |
9320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9321 | else |
9322 | if test -n "$AR_FOR_TARGET"; then | |
9323 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
9324 | else | |
1c710c3c DJ |
9325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9326 | for as_dir in $PATH | |
9327 | do | |
9328 | IFS=$as_save_IFS | |
9329 | test -z "$as_dir" && as_dir=. | |
9330 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9331 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9332 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
9333 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9334 | break 2 | |
9335 | fi | |
9336 | done | |
9337 | done | |
9338 | ||
e8b05380 PB |
9339 | fi |
9340 | fi | |
1c710c3c | 9341 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 9342 | if test -n "$AR_FOR_TARGET"; then |
2aeb72e9 DD |
9343 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
9344 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
e8b05380 | 9345 | else |
2aeb72e9 DD |
9346 | echo "$as_me:$LINENO: result: no" >&5 |
9347 | echo "${ECHO_T}no" >&6 | |
e8b05380 | 9348 | fi |
1c710c3c | 9349 | |
e8b05380 PB |
9350 | fi |
9351 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
9352 | done | |
9353 | fi | |
1c710c3c | 9354 | |
e8b05380 PB |
9355 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
9356 | set dummy ar | |
9357 | if test $build = $target ; then | |
9358 | AR_FOR_TARGET="$2" | |
9359 | else | |
9360 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 9361 | fi |
1c00b503 PB |
9362 | else |
9363 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
9364 | fi |
9365 | ||
d1f8db0c PB |
9366 | else |
9367 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
9368 | fi |
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9374 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9375 | echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5 |
9376 | echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9377 | if test -x $with_build_time_tools/as; then |
9378 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
9379 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2aeb72e9 DD |
9380 | echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
9381 | echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6 | |
d1f8db0c | 9382 | else |
2aeb72e9 DD |
9383 | echo "$as_me:$LINENO: result: no" >&5 |
9384 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9385 | fi |
e8b05380 PB |
9386 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9387 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
9388 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
9389 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
9390 | fi |
9391 | fi | |
3e19841a | 9392 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9393 | # Extract the first word of "as", so it can be a program name with args. |
9394 | set dummy as; ac_word=$2 | |
2aeb72e9 DD |
9395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9397 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then |
9398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 9399 | else |
1c710c3c DJ |
9400 | case $AS_FOR_TARGET in |
9401 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9402 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
9403 | ;; | |
e8b05380 | 9404 | *) |
1c710c3c DJ |
9405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9406 | for as_dir in $gcc_cv_tool_dirs | |
9407 | do | |
9408 | IFS=$as_save_IFS | |
9409 | test -z "$as_dir" && as_dir=. | |
9410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9412 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9414 | break 2 | |
9415 | fi | |
9416 | done | |
9417 | done | |
9418 | ||
e8b05380 PB |
9419 | ;; |
9420 | esac | |
9421 | fi | |
1c710c3c | 9422 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2aeb72e9 | 9423 | |
e8b05380 | 9424 | if test -n "$AS_FOR_TARGET"; then |
2aeb72e9 DD |
9425 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9426 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
e8b05380 | 9427 | else |
2aeb72e9 DD |
9428 | echo "$as_me:$LINENO: result: no" >&5 |
9429 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9430 | fi |
9431 | ||
9432 | fi | |
9433 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
9434 | |
9435 | ||
9436 | if test -n "$AS_FOR_TARGET"; then | |
9437 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
9438 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
9439 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
9440 | fi | |
9441 | ||
9442 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
9443 | for ncn_progname in as; do | |
9444 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9445 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9448 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9450 | else | |
9451 | if test -n "$AS_FOR_TARGET"; then | |
9452 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
9453 | else | |
9454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9455 | for as_dir in $PATH | |
9456 | do | |
9457 | IFS=$as_save_IFS | |
9458 | test -z "$as_dir" && as_dir=. | |
9459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9461 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
9462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9463 | break 2 | |
9464 | fi | |
9465 | done | |
9466 | done | |
9467 | ||
9468 | fi | |
9469 | fi | |
9470 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
9471 | if test -n "$AS_FOR_TARGET"; then | |
2aeb72e9 DD |
9472 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9473 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
278a7a38 | 9474 | else |
2aeb72e9 DD |
9475 | echo "$as_me:$LINENO: result: no" >&5 |
9476 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9477 | fi |
9478 | ||
9479 | done | |
9480 | fi | |
9481 | ||
9482 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9483 | for ncn_progname in as; do |
2aeb72e9 DD |
9484 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9485 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9486 | if test -x $with_build_time_tools/${ncn_progname}; then |
9487 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9488 | echo "$as_me:$LINENO: result: yes" >&5 |
9489 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9490 | break |
9491 | else | |
2aeb72e9 DD |
9492 | echo "$as_me:$LINENO: result: no" >&5 |
9493 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9494 | fi |
9495 | done | |
9496 | fi | |
9497 | ||
9498 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
9499 | for ncn_progname in as; do | |
9500 | if test -n "$ncn_target_tool_prefix"; then | |
9501 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9502 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9505 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 PB |
9507 | else |
9508 | if test -n "$AS_FOR_TARGET"; then | |
9509 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
9510 | else | |
1c710c3c DJ |
9511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9512 | for as_dir in $PATH | |
9513 | do | |
9514 | IFS=$as_save_IFS | |
9515 | test -z "$as_dir" && as_dir=. | |
9516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9518 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9520 | break 2 | |
9521 | fi | |
9522 | done | |
9523 | done | |
9524 | ||
e8b05380 PB |
9525 | fi |
9526 | fi | |
1c710c3c | 9527 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 9528 | if test -n "$AS_FOR_TARGET"; then |
2aeb72e9 DD |
9529 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9530 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
e8b05380 | 9531 | else |
2aeb72e9 DD |
9532 | echo "$as_me:$LINENO: result: no" >&5 |
9533 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9534 | fi |
9535 | ||
9536 | fi | |
9537 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
9538 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9539 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9542 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then |
9543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9544 | else |
e8b05380 PB |
9545 | if test -n "$AS_FOR_TARGET"; then |
9546 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9547 | else |
1c710c3c DJ |
9548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9549 | for as_dir in $PATH | |
9550 | do | |
9551 | IFS=$as_save_IFS | |
9552 | test -z "$as_dir" && as_dir=. | |
9553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9555 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
9556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9557 | break 2 | |
9558 | fi | |
9559 | done | |
9560 | done | |
9561 | ||
4de997d1 PB |
9562 | fi |
9563 | fi | |
1c710c3c | 9564 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 9565 | if test -n "$AS_FOR_TARGET"; then |
2aeb72e9 DD |
9566 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
9567 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
4de997d1 | 9568 | else |
2aeb72e9 DD |
9569 | echo "$as_me:$LINENO: result: no" >&5 |
9570 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9571 | fi |
1c710c3c | 9572 | |
e8b05380 PB |
9573 | fi |
9574 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
9575 | done | |
9576 | fi | |
1c710c3c | 9577 | |
e8b05380 PB |
9578 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
9579 | set dummy as | |
9580 | if test $build = $target ; then | |
9581 | AS_FOR_TARGET="$2" | |
9582 | else | |
9583 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 9584 | fi |
1c00b503 PB |
9585 | else |
9586 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 9587 | fi |
2693c0b0 | 9588 | |
d1f8db0c PB |
9589 | else |
9590 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
9591 | fi |
9592 | ||
e8b05380 PB |
9593 | |
9594 | ||
9595 | ||
9596 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9597 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9598 | echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5 |
9599 | echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9600 | if test -x $with_build_time_tools/dlltool; then |
9601 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
9602 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2aeb72e9 DD |
9603 | echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
9604 | echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6 | |
d1f8db0c | 9605 | else |
2aeb72e9 DD |
9606 | echo "$as_me:$LINENO: result: no" >&5 |
9607 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9608 | fi |
e8b05380 PB |
9609 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9610 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
9611 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
9612 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
9613 | fi |
9614 | fi | |
3e19841a | 9615 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9616 | # Extract the first word of "dlltool", so it can be a program name with args. |
9617 | set dummy dlltool; ac_word=$2 | |
2aeb72e9 DD |
9618 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9620 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then |
9621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9622 | else |
1c710c3c DJ |
9623 | case $DLLTOOL_FOR_TARGET in |
9624 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9625 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
9626 | ;; | |
e8b05380 | 9627 | *) |
1c710c3c DJ |
9628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9629 | for as_dir in $gcc_cv_tool_dirs | |
9630 | do | |
9631 | IFS=$as_save_IFS | |
9632 | test -z "$as_dir" && as_dir=. | |
9633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9634 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9635 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9637 | break 2 | |
9638 | fi | |
9639 | done | |
9640 | done | |
9641 | ||
e8b05380 PB |
9642 | ;; |
9643 | esac | |
4de997d1 | 9644 | fi |
1c710c3c | 9645 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2aeb72e9 | 9646 | |
e8b05380 | 9647 | if test -n "$DLLTOOL_FOR_TARGET"; then |
2aeb72e9 DD |
9648 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9649 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
4de997d1 | 9650 | else |
2aeb72e9 DD |
9651 | echo "$as_me:$LINENO: result: no" >&5 |
9652 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
9653 | fi |
9654 | ||
e8b05380 PB |
9655 | fi |
9656 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
9657 | |
9658 | ||
9659 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
9660 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
9661 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9662 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
9663 | fi | |
9664 | ||
9665 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9666 | for ncn_progname in dlltool; do | |
9667 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9668 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9671 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9673 | else | |
9674 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
9675 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
9676 | else | |
9677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9678 | for as_dir in $PATH | |
9679 | do | |
9680 | IFS=$as_save_IFS | |
9681 | test -z "$as_dir" && as_dir=. | |
9682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9684 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
9685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9686 | break 2 | |
9687 | fi | |
9688 | done | |
9689 | done | |
9690 | ||
9691 | fi | |
9692 | fi | |
9693 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
9694 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
2aeb72e9 DD |
9695 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9696 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
278a7a38 | 9697 | else |
2aeb72e9 DD |
9698 | echo "$as_me:$LINENO: result: no" >&5 |
9699 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9700 | fi |
9701 | ||
9702 | done | |
9703 | fi | |
9704 | ||
9705 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9706 | for ncn_progname in dlltool; do |
2aeb72e9 DD |
9707 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9708 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9709 | if test -x $with_build_time_tools/${ncn_progname}; then |
9710 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9711 | echo "$as_me:$LINENO: result: yes" >&5 |
9712 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9713 | break |
9714 | else | |
2aeb72e9 DD |
9715 | echo "$as_me:$LINENO: result: no" >&5 |
9716 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9717 | fi |
9718 | done | |
9719 | fi | |
9720 | ||
9721 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
9722 | for ncn_progname in dlltool; do | |
9723 | if test -n "$ncn_target_tool_prefix"; then | |
9724 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9725 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9728 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9730 | else |
e8b05380 PB |
9731 | if test -n "$DLLTOOL_FOR_TARGET"; then |
9732 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9733 | else |
1c710c3c DJ |
9734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9735 | for as_dir in $PATH | |
9736 | do | |
9737 | IFS=$as_save_IFS | |
9738 | test -z "$as_dir" && as_dir=. | |
9739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9741 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9743 | break 2 | |
9744 | fi | |
9745 | done | |
9746 | done | |
9747 | ||
4de997d1 PB |
9748 | fi |
9749 | fi | |
1c710c3c | 9750 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 9751 | if test -n "$DLLTOOL_FOR_TARGET"; then |
2aeb72e9 DD |
9752 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9753 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
4de997d1 | 9754 | else |
2aeb72e9 DD |
9755 | echo "$as_me:$LINENO: result: no" >&5 |
9756 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9757 | fi |
4de997d1 | 9758 | |
e8b05380 PB |
9759 | fi |
9760 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
9761 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9762 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9765 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then |
9766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9767 | else |
e8b05380 PB |
9768 | if test -n "$DLLTOOL_FOR_TARGET"; then |
9769 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9770 | else |
1c710c3c DJ |
9771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9772 | for as_dir in $PATH | |
9773 | do | |
9774 | IFS=$as_save_IFS | |
9775 | test -z "$as_dir" && as_dir=. | |
9776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9778 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
9779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9780 | break 2 | |
9781 | fi | |
9782 | done | |
9783 | done | |
9784 | ||
4de997d1 PB |
9785 | fi |
9786 | fi | |
1c710c3c | 9787 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 9788 | if test -n "$DLLTOOL_FOR_TARGET"; then |
2aeb72e9 DD |
9789 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
9790 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
4de997d1 | 9791 | else |
2aeb72e9 DD |
9792 | echo "$as_me:$LINENO: result: no" >&5 |
9793 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9794 | fi |
1c710c3c | 9795 | |
e8b05380 PB |
9796 | fi |
9797 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
9798 | done | |
9799 | fi | |
1c710c3c | 9800 | |
e8b05380 PB |
9801 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
9802 | set dummy dlltool | |
9803 | if test $build = $target ; then | |
9804 | DLLTOOL_FOR_TARGET="$2" | |
9805 | else | |
9806 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
9807 | fi | |
1c00b503 PB |
9808 | else |
9809 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
9810 | fi |
9811 | ||
d1f8db0c PB |
9812 | else |
9813 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
9814 | fi |
9815 | ||
4de997d1 | 9816 | |
e8b05380 PB |
9817 | |
9818 | ||
9819 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9820 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
9821 | echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5 |
9822 | echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9823 | if test -x $with_build_time_tools/ld; then |
9824 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
9825 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2aeb72e9 DD |
9826 | echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
9827 | echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6 | |
d1f8db0c | 9828 | else |
2aeb72e9 DD |
9829 | echo "$as_me:$LINENO: result: no" >&5 |
9830 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 9831 | fi |
e8b05380 PB |
9832 | elif test $build != $host && test $have_gcc_for_target = yes; then |
9833 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
9834 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
9835 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 9836 | fi |
e8b05380 | 9837 | fi |
3e19841a | 9838 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
9839 | # Extract the first word of "ld", so it can be a program name with args. |
9840 | set dummy ld; ac_word=$2 | |
2aeb72e9 DD |
9841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9843 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then |
9844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 9845 | else |
1c710c3c DJ |
9846 | case $LD_FOR_TARGET in |
9847 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
9848 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
9849 | ;; | |
e8b05380 | 9850 | *) |
1c710c3c DJ |
9851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9852 | for as_dir in $gcc_cv_tool_dirs | |
9853 | do | |
9854 | IFS=$as_save_IFS | |
9855 | test -z "$as_dir" && as_dir=. | |
9856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9858 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
9859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9860 | break 2 | |
9861 | fi | |
9862 | done | |
9863 | done | |
9864 | ||
e8b05380 PB |
9865 | ;; |
9866 | esac | |
4de997d1 | 9867 | fi |
1c710c3c | 9868 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2aeb72e9 | 9869 | |
e8b05380 | 9870 | if test -n "$LD_FOR_TARGET"; then |
2aeb72e9 DD |
9871 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9872 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
4de997d1 | 9873 | else |
2aeb72e9 DD |
9874 | echo "$as_me:$LINENO: result: no" >&5 |
9875 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 9876 | fi |
2693c0b0 | 9877 | |
e8b05380 PB |
9878 | fi |
9879 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
9880 | |
9881 | ||
9882 | if test -n "$LD_FOR_TARGET"; then | |
9883 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
9884 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
9885 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
9886 | fi | |
9887 | ||
9888 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
9889 | for ncn_progname in ld; do | |
9890 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9891 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
9892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
9894 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9896 | else | |
9897 | if test -n "$LD_FOR_TARGET"; then | |
9898 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
9899 | else | |
9900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9901 | for as_dir in $PATH | |
9902 | do | |
9903 | IFS=$as_save_IFS | |
9904 | test -z "$as_dir" && as_dir=. | |
9905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
9907 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
9908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9909 | break 2 | |
9910 | fi | |
9911 | done | |
9912 | done | |
9913 | ||
9914 | fi | |
9915 | fi | |
9916 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
9917 | if test -n "$LD_FOR_TARGET"; then | |
2aeb72e9 DD |
9918 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9919 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
278a7a38 | 9920 | else |
2aeb72e9 DD |
9921 | echo "$as_me:$LINENO: result: no" >&5 |
9922 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
9923 | fi |
9924 | ||
9925 | done | |
9926 | fi | |
9927 | ||
9928 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9929 | for ncn_progname in ld; do |
2aeb72e9 DD |
9930 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9931 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
9932 | if test -x $with_build_time_tools/${ncn_progname}; then |
9933 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
9934 | echo "$as_me:$LINENO: result: yes" >&5 |
9935 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
9936 | break |
9937 | else | |
2aeb72e9 DD |
9938 | echo "$as_me:$LINENO: result: no" >&5 |
9939 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
9940 | fi |
9941 | done | |
ca9f4b81 AO |
9942 | fi |
9943 | ||
e8b05380 PB |
9944 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
9945 | for ncn_progname in ld; do | |
9946 | if test -n "$ncn_target_tool_prefix"; then | |
9947 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9948 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9949 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9951 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9953 | else |
4de997d1 PB |
9954 | if test -n "$LD_FOR_TARGET"; then |
9955 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9956 | else |
1c710c3c DJ |
9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9958 | for as_dir in $PATH | |
9959 | do | |
9960 | IFS=$as_save_IFS | |
9961 | test -z "$as_dir" && as_dir=. | |
9962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 9963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
9964 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
9965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9966 | break 2 | |
9967 | fi | |
9968 | done | |
9969 | done | |
9970 | ||
ca9f4b81 AO |
9971 | fi |
9972 | fi | |
1c710c3c | 9973 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 9974 | if test -n "$LD_FOR_TARGET"; then |
2aeb72e9 DD |
9975 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
9976 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
ca9f4b81 | 9977 | else |
2aeb72e9 DD |
9978 | echo "$as_me:$LINENO: result: no" >&5 |
9979 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
9980 | fi |
9981 | ||
e8b05380 PB |
9982 | fi |
9983 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
9984 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9985 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
9986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
9988 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then |
9989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 9990 | else |
2693c0b0 PB |
9991 | if test -n "$LD_FOR_TARGET"; then |
9992 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 9993 | else |
1c710c3c DJ |
9994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9995 | for as_dir in $PATH | |
9996 | do | |
9997 | IFS=$as_save_IFS | |
9998 | test -z "$as_dir" && as_dir=. | |
9999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10001 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
10002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10003 | break 2 | |
10004 | fi | |
10005 | done | |
10006 | done | |
10007 | ||
ca9f4b81 AO |
10008 | fi |
10009 | fi | |
1c710c3c | 10010 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 10011 | if test -n "$LD_FOR_TARGET"; then |
2aeb72e9 DD |
10012 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
10013 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
ca9f4b81 | 10014 | else |
2aeb72e9 DD |
10015 | echo "$as_me:$LINENO: result: no" >&5 |
10016 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 10017 | fi |
1c710c3c | 10018 | |
e8b05380 PB |
10019 | fi |
10020 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
10021 | done | |
10022 | fi | |
1c710c3c | 10023 | |
2693c0b0 PB |
10024 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
10025 | set dummy ld | |
10026 | if test $build = $target ; then | |
10027 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 10028 | else |
2693c0b0 | 10029 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 10030 | fi |
1c00b503 PB |
10031 | else |
10032 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
10033 | fi |
10034 | ||
d1f8db0c PB |
10035 | else |
10036 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
10037 | fi |
10038 | ||
10039 | ||
10040 | ||
10041 | ||
10042 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
10043 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10044 | echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5 |
10045 | echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10046 | if test -x $with_build_time_tools/lipo; then |
10047 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
10048 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2aeb72e9 DD |
10049 | echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
10050 | echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6 | |
d1f8db0c | 10051 | else |
2aeb72e9 DD |
10052 | echo "$as_me:$LINENO: result: no" >&5 |
10053 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10054 | fi |
e8b05380 PB |
10055 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10056 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
10057 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
10058 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
10059 | fi |
10060 | fi | |
278a7a38 AO |
10061 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
10062 | # Extract the first word of "lipo", so it can be a program name with args. | |
10063 | set dummy lipo; ac_word=$2 | |
2aeb72e9 DD |
10064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10066 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then |
10067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10068 | else | |
10069 | case $LIPO_FOR_TARGET in | |
10070 | [\\/]* | ?:[\\/]*) | |
10071 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
10072 | ;; | |
10073 | *) | |
10074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10075 | for as_dir in $gcc_cv_tool_dirs | |
10076 | do | |
10077 | IFS=$as_save_IFS | |
10078 | test -z "$as_dir" && as_dir=. | |
10079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10081 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10083 | break 2 | |
10084 | fi | |
10085 | done | |
10086 | done | |
10087 | ||
10088 | ;; | |
10089 | esac | |
10090 | fi | |
10091 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2aeb72e9 | 10092 | |
278a7a38 | 10093 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
10094 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10095 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
278a7a38 | 10096 | else |
2aeb72e9 DD |
10097 | echo "$as_me:$LINENO: result: no" >&5 |
10098 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10099 | fi |
10100 | ||
10101 | fi | |
10102 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
10103 | ||
10104 | ||
10105 | if test -n "$LIPO_FOR_TARGET"; then | |
10106 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
10107 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
10108 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
10109 | fi | |
10110 | ||
10111 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
10112 | for ncn_progname in lipo; do | |
10113 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10114 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 | 10117 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
1c710c3c | 10118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e8b05380 | 10119 | else |
278a7a38 AO |
10120 | if test -n "$LIPO_FOR_TARGET"; then |
10121 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
10122 | else | |
10123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10124 | for as_dir in $PATH | |
1c710c3c DJ |
10125 | do |
10126 | IFS=$as_save_IFS | |
10127 | test -z "$as_dir" && as_dir=. | |
10128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10130 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
1c710c3c DJ |
10131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10132 | break 2 | |
10133 | fi | |
10134 | done | |
10135 | done | |
10136 | ||
e8b05380 | 10137 | fi |
278a7a38 AO |
10138 | fi |
10139 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 10140 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
10141 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10142 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
e8b05380 | 10143 | else |
2aeb72e9 DD |
10144 | echo "$as_me:$LINENO: result: no" >&5 |
10145 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10146 | fi |
10147 | ||
278a7a38 | 10148 | done |
e8b05380 | 10149 | fi |
278a7a38 AO |
10150 | |
10151 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10152 | for ncn_progname in lipo; do |
2aeb72e9 DD |
10153 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10154 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10155 | if test -x $with_build_time_tools/${ncn_progname}; then |
10156 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10157 | echo "$as_me:$LINENO: result: yes" >&5 |
10158 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10159 | break |
10160 | else | |
2aeb72e9 DD |
10161 | echo "$as_me:$LINENO: result: no" >&5 |
10162 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10163 | fi |
10164 | done | |
10165 | fi | |
10166 | ||
10167 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
10168 | for ncn_progname in lipo; 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. | |
2693c0b0 | 10171 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10174 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
10175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
10176 | else |
10177 | if test -n "$LIPO_FOR_TARGET"; then | |
10178 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
10179 | else | |
1c710c3c DJ |
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 | |
2aeb72e9 | 10186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10187 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10189 | break 2 | |
10190 | fi | |
10191 | done | |
10192 | done | |
10193 | ||
040b1c5a GK |
10194 | fi |
10195 | fi | |
1c710c3c | 10196 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 10197 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
10198 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10199 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
040b1c5a | 10200 | else |
2aeb72e9 DD |
10201 | echo "$as_me:$LINENO: result: no" >&5 |
10202 | echo "${ECHO_T}no" >&6 | |
040b1c5a GK |
10203 | fi |
10204 | ||
e8b05380 PB |
10205 | fi |
10206 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
10207 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 10208 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10211 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then |
10212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
10213 | else |
10214 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
10215 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
10216 | else | |
1c710c3c DJ |
10217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10218 | for as_dir in $PATH | |
10219 | do | |
10220 | IFS=$as_save_IFS | |
10221 | test -z "$as_dir" && as_dir=. | |
10222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10224 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
10225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10226 | break 2 | |
10227 | fi | |
10228 | done | |
10229 | done | |
10230 | ||
040b1c5a GK |
10231 | fi |
10232 | fi | |
1c710c3c | 10233 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 10234 | if test -n "$LIPO_FOR_TARGET"; then |
2aeb72e9 DD |
10235 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
10236 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
040b1c5a | 10237 | else |
2aeb72e9 DD |
10238 | echo "$as_me:$LINENO: result: no" >&5 |
10239 | echo "${ECHO_T}no" >&6 | |
040b1c5a | 10240 | fi |
1c710c3c | 10241 | |
e8b05380 PB |
10242 | fi |
10243 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
10244 | done | |
10245 | fi | |
1c710c3c | 10246 | |
040b1c5a GK |
10247 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
10248 | set dummy lipo | |
10249 | if test $build = $target ; then | |
10250 | LIPO_FOR_TARGET="$2" | |
10251 | else | |
10252 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10253 | fi | |
1c00b503 PB |
10254 | else |
10255 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
10256 | fi |
10257 | ||
d1f8db0c PB |
10258 | else |
10259 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
10260 | fi |
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
10266 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10267 | echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5 |
10268 | echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10269 | if test -x $with_build_time_tools/nm; then |
10270 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
10271 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2aeb72e9 DD |
10272 | echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
10273 | echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6 | |
d1f8db0c | 10274 | else |
2aeb72e9 DD |
10275 | echo "$as_me:$LINENO: result: no" >&5 |
10276 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10277 | fi |
e8b05380 PB |
10278 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10279 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
10280 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
10281 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
10282 | fi |
10283 | fi | |
3e19841a | 10284 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10285 | # Extract the first word of "nm", so it can be a program name with args. |
10286 | set dummy nm; ac_word=$2 | |
2aeb72e9 DD |
10287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10289 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then |
10290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10291 | else |
1c710c3c DJ |
10292 | case $NM_FOR_TARGET in |
10293 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10294 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
10295 | ;; | |
e8b05380 | 10296 | *) |
1c710c3c DJ |
10297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10298 | for as_dir in $gcc_cv_tool_dirs | |
10299 | do | |
10300 | IFS=$as_save_IFS | |
10301 | test -z "$as_dir" && as_dir=. | |
10302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10304 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10306 | break 2 | |
10307 | fi | |
10308 | done | |
10309 | done | |
10310 | ||
e8b05380 PB |
10311 | ;; |
10312 | esac | |
10313 | fi | |
1c710c3c | 10314 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2aeb72e9 | 10315 | |
e8b05380 | 10316 | if test -n "$NM_FOR_TARGET"; then |
2aeb72e9 DD |
10317 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10318 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
e8b05380 | 10319 | else |
2aeb72e9 DD |
10320 | echo "$as_me:$LINENO: result: no" >&5 |
10321 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10322 | fi |
10323 | ||
10324 | fi | |
10325 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
10326 | |
10327 | ||
10328 | if test -n "$NM_FOR_TARGET"; then | |
10329 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
10330 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
10331 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
10332 | fi | |
10333 | ||
10334 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
10335 | for ncn_progname in nm; do | |
10336 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10337 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10340 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
10341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10342 | else | |
10343 | if test -n "$NM_FOR_TARGET"; then | |
10344 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
10345 | else | |
10346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10347 | for as_dir in $PATH | |
10348 | do | |
10349 | IFS=$as_save_IFS | |
10350 | test -z "$as_dir" && as_dir=. | |
10351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10353 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
10354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10355 | break 2 | |
10356 | fi | |
10357 | done | |
10358 | done | |
10359 | ||
10360 | fi | |
10361 | fi | |
10362 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
10363 | if test -n "$NM_FOR_TARGET"; then | |
2aeb72e9 DD |
10364 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10365 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
278a7a38 | 10366 | else |
2aeb72e9 DD |
10367 | echo "$as_me:$LINENO: result: no" >&5 |
10368 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10369 | fi |
10370 | ||
10371 | done | |
10372 | fi | |
10373 | ||
10374 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10375 | for ncn_progname in nm; do |
2aeb72e9 DD |
10376 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10377 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10378 | if test -x $with_build_time_tools/${ncn_progname}; then |
10379 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10380 | echo "$as_me:$LINENO: result: yes" >&5 |
10381 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10382 | break |
10383 | else | |
2aeb72e9 DD |
10384 | echo "$as_me:$LINENO: result: no" >&5 |
10385 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10386 | fi |
10387 | done | |
10388 | fi | |
10389 | ||
10390 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
10391 | for ncn_progname in nm; do | |
10392 | if test -n "$ncn_target_tool_prefix"; then | |
10393 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 10394 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10397 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
10398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10399 | else |
4de997d1 PB |
10400 | if test -n "$NM_FOR_TARGET"; then |
10401 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10402 | else |
1c710c3c DJ |
10403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10404 | for as_dir in $PATH | |
10405 | do | |
10406 | IFS=$as_save_IFS | |
10407 | test -z "$as_dir" && as_dir=. | |
10408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10410 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10412 | break 2 | |
10413 | fi | |
10414 | done | |
10415 | done | |
10416 | ||
ca9f4b81 AO |
10417 | fi |
10418 | fi | |
1c710c3c | 10419 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 10420 | if test -n "$NM_FOR_TARGET"; then |
2aeb72e9 DD |
10421 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10422 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
ca9f4b81 | 10423 | else |
2aeb72e9 DD |
10424 | echo "$as_me:$LINENO: result: no" >&5 |
10425 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
10426 | fi |
10427 | ||
e8b05380 PB |
10428 | fi |
10429 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
10430 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10431 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10434 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then |
10435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10436 | else |
2693c0b0 PB |
10437 | if test -n "$NM_FOR_TARGET"; then |
10438 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10439 | else |
1c710c3c DJ |
10440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10441 | for as_dir in $PATH | |
10442 | do | |
10443 | IFS=$as_save_IFS | |
10444 | test -z "$as_dir" && as_dir=. | |
10445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10447 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
10448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10449 | break 2 | |
10450 | fi | |
10451 | done | |
10452 | done | |
10453 | ||
ca9f4b81 AO |
10454 | fi |
10455 | fi | |
1c710c3c | 10456 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 10457 | if test -n "$NM_FOR_TARGET"; then |
2aeb72e9 DD |
10458 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
10459 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
ca9f4b81 | 10460 | else |
2aeb72e9 DD |
10461 | echo "$as_me:$LINENO: result: no" >&5 |
10462 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 10463 | fi |
1c710c3c | 10464 | |
e8b05380 PB |
10465 | fi |
10466 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
10467 | done | |
10468 | fi | |
1c710c3c | 10469 | |
2693c0b0 PB |
10470 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
10471 | set dummy nm | |
10472 | if test $build = $target ; then | |
10473 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 10474 | else |
2693c0b0 | 10475 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 10476 | fi |
1c00b503 PB |
10477 | else |
10478 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
10479 | fi |
10480 | ||
d1f8db0c PB |
10481 | else |
10482 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
10483 | fi |
10484 | ||
10485 | ||
10486 | ||
10487 | ||
10488 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
10489 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10490 | echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5 |
10491 | echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10492 | if test -x $with_build_time_tools/objdump; then |
10493 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
10494 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2aeb72e9 DD |
10495 | echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
10496 | echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6 | |
d1f8db0c | 10497 | else |
2aeb72e9 DD |
10498 | echo "$as_me:$LINENO: result: no" >&5 |
10499 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10500 | fi |
e8b05380 PB |
10501 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10502 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
10503 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
10504 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
10505 | fi |
10506 | fi | |
3e19841a | 10507 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10508 | # Extract the first word of "objdump", so it can be a program name with args. |
10509 | set dummy objdump; ac_word=$2 | |
2aeb72e9 DD |
10510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10512 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then |
10513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10514 | else |
1c710c3c DJ |
10515 | case $OBJDUMP_FOR_TARGET in |
10516 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10517 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
10518 | ;; | |
e8b05380 | 10519 | *) |
1c710c3c DJ |
10520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10521 | for as_dir in $gcc_cv_tool_dirs | |
10522 | do | |
10523 | IFS=$as_save_IFS | |
10524 | test -z "$as_dir" && as_dir=. | |
10525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10527 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10529 | break 2 | |
10530 | fi | |
10531 | done | |
10532 | done | |
10533 | ||
e8b05380 PB |
10534 | ;; |
10535 | esac | |
10536 | fi | |
1c710c3c | 10537 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2aeb72e9 | 10538 | |
e8b05380 | 10539 | if test -n "$OBJDUMP_FOR_TARGET"; then |
2aeb72e9 DD |
10540 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10541 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
e8b05380 | 10542 | else |
2aeb72e9 DD |
10543 | echo "$as_me:$LINENO: result: no" >&5 |
10544 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10545 | fi |
10546 | ||
10547 | fi | |
10548 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
10549 | |
10550 | ||
10551 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10552 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
10553 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10554 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
10555 | fi | |
10556 | ||
10557 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10558 | for ncn_progname in objdump; do | |
10559 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10560 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10563 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10565 | else | |
10566 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10567 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10568 | else | |
10569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10570 | for as_dir in $PATH | |
10571 | do | |
10572 | IFS=$as_save_IFS | |
10573 | test -z "$as_dir" && as_dir=. | |
10574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10576 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
10577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10578 | break 2 | |
10579 | fi | |
10580 | done | |
10581 | done | |
10582 | ||
10583 | fi | |
10584 | fi | |
10585 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
10586 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
2aeb72e9 DD |
10587 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10588 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
278a7a38 | 10589 | else |
2aeb72e9 DD |
10590 | echo "$as_me:$LINENO: result: no" >&5 |
10591 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10592 | fi |
10593 | ||
10594 | done | |
10595 | fi | |
10596 | ||
10597 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10598 | for ncn_progname in objdump; do |
2aeb72e9 DD |
10599 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10600 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10601 | if test -x $with_build_time_tools/${ncn_progname}; then |
10602 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10603 | echo "$as_me:$LINENO: result: yes" >&5 |
10604 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10605 | break |
10606 | else | |
2aeb72e9 DD |
10607 | echo "$as_me:$LINENO: result: no" >&5 |
10608 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10609 | fi |
10610 | done | |
10611 | fi | |
10612 | ||
10613 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
10614 | for ncn_progname in objdump; do | |
10615 | if test -n "$ncn_target_tool_prefix"; then | |
10616 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10617 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10618 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10620 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d739199a DJ |
10622 | else |
10623 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10624 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10625 | else | |
1c710c3c DJ |
10626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10627 | for as_dir in $PATH | |
10628 | do | |
10629 | IFS=$as_save_IFS | |
10630 | test -z "$as_dir" && as_dir=. | |
10631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10632 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10633 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10635 | break 2 | |
10636 | fi | |
10637 | done | |
10638 | done | |
10639 | ||
d739199a DJ |
10640 | fi |
10641 | fi | |
1c710c3c | 10642 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 10643 | if test -n "$OBJDUMP_FOR_TARGET"; then |
2aeb72e9 DD |
10644 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10645 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
d739199a | 10646 | else |
2aeb72e9 DD |
10647 | echo "$as_me:$LINENO: result: no" >&5 |
10648 | echo "${ECHO_T}no" >&6 | |
d739199a DJ |
10649 | fi |
10650 | ||
e8b05380 PB |
10651 | fi |
10652 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
10653 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 10654 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10657 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then |
10658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d739199a DJ |
10659 | else |
10660 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
10661 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
10662 | else | |
1c710c3c DJ |
10663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10664 | for as_dir in $PATH | |
10665 | do | |
10666 | IFS=$as_save_IFS | |
10667 | test -z "$as_dir" && as_dir=. | |
10668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10669 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10670 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
10671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10672 | break 2 | |
10673 | fi | |
10674 | done | |
10675 | done | |
10676 | ||
d739199a DJ |
10677 | fi |
10678 | fi | |
1c710c3c | 10679 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 10680 | if test -n "$OBJDUMP_FOR_TARGET"; then |
2aeb72e9 DD |
10681 | echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 |
10682 | echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 | |
d739199a | 10683 | else |
2aeb72e9 DD |
10684 | echo "$as_me:$LINENO: result: no" >&5 |
10685 | echo "${ECHO_T}no" >&6 | |
d739199a | 10686 | fi |
1c710c3c | 10687 | |
e8b05380 PB |
10688 | fi |
10689 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
10690 | done | |
10691 | fi | |
1c710c3c | 10692 | |
d739199a DJ |
10693 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
10694 | set dummy objdump | |
10695 | if test $build = $target ; then | |
10696 | OBJDUMP_FOR_TARGET="$2" | |
10697 | else | |
10698 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10699 | fi | |
1c00b503 PB |
10700 | else |
10701 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
10702 | fi |
10703 | ||
d1f8db0c PB |
10704 | else |
10705 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
10706 | fi |
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
10712 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10713 | echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5 |
10714 | echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10715 | if test -x $with_build_time_tools/ranlib; then |
10716 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
10717 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2aeb72e9 DD |
10718 | echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
10719 | echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6 | |
d1f8db0c | 10720 | else |
2aeb72e9 DD |
10721 | echo "$as_me:$LINENO: result: no" >&5 |
10722 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10723 | fi |
e8b05380 PB |
10724 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10725 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
10726 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
10727 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
10728 | fi |
10729 | fi | |
3e19841a | 10730 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10731 | # Extract the first word of "ranlib", so it can be a program name with args. |
10732 | set dummy ranlib; ac_word=$2 | |
2aeb72e9 DD |
10733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10735 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then |
10736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10737 | else |
1c710c3c DJ |
10738 | case $RANLIB_FOR_TARGET in |
10739 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10740 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
10741 | ;; | |
e8b05380 | 10742 | *) |
1c710c3c DJ |
10743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10744 | for as_dir in $gcc_cv_tool_dirs | |
10745 | do | |
10746 | IFS=$as_save_IFS | |
10747 | test -z "$as_dir" && as_dir=. | |
10748 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10749 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10750 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10752 | break 2 | |
10753 | fi | |
10754 | done | |
10755 | done | |
10756 | ||
e8b05380 PB |
10757 | ;; |
10758 | esac | |
10759 | fi | |
1c710c3c | 10760 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2aeb72e9 | 10761 | |
e8b05380 | 10762 | if test -n "$RANLIB_FOR_TARGET"; then |
2aeb72e9 DD |
10763 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10764 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
e8b05380 | 10765 | else |
2aeb72e9 DD |
10766 | echo "$as_me:$LINENO: result: no" >&5 |
10767 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10768 | fi |
10769 | ||
10770 | fi | |
10771 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
10772 | |
10773 | ||
10774 | if test -n "$RANLIB_FOR_TARGET"; then | |
10775 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
10776 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10777 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
10778 | fi | |
10779 | ||
10780 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10781 | for ncn_progname in ranlib; do | |
10782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10783 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
10784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
10786 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10788 | else | |
10789 | if test -n "$RANLIB_FOR_TARGET"; then | |
10790 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
10791 | else | |
10792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10793 | for as_dir in $PATH | |
10794 | do | |
10795 | IFS=$as_save_IFS | |
10796 | test -z "$as_dir" && as_dir=. | |
10797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
10799 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
10800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10801 | break 2 | |
10802 | fi | |
10803 | done | |
10804 | done | |
10805 | ||
10806 | fi | |
10807 | fi | |
10808 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
10809 | if test -n "$RANLIB_FOR_TARGET"; then | |
2aeb72e9 DD |
10810 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10811 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
278a7a38 | 10812 | else |
2aeb72e9 DD |
10813 | echo "$as_me:$LINENO: result: no" >&5 |
10814 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
10815 | fi |
10816 | ||
10817 | done | |
10818 | fi | |
10819 | ||
10820 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10821 | for ncn_progname in ranlib; do |
2aeb72e9 DD |
10822 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10823 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10824 | if test -x $with_build_time_tools/${ncn_progname}; then |
10825 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
10826 | echo "$as_me:$LINENO: result: yes" >&5 |
10827 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
10828 | break |
10829 | else | |
2aeb72e9 DD |
10830 | echo "$as_me:$LINENO: result: no" >&5 |
10831 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10832 | fi |
10833 | done | |
10834 | fi | |
10835 | ||
10836 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
10837 | for ncn_progname in ranlib; do | |
10838 | if test -n "$ncn_target_tool_prefix"; then | |
10839 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 10840 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10843 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10845 | else |
4de997d1 PB |
10846 | if test -n "$RANLIB_FOR_TARGET"; then |
10847 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10848 | else |
1c710c3c DJ |
10849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10850 | for as_dir in $PATH | |
10851 | do | |
10852 | IFS=$as_save_IFS | |
10853 | test -z "$as_dir" && as_dir=. | |
10854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10855 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10856 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10858 | break 2 | |
10859 | fi | |
10860 | done | |
10861 | done | |
10862 | ||
ca9f4b81 AO |
10863 | fi |
10864 | fi | |
1c710c3c | 10865 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 10866 | if test -n "$RANLIB_FOR_TARGET"; then |
2aeb72e9 DD |
10867 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10868 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
ca9f4b81 | 10869 | else |
2aeb72e9 DD |
10870 | echo "$as_me:$LINENO: result: no" >&5 |
10871 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
10872 | fi |
10873 | ||
e8b05380 PB |
10874 | fi |
10875 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
10876 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10877 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
10878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10880 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then |
10881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 10882 | else |
2693c0b0 PB |
10883 | if test -n "$RANLIB_FOR_TARGET"; then |
10884 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10885 | else |
1c710c3c DJ |
10886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10887 | for as_dir in $PATH | |
10888 | do | |
10889 | IFS=$as_save_IFS | |
10890 | test -z "$as_dir" && as_dir=. | |
10891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10893 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
10894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10895 | break 2 | |
10896 | fi | |
10897 | done | |
10898 | done | |
10899 | ||
ca9f4b81 AO |
10900 | fi |
10901 | fi | |
1c710c3c | 10902 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 10903 | if test -n "$RANLIB_FOR_TARGET"; then |
2aeb72e9 DD |
10904 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
10905 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
ca9f4b81 | 10906 | else |
2aeb72e9 DD |
10907 | echo "$as_me:$LINENO: result: no" >&5 |
10908 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 10909 | fi |
1c710c3c | 10910 | |
e8b05380 PB |
10911 | fi |
10912 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
10913 | done | |
10914 | fi | |
1c710c3c | 10915 | |
e8b05380 PB |
10916 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
10917 | set dummy ranlib | |
10918 | if test $build = $target ; then | |
10919 | RANLIB_FOR_TARGET="$2" | |
10920 | else | |
10921 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 10922 | fi |
1c00b503 PB |
10923 | else |
10924 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 10925 | fi |
2693c0b0 | 10926 | |
d1f8db0c PB |
10927 | else |
10928 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
10929 | fi |
10930 | ||
e8b05380 PB |
10931 | |
10932 | ||
10933 | ||
10934 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
10935 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
10936 | echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5 |
10937 | echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
10938 | if test -x $with_build_time_tools/strip; then |
10939 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
10940 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2aeb72e9 DD |
10941 | echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
10942 | echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6 | |
d1f8db0c | 10943 | else |
2aeb72e9 DD |
10944 | echo "$as_me:$LINENO: result: no" >&5 |
10945 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 10946 | fi |
e8b05380 PB |
10947 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10948 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
10949 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
10950 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
10951 | fi |
10952 | fi | |
3e19841a | 10953 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10954 | # Extract the first word of "strip", so it can be a program name with args. |
10955 | set dummy strip; ac_word=$2 | |
2aeb72e9 DD |
10956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
10958 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then |
10959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 10960 | else |
1c710c3c DJ |
10961 | case $STRIP_FOR_TARGET in |
10962 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10963 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
10964 | ;; | |
e8b05380 | 10965 | *) |
1c710c3c DJ |
10966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10967 | for as_dir in $gcc_cv_tool_dirs | |
10968 | do | |
10969 | IFS=$as_save_IFS | |
10970 | test -z "$as_dir" && as_dir=. | |
10971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 10972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
10973 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
10974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10975 | break 2 | |
10976 | fi | |
10977 | done | |
10978 | done | |
10979 | ||
e8b05380 PB |
10980 | ;; |
10981 | esac | |
10982 | fi | |
1c710c3c | 10983 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2aeb72e9 | 10984 | |
e8b05380 | 10985 | if test -n "$STRIP_FOR_TARGET"; then |
2aeb72e9 DD |
10986 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
10987 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
e8b05380 | 10988 | else |
2aeb72e9 DD |
10989 | echo "$as_me:$LINENO: result: no" >&5 |
10990 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
10991 | fi |
10992 | ||
10993 | fi | |
10994 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
10995 | |
10996 | ||
10997 | if test -n "$STRIP_FOR_TARGET"; then | |
10998 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
10999 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
11000 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
11001 | fi | |
11002 | ||
11003 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
11004 | for ncn_progname in strip; do | |
11005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11006 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
11007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
11009 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
11010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11011 | else | |
11012 | if test -n "$STRIP_FOR_TARGET"; then | |
11013 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
11014 | else | |
11015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11016 | for as_dir in $PATH | |
11017 | do | |
11018 | IFS=$as_save_IFS | |
11019 | test -z "$as_dir" && as_dir=. | |
11020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 11021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
11022 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
11023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11024 | break 2 | |
11025 | fi | |
11026 | done | |
11027 | done | |
11028 | ||
11029 | fi | |
11030 | fi | |
11031 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
11032 | if test -n "$STRIP_FOR_TARGET"; then | |
2aeb72e9 DD |
11033 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
11034 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
278a7a38 | 11035 | else |
2aeb72e9 DD |
11036 | echo "$as_me:$LINENO: result: no" >&5 |
11037 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
11038 | fi |
11039 | ||
11040 | done | |
11041 | fi | |
11042 | ||
11043 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11044 | for ncn_progname in strip; do |
2aeb72e9 DD |
11045 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11046 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
11047 | if test -x $with_build_time_tools/${ncn_progname}; then |
11048 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
11049 | echo "$as_me:$LINENO: result: yes" >&5 |
11050 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
11051 | break |
11052 | else | |
2aeb72e9 DD |
11053 | echo "$as_me:$LINENO: result: no" >&5 |
11054 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
11055 | fi |
11056 | done | |
11057 | fi | |
11058 | ||
11059 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
11060 | for ncn_progname in strip; do | |
11061 | if test -n "$ncn_target_tool_prefix"; then | |
11062 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11063 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
11064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
11066 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
11067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af71363e AS |
11068 | else |
11069 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
11070 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
11071 | else | |
11072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11073 | for as_dir in $PATH | |
11074 | do | |
11075 | IFS=$as_save_IFS | |
11076 | test -z "$as_dir" && as_dir=. | |
11077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 11078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
11079 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11081 | break 2 | |
11082 | fi | |
11083 | done | |
11084 | done | |
11085 | ||
040b1c5a GK |
11086 | fi |
11087 | fi | |
1c710c3c | 11088 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 11089 | if test -n "$STRIP_FOR_TARGET"; then |
2aeb72e9 DD |
11090 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
11091 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
040b1c5a | 11092 | else |
2aeb72e9 DD |
11093 | echo "$as_me:$LINENO: result: no" >&5 |
11094 | echo "${ECHO_T}no" >&6 | |
040b1c5a GK |
11095 | fi |
11096 | ||
e8b05380 PB |
11097 | fi |
11098 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
11099 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11100 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
11101 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
11103 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then |
11104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
11105 | else |
11106 | if test -n "$STRIP_FOR_TARGET"; then | |
11107 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
11108 | else | |
1c710c3c DJ |
11109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11110 | for as_dir in $PATH | |
11111 | do | |
11112 | IFS=$as_save_IFS | |
11113 | test -z "$as_dir" && as_dir=. | |
11114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 11115 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
11116 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
11117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11118 | break 2 | |
11119 | fi | |
11120 | done | |
11121 | done | |
11122 | ||
040b1c5a GK |
11123 | fi |
11124 | fi | |
1c710c3c | 11125 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 11126 | if test -n "$STRIP_FOR_TARGET"; then |
2aeb72e9 DD |
11127 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
11128 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
040b1c5a | 11129 | else |
2aeb72e9 DD |
11130 | echo "$as_me:$LINENO: result: no" >&5 |
11131 | echo "${ECHO_T}no" >&6 | |
040b1c5a | 11132 | fi |
1c710c3c | 11133 | |
e8b05380 PB |
11134 | fi |
11135 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
11136 | done | |
11137 | fi | |
1c710c3c | 11138 | |
040b1c5a GK |
11139 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
11140 | set dummy strip | |
11141 | if test $build = $target ; then | |
11142 | STRIP_FOR_TARGET="$2" | |
11143 | else | |
11144 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11145 | fi | |
1c00b503 PB |
11146 | else |
11147 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
11148 | fi |
11149 | ||
d1f8db0c PB |
11150 | else |
11151 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
11152 | fi |
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
11158 | if test -n "$with_build_time_tools"; then | |
2aeb72e9 DD |
11159 | echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5 |
11160 | echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
11161 | if test -x $with_build_time_tools/windres; then |
11162 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
11163 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2aeb72e9 DD |
11164 | echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
11165 | echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6 | |
d1f8db0c | 11166 | else |
2aeb72e9 DD |
11167 | echo "$as_me:$LINENO: result: no" >&5 |
11168 | echo "${ECHO_T}no" >&6 | |
d1f8db0c | 11169 | fi |
e8b05380 PB |
11170 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11171 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
11172 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
11173 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
11174 | fi |
11175 | fi | |
3e19841a | 11176 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11177 | # Extract the first word of "windres", so it can be a program name with args. |
11178 | set dummy windres; ac_word=$2 | |
2aeb72e9 DD |
11179 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
11181 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then |
11182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e8b05380 | 11183 | else |
1c710c3c DJ |
11184 | case $WINDRES_FOR_TARGET in |
11185 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11186 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
11187 | ;; | |
e8b05380 | 11188 | *) |
1c710c3c DJ |
11189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11190 | for as_dir in $gcc_cv_tool_dirs | |
11191 | do | |
11192 | IFS=$as_save_IFS | |
11193 | test -z "$as_dir" && as_dir=. | |
11194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 11195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
11196 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
11197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11198 | break 2 | |
11199 | fi | |
11200 | done | |
11201 | done | |
11202 | ||
e8b05380 PB |
11203 | ;; |
11204 | esac | |
11205 | fi | |
1c710c3c | 11206 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2aeb72e9 | 11207 | |
e8b05380 | 11208 | if test -n "$WINDRES_FOR_TARGET"; then |
2aeb72e9 DD |
11209 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11210 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
e8b05380 | 11211 | else |
2aeb72e9 DD |
11212 | echo "$as_me:$LINENO: result: no" >&5 |
11213 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
11214 | fi |
11215 | ||
11216 | fi | |
11217 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
11218 | |
11219 | ||
11220 | if test -n "$WINDRES_FOR_TARGET"; then | |
11221 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
11222 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
11223 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
11224 | fi | |
11225 | ||
11226 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
11227 | for ncn_progname in windres; do | |
11228 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11229 | set dummy ${ncn_progname}; ac_word=$2 | |
2aeb72e9 DD |
11230 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
278a7a38 AO |
11232 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
11233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11234 | else | |
11235 | if test -n "$WINDRES_FOR_TARGET"; then | |
11236 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
11237 | else | |
11238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11239 | for as_dir in $PATH | |
11240 | do | |
11241 | IFS=$as_save_IFS | |
11242 | test -z "$as_dir" && as_dir=. | |
11243 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 11244 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 AO |
11245 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
11246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11247 | break 2 | |
11248 | fi | |
11249 | done | |
11250 | done | |
11251 | ||
11252 | fi | |
11253 | fi | |
11254 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
11255 | if test -n "$WINDRES_FOR_TARGET"; then | |
2aeb72e9 DD |
11256 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11257 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
278a7a38 | 11258 | else |
2aeb72e9 DD |
11259 | echo "$as_me:$LINENO: result: no" >&5 |
11260 | echo "${ECHO_T}no" >&6 | |
278a7a38 AO |
11261 | fi |
11262 | ||
11263 | done | |
11264 | fi | |
11265 | ||
11266 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11267 | for ncn_progname in windres; do |
2aeb72e9 DD |
11268 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11269 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
d1f8db0c PB |
11270 | if test -x $with_build_time_tools/${ncn_progname}; then |
11271 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
2aeb72e9 DD |
11272 | echo "$as_me:$LINENO: result: yes" >&5 |
11273 | echo "${ECHO_T}yes" >&6 | |
e8b05380 PB |
11274 | break |
11275 | else | |
2aeb72e9 DD |
11276 | echo "$as_me:$LINENO: result: no" >&5 |
11277 | echo "${ECHO_T}no" >&6 | |
e8b05380 PB |
11278 | fi |
11279 | done | |
11280 | fi | |
11281 | ||
11282 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
11283 | for ncn_progname in windres; do | |
11284 | if test -n "$ncn_target_tool_prefix"; then | |
11285 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11286 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
11287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
11289 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
11290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 11291 | else |
4de997d1 PB |
11292 | if test -n "$WINDRES_FOR_TARGET"; then |
11293 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11294 | else |
1c710c3c DJ |
11295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11296 | for as_dir in $PATH | |
11297 | do | |
11298 | IFS=$as_save_IFS | |
11299 | test -z "$as_dir" && as_dir=. | |
11300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 11301 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
11302 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11304 | break 2 | |
11305 | fi | |
11306 | done | |
11307 | done | |
11308 | ||
ca9f4b81 AO |
11309 | fi |
11310 | fi | |
1c710c3c | 11311 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 11312 | if test -n "$WINDRES_FOR_TARGET"; then |
2aeb72e9 DD |
11313 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11314 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
ca9f4b81 | 11315 | else |
2aeb72e9 DD |
11316 | echo "$as_me:$LINENO: result: no" >&5 |
11317 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
11318 | fi |
11319 | ||
e8b05380 PB |
11320 | fi |
11321 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
11322 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11323 | set dummy ${ncn_progname}; ac_word=$2 |
2aeb72e9 DD |
11324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1c710c3c DJ |
11326 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then |
11327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 11328 | else |
2693c0b0 PB |
11329 | if test -n "$WINDRES_FOR_TARGET"; then |
11330 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11331 | else |
1c710c3c DJ |
11332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11333 | for as_dir in $PATH | |
11334 | do | |
11335 | IFS=$as_save_IFS | |
11336 | test -z "$as_dir" && as_dir=. | |
11337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2aeb72e9 | 11338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
11339 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
11340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11341 | break 2 | |
11342 | fi | |
11343 | done | |
11344 | done | |
11345 | ||
ca9f4b81 AO |
11346 | fi |
11347 | fi | |
1c710c3c | 11348 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 11349 | if test -n "$WINDRES_FOR_TARGET"; then |
2aeb72e9 DD |
11350 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
11351 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
ca9f4b81 | 11352 | else |
2aeb72e9 DD |
11353 | echo "$as_me:$LINENO: result: no" >&5 |
11354 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 11355 | fi |
1c710c3c | 11356 | |
e8b05380 PB |
11357 | fi |
11358 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
11359 | done | |
11360 | fi | |
1c710c3c | 11361 | |
2693c0b0 PB |
11362 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
11363 | set dummy windres | |
11364 | if test $build = $target ; then | |
11365 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 11366 | else |
2693c0b0 | 11367 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11368 | fi |
1c00b503 PB |
11369 | else |
11370 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
11371 | fi |
11372 | ||
d1f8db0c PB |
11373 | else |
11374 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
11375 | fi |
11376 | ||
4977bab6 | 11377 | |
901119ae KT |
11378 | |
11379 | ||
11380 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
11381 | if test -n "$with_build_time_tools"; then | |
11382 | echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5 | |
11383 | echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6 | |
11384 | if test -x $with_build_time_tools/windmc; then | |
11385 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
11386 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
11387 | echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 | |
11388 | echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6 | |
11389 | else | |
11390 | echo "$as_me:$LINENO: result: no" >&5 | |
11391 | echo "${ECHO_T}no" >&6 | |
11392 | fi | |
11393 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
11394 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
11395 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
11396 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
11397 | fi |
11398 | fi | |
11399 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
11400 | # Extract the first word of "windmc", so it can be a program name with args. | |
11401 | set dummy windmc; ac_word=$2 | |
11402 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11404 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then | |
11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11406 | else | |
11407 | case $WINDMC_FOR_TARGET in | |
11408 | [\\/]* | ?:[\\/]*) | |
11409 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
11410 | ;; | |
11411 | *) | |
11412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11413 | for as_dir in $gcc_cv_tool_dirs | |
11414 | do | |
11415 | IFS=$as_save_IFS | |
11416 | test -z "$as_dir" && as_dir=. | |
11417 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11419 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
11420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11421 | break 2 | |
11422 | fi | |
11423 | done | |
11424 | done | |
11425 | ||
11426 | ;; | |
11427 | esac | |
11428 | fi | |
11429 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
11430 | ||
11431 | if test -n "$WINDMC_FOR_TARGET"; then | |
11432 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
11433 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
11434 | else | |
11435 | echo "$as_me:$LINENO: result: no" >&5 | |
11436 | echo "${ECHO_T}no" >&6 | |
11437 | fi | |
11438 | ||
11439 | fi | |
11440 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
11441 | ||
11442 | ||
11443 | if test -n "$WINDMC_FOR_TARGET"; then | |
11444 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
11445 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
11446 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
11447 | fi | |
11448 | ||
11449 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
11450 | for ncn_progname in windmc; do | |
11451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11452 | set dummy ${ncn_progname}; ac_word=$2 | |
11453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11455 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then | |
11456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11457 | else | |
11458 | if test -n "$WINDMC_FOR_TARGET"; then | |
11459 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
11460 | else | |
11461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11462 | for as_dir in $PATH | |
11463 | do | |
11464 | IFS=$as_save_IFS | |
11465 | test -z "$as_dir" && as_dir=. | |
11466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11468 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" | |
11469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11470 | break 2 | |
11471 | fi | |
11472 | done | |
11473 | done | |
11474 | ||
11475 | fi | |
11476 | fi | |
11477 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
11478 | if test -n "$WINDMC_FOR_TARGET"; then | |
11479 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
11480 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
11481 | else | |
11482 | echo "$as_me:$LINENO: result: no" >&5 | |
11483 | echo "${ECHO_T}no" >&6 | |
11484 | fi | |
11485 | ||
11486 | done | |
11487 | fi | |
11488 | ||
11489 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11490 | for ncn_progname in windmc; do | |
11491 | echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11492 | echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 | |
11493 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11494 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11495 | echo "$as_me:$LINENO: result: yes" >&5 | |
11496 | echo "${ECHO_T}yes" >&6 | |
11497 | break | |
11498 | else | |
11499 | echo "$as_me:$LINENO: result: no" >&5 | |
11500 | echo "${ECHO_T}no" >&6 | |
11501 | fi | |
11502 | done | |
11503 | fi | |
11504 | ||
11505 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
11506 | for ncn_progname in windmc; do | |
11507 | if test -n "$ncn_target_tool_prefix"; then | |
11508 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11509 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11512 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then | |
11513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11514 | else | |
11515 | if test -n "$WINDMC_FOR_TARGET"; then | |
11516 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
11517 | else | |
11518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11519 | for as_dir in $PATH | |
11520 | do | |
11521 | IFS=$as_save_IFS | |
11522 | test -z "$as_dir" && as_dir=. | |
11523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11525 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
11526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11527 | break 2 | |
11528 | fi | |
11529 | done | |
11530 | done | |
11531 | ||
11532 | fi | |
11533 | fi | |
11534 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
11535 | if test -n "$WINDMC_FOR_TARGET"; then | |
11536 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
11537 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
11538 | else | |
11539 | echo "$as_me:$LINENO: result: no" >&5 | |
11540 | echo "${ECHO_T}no" >&6 | |
11541 | fi | |
11542 | ||
11543 | fi | |
11544 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
11545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11546 | set dummy ${ncn_progname}; ac_word=$2 | |
11547 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11549 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then | |
11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11551 | else | |
11552 | if test -n "$WINDMC_FOR_TARGET"; then | |
11553 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
11554 | else | |
11555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11556 | for as_dir in $PATH | |
11557 | do | |
11558 | IFS=$as_save_IFS | |
11559 | test -z "$as_dir" && as_dir=. | |
11560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11561 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11562 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" | |
11563 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11564 | break 2 | |
11565 | fi | |
11566 | done | |
11567 | done | |
11568 | ||
11569 | fi | |
11570 | fi | |
11571 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
11572 | if test -n "$WINDMC_FOR_TARGET"; then | |
11573 | echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 | |
11574 | echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 | |
11575 | else | |
11576 | echo "$as_me:$LINENO: result: no" >&5 | |
11577 | echo "${ECHO_T}no" >&6 | |
11578 | fi | |
11579 | ||
11580 | fi | |
11581 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
11582 | done | |
11583 | fi | |
11584 | ||
11585 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
11586 | set dummy windmc | |
11587 | if test $build = $target ; then | |
11588 | WINDMC_FOR_TARGET="$2" | |
11589 | else | |
11590 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11591 | fi | |
1c00b503 PB |
11592 | else |
11593 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
11594 | fi |
11595 | ||
11596 | else | |
11597 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
11598 | fi | |
11599 | ||
11600 | ||
2abefe3d PB |
11601 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
11602 | ||
2aeb72e9 DD |
11603 | echo "$as_me:$LINENO: checking where to find the target ar" >&5 |
11604 | echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6 | |
2abefe3d | 11605 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11606 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
11607 | # We already found the complete path | |
172e41aa | 11608 | ac_dir=`dirname $AR_FOR_TARGET` |
2aeb72e9 DD |
11609 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11610 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11611 | else |
11612 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11613 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11614 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11615 | fi |
2abefe3d PB |
11616 | else |
11617 | ok=yes | |
11618 | case " ${configdirs} " in | |
11619 | *" binutils "*) ;; | |
11620 | *) ok=no ;; | |
11621 | esac | |
1c710c3c | 11622 | |
2abefe3d PB |
11623 | if test $ok = yes; then |
11624 | # An in-tree tool is available and we can use it | |
11625 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
2aeb72e9 DD |
11626 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11627 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11628 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
11629 | # We already found the complete path | |
172e41aa | 11630 | ac_dir=`dirname $AR_FOR_TARGET` |
2aeb72e9 DD |
11631 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11632 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11633 | elif test "x$target" = "x$host"; then |
11634 | # We can use an host tool | |
11635 | AR_FOR_TARGET='$(AR)' | |
2aeb72e9 DD |
11636 | echo "$as_me:$LINENO: result: host tool" >&5 |
11637 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11638 | else |
11639 | # We need a cross tool | |
2aeb72e9 DD |
11640 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11641 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11642 | fi |
11643 | fi | |
0b0dc272 | 11644 | |
2aeb72e9 DD |
11645 | echo "$as_me:$LINENO: checking where to find the target as" >&5 |
11646 | echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6 | |
2abefe3d | 11647 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11648 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
11649 | # We already found the complete path | |
172e41aa | 11650 | ac_dir=`dirname $AS_FOR_TARGET` |
2aeb72e9 DD |
11651 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11652 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11653 | else |
11654 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11655 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11656 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11657 | fi |
2abefe3d PB |
11658 | else |
11659 | ok=yes | |
11660 | case " ${configdirs} " in | |
11661 | *" gas "*) ;; | |
11662 | *) ok=no ;; | |
11663 | esac | |
1c710c3c | 11664 | |
2abefe3d PB |
11665 | if test $ok = yes; then |
11666 | # An in-tree tool is available and we can use it | |
11667 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
2aeb72e9 DD |
11668 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11669 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11670 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
11671 | # We already found the complete path | |
172e41aa | 11672 | ac_dir=`dirname $AS_FOR_TARGET` |
2aeb72e9 DD |
11673 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11674 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11675 | elif test "x$target" = "x$host"; then |
11676 | # We can use an host tool | |
11677 | AS_FOR_TARGET='$(AS)' | |
2aeb72e9 DD |
11678 | echo "$as_me:$LINENO: result: host tool" >&5 |
11679 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11680 | else |
11681 | # We need a cross tool | |
2aeb72e9 DD |
11682 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11683 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11684 | fi |
11685 | fi | |
0b0dc272 | 11686 | |
2aeb72e9 DD |
11687 | echo "$as_me:$LINENO: checking where to find the target cc" >&5 |
11688 | echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6 | |
2abefe3d | 11689 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11690 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
11691 | # We already found the complete path | |
172e41aa | 11692 | ac_dir=`dirname $CC_FOR_TARGET` |
2aeb72e9 DD |
11693 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11694 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11695 | else |
11696 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11697 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11698 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11699 | fi |
2abefe3d PB |
11700 | else |
11701 | ok=yes | |
11702 | case " ${configdirs} " in | |
11703 | *" gcc "*) ;; | |
11704 | *) ok=no ;; | |
11705 | esac | |
1c710c3c | 11706 | |
2abefe3d PB |
11707 | if test $ok = yes; then |
11708 | # An in-tree tool is available and we can use it | |
11709 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11710 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11711 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11712 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
11713 | # We already found the complete path | |
172e41aa | 11714 | ac_dir=`dirname $CC_FOR_TARGET` |
2aeb72e9 DD |
11715 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11716 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11717 | elif test "x$target" = "x$host"; then |
11718 | # We can use an host tool | |
11719 | CC_FOR_TARGET='$(CC)' | |
2aeb72e9 DD |
11720 | echo "$as_me:$LINENO: result: host tool" >&5 |
11721 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11722 | else |
11723 | # We need a cross tool | |
2aeb72e9 DD |
11724 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11725 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11726 | fi |
11727 | fi | |
0b0dc272 | 11728 | |
2aeb72e9 DD |
11729 | echo "$as_me:$LINENO: checking where to find the target c++" >&5 |
11730 | echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6 | |
2abefe3d | 11731 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11732 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
11733 | # We already found the complete path | |
172e41aa | 11734 | ac_dir=`dirname $CXX_FOR_TARGET` |
2aeb72e9 DD |
11735 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11736 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11737 | else |
11738 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11739 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11740 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11741 | fi |
2abefe3d PB |
11742 | else |
11743 | ok=yes | |
11744 | case " ${configdirs} " in | |
11745 | *" gcc "*) ;; | |
11746 | *) ok=no ;; | |
11747 | esac | |
11748 | case ,${enable_languages}, in | |
11749 | *,c++,*) ;; | |
11750 | *) ok=no ;; | |
11751 | esac | |
11752 | if test $ok = yes; then | |
11753 | # An in-tree tool is available and we can use it | |
11754 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' | |
2aeb72e9 DD |
11755 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11756 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11757 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
11758 | # We already found the complete path | |
172e41aa | 11759 | ac_dir=`dirname $CXX_FOR_TARGET` |
2aeb72e9 DD |
11760 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11761 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11762 | elif test "x$target" = "x$host"; then |
11763 | # We can use an host tool | |
11764 | CXX_FOR_TARGET='$(CXX)' | |
2aeb72e9 DD |
11765 | echo "$as_me:$LINENO: result: host tool" >&5 |
11766 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11767 | else |
11768 | # We need a cross tool | |
2aeb72e9 DD |
11769 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11770 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11771 | fi |
11772 | fi | |
0b0dc272 | 11773 | |
2aeb72e9 DD |
11774 | echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5 |
11775 | echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6 | |
2abefe3d | 11776 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11777 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
11778 | # We already found the complete path | |
172e41aa | 11779 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
2aeb72e9 DD |
11780 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11781 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11782 | else |
11783 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11784 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11785 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11786 | fi |
2abefe3d PB |
11787 | else |
11788 | ok=yes | |
11789 | case " ${configdirs} " in | |
11790 | *" gcc "*) ;; | |
11791 | *) ok=no ;; | |
11792 | esac | |
11793 | case ,${enable_languages}, in | |
11794 | *,c++,*) ;; | |
11795 | *) ok=no ;; | |
11796 | esac | |
11797 | if test $ok = yes; then | |
11798 | # An in-tree tool is available and we can use it | |
11799 | 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' | |
2aeb72e9 DD |
11800 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11801 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11802 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
11803 | # We already found the complete path | |
172e41aa | 11804 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
2aeb72e9 DD |
11805 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11806 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11807 | elif test "x$target" = "x$host"; then |
11808 | # We can use an host tool | |
11809 | RAW_CXX_FOR_TARGET='$(CXX)' | |
2aeb72e9 DD |
11810 | echo "$as_me:$LINENO: result: host tool" >&5 |
11811 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11812 | else |
11813 | # We need a cross tool | |
2aeb72e9 DD |
11814 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11815 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11816 | fi |
11817 | fi | |
0b0dc272 | 11818 | |
2aeb72e9 DD |
11819 | echo "$as_me:$LINENO: checking where to find the target dlltool" >&5 |
11820 | echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6 | |
2abefe3d | 11821 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11822 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
11823 | # We already found the complete path | |
172e41aa | 11824 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
2aeb72e9 DD |
11825 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11826 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11827 | else |
11828 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11829 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11830 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11831 | fi |
2abefe3d PB |
11832 | else |
11833 | ok=yes | |
11834 | case " ${configdirs} " in | |
11835 | *" binutils "*) ;; | |
11836 | *) ok=no ;; | |
11837 | esac | |
1c710c3c | 11838 | |
2abefe3d PB |
11839 | if test $ok = yes; then |
11840 | # An in-tree tool is available and we can use it | |
11841 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
2aeb72e9 DD |
11842 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11843 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11844 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
11845 | # We already found the complete path | |
172e41aa | 11846 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
2aeb72e9 DD |
11847 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11848 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11849 | elif test "x$target" = "x$host"; then |
11850 | # We can use an host tool | |
11851 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
2aeb72e9 DD |
11852 | echo "$as_me:$LINENO: result: host tool" >&5 |
11853 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11854 | else |
11855 | # We need a cross tool | |
2aeb72e9 DD |
11856 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11857 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11858 | fi |
11859 | fi | |
0b0dc272 | 11860 | |
2aeb72e9 DD |
11861 | echo "$as_me:$LINENO: checking where to find the target gcc" >&5 |
11862 | echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6 | |
2abefe3d | 11863 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11864 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
11865 | # We already found the complete path | |
172e41aa | 11866 | ac_dir=`dirname $GCC_FOR_TARGET` |
2aeb72e9 DD |
11867 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11868 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11869 | else |
11870 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11871 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11872 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11873 | fi |
2abefe3d PB |
11874 | else |
11875 | ok=yes | |
11876 | case " ${configdirs} " in | |
11877 | *" gcc "*) ;; | |
11878 | *) ok=no ;; | |
11879 | esac | |
1c710c3c | 11880 | |
2abefe3d PB |
11881 | if test $ok = yes; then |
11882 | # An in-tree tool is available and we can use it | |
11883 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11884 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11885 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11886 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
11887 | # We already found the complete path | |
172e41aa | 11888 | ac_dir=`dirname $GCC_FOR_TARGET` |
2aeb72e9 DD |
11889 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11890 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11891 | elif test "x$target" = "x$host"; then |
11892 | # We can use an host tool | |
11893 | GCC_FOR_TARGET='$()' | |
2aeb72e9 DD |
11894 | echo "$as_me:$LINENO: result: host tool" >&5 |
11895 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11896 | else |
11897 | # We need a cross tool | |
2aeb72e9 DD |
11898 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11899 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11900 | fi |
11901 | fi | |
0b0dc272 | 11902 | |
2aeb72e9 DD |
11903 | echo "$as_me:$LINENO: checking where to find the target gcj" >&5 |
11904 | echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6 | |
2abefe3d | 11905 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11906 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
11907 | # We already found the complete path | |
172e41aa | 11908 | ac_dir=`dirname $GCJ_FOR_TARGET` |
2aeb72e9 DD |
11909 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11910 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11911 | else |
11912 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11913 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11914 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11915 | fi |
2abefe3d PB |
11916 | else |
11917 | ok=yes | |
11918 | case " ${configdirs} " in | |
11919 | *" gcc "*) ;; | |
11920 | *) ok=no ;; | |
11921 | esac | |
11922 | case ,${enable_languages}, in | |
11923 | *,java,*) ;; | |
11924 | *) ok=no ;; | |
11925 | esac | |
11926 | if test $ok = yes; then | |
11927 | # An in-tree tool is available and we can use it | |
11928 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11929 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11930 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11931 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
11932 | # We already found the complete path | |
172e41aa | 11933 | ac_dir=`dirname $GCJ_FOR_TARGET` |
2aeb72e9 DD |
11934 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11935 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11936 | elif test "x$target" = "x$host"; then |
11937 | # We can use an host tool | |
11938 | GCJ_FOR_TARGET='$(GCJ)' | |
2aeb72e9 DD |
11939 | echo "$as_me:$LINENO: result: host tool" >&5 |
11940 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11941 | else |
11942 | # We need a cross tool | |
2aeb72e9 DD |
11943 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11944 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11945 | fi |
11946 | fi | |
0b0dc272 | 11947 | |
2aeb72e9 DD |
11948 | echo "$as_me:$LINENO: checking where to find the target gfortran" >&5 |
11949 | echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6 | |
2abefe3d | 11950 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11951 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
11952 | # We already found the complete path | |
172e41aa | 11953 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
2aeb72e9 DD |
11954 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11955 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
11956 | else |
11957 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
11958 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11959 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 11960 | fi |
2abefe3d PB |
11961 | else |
11962 | ok=yes | |
11963 | case " ${configdirs} " in | |
11964 | *" gcc "*) ;; | |
11965 | *) ok=no ;; | |
11966 | esac | |
11967 | case ,${enable_languages}, in | |
11968 | *,fortran,*) ;; | |
11969 | *) ok=no ;; | |
11970 | esac | |
11971 | if test $ok = yes; then | |
11972 | # An in-tree tool is available and we can use it | |
11973 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
2aeb72e9 DD |
11974 | echo "$as_me:$LINENO: result: just compiled" >&5 |
11975 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
11976 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
11977 | # We already found the complete path | |
172e41aa | 11978 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
2aeb72e9 DD |
11979 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
11980 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
11981 | elif test "x$target" = "x$host"; then |
11982 | # We can use an host tool | |
11983 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
2aeb72e9 DD |
11984 | echo "$as_me:$LINENO: result: host tool" >&5 |
11985 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
11986 | else |
11987 | # We need a cross tool | |
2aeb72e9 DD |
11988 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
11989 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
11990 | fi |
11991 | fi | |
0b0dc272 | 11992 | |
2aeb72e9 DD |
11993 | echo "$as_me:$LINENO: checking where to find the target ld" >&5 |
11994 | echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6 | |
2abefe3d | 11995 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
11996 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
11997 | # We already found the complete path | |
172e41aa | 11998 | ac_dir=`dirname $LD_FOR_TARGET` |
2aeb72e9 DD |
11999 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12000 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
12001 | else |
12002 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
12003 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12004 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 12005 | fi |
2abefe3d PB |
12006 | else |
12007 | ok=yes | |
12008 | case " ${configdirs} " in | |
12009 | *" ld "*) ;; | |
12010 | *) ok=no ;; | |
12011 | esac | |
1c710c3c | 12012 | |
2abefe3d PB |
12013 | if test $ok = yes; then |
12014 | # An in-tree tool is available and we can use it | |
12015 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
2aeb72e9 DD |
12016 | echo "$as_me:$LINENO: result: just compiled" >&5 |
12017 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
12018 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
12019 | # We already found the complete path | |
172e41aa | 12020 | ac_dir=`dirname $LD_FOR_TARGET` |
2aeb72e9 DD |
12021 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12022 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
12023 | elif test "x$target" = "x$host"; then |
12024 | # We can use an host tool | |
12025 | LD_FOR_TARGET='$(LD)' | |
2aeb72e9 DD |
12026 | echo "$as_me:$LINENO: result: host tool" >&5 |
12027 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
12028 | else |
12029 | # We need a cross tool | |
2aeb72e9 DD |
12030 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12031 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
12032 | fi |
12033 | fi | |
0b0dc272 | 12034 | |
2aeb72e9 DD |
12035 | echo "$as_me:$LINENO: checking where to find the target lipo" >&5 |
12036 | echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6 | |
2abefe3d | 12037 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
12038 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
12039 | # We already found the complete path | |
172e41aa | 12040 | ac_dir=`dirname $LIPO_FOR_TARGET` |
2aeb72e9 DD |
12041 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12042 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
12043 | else |
12044 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
12045 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12046 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 12047 | fi |
2abefe3d | 12048 | else |
e8b05380 PB |
12049 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
12050 | # We already found the complete path | |
172e41aa | 12051 | ac_dir=`dirname $LIPO_FOR_TARGET` |
2aeb72e9 DD |
12052 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12053 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 | 12054 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
12055 | # We can use an host tool |
12056 | LIPO_FOR_TARGET='$(LIPO)' | |
2aeb72e9 DD |
12057 | echo "$as_me:$LINENO: result: host tool" >&5 |
12058 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
12059 | else |
12060 | # We need a cross tool | |
2aeb72e9 DD |
12061 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12062 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
12063 | fi |
12064 | fi | |
0b0dc272 | 12065 | |
2aeb72e9 DD |
12066 | echo "$as_me:$LINENO: checking where to find the target nm" >&5 |
12067 | echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6 | |
2abefe3d | 12068 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
12069 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
12070 | # We already found the complete path | |
172e41aa | 12071 | ac_dir=`dirname $NM_FOR_TARGET` |
2aeb72e9 DD |
12072 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12073 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
12074 | else |
12075 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
12076 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12077 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 12078 | fi |
2abefe3d PB |
12079 | else |
12080 | ok=yes | |
12081 | case " ${configdirs} " in | |
12082 | *" binutils "*) ;; | |
12083 | *) ok=no ;; | |
12084 | esac | |
1c710c3c | 12085 | |
2abefe3d PB |
12086 | if test $ok = yes; then |
12087 | # An in-tree tool is available and we can use it | |
12088 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
2aeb72e9 DD |
12089 | echo "$as_me:$LINENO: result: just compiled" >&5 |
12090 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
12091 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
12092 | # We already found the complete path | |
172e41aa | 12093 | ac_dir=`dirname $NM_FOR_TARGET` |
2aeb72e9 DD |
12094 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12095 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
12096 | elif test "x$target" = "x$host"; then |
12097 | # We can use an host tool | |
12098 | NM_FOR_TARGET='$(NM)' | |
2aeb72e9 DD |
12099 | echo "$as_me:$LINENO: result: host tool" >&5 |
12100 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
12101 | else |
12102 | # We need a cross tool | |
2aeb72e9 DD |
12103 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12104 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
12105 | fi |
12106 | fi | |
0b0dc272 | 12107 | |
2aeb72e9 DD |
12108 | echo "$as_me:$LINENO: checking where to find the target objdump" >&5 |
12109 | echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6 | |
2abefe3d | 12110 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
12111 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
12112 | # We already found the complete path | |
172e41aa | 12113 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
2aeb72e9 DD |
12114 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12115 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
12116 | else |
12117 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
12118 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12119 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 12120 | fi |
2abefe3d PB |
12121 | else |
12122 | ok=yes | |
12123 | case " ${configdirs} " in | |
12124 | *" binutils "*) ;; | |
12125 | *) ok=no ;; | |
12126 | esac | |
1c710c3c | 12127 | |
2abefe3d PB |
12128 | if test $ok = yes; then |
12129 | # An in-tree tool is available and we can use it | |
12130 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
2aeb72e9 DD |
12131 | echo "$as_me:$LINENO: result: just compiled" >&5 |
12132 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
12133 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
12134 | # We already found the complete path | |
172e41aa | 12135 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
2aeb72e9 DD |
12136 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12137 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
12138 | elif test "x$target" = "x$host"; then |
12139 | # We can use an host tool | |
12140 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
2aeb72e9 DD |
12141 | echo "$as_me:$LINENO: result: host tool" >&5 |
12142 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
12143 | else |
12144 | # We need a cross tool | |
2aeb72e9 DD |
12145 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12146 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
12147 | fi |
12148 | fi | |
0b0dc272 | 12149 | |
2aeb72e9 DD |
12150 | echo "$as_me:$LINENO: checking where to find the target ranlib" >&5 |
12151 | echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6 | |
2abefe3d | 12152 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
12153 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
12154 | # We already found the complete path | |
172e41aa | 12155 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
2aeb72e9 DD |
12156 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12157 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
12158 | else |
12159 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
12160 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12161 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 12162 | fi |
2abefe3d PB |
12163 | else |
12164 | ok=yes | |
12165 | case " ${configdirs} " in | |
12166 | *" binutils "*) ;; | |
12167 | *) ok=no ;; | |
12168 | esac | |
1c710c3c | 12169 | |
2abefe3d PB |
12170 | if test $ok = yes; then |
12171 | # An in-tree tool is available and we can use it | |
12172 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
2aeb72e9 DD |
12173 | echo "$as_me:$LINENO: result: just compiled" >&5 |
12174 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
12175 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
12176 | # We already found the complete path | |
172e41aa | 12177 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
2aeb72e9 DD |
12178 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12179 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
12180 | elif test "x$target" = "x$host"; then |
12181 | # We can use an host tool | |
12182 | RANLIB_FOR_TARGET='$(RANLIB)' | |
2aeb72e9 DD |
12183 | echo "$as_me:$LINENO: result: host tool" >&5 |
12184 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
12185 | else |
12186 | # We need a cross tool | |
2aeb72e9 DD |
12187 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12188 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
12189 | fi |
12190 | fi | |
0b0dc272 | 12191 | |
2aeb72e9 DD |
12192 | echo "$as_me:$LINENO: checking where to find the target strip" >&5 |
12193 | echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6 | |
2abefe3d | 12194 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
12195 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
12196 | # We already found the complete path | |
172e41aa | 12197 | ac_dir=`dirname $STRIP_FOR_TARGET` |
2aeb72e9 DD |
12198 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12199 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
12200 | else |
12201 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
12202 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12203 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 12204 | fi |
2abefe3d PB |
12205 | else |
12206 | ok=yes | |
12207 | case " ${configdirs} " in | |
12208 | *" binutils "*) ;; | |
12209 | *) ok=no ;; | |
12210 | esac | |
1c710c3c | 12211 | |
2abefe3d PB |
12212 | if test $ok = yes; then |
12213 | # An in-tree tool is available and we can use it | |
12214 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip' | |
2aeb72e9 DD |
12215 | echo "$as_me:$LINENO: result: just compiled" >&5 |
12216 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
12217 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
12218 | # We already found the complete path | |
172e41aa | 12219 | ac_dir=`dirname $STRIP_FOR_TARGET` |
2aeb72e9 DD |
12220 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12221 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
12222 | elif test "x$target" = "x$host"; then |
12223 | # We can use an host tool | |
12224 | STRIP_FOR_TARGET='$(STRIP)' | |
2aeb72e9 DD |
12225 | echo "$as_me:$LINENO: result: host tool" >&5 |
12226 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
12227 | else |
12228 | # We need a cross tool | |
2aeb72e9 DD |
12229 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12230 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d PB |
12231 | fi |
12232 | fi | |
0b0dc272 | 12233 | |
2aeb72e9 DD |
12234 | echo "$as_me:$LINENO: checking where to find the target windres" >&5 |
12235 | echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6 | |
2abefe3d | 12236 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
12237 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
12238 | # We already found the complete path | |
172e41aa | 12239 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
2aeb72e9 DD |
12240 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12241 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
e8b05380 PB |
12242 | else |
12243 | # Canadian cross, just use what we found | |
2aeb72e9 DD |
12244 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12245 | echo "${ECHO_T}pre-installed" >&6 | |
e8b05380 | 12246 | fi |
2abefe3d PB |
12247 | else |
12248 | ok=yes | |
12249 | case " ${configdirs} " in | |
12250 | *" binutils "*) ;; | |
12251 | *) ok=no ;; | |
12252 | esac | |
1c710c3c | 12253 | |
2abefe3d PB |
12254 | if test $ok = yes; then |
12255 | # An in-tree tool is available and we can use it | |
12256 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
2aeb72e9 DD |
12257 | echo "$as_me:$LINENO: result: just compiled" >&5 |
12258 | echo "${ECHO_T}just compiled" >&6 | |
e8b05380 PB |
12259 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
12260 | # We already found the complete path | |
172e41aa | 12261 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
2aeb72e9 DD |
12262 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 |
12263 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
2abefe3d PB |
12264 | elif test "x$target" = "x$host"; then |
12265 | # We can use an host tool | |
12266 | WINDRES_FOR_TARGET='$(WINDRES)' | |
2aeb72e9 DD |
12267 | echo "$as_me:$LINENO: result: host tool" >&5 |
12268 | echo "${ECHO_T}host tool" >&6 | |
2abefe3d PB |
12269 | else |
12270 | # We need a cross tool | |
2aeb72e9 DD |
12271 | echo "$as_me:$LINENO: result: pre-installed" >&5 |
12272 | echo "${ECHO_T}pre-installed" >&6 | |
2abefe3d | 12273 | fi |
671aa708 | 12274 | fi |
be912515 | 12275 | |
901119ae KT |
12276 | echo "$as_me:$LINENO: checking where to find the target windmc" >&5 |
12277 | echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6 | |
12278 | if test "x${build}" != "x${host}" ; then | |
12279 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
12280 | # We already found the complete path | |
12281 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
12282 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 | |
12283 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
12284 | else | |
12285 | # Canadian cross, just use what we found | |
12286 | echo "$as_me:$LINENO: result: pre-installed" >&5 | |
12287 | echo "${ECHO_T}pre-installed" >&6 | |
12288 | fi | |
12289 | else | |
12290 | ok=yes | |
12291 | case " ${configdirs} " in | |
12292 | *" binutils "*) ;; | |
12293 | *) ok=no ;; | |
12294 | esac | |
12295 | ||
12296 | if test $ok = yes; then | |
12297 | # An in-tree tool is available and we can use it | |
12298 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
12299 | echo "$as_me:$LINENO: result: just compiled" >&5 | |
12300 | echo "${ECHO_T}just compiled" >&6 | |
12301 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
12302 | # We already found the complete path | |
12303 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
12304 | echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 | |
12305 | echo "${ECHO_T}pre-installed in $ac_dir" >&6 | |
12306 | elif test "x$target" = "x$host"; then | |
12307 | # We can use an host tool | |
12308 | WINDMC_FOR_TARGET='$(WINDMC)' | |
12309 | echo "$as_me:$LINENO: result: host tool" >&5 | |
12310 | echo "${ECHO_T}host tool" >&6 | |
12311 | else | |
12312 | # We need a cross tool | |
12313 | echo "$as_me:$LINENO: result: pre-installed" >&5 | |
12314 | echo "${ECHO_T}pre-installed" >&6 | |
12315 | fi | |
12316 | fi | |
12317 | ||
be912515 NN |
12318 | |
12319 | ||
2abefe3d | 12320 | |
0b0dc272 | 12321 | |
671aa708 NN |
12322 | # Certain tools may need extra flags. |
12323 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
12324 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
12325 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
12326 | ||
2abefe3d PB |
12327 | # When building target libraries, except in a Canadian cross, we use |
12328 | # the same toolchain as the compiler we just built. | |
12329 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
12330 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
12331 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
12332 | if test $host = $build; then | |
12333 | case " $configdirs " in | |
12334 | *" gcc "*) | |
12335 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
12336 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
12337 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
12338 | ;; | |
12339 | esac | |
12340 | fi | |
12341 | ||
12342 | ||
12343 | ||
12344 | ||
12345 | ||
2aeb72e9 DD |
12346 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
12347 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
12348 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
ee03dc5e | 12349 | if test "${enable_maintainer_mode+set}" = set; then |
2aeb72e9 DD |
12350 | enableval="$enable_maintainer_mode" |
12351 | USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
12352 | else |
12353 | USE_MAINTAINER_MODE=no | |
2aeb72e9 DD |
12354 | fi; |
12355 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
12356 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
ee03dc5e AO |
12357 | |
12358 | ||
12359 | if test "$USE_MAINTAINER_MODE" = yes; then | |
12360 | MAINTAINER_MODE_TRUE= | |
12361 | MAINTAINER_MODE_FALSE='#' | |
12362 | else | |
12363 | MAINTAINER_MODE_TRUE='#' | |
12364 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 12365 | fi |
ee03dc5e AO |
12366 | MAINT=$MAINTAINER_MODE_TRUE |
12367 | ||
2805b53a NN |
12368 | # --------------------- |
12369 | # GCC bootstrap support | |
12370 | # --------------------- | |
12371 | ||
12372 | # Stage specific cflags for build. | |
12373 | stage1_cflags="-g" | |
12374 | case $build in | |
12375 | vax-*-*) | |
12376 | case ${GCC} in | |
12377 | yes) stage1_cflags="-g -Wa,-J" ;; | |
12378 | *) stage1_cflags="-g -J" ;; | |
12379 | esac ;; | |
2805b53a NN |
12380 | esac |
12381 | ||
0b50988a EB |
12382 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
12383 | if test "$GCC" = yes; then | |
12384 | saved_CFLAGS="$CFLAGS" | |
12385 | ||
12386 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
12387 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
2aeb72e9 DD |
12388 | echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5 |
12389 | echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6 | |
1c710c3c DJ |
12390 | cat >conftest.$ac_ext <<_ACEOF |
12391 | /* confdefs.h. */ | |
12392 | _ACEOF | |
12393 | cat confdefs.h >>conftest.$ac_ext | |
12394 | cat >>conftest.$ac_ext <<_ACEOF | |
12395 | /* end confdefs.h. */ | |
12396 | ||
9cc1244e JJ |
12397 | #if (__GNUC__ < 3) \ |
12398 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
12399 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
12400 | #error http://gcc.gnu.org/PR29382 | |
12401 | #endif | |
12402 | ||
1c710c3c DJ |
12403 | int |
12404 | main () | |
12405 | { | |
12406 | ||
12407 | ; | |
12408 | return 0; | |
12409 | } | |
12410 | _ACEOF | |
12411 | rm -f conftest.$ac_objext | |
2aeb72e9 DD |
12412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12413 | (eval $ac_compile) 2>conftest.er1 | |
1c710c3c DJ |
12414 | ac_status=$? |
12415 | grep -v '^ *+' conftest.er1 >conftest.err | |
12416 | rm -f conftest.er1 | |
12417 | cat conftest.err >&5 | |
12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2aeb72e9 DD |
12419 | (exit $ac_status); } && |
12420 | { ac_try='test -z "$ac_c_werror_flag" | |
12421 | || test ! -s conftest.err' | |
12422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12423 | (eval $ac_try) 2>&5 | |
12424 | ac_status=$? | |
12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12426 | (exit $ac_status); }; } && | |
12427 | { ac_try='test -s conftest.$ac_objext' | |
12428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12429 | (eval $ac_try) 2>&5 | |
12430 | ac_status=$? | |
12431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12432 | (exit $ac_status); }; }; then | |
12433 | echo "$as_me:$LINENO: result: yes" >&5 | |
12434 | echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
1c710c3c DJ |
12435 | else |
12436 | echo "$as_me: failed program was:" >&5 | |
12437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12438 | ||
2aeb72e9 DD |
12439 | echo "$as_me:$LINENO: result: no" >&5 |
12440 | echo "${ECHO_T}no" >&6 | |
1c710c3c | 12441 | fi |
2aeb72e9 | 12442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
0b50988a EB |
12443 | |
12444 | CFLAGS="$saved_CFLAGS" | |
12445 | fi | |
12446 | ||
12447 | ||
2805b53a | 12448 | |
8efea775 | 12449 | # Enable --enable-checking in stage1 of the compiler. |
2aeb72e9 | 12450 | # Check whether --enable-stage1-checking or --disable-stage1-checking was given. |
8efea775 | 12451 | if test "${enable_stage1_checking+set}" = set; then |
2aeb72e9 DD |
12452 | enableval="$enable_stage1_checking" |
12453 | stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 12454 | else |
e643dc23 | 12455 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
7e98624c | 12456 | stage1_checking=--enable-checking=yes,types |
8efea775 | 12457 | else |
e643dc23 | 12458 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 12459 | fi |
2aeb72e9 | 12460 | fi; |
8efea775 PB |
12461 | |
12462 | ||
2805b53a | 12463 | # Enable -Werror in bootstrap stage2 and later. |
2aeb72e9 | 12464 | # Check whether --enable-werror or --disable-werror was given. |
2805b53a | 12465 | if test "${enable_werror+set}" = set; then |
2aeb72e9 DD |
12466 | enableval="$enable_werror" |
12467 | ||
2805b53a | 12468 | else |
416cfb5e | 12469 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 12470 | enable_werror=yes |
88fceb68 PB |
12471 | else |
12472 | enable_werror=no | |
12473 | fi | |
2aeb72e9 | 12474 | fi; |
09a9c095 NN |
12475 | case ${enable_werror} in |
12476 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
12477 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
12478 | esac |
12479 | ||
12480 | ||
32845532 | 12481 | # Flags needed to enable html installing and building |
1c710c3c | 12482 | |
2aeb72e9 | 12483 | # Check whether --with-datarootdir or --without-datarootdir was given. |
32845532 | 12484 | if test "${with_datarootdir+set}" = set; then |
2aeb72e9 DD |
12485 | withval="$with_datarootdir" |
12486 | datarootdir="\${prefix}/${withval}" | |
32845532 CD |
12487 | else |
12488 | datarootdir="\${prefix}/share" | |
2aeb72e9 | 12489 | fi; |
32845532 CD |
12490 | |
12491 | ||
2aeb72e9 | 12492 | # Check whether --with-docdir or --without-docdir was given. |
32845532 | 12493 | if test "${with_docdir+set}" = set; then |
2aeb72e9 DD |
12494 | withval="$with_docdir" |
12495 | docdir="\${prefix}/${withval}" | |
32845532 CD |
12496 | else |
12497 | docdir="\${datarootdir}/doc" | |
2aeb72e9 | 12498 | fi; |
32845532 CD |
12499 | |
12500 | ||
2aeb72e9 | 12501 | # Check whether --with-pdfdir or --without-pdfdir was given. |
9c4d2493 | 12502 | if test "${with_pdfdir+set}" = set; then |
2aeb72e9 DD |
12503 | withval="$with_pdfdir" |
12504 | pdfdir="\${prefix}/${withval}" | |
9c4d2493 BM |
12505 | else |
12506 | pdfdir="\${docdir}" | |
2aeb72e9 | 12507 | fi; |
9c4d2493 BM |
12508 | |
12509 | ||
2aeb72e9 | 12510 | # Check whether --with-htmldir or --without-htmldir was given. |
32845532 | 12511 | if test "${with_htmldir+set}" = set; then |
2aeb72e9 DD |
12512 | withval="$with_htmldir" |
12513 | htmldir="\${prefix}/${withval}" | |
32845532 CD |
12514 | else |
12515 | htmldir="\${docdir}" | |
2aeb72e9 | 12516 | fi; |
32845532 CD |
12517 | |
12518 | ||
12519 | ||
12520 | ||
172e41aa | 12521 | |
11a67599 | 12522 | |
2aeb72e9 | 12523 | ac_config_files="$ac_config_files Makefile" |
1c710c3c | 12524 | cat >confcache <<\_ACEOF |
671aa708 NN |
12525 | # This file is a shell script that caches the results of configure |
12526 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
12527 | # scripts and configure runs, see configure's option --config-cache. |
12528 | # It is not useful on other systems. If it contains results you don't | |
12529 | # want to keep, you may remove or edit it. | |
671aa708 | 12530 | # |
1c710c3c DJ |
12531 | # config.status only pays attention to the cache file if you give it |
12532 | # the --recheck option to rerun configure. | |
671aa708 | 12533 | # |
1c710c3c DJ |
12534 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12535 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12536 | # following values. | |
12537 | ||
12538 | _ACEOF | |
12539 | ||
671aa708 NN |
12540 | # The following way of writing the cache mishandles newlines in values, |
12541 | # but we know of no workaround that is simple, portable, and efficient. | |
2aeb72e9 | 12542 | # So, don't put newlines in cache variables' values. |
671aa708 NN |
12543 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12544 | # and sets the high bit in the cache file unless we assign to the vars. | |
2aeb72e9 | 12545 | { |
1c710c3c | 12546 | (set) 2>&1 | |
2aeb72e9 DD |
12547 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
12548 | *ac_space=\ *) | |
1c710c3c DJ |
12549 | # `set' does not quote correctly, so add quotes (double-quote |
12550 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12551 | sed -n \ | |
12552 | "s/'/'\\\\''/g; | |
12553 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2aeb72e9 | 12554 | ;; |
1c710c3c DJ |
12555 | *) |
12556 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2aeb72e9 DD |
12557 | sed -n \ |
12558 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1c710c3c | 12559 | ;; |
2aeb72e9 DD |
12560 | esac; |
12561 | } | | |
1c710c3c DJ |
12562 | sed ' |
12563 | t clear | |
2aeb72e9 | 12564 | : clear |
1c710c3c DJ |
12565 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12566 | t end | |
2aeb72e9 DD |
12567 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12568 | : end' >>confcache | |
12569 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
12570 | if test -w $cache_file; then | |
12571 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
1c710c3c | 12572 | cat confcache >$cache_file |
671aa708 | 12573 | else |
2aeb72e9 | 12574 | echo "not updating unwritable cache $cache_file" |
671aa708 | 12575 | fi |
4977bab6 | 12576 | fi |
671aa708 | 12577 | rm -f confcache |
79c06341 | 12578 | |
671aa708 NN |
12579 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12580 | # Let make expand exec_prefix. | |
12581 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 12582 | |
2aeb72e9 DD |
12583 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12584 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12585 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12586 | # (actually we leave an empty line to preserve line numbers). | |
12587 | if test "x$srcdir" = x.; then | |
12588 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12589 | s/:*\$(srcdir):*/:/; | |
12590 | s/:*\${srcdir}:*/:/; | |
12591 | s/:*@srcdir@:*/:/; | |
12592 | s/^\([^=]*=[ ]*\):*/\1/; | |
12593 | s/:*$//; | |
12594 | s/^[^=]*=[ ]*$//; | |
12595 | }' | |
12596 | fi | |
12597 | ||
671aa708 NN |
12598 | # Transform confdefs.h into DEFS. |
12599 | # Protect against shell expansion while executing Makefile rules. | |
12600 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
12601 | # |
12602 | # If the first sed substitution is executed (which looks for macros that | |
2aeb72e9 | 12603 | # take arguments), then we branch to the quote section. Otherwise, |
1c710c3c | 12604 | # look for a macro that doesn't take arguments. |
2aeb72e9 | 12605 | cat >confdef2opt.sed <<\_ACEOF |
1c710c3c | 12606 | t clear |
2aeb72e9 DD |
12607 | : clear |
12608 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
1c710c3c | 12609 | t quote |
2aeb72e9 | 12610 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
1c710c3c | 12611 | t quote |
2aeb72e9 DD |
12612 | d |
12613 | : quote | |
12614 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
12615 | s,\[,\\&,g | |
12616 | s,\],\\&,g | |
12617 | s,\$,$$,g | |
12618 | p | |
12619 | _ACEOF | |
12620 | # We use echo to avoid assuming a particular line-breaking character. | |
12621 | # The extra dot is to prevent the shell from consuming trailing | |
12622 | # line-breaks from the sub-command output. A line-break within | |
12623 | # single-quotes doesn't work because, if this script is created in a | |
12624 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
12625 | # would break. | |
12626 | ac_LF_and_DOT=`echo; echo .` | |
12627 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
12628 | rm -f confdef2opt.sed | |
1c710c3c DJ |
12629 | |
12630 | ||
12631 | ac_libobjs= | |
12632 | ac_ltlibobjs= | |
12633 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12634 | # 1. Remove the extension, and $U if already installed. | |
2aeb72e9 DD |
12635 | ac_i=`echo "$ac_i" | |
12636 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
12637 | # 2. Add them. | |
12638 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
12639 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
1c710c3c DJ |
12640 | done |
12641 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 12642 | |
1c710c3c | 12643 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 12644 | |
af71363e | 12645 | |
1c710c3c DJ |
12646 | |
12647 | : ${CONFIG_STATUS=./config.status} | |
12648 | ac_clean_files_save=$ac_clean_files | |
12649 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12650 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
12651 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12652 | cat >$CONFIG_STATUS <<_ACEOF | |
12653 | #! $SHELL | |
12654 | # Generated by $as_me. | |
671aa708 | 12655 | # Run this file to recreate the current configuration. |
671aa708 | 12656 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 12657 | # configure, is in config.log if it exists. |
0b0dc272 | 12658 | |
1c710c3c DJ |
12659 | debug=false |
12660 | ac_cs_recheck=false | |
12661 | ac_cs_silent=false | |
12662 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12663 | _ACEOF | |
12664 | ||
12665 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12666 | ## --------------------- ## | |
12667 | ## M4sh Initialization. ## | |
12668 | ## --------------------- ## | |
12669 | ||
2aeb72e9 | 12670 | # Be Bourne compatible |
1c710c3c DJ |
12671 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12672 | emulate sh | |
12673 | NULLCMD=: | |
12674 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12675 | # is contrary to our usage. Disable this feature. | |
12676 | alias -g '${1+"$@"}'='"$@"' | |
2aeb72e9 DD |
12677 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
12678 | set -o posix | |
1c710c3c | 12679 | fi |
2aeb72e9 | 12680 | DUALCASE=1; export DUALCASE # for MKS sh |
1c710c3c DJ |
12681 | |
12682 | # Support unset when possible. | |
12683 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
12684 | as_unset=unset | |
12685 | else | |
12686 | as_unset=false | |
12687 | fi | |
12688 | ||
12689 | ||
12690 | # Work around bugs in pre-3.0 UWIN ksh. | |
2aeb72e9 | 12691 | $as_unset ENV MAIL MAILPATH |
1c710c3c DJ |
12692 | PS1='$ ' |
12693 | PS2='> ' | |
12694 | PS4='+ ' | |
12695 | ||
12696 | # NLS nuisances. | |
12697 | for as_var in \ | |
12698 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12699 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12700 | LC_TELEPHONE LC_TIME | |
12701 | do | |
12702 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12703 | eval $as_var=C; export $as_var | |
12704 | else | |
2aeb72e9 | 12705 | $as_unset $as_var |
1c710c3c DJ |
12706 | fi |
12707 | done | |
12708 | ||
12709 | # Required to use basename. | |
2aeb72e9 | 12710 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
12711 | as_expr=expr |
12712 | else | |
12713 | as_expr=false | |
12714 | fi | |
12715 | ||
2aeb72e9 | 12716 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
1c710c3c DJ |
12717 | as_basename=basename |
12718 | else | |
12719 | as_basename=false | |
12720 | fi | |
12721 | ||
12722 | ||
12723 | # Name of the executable. | |
2aeb72e9 | 12724 | as_me=`$as_basename "$0" || |
1c710c3c DJ |
12725 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12726 | X"$0" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
12727 | X"$0" : 'X\(/\)$' \| \ |
12728 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 12729 | echo X/"$0" | |
2aeb72e9 DD |
12730 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
12731 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12732 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12733 | s/.*/./; q'` | |
1c710c3c | 12734 | |
2aeb72e9 DD |
12735 | |
12736 | # PATH needs CR, and LINENO needs CR and PATH. | |
12737 | # Avoid depending upon Character Ranges. | |
12738 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12739 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12740 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12741 | as_cr_digits='0123456789' | |
12742 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12743 | ||
12744 | # The user is always right. | |
12745 | if test "${PATH_SEPARATOR+set}" != set; then | |
12746 | echo "#! /bin/sh" >conf$$.sh | |
12747 | echo "exit 0" >>conf$$.sh | |
12748 | chmod +x conf$$.sh | |
12749 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12750 | PATH_SEPARATOR=';' | |
12751 | else | |
12752 | PATH_SEPARATOR=: | |
12753 | fi | |
12754 | rm -f conf$$.sh | |
12755 | fi | |
1c710c3c DJ |
12756 | |
12757 | ||
2aeb72e9 DD |
12758 | as_lineno_1=$LINENO |
12759 | as_lineno_2=$LINENO | |
12760 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
12761 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
12762 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
12763 | # Find who we are. Look in the path if we contain no path at all | |
12764 | # relative or not. | |
12765 | case $0 in | |
12766 | *[\\/]* ) as_myself=$0 ;; | |
12767 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12768 | for as_dir in $PATH | |
12769 | do | |
12770 | IFS=$as_save_IFS | |
12771 | test -z "$as_dir" && as_dir=. | |
12772 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12773 | done | |
1c710c3c | 12774 | |
2aeb72e9 DD |
12775 | ;; |
12776 | esac | |
12777 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12778 | # in which case we are not to be found in the path. | |
12779 | if test "x$as_myself" = x; then | |
12780 | as_myself=$0 | |
12781 | fi | |
12782 | if test ! -f "$as_myself"; then | |
12783 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
12784 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
12785 | { (exit 1); exit 1; }; } | |
12786 | fi | |
12787 | case $CONFIG_SHELL in | |
12788 | '') | |
12789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12790 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
12791 | do | |
12792 | IFS=$as_save_IFS | |
12793 | test -z "$as_dir" && as_dir=. | |
12794 | for as_base in sh bash ksh sh5; do | |
12795 | case $as_dir in | |
12796 | /*) | |
12797 | if ("$as_dir/$as_base" -c ' | |
1c710c3c DJ |
12798 | as_lineno_1=$LINENO |
12799 | as_lineno_2=$LINENO | |
2aeb72e9 | 12800 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
1c710c3c | 12801 | test "x$as_lineno_1" != "x$as_lineno_2" && |
2aeb72e9 DD |
12802 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
12803 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
12804 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
12805 | CONFIG_SHELL=$as_dir/$as_base | |
12806 | export CONFIG_SHELL | |
12807 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
12808 | fi;; | |
12809 | esac | |
12810 | done | |
12811 | done | |
12812 | ;; | |
12813 | esac | |
1c710c3c DJ |
12814 | |
12815 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
12816 | # uniformly replaced by the line number. The first 'sed' inserts a | |
2aeb72e9 DD |
12817 | # line-number line before each line; the second 'sed' does the real |
12818 | # work. The second script uses 'N' to pair each line-number line | |
12819 | # with the numbered line, and appends trailing '-' during | |
12820 | # substitution so that $LINENO is not a special case at line end. | |
1c710c3c | 12821 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
2aeb72e9 DD |
12822 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
12823 | sed '=' <$as_myself | | |
1c710c3c DJ |
12824 | sed ' |
12825 | N | |
2aeb72e9 DD |
12826 | s,$,-, |
12827 | : loop | |
12828 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
1c710c3c | 12829 | t loop |
2aeb72e9 DD |
12830 | s,-$,, |
12831 | s,^['$as_cr_digits']*\n,, | |
1c710c3c | 12832 | ' >$as_me.lineno && |
2aeb72e9 DD |
12833 | chmod +x $as_me.lineno || |
12834 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
12835 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
1c710c3c DJ |
12836 | { (exit 1); exit 1; }; } |
12837 | ||
12838 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12839 | # (the dirname of $[0] is not the place where we might find the | |
2aeb72e9 DD |
12840 | # original and so on. Autoconf is especially sensible to this). |
12841 | . ./$as_me.lineno | |
1c710c3c DJ |
12842 | # Exit status is that of the last command. |
12843 | exit | |
12844 | } | |
12845 | ||
12846 | ||
2aeb72e9 DD |
12847 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
12848 | *c*,-n*) ECHO_N= ECHO_C=' | |
12849 | ' ECHO_T=' ' ;; | |
12850 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
12851 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
1c710c3c DJ |
12852 | esac |
12853 | ||
2aeb72e9 | 12854 | if expr a : '\(a\)' >/dev/null 2>&1; then |
1c710c3c DJ |
12855 | as_expr=expr |
12856 | else | |
12857 | as_expr=false | |
12858 | fi | |
12859 | ||
12860 | rm -f conf$$ conf$$.exe conf$$.file | |
12861 | echo >conf$$.file | |
12862 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 DD |
12863 | # We could just check for DJGPP; but this test a) works b) is more generic |
12864 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12865 | if test -f conf$$.exe; then | |
12866 | # Don't use ln at all; we don't have any links | |
1c710c3c | 12867 | as_ln_s='cp -p' |
2aeb72e9 DD |
12868 | else |
12869 | as_ln_s='ln -s' | |
12870 | fi | |
1c710c3c DJ |
12871 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12872 | as_ln_s=ln | |
12873 | else | |
12874 | as_ln_s='cp -p' | |
12875 | fi | |
2aeb72e9 | 12876 | rm -f conf$$ conf$$.exe conf$$.file |
1c710c3c DJ |
12877 | |
12878 | if mkdir -p . 2>/dev/null; then | |
12879 | as_mkdir_p=: | |
12880 | else | |
12881 | test -d ./-p && rmdir ./-p | |
12882 | as_mkdir_p=false | |
12883 | fi | |
12884 | ||
2aeb72e9 | 12885 | as_executable_p="test -f" |
1c710c3c DJ |
12886 | |
12887 | # Sed expression to map a string onto a valid CPP name. | |
12888 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12889 | ||
12890 | # Sed expression to map a string onto a valid variable name. | |
12891 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12892 | ||
12893 | ||
2aeb72e9 DD |
12894 | # IFS |
12895 | # We need space, tab and new line, in precisely that order. | |
12896 | as_nl=' | |
12897 | ' | |
12898 | IFS=" $as_nl" | |
12899 | ||
12900 | # CDPATH. | |
12901 | $as_unset CDPATH | |
12902 | ||
1c710c3c DJ |
12903 | exec 6>&1 |
12904 | ||
2aeb72e9 | 12905 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
1c710c3c | 12906 | # report actual input values of CONFIG_FILES etc. instead of their |
2aeb72e9 DD |
12907 | # values after options handling. Logging --version etc. is OK. |
12908 | exec 5>>config.log | |
12909 | { | |
12910 | echo | |
12911 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12912 | ## Running $as_me. ## | |
12913 | _ASBOX | |
12914 | } >&5 | |
12915 | cat >&5 <<_CSEOF | |
12916 | ||
1c710c3c | 12917 | This file was extended by $as_me, which was |
2aeb72e9 | 12918 | generated by GNU Autoconf 2.59. Invocation command line was |
1c710c3c DJ |
12919 | |
12920 | CONFIG_FILES = $CONFIG_FILES | |
12921 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12922 | CONFIG_LINKS = $CONFIG_LINKS | |
12923 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12924 | $ $0 $@ | |
12925 | ||
2aeb72e9 DD |
12926 | _CSEOF |
12927 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
12928 | echo >&5 | |
1c710c3c DJ |
12929 | _ACEOF |
12930 | ||
12931 | # Files that config.status was made for. | |
2aeb72e9 DD |
12932 | if test -n "$ac_config_files"; then |
12933 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
12934 | fi | |
1c710c3c | 12935 | |
2aeb72e9 DD |
12936 | if test -n "$ac_config_headers"; then |
12937 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
12938 | fi | |
12939 | ||
12940 | if test -n "$ac_config_links"; then | |
12941 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
12942 | fi | |
12943 | ||
12944 | if test -n "$ac_config_commands"; then | |
12945 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12946 | fi | |
1c710c3c DJ |
12947 | |
12948 | cat >>$CONFIG_STATUS <<\_ACEOF | |
2aeb72e9 | 12949 | |
1c710c3c DJ |
12950 | ac_cs_usage="\ |
12951 | \`$as_me' instantiates files from templates according to the | |
12952 | current configuration. | |
12953 | ||
12954 | Usage: $0 [OPTIONS] [FILE]... | |
12955 | ||
12956 | -h, --help print this help, then exit | |
2aeb72e9 | 12957 | -V, --version print version number, then exit |
1c710c3c DJ |
12958 | -q, --quiet do not print progress messages |
12959 | -d, --debug don't remove temporary files | |
12960 | --recheck update $as_me by reconfiguring in the same conditions | |
12961 | --file=FILE[:TEMPLATE] | |
12962 | instantiate the configuration file FILE | |
12963 | ||
12964 | Configuration files: | |
12965 | $config_files | |
12966 | ||
12967 | Report bugs to <bug-autoconf@gnu.org>." | |
11a67599 | 12968 | _ACEOF |
2aeb72e9 | 12969 | |
1c710c3c DJ |
12970 | cat >>$CONFIG_STATUS <<_ACEOF |
12971 | ac_cs_version="\\ | |
12972 | config.status | |
2aeb72e9 DD |
12973 | configured by $0, generated by GNU Autoconf 2.59, |
12974 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 12975 | |
2aeb72e9 | 12976 | Copyright (C) 2003 Free Software Foundation, Inc. |
1c710c3c DJ |
12977 | This config.status script is free software; the Free Software Foundation |
12978 | gives unlimited permission to copy, distribute and modify it." | |
2aeb72e9 DD |
12979 | srcdir=$srcdir |
12980 | INSTALL="$INSTALL" | |
1c710c3c DJ |
12981 | _ACEOF |
12982 | ||
12983 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12984 | # If no file are specified by the user, then we need to provide default | |
12985 | # value. By we need to know if files were specified by the user. | |
12986 | ac_need_defaults=: | |
12987 | while test $# != 0 | |
a4b9e93e | 12988 | do |
1c710c3c DJ |
12989 | case $1 in |
12990 | --*=*) | |
2aeb72e9 DD |
12991 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
12992 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
1c710c3c DJ |
12993 | ac_shift=: |
12994 | ;; | |
2aeb72e9 | 12995 | -*) |
1c710c3c DJ |
12996 | ac_option=$1 |
12997 | ac_optarg=$2 | |
12998 | ac_shift=shift | |
12999 | ;; | |
2aeb72e9 DD |
13000 | *) # This is not an option, so the user has probably given explicit |
13001 | # arguments. | |
13002 | ac_option=$1 | |
13003 | ac_need_defaults=false;; | |
1c710c3c DJ |
13004 | esac |
13005 | ||
13006 | case $ac_option in | |
13007 | # Handling of the options. | |
2aeb72e9 DD |
13008 | _ACEOF |
13009 | cat >>$CONFIG_STATUS <<\_ACEOF | |
671aa708 | 13010 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 13011 | ac_cs_recheck=: ;; |
2aeb72e9 DD |
13012 | --version | --vers* | -V ) |
13013 | echo "$ac_cs_version"; exit 0 ;; | |
13014 | --he | --h) | |
13015 | # Conflict between --help and --header | |
13016 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
13017 | Try \`$0 --help' for more information." >&5 | |
13018 | echo "$as_me: error: ambiguous option: $1 | |
13019 | Try \`$0 --help' for more information." >&2;} | |
13020 | { (exit 1); exit 1; }; };; | |
13021 | --help | --hel | -h ) | |
13022 | echo "$ac_cs_usage"; exit 0 ;; | |
13023 | --debug | --d* | -d ) | |
1c710c3c DJ |
13024 | debug=: ;; |
13025 | --file | --fil | --fi | --f ) | |
13026 | $ac_shift | |
13027 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
13028 | ac_need_defaults=false;; | |
2aeb72e9 DD |
13029 | --header | --heade | --head | --hea ) |
13030 | $ac_shift | |
13031 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
13032 | ac_need_defaults=false;; | |
1c710c3c DJ |
13033 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13034 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13035 | ac_cs_silent=: ;; | |
13036 | ||
13037 | # This is an error. | |
2aeb72e9 DD |
13038 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
13039 | Try \`$0 --help' for more information." >&5 | |
13040 | echo "$as_me: error: unrecognized option: $1 | |
13041 | Try \`$0 --help' for more information." >&2;} | |
1c710c3c DJ |
13042 | { (exit 1); exit 1; }; } ;; |
13043 | ||
2aeb72e9 | 13044 | *) ac_config_targets="$ac_config_targets $1" ;; |
1c710c3c | 13045 | |
0b0dc272 | 13046 | esac |
1c710c3c | 13047 | shift |
0b0dc272 AM |
13048 | done |
13049 | ||
1c710c3c | 13050 | ac_configure_extra_args= |
0b0dc272 | 13051 | |
1c710c3c DJ |
13052 | if $ac_cs_silent; then |
13053 | exec 6>/dev/null | |
13054 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13055 | fi | |
0b0dc272 | 13056 | |
1c710c3c DJ |
13057 | _ACEOF |
13058 | cat >>$CONFIG_STATUS <<_ACEOF | |
13059 | if \$ac_cs_recheck; then | |
2aeb72e9 DD |
13060 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
13061 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
1c710c3c DJ |
13062 | fi |
13063 | ||
13064 | _ACEOF | |
13065 | ||
1c710c3c | 13066 | |
11a67599 | 13067 | |
2aeb72e9 DD |
13068 | |
13069 | ||
13070 | cat >>$CONFIG_STATUS <<\_ACEOF | |
1c710c3c DJ |
13071 | for ac_config_target in $ac_config_targets |
13072 | do | |
2aeb72e9 DD |
13073 | case "$ac_config_target" in |
13074 | # Handling of arguments. | |
13075 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1c710c3c DJ |
13076 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13077 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13078 | { (exit 1); exit 1; }; };; | |
13079 | esac | |
13080 | done | |
13081 | ||
13082 | # If the user did not use the arguments to specify the items to instantiate, | |
13083 | # then the envvar interface is used. Set only those that are not. | |
13084 | # We use the long form for the default assignment because of an extremely | |
13085 | # bizarre bug on SunOS 4.1.3. | |
13086 | if $ac_need_defaults; then | |
13087 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13088 | fi | |
13089 | ||
13090 | # Have a temporary directory for convenience. Make it in the build tree | |
2aeb72e9 | 13091 | # simply because there is no reason to put it here, and in addition, |
1c710c3c | 13092 | # creating and moving files from /tmp can sometimes cause problems. |
2aeb72e9 | 13093 | # Create a temporary directory, and hook for its removal unless debugging. |
1c710c3c DJ |
13094 | $debug || |
13095 | { | |
2aeb72e9 | 13096 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
1c710c3c DJ |
13097 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13098 | } | |
2aeb72e9 | 13099 | |
1c710c3c DJ |
13100 | # Create a (secure) tmp directory for tmp files. |
13101 | ||
13102 | { | |
2aeb72e9 | 13103 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
13104 | test -n "$tmp" && test -d "$tmp" |
13105 | } || | |
13106 | { | |
2aeb72e9 DD |
13107 | tmp=./confstat$$-$RANDOM |
13108 | (umask 077 && mkdir $tmp) | |
1c710c3c DJ |
13109 | } || |
13110 | { | |
13111 | echo "$me: cannot create a temporary directory in ." >&2 | |
13112 | { (exit 1); exit 1; } | |
13113 | } | |
13114 | ||
2aeb72e9 DD |
13115 | _ACEOF |
13116 | ||
13117 | cat >>$CONFIG_STATUS <<_ACEOF | |
13118 | ||
1c710c3c | 13119 | # |
2aeb72e9 | 13120 | # CONFIG_FILES section. |
1c710c3c DJ |
13121 | # |
13122 | ||
13123 | # No need to generate the scripts if there are no CONFIG_FILES. | |
13124 | # This happens for instance when ./config.status config.h | |
2aeb72e9 DD |
13125 | if test -n "\$CONFIG_FILES"; then |
13126 | # Protect against being on the right side of a sed subst in config.status. | |
13127 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13128 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13129 | s,@SHELL@,$SHELL,;t t | |
13130 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
13131 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
13132 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13133 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13134 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13135 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
13136 | s,@exec_prefix@,$exec_prefix,;t t | |
13137 | s,@prefix@,$prefix,;t t | |
13138 | s,@program_transform_name@,$program_transform_name,;t t | |
13139 | s,@bindir@,$bindir,;t t | |
13140 | s,@sbindir@,$sbindir,;t t | |
13141 | s,@libexecdir@,$libexecdir,;t t | |
13142 | s,@datadir@,$datadir,;t t | |
13143 | s,@sysconfdir@,$sysconfdir,;t t | |
13144 | s,@sharedstatedir@,$sharedstatedir,;t t | |
13145 | s,@localstatedir@,$localstatedir,;t t | |
13146 | s,@libdir@,$libdir,;t t | |
13147 | s,@includedir@,$includedir,;t t | |
13148 | s,@oldincludedir@,$oldincludedir,;t t | |
13149 | s,@infodir@,$infodir,;t t | |
13150 | s,@mandir@,$mandir,;t t | |
13151 | s,@build_alias@,$build_alias,;t t | |
13152 | s,@host_alias@,$host_alias,;t t | |
13153 | s,@target_alias@,$target_alias,;t t | |
13154 | s,@DEFS@,$DEFS,;t t | |
13155 | s,@ECHO_C@,$ECHO_C,;t t | |
13156 | s,@ECHO_N@,$ECHO_N,;t t | |
13157 | s,@ECHO_T@,$ECHO_T,;t t | |
13158 | s,@LIBS@,$LIBS,;t t | |
ad33ff57 | 13159 | s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t |
2aeb72e9 DD |
13160 | s,@build@,$build,;t t |
13161 | s,@build_cpu@,$build_cpu,;t t | |
13162 | s,@build_vendor@,$build_vendor,;t t | |
13163 | s,@build_os@,$build_os,;t t | |
13164 | s,@build_noncanonical@,$build_noncanonical,;t t | |
13165 | s,@host_noncanonical@,$host_noncanonical,;t t | |
13166 | s,@target_noncanonical@,$target_noncanonical,;t t | |
13167 | s,@host@,$host,;t t | |
13168 | s,@host_cpu@,$host_cpu,;t t | |
13169 | s,@host_vendor@,$host_vendor,;t t | |
13170 | s,@host_os@,$host_os,;t t | |
13171 | s,@target@,$target,;t t | |
13172 | s,@target_cpu@,$target_cpu,;t t | |
13173 | s,@target_vendor@,$target_vendor,;t t | |
13174 | s,@target_os@,$target_os,;t t | |
13175 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13176 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13177 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
13178 | s,@LN@,$LN,;t t | |
13179 | s,@LN_S@,$LN_S,;t t | |
2aeb72e9 DD |
13180 | s,@build_libsubdir@,$build_libsubdir,;t t |
13181 | s,@build_subdir@,$build_subdir,;t t | |
13182 | s,@host_subdir@,$host_subdir,;t t | |
13183 | s,@target_subdir@,$target_subdir,;t t | |
13184 | s,@CC@,$CC,;t t | |
13185 | s,@CFLAGS@,$CFLAGS,;t t | |
13186 | s,@LDFLAGS@,$LDFLAGS,;t t | |
13187 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13188 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13189 | s,@EXEEXT@,$EXEEXT,;t t | |
13190 | s,@OBJEXT@,$OBJEXT,;t t | |
13191 | s,@CXX@,$CXX,;t t | |
13192 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
13193 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
13194 | s,@GNATBIND@,$GNATBIND,;t t | |
13195 | s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t | |
13196 | s,@GNATMAKE@,$GNATMAKE,;t t | |
13197 | s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t | |
13198 | s,@do_compare@,$do_compare,;t t | |
13199 | s,@gmplibs@,$gmplibs,;t t | |
13200 | s,@gmpinc@,$gmpinc,;t t | |
f8bf9252 SP |
13201 | s,@ppllibs@,$ppllibs,;t t |
13202 | s,@pplinc@,$pplinc,;t t | |
13203 | s,@clooglibs@,$clooglibs,;t t | |
13204 | s,@clooginc@,$clooginc,;t t | |
2aeb72e9 DD |
13205 | s,@stage1_languages@,$stage1_languages,;t t |
13206 | s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t | |
c8aea42c | 13207 | s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t |
1c8bd6a3 PB |
13208 | s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t |
13209 | s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t | |
2aeb72e9 | 13210 | s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t |
d89f0ad6 | 13211 | s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t |
2aeb72e9 DD |
13212 | s,@tooldir@,$tooldir,;t t |
13213 | s,@build_tooldir@,$build_tooldir,;t t | |
13214 | s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t | |
13215 | s,@GDB_TK@,$GDB_TK,;t t | |
13216 | s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t | |
13217 | s,@build_configargs@,$build_configargs,;t t | |
13218 | s,@build_configdirs@,$build_configdirs,;t t | |
13219 | s,@host_configargs@,$host_configargs,;t t | |
13220 | s,@configdirs@,$configdirs,;t t | |
13221 | s,@target_configargs@,$target_configargs,;t t | |
0999159b PB |
13222 | s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t |
13223 | s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t | |
2aeb72e9 | 13224 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
0999159b PB |
13225 | s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t |
13226 | s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t | |
13227 | s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t | |
13228 | s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t | |
13229 | s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t | |
13230 | s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t | |
13231 | s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t | |
13232 | s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t | |
13233 | s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t | |
13234 | s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t | |
13235 | s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t | |
13236 | s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t | |
2aeb72e9 DD |
13237 | s,@config_shell@,$config_shell,;t t |
13238 | s,@YACC@,$YACC,;t t | |
13239 | s,@BISON@,$BISON,;t t | |
13240 | s,@M4@,$M4,;t t | |
13241 | s,@LEX@,$LEX,;t t | |
13242 | s,@FLEX@,$FLEX,;t t | |
13243 | s,@MAKEINFO@,$MAKEINFO,;t t | |
13244 | s,@EXPECT@,$EXPECT,;t t | |
13245 | s,@RUNTEST@,$RUNTEST,;t t | |
13246 | s,@AR@,$AR,;t t | |
13247 | s,@AS@,$AS,;t t | |
13248 | s,@DLLTOOL@,$DLLTOOL,;t t | |
13249 | s,@LD@,$LD,;t t | |
13250 | s,@LIPO@,$LIPO,;t t | |
13251 | s,@NM@,$NM,;t t | |
13252 | s,@RANLIB@,$RANLIB,;t t | |
13253 | s,@STRIP@,$STRIP,;t t | |
13254 | s,@WINDRES@,$WINDRES,;t t | |
901119ae | 13255 | s,@WINDMC@,$WINDMC,;t t |
2aeb72e9 DD |
13256 | s,@OBJCOPY@,$OBJCOPY,;t t |
13257 | s,@OBJDUMP@,$OBJDUMP,;t t | |
2aeb72e9 DD |
13258 | s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t |
13259 | s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t | |
13260 | s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t | |
13261 | s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t | |
13262 | s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t | |
13263 | s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t | |
13264 | s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t | |
13265 | s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t | |
13266 | s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t | |
13267 | s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t | |
13268 | s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t | |
13269 | s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t | |
13270 | s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t | |
13271 | s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t | |
13272 | s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t | |
901119ae | 13273 | s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t |
2aeb72e9 DD |
13274 | s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t |
13275 | s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t | |
13276 | s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t | |
13277 | s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t | |
13278 | s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t | |
13279 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
13280 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
13281 | s,@MAINT@,$MAINT,;t t | |
13282 | s,@stage1_cflags@,$stage1_cflags,;t t | |
13283 | s,@stage1_checking@,$stage1_checking,;t t | |
13284 | s,@stage2_werror_flag@,$stage2_werror_flag,;t t | |
13285 | s,@datarootdir@,$datarootdir,;t t | |
13286 | s,@docdir@,$docdir,;t t | |
13287 | s,@pdfdir@,$pdfdir,;t t | |
13288 | s,@htmldir@,$htmldir,;t t | |
13289 | s,@LIBOBJS@,$LIBOBJS,;t t | |
13290 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
13291 | /@serialization_dependencies@/r $serialization_dependencies | |
13292 | s,@serialization_dependencies@,,;t t | |
13293 | /@host_makefile_frag@/r $host_makefile_frag | |
13294 | s,@host_makefile_frag@,,;t t | |
13295 | /@target_makefile_frag@/r $target_makefile_frag | |
13296 | s,@target_makefile_frag@,,;t t | |
13297 | /@alphaieee_frag@/r $alphaieee_frag | |
13298 | s,@alphaieee_frag@,,;t t | |
13299 | /@ospace_frag@/r $ospace_frag | |
13300 | s,@ospace_frag@,,;t t | |
13301 | CEOF | |
79c06341 | 13302 | |
1c710c3c DJ |
13303 | _ACEOF |
13304 | ||
2aeb72e9 DD |
13305 | cat >>$CONFIG_STATUS <<\_ACEOF |
13306 | # Split the substitutions into bite-sized pieces for seds with | |
13307 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13308 | ac_max_sed_lines=48 | |
13309 | ac_sed_frag=1 # Number of current file. | |
13310 | ac_beg=1 # First line for current file. | |
13311 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13312 | ac_more_lines=: | |
13313 | ac_sed_cmds= | |
13314 | while $ac_more_lines; do | |
13315 | if test $ac_beg -gt 1; then | |
13316 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
13317 | else | |
13318 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
13319 | fi | |
13320 | if test ! -s $tmp/subs.frag; then | |
13321 | ac_more_lines=false | |
13322 | else | |
13323 | # The purpose of the label and of the branching condition is to | |
13324 | # speed up the sed processing (if there are no `@' at all, there | |
13325 | # is no need to browse any of the substitutions). | |
13326 | # These are the two extra sed commands mentioned above. | |
13327 | (echo ':t | |
13328 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13329 | if test -z "$ac_sed_cmds"; then | |
13330 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13331 | else | |
13332 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13333 | fi | |
13334 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
13335 | ac_beg=$ac_end | |
13336 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
13337 | fi | |
13338 | done | |
13339 | if test -z "$ac_sed_cmds"; then | |
13340 | ac_sed_cmds=cat | |
11a67599 | 13341 | fi |
2aeb72e9 | 13342 | fi # test -n "$CONFIG_FILES" |
11a67599 | 13343 | |
11a67599 | 13344 | _ACEOF |
1c710c3c | 13345 | cat >>$CONFIG_STATUS <<\_ACEOF |
2aeb72e9 DD |
13346 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
13347 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13348 | case $ac_file in | |
13349 | - | *:- | *:-:* ) # input from stdin | |
13350 | cat >$tmp/stdin | |
13351 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13352 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13353 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13354 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13355 | * ) ac_file_in=$ac_file.in ;; | |
11a67599 ZW |
13356 | esac |
13357 | ||
2aeb72e9 DD |
13358 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
13359 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
1c710c3c DJ |
13360 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13361 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13362 | X"$ac_file" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
13363 | X"$ac_file" : 'X\(/\)' \| \ |
13364 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 13365 | echo X"$ac_file" | |
2aeb72e9 DD |
13366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13367 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13368 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13369 | /^X\(\/\).*/{ s//\1/; q; } | |
13370 | s/.*/./; q'` | |
13371 | { if $as_mkdir_p; then | |
13372 | mkdir -p "$ac_dir" | |
13373 | else | |
13374 | as_dir="$ac_dir" | |
1c710c3c | 13375 | as_dirs= |
2aeb72e9 DD |
13376 | while test ! -d "$as_dir"; do |
13377 | as_dirs="$as_dir $as_dirs" | |
13378 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
1c710c3c DJ |
13379 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13380 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13381 | X"$as_dir" : 'X\(//\)$' \| \ | |
2aeb72e9 DD |
13382 | X"$as_dir" : 'X\(/\)' \| \ |
13383 | . : '\(.\)' 2>/dev/null || | |
1c710c3c | 13384 | echo X"$as_dir" | |
2aeb72e9 DD |
13385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13386 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13387 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13388 | /^X\(\/\).*/{ s//\1/; q; } | |
13389 | s/.*/./; q'` | |
1c710c3c | 13390 | done |
2aeb72e9 DD |
13391 | test ! -n "$as_dirs" || mkdir $as_dirs |
13392 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13393 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
1c710c3c | 13394 | { (exit 1); exit 1; }; }; } |
2aeb72e9 | 13395 | |
1c710c3c | 13396 | ac_builddir=. |
0b0dc272 | 13397 | |
2aeb72e9 | 13398 | if test "$ac_dir" != .; then |
1c710c3c | 13399 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
2aeb72e9 DD |
13400 | # A "../" for each directory in $ac_dir_suffix. |
13401 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13402 | else | |
13403 | ac_dir_suffix= ac_top_builddir= | |
13404 | fi | |
1c710c3c DJ |
13405 | |
13406 | case $srcdir in | |
2aeb72e9 | 13407 | .) # No --srcdir option. We are building in place. |
1c710c3c | 13408 | ac_srcdir=. |
2aeb72e9 DD |
13409 | if test -z "$ac_top_builddir"; then |
13410 | ac_top_srcdir=. | |
13411 | else | |
13412 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13413 | fi ;; | |
13414 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1c710c3c | 13415 | ac_srcdir=$srcdir$ac_dir_suffix; |
2aeb72e9 DD |
13416 | ac_top_srcdir=$srcdir ;; |
13417 | *) # Relative path. | |
13418 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
13419 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1c710c3c | 13420 | esac |
a4b9e93e | 13421 | |
2aeb72e9 DD |
13422 | # Do not use `cd foo && pwd` to compute absolute paths, because |
13423 | # the directories may not exist. | |
13424 | case `pwd` in | |
13425 | .) ac_abs_builddir="$ac_dir";; | |
13426 | *) | |
13427 | case "$ac_dir" in | |
13428 | .) ac_abs_builddir=`pwd`;; | |
13429 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13430 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13431 | esac;; | |
13432 | esac | |
13433 | case $ac_abs_builddir in | |
13434 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13435 | *) | |
13436 | case ${ac_top_builddir}. in | |
13437 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13438 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13439 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13440 | esac;; | |
13441 | esac | |
13442 | case $ac_abs_builddir in | |
13443 | .) ac_abs_srcdir=$ac_srcdir;; | |
13444 | *) | |
13445 | case $ac_srcdir in | |
13446 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13447 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13448 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13449 | esac;; | |
13450 | esac | |
13451 | case $ac_abs_builddir in | |
13452 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13453 | *) | |
13454 | case $ac_top_srcdir in | |
13455 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13456 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13457 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13458 | esac;; | |
13459 | esac | |
0b0dc272 | 13460 | |
1c710c3c DJ |
13461 | |
13462 | case $INSTALL in | |
13463 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
2aeb72e9 | 13464 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
671aa708 | 13465 | esac |
11a67599 | 13466 | |
2aeb72e9 DD |
13467 | if test x"$ac_file" != x-; then |
13468 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13469 | echo "$as_me: creating $ac_file" >&6;} | |
13470 | rm -f "$ac_file" | |
13471 | fi | |
13472 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13473 | # use $as_me), people would be surprised to read: | |
13474 | # /* config.h. Generated by config.status. */ | |
13475 | if test x"$ac_file" = x-; then | |
13476 | configure_input= | |
13477 | else | |
13478 | configure_input="$ac_file. " | |
13479 | fi | |
13480 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
13481 | sed 's,.*/,,'` by configure." | |
13482 | ||
13483 | # First look for the input files in the build tree, otherwise in the | |
13484 | # src tree. | |
13485 | ac_file_inputs=`IFS=: | |
13486 | for f in $ac_file_in; do | |
13487 | case $f in | |
13488 | -) echo $tmp/stdin ;; | |
13489 | [\\/$]*) | |
13490 | # Absolute (can't be DOS-style, as IFS=:) | |
13491 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13492 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13493 | { (exit 1); exit 1; }; } | |
13494 | echo "$f";; | |
13495 | *) # Relative | |
13496 | if test -f "$f"; then | |
13497 | # Build tree | |
13498 | echo "$f" | |
13499 | elif test -f "$srcdir/$f"; then | |
13500 | # Source tree | |
13501 | echo "$srcdir/$f" | |
13502 | else | |
13503 | # /dev/null tree | |
13504 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13505 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13506 | { (exit 1); exit 1; }; } | |
13507 | fi;; | |
13508 | esac | |
13509 | done` || { (exit 1); exit 1; } | |
11a67599 | 13510 | _ACEOF |
1c710c3c DJ |
13511 | cat >>$CONFIG_STATUS <<_ACEOF |
13512 | sed "$ac_vpsub | |
13513 | $extrasub | |
13514 | _ACEOF | |
13515 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13516 | :t | |
13517 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
2aeb72e9 DD |
13518 | s,@configure_input@,$configure_input,;t t |
13519 | s,@srcdir@,$ac_srcdir,;t t | |
13520 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
13521 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
13522 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
13523 | s,@builddir@,$ac_builddir,;t t | |
13524 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
13525 | s,@top_builddir@,$ac_top_builddir,;t t | |
13526 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
13527 | s,@INSTALL@,$ac_INSTALL,;t t | |
13528 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13529 | rm -f $tmp/stdin | |
13530 | if test x"$ac_file" != x-; then | |
13531 | mv $tmp/out $ac_file | |
13532 | else | |
13533 | cat $tmp/out | |
13534 | rm -f $tmp/out | |
13535 | fi | |
11a67599 | 13536 | |
2aeb72e9 DD |
13537 | done |
13538 | _ACEOF | |
11a67599 | 13539 | |
2aeb72e9 | 13540 | cat >>$CONFIG_STATUS <<\_ACEOF |
79c06341 | 13541 | |
1c710c3c DJ |
13542 | { (exit 0); exit 0; } |
13543 | _ACEOF | |
671aa708 | 13544 | chmod +x $CONFIG_STATUS |
1c710c3c DJ |
13545 | ac_clean_files=$ac_clean_files_save |
13546 | ||
13547 | ||
13548 | # configure is writing to config.log, and then calls config.status. | |
13549 | # config.status does its own redirection, appending to config.log. | |
13550 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13551 | # by configure, so config.status won't be able to write to it; its | |
13552 | # output is simply discarded. So we exec the FD to /dev/null, | |
13553 | # effectively closing config.log, so it can be properly (re)opened and | |
13554 | # appended to by config.status. When coming back to configure, we | |
13555 | # need to make the FD available again. | |
13556 | if test "$no_create" != yes; then | |
13557 | ac_cs_success=: | |
13558 | ac_config_status_args= | |
13559 | test "$silent" = yes && | |
13560 | ac_config_status_args="$ac_config_status_args --quiet" | |
13561 | exec 5>/dev/null | |
13562 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13563 | exec 5>>config.log | |
13564 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13565 | # would make configure fail if this is the last instruction. | |
13566 | $ac_cs_success || { (exit 1); exit 1; } | |
13567 | fi | |
79c06341 | 13568 |