]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
6b65a26d | 3 | # Generated by GNU Autoconf 2.59. |
671aa708 | 4 | # |
6b65a26d | 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. | |
6b65a26d CM |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
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+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
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. | |
33 | $as_unset ENV MAIL MAILPATH | |
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 | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
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 | |
85 | ||
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 | |
97 | fi | |
98 | ||
99 | ||
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 | |
116 | ||
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 | '') | |
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=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
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 | |
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 | |
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. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
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 | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
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= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
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 | |
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 | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
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 | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
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 | ||
225 | as_executable_p="test -f" | |
226 | ||
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 | ||
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 | |
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` | |
671aa708 | 248 | |
6b65a26d CM |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
671aa708 | 254 | ac_default_prefix=/usr/local |
6b65a26d CM |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
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 | ||
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" | |
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET CONFIGURED_BISON CONFIGURED_YACC CONFIGURED_M4 CONFIGURED_FLEX CONFIGURED_LEX CONFIGURED_MAKEINFO bootstrap_lean default_target RPATH_ENVVAR BUILD_PREFIX BUILD_PREFIX_1 tooldir build_tooldir GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs target_configdirs CC_FOR_BUILD config_shell AR AS DLLTOOL LD NM RANLIB WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS AR_FOR_TARGET AS_FOR_TARGET CC_FOR_TARGET CXX_FOR_TARGET DLLTOOL_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET CONFIGURED_AR_FOR_TARGET CONFIGURED_AS_FOR_TARGET CONFIGURED_CC_FOR_TARGET CONFIGURED_CXX_FOR_TARGET CONFIGURED_DLLTOOL_FOR_TARGET CONFIGURED_GCC_FOR_TARGET CONFIGURED_GCJ_FOR_TARGET CONFIGURED_GFORTRAN_FOR_TARGET CONFIGURED_LD_FOR_TARGET CONFIGURED_LIPO_FOR_TARGET CONFIGURED_NM_FOR_TARGET CONFIGURED_RANLIB_FOR_TARGET CONFIGURED_STRIP_FOR_TARGET CONFIGURED_WINDRES_FOR_TARGET FLAGS_FOR_TARGET RAW_CXX_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags CREATE_LINK_TO_DIR UNDO_LINK_TO_DIR stage2_werror_flag LIBOBJS LTLIBOBJS' | |
276 | ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag' | |
671aa708 NN |
277 | |
278 | # Initialize some variables set by options. | |
6b65a26d CM |
279 | ac_init_help= |
280 | ac_init_version=false | |
671aa708 NN |
281 | # The variables have the same names as the options, with |
282 | # dashes changed to underlines. | |
6b65a26d | 283 | cache_file=/dev/null |
671aa708 | 284 | exec_prefix=NONE |
671aa708 | 285 | no_create= |
671aa708 NN |
286 | no_recursion= |
287 | prefix=NONE | |
288 | program_prefix=NONE | |
289 | program_suffix=NONE | |
290 | program_transform_name=s,x,x, | |
291 | silent= | |
292 | site= | |
293 | srcdir= | |
671aa708 NN |
294 | verbose= |
295 | x_includes=NONE | |
296 | x_libraries=NONE | |
6b65a26d CM |
297 | |
298 | # Installation directory options. | |
299 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
300 | # and all the variables that are supposed to be based on exec_prefix | |
301 | # by default will actually change. | |
302 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
671aa708 NN |
303 | bindir='${exec_prefix}/bin' |
304 | sbindir='${exec_prefix}/sbin' | |
305 | libexecdir='${exec_prefix}/libexec' | |
306 | datadir='${prefix}/share' | |
307 | sysconfdir='${prefix}/etc' | |
308 | sharedstatedir='${prefix}/com' | |
309 | localstatedir='${prefix}/var' | |
310 | libdir='${exec_prefix}/lib' | |
311 | includedir='${prefix}/include' | |
312 | oldincludedir='/usr/include' | |
313 | infodir='${prefix}/info' | |
314 | mandir='${prefix}/man' | |
79c06341 | 315 | |
671aa708 NN |
316 | ac_prev= |
317 | for ac_option | |
318 | do | |
671aa708 NN |
319 | # If the previous option needs an argument, assign it. |
320 | if test -n "$ac_prev"; then | |
321 | eval "$ac_prev=\$ac_option" | |
322 | ac_prev= | |
323 | continue | |
324 | fi | |
79c06341 | 325 | |
6b65a26d | 326 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
671aa708 NN |
327 | |
328 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
329 | ||
6b65a26d | 330 | case $ac_option in |
671aa708 NN |
331 | |
332 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
333 | ac_prev=bindir ;; | |
334 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
6b65a26d | 335 | bindir=$ac_optarg ;; |
671aa708 NN |
336 | |
337 | -build | --build | --buil | --bui | --bu) | |
6b65a26d | 338 | ac_prev=build_alias ;; |
671aa708 | 339 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
6b65a26d | 340 | build_alias=$ac_optarg ;; |
671aa708 NN |
341 | |
342 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
343 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
344 | ac_prev=cache_file ;; | |
345 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
346 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
6b65a26d CM |
347 | cache_file=$ac_optarg ;; |
348 | ||
349 | --config-cache | -C) | |
350 | cache_file=config.cache ;; | |
671aa708 NN |
351 | |
352 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
353 | ac_prev=datadir ;; | |
354 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
355 | | --da=*) | |
6b65a26d | 356 | datadir=$ac_optarg ;; |
671aa708 NN |
357 | |
358 | -disable-* | --disable-*) | |
6b65a26d | 359 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 360 | # Reject names that are not valid shell variable names. |
6b65a26d CM |
361 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
362 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
363 | { (exit 1); exit 1; }; } | |
364 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
365 | eval "enable_$ac_feature=no" ;; | |
671aa708 NN |
366 | |
367 | -enable-* | --enable-*) | |
6b65a26d | 368 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 369 | # Reject names that are not valid shell variable names. |
6b65a26d CM |
370 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
371 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
372 | { (exit 1); exit 1; }; } | |
373 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
374 | case $ac_option in | |
375 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
671aa708 NN |
376 | *) ac_optarg=yes ;; |
377 | esac | |
6b65a26d | 378 | eval "enable_$ac_feature='$ac_optarg'" ;; |
671aa708 NN |
379 | |
380 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
381 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
382 | | --exec | --exe | --ex) | |
383 | ac_prev=exec_prefix ;; | |
384 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
385 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
386 | | --exec=* | --exe=* | --ex=*) | |
6b65a26d | 387 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
388 | |
389 | -gas | --gas | --ga | --g) | |
390 | # Obsolete; use --with-gas. | |
391 | with_gas=yes ;; | |
392 | ||
6b65a26d CM |
393 | -help | --help | --hel | --he | -h) |
394 | ac_init_help=long ;; | |
395 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
396 | ac_init_help=recursive ;; | |
397 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
398 | ac_init_help=short ;; | |
671aa708 NN |
399 | |
400 | -host | --host | --hos | --ho) | |
6b65a26d | 401 | ac_prev=host_alias ;; |
671aa708 | 402 | -host=* | --host=* | --hos=* | --ho=*) |
6b65a26d | 403 | host_alias=$ac_optarg ;; |
671aa708 NN |
404 | |
405 | -includedir | --includedir | --includedi | --included | --include \ | |
406 | | --includ | --inclu | --incl | --inc) | |
407 | ac_prev=includedir ;; | |
408 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
409 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
6b65a26d | 410 | includedir=$ac_optarg ;; |
671aa708 NN |
411 | |
412 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
413 | ac_prev=infodir ;; | |
414 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
6b65a26d | 415 | infodir=$ac_optarg ;; |
671aa708 NN |
416 | |
417 | -libdir | --libdir | --libdi | --libd) | |
418 | ac_prev=libdir ;; | |
419 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
6b65a26d | 420 | libdir=$ac_optarg ;; |
671aa708 NN |
421 | |
422 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
423 | | --libexe | --libex | --libe) | |
424 | ac_prev=libexecdir ;; | |
425 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
426 | | --libexe=* | --libex=* | --libe=*) | |
6b65a26d | 427 | libexecdir=$ac_optarg ;; |
671aa708 NN |
428 | |
429 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
430 | | --localstate | --localstat | --localsta | --localst \ | |
431 | | --locals | --local | --loca | --loc | --lo) | |
432 | ac_prev=localstatedir ;; | |
433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
435 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
6b65a26d | 436 | localstatedir=$ac_optarg ;; |
671aa708 NN |
437 | |
438 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
439 | ac_prev=mandir ;; | |
440 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
6b65a26d | 441 | mandir=$ac_optarg ;; |
671aa708 NN |
442 | |
443 | -nfp | --nfp | --nf) | |
444 | # Obsolete; use --without-fp. | |
445 | with_fp=no ;; | |
446 | ||
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
6b65a26d | 448 | | --no-cr | --no-c | -n) |
671aa708 NN |
449 | no_create=yes ;; |
450 | ||
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
453 | no_recursion=yes ;; | |
454 | ||
455 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
456 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
457 | | --oldin | --oldi | --old | --ol | --o) | |
458 | ac_prev=oldincludedir ;; | |
459 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
460 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
461 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
6b65a26d | 462 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
463 | |
464 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
465 | ac_prev=prefix ;; | |
466 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
6b65a26d | 467 | prefix=$ac_optarg ;; |
671aa708 NN |
468 | |
469 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
470 | | --program-pre | --program-pr | --program-p) | |
471 | ac_prev=program_prefix ;; | |
472 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
473 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
6b65a26d | 474 | program_prefix=$ac_optarg ;; |
671aa708 NN |
475 | |
476 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
477 | | --program-suf | --program-su | --program-s) | |
478 | ac_prev=program_suffix ;; | |
479 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
480 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
6b65a26d | 481 | program_suffix=$ac_optarg ;; |
671aa708 NN |
482 | |
483 | -program-transform-name | --program-transform-name \ | |
484 | | --program-transform-nam | --program-transform-na \ | |
485 | | --program-transform-n | --program-transform- \ | |
486 | | --program-transform | --program-transfor \ | |
487 | | --program-transfo | --program-transf \ | |
488 | | --program-trans | --program-tran \ | |
489 | | --progr-tra | --program-tr | --program-t) | |
490 | ac_prev=program_transform_name ;; | |
491 | -program-transform-name=* | --program-transform-name=* \ | |
492 | | --program-transform-nam=* | --program-transform-na=* \ | |
493 | | --program-transform-n=* | --program-transform-=* \ | |
494 | | --program-transform=* | --program-transfor=* \ | |
495 | | --program-transfo=* | --program-transf=* \ | |
496 | | --program-trans=* | --program-tran=* \ | |
497 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
6b65a26d | 498 | program_transform_name=$ac_optarg ;; |
671aa708 NN |
499 | |
500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
501 | | -silent | --silent | --silen | --sile | --sil) | |
502 | silent=yes ;; | |
503 | ||
504 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
505 | ac_prev=sbindir ;; | |
506 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
507 | | --sbi=* | --sb=*) | |
6b65a26d | 508 | sbindir=$ac_optarg ;; |
671aa708 NN |
509 | |
510 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
511 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
512 | | --sharedst | --shareds | --shared | --share | --shar \ | |
513 | | --sha | --sh) | |
514 | ac_prev=sharedstatedir ;; | |
515 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
516 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
517 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
518 | | --sha=* | --sh=*) | |
6b65a26d | 519 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
520 | |
521 | -site | --site | --sit) | |
522 | ac_prev=site ;; | |
523 | -site=* | --site=* | --sit=*) | |
6b65a26d | 524 | site=$ac_optarg ;; |
671aa708 NN |
525 | |
526 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
527 | ac_prev=srcdir ;; | |
528 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6b65a26d | 529 | srcdir=$ac_optarg ;; |
671aa708 NN |
530 | |
531 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
532 | | --syscon | --sysco | --sysc | --sys | --sy) | |
533 | ac_prev=sysconfdir ;; | |
534 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
535 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
6b65a26d | 536 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
537 | |
538 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
6b65a26d | 539 | ac_prev=target_alias ;; |
671aa708 | 540 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
6b65a26d | 541 | target_alias=$ac_optarg ;; |
671aa708 NN |
542 | |
543 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
544 | verbose=yes ;; | |
545 | ||
6b65a26d CM |
546 | -version | --version | --versio | --versi | --vers | -V) |
547 | ac_init_version=: ;; | |
671aa708 NN |
548 | |
549 | -with-* | --with-*) | |
6b65a26d | 550 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 551 | # Reject names that are not valid shell variable names. |
6b65a26d CM |
552 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
553 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
554 | { (exit 1); exit 1; }; } | |
671aa708 | 555 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
6b65a26d CM |
556 | case $ac_option in |
557 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
671aa708 NN |
558 | *) ac_optarg=yes ;; |
559 | esac | |
6b65a26d | 560 | eval "with_$ac_package='$ac_optarg'" ;; |
671aa708 NN |
561 | |
562 | -without-* | --without-*) | |
6b65a26d | 563 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 564 | # Reject names that are not valid shell variable names. |
6b65a26d CM |
565 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
566 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
567 | { (exit 1); exit 1; }; } | |
568 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
569 | eval "with_$ac_package=no" ;; | |
671aa708 NN |
570 | |
571 | --x) | |
572 | # Obsolete; use --with-x. | |
573 | with_x=yes ;; | |
574 | ||
575 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
576 | | --x-incl | --x-inc | --x-in | --x-i) | |
577 | ac_prev=x_includes ;; | |
578 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
579 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
6b65a26d | 580 | x_includes=$ac_optarg ;; |
671aa708 NN |
581 | |
582 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
583 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
584 | ac_prev=x_libraries ;; | |
585 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
586 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
6b65a26d | 587 | x_libraries=$ac_optarg ;; |
671aa708 | 588 | |
6b65a26d CM |
589 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
590 | Try \`$0 --help' for more information." >&2 | |
591 | { (exit 1); exit 1; }; } | |
671aa708 NN |
592 | ;; |
593 | ||
6b65a26d CM |
594 | *=*) |
595 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
596 | # Reject names that are not valid shell variable names. | |
597 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
598 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
599 | { (exit 1); exit 1; }; } | |
600 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
601 | eval "$ac_envvar='$ac_optarg'" | |
602 | export $ac_envvar ;; | |
603 | ||
671aa708 | 604 | *) |
6b65a26d CM |
605 | # FIXME: should be removed in autoconf 3.0. |
606 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
607 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
608 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
609 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
671aa708 NN |
610 | ;; |
611 | ||
612 | esac | |
613 | done | |
614 | ||
615 | if test -n "$ac_prev"; then | |
6b65a26d CM |
616 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
617 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
618 | { (exit 1); exit 1; }; } | |
671aa708 | 619 | fi |
671aa708 | 620 | |
6b65a26d CM |
621 | # Be sure to have absolute paths. |
622 | for ac_var in exec_prefix prefix | |
623 | do | |
624 | eval ac_val=$`echo $ac_var` | |
625 | case $ac_val in | |
626 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
627 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
628 | { (exit 1); exit 1; }; };; | |
629 | esac | |
630 | done | |
671aa708 | 631 | |
6b65a26d CM |
632 | # Be sure to have absolute paths. |
633 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
634 | localstatedir libdir includedir oldincludedir infodir mandir | |
671aa708 | 635 | do |
6b65a26d CM |
636 | eval ac_val=$`echo $ac_var` |
637 | case $ac_val in | |
638 | [\\/$]* | ?:[\\/]* ) ;; | |
639 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
640 | { (exit 1); exit 1; }; };; | |
671aa708 NN |
641 | esac |
642 | done | |
643 | ||
6b65a26d CM |
644 | # There might be people who depend on the old broken behavior: `$host' |
645 | # used to hold the argument of --host etc. | |
646 | # FIXME: To remove some day. | |
647 | build=$build_alias | |
648 | host=$host_alias | |
649 | target=$target_alias | |
650 | ||
651 | # FIXME: To remove some day. | |
652 | if test "x$host_alias" != x; then | |
653 | if test "x$build_alias" = x; then | |
654 | cross_compiling=maybe | |
655 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
656 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
657 | elif test "x$build_alias" != "x$host_alias"; then | |
658 | cross_compiling=yes | |
659 | fi | |
660 | fi | |
671aa708 | 661 | |
6b65a26d CM |
662 | ac_tool_prefix= |
663 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
664 | ||
665 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 666 | |
671aa708 NN |
667 | |
668 | # Find the source files, if location was not specified. | |
669 | if test -z "$srcdir"; then | |
670 | ac_srcdir_defaulted=yes | |
671 | # Try the directory containing this script, then its parent. | |
6b65a26d CM |
672 | ac_confdir=`(dirname "$0") 2>/dev/null || |
673 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
674 | X"$0" : 'X\(//\)[^/]' \| \ | |
675 | X"$0" : 'X\(//\)$' \| \ | |
676 | X"$0" : 'X\(/\)' \| \ | |
677 | . : '\(.\)' 2>/dev/null || | |
678 | echo X"$0" | | |
679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
681 | /^X\(\/\/\)$/{ s//\1/; q; } | |
682 | /^X\(\/\).*/{ s//\1/; q; } | |
683 | s/.*/./; q'` | |
671aa708 NN |
684 | srcdir=$ac_confdir |
685 | if test ! -r $srcdir/$ac_unique_file; then | |
686 | srcdir=.. | |
687 | fi | |
688 | else | |
689 | ac_srcdir_defaulted=no | |
690 | fi | |
691 | if test ! -r $srcdir/$ac_unique_file; then | |
692 | if test "$ac_srcdir_defaulted" = yes; then | |
6b65a26d CM |
693 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
694 | { (exit 1); exit 1; }; } | |
671aa708 | 695 | else |
6b65a26d CM |
696 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
697 | { (exit 1); exit 1; }; } | |
671aa708 NN |
698 | fi |
699 | fi | |
6b65a26d CM |
700 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
701 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
702 | { (exit 1); exit 1; }; } | |
703 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
704 | ac_env_build_alias_set=${build_alias+set} | |
705 | ac_env_build_alias_value=$build_alias | |
706 | ac_cv_env_build_alias_set=${build_alias+set} | |
707 | ac_cv_env_build_alias_value=$build_alias | |
708 | ac_env_host_alias_set=${host_alias+set} | |
709 | ac_env_host_alias_value=$host_alias | |
710 | ac_cv_env_host_alias_set=${host_alias+set} | |
711 | ac_cv_env_host_alias_value=$host_alias | |
712 | ac_env_target_alias_set=${target_alias+set} | |
713 | ac_env_target_alias_value=$target_alias | |
714 | ac_cv_env_target_alias_set=${target_alias+set} | |
715 | ac_cv_env_target_alias_value=$target_alias | |
716 | ac_env_CC_set=${CC+set} | |
717 | ac_env_CC_value=$CC | |
718 | ac_cv_env_CC_set=${CC+set} | |
719 | ac_cv_env_CC_value=$CC | |
720 | ac_env_CFLAGS_set=${CFLAGS+set} | |
721 | ac_env_CFLAGS_value=$CFLAGS | |
722 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
723 | ac_cv_env_CFLAGS_value=$CFLAGS | |
724 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
725 | ac_env_LDFLAGS_value=$LDFLAGS | |
726 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
727 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
728 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
729 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
730 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
731 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
732 | ||
733 | # | |
734 | # Report the --help message. | |
735 | # | |
736 | if test "$ac_init_help" = "long"; then | |
737 | # Omit some internal or obsolete options to make the list less imposing. | |
738 | # This message is too long to be a string in the A/UX 3.1 sh. | |
739 | cat <<_ACEOF | |
740 | \`configure' configures this package to adapt to many kinds of systems. | |
741 | ||
742 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
743 | ||
744 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
745 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
746 | ||
747 | Defaults for the options are specified in brackets. | |
748 | ||
749 | Configuration: | |
750 | -h, --help display this help and exit | |
751 | --help=short display options specific to this package | |
752 | --help=recursive display the short help of all the included packages | |
753 | -V, --version display version information and exit | |
754 | -q, --quiet, --silent do not print \`checking...' messages | |
755 | --cache-file=FILE cache test results in FILE [disabled] | |
756 | -C, --config-cache alias for \`--cache-file=config.cache' | |
757 | -n, --no-create do not create output files | |
758 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
759 | ||
760 | _ACEOF | |
761 | ||
762 | cat <<_ACEOF | |
763 | Installation directories: | |
764 | --prefix=PREFIX install architecture-independent files in PREFIX | |
765 | [$ac_default_prefix] | |
766 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
767 | [PREFIX] | |
768 | ||
769 | By default, \`make install' will install all the files in | |
770 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
771 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
772 | for instance \`--prefix=\$HOME'. | |
773 | ||
774 | For better control, use the options below. | |
775 | ||
776 | Fine tuning of the installation directories: | |
777 | --bindir=DIR user executables [EPREFIX/bin] | |
778 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
779 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
780 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
781 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
782 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
783 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
784 | --libdir=DIR object code libraries [EPREFIX/lib] | |
785 | --includedir=DIR C header files [PREFIX/include] | |
786 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
787 | --infodir=DIR info documentation [PREFIX/info] | |
788 | --mandir=DIR man documentation [PREFIX/man] | |
789 | _ACEOF | |
790 | ||
791 | cat <<\_ACEOF | |
792 | ||
793 | Program names: | |
794 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
795 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
796 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
797 | ||
798 | System types: | |
799 | --build=BUILD configure for building on BUILD [guessed] | |
800 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
801 | --target=TARGET configure for building compilers for TARGET [HOST] | |
802 | _ACEOF | |
803 | fi | |
804 | ||
805 | if test -n "$ac_init_help"; then | |
806 | ||
807 | cat <<\_ACEOF | |
808 | ||
809 | Optional Features: | |
810 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
811 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
812 | --enable-libada Builds libada directory | |
813 | --enable-libssp Builds libssp directory | |
814 | --enable-bootstrap=lean Enable bootstrapping no | |
815 | --enable-serial-{host,target,build}-configure | |
816 | Force sequential configuration of | |
817 | sub-packages for the host, target or build | |
818 | machine, or all sub-packages | |
819 | --enable-maintainer-mode enable make rules and dependencies not useful | |
820 | (and sometimes confusing) to the casual installer | |
821 | --enable-werror enable -Werror in bootstrap stage2 and later | |
822 | ||
823 | Optional Packages: | |
824 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
825 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
826 | --with-mpfr-dir=PATH Specify source directory for MPFR library | |
827 | --with-mpfr=PATH Specify directory for installed MPFR library | |
828 | --with-gmp-dir=PATH Specify source directory for GMP library | |
829 | --with-gmp=PATH Specify directory for installed GMP library | |
830 | --with-build-sysroot=sysroot | |
831 | use sysroot as the system root during the build | |
832 | ||
833 | Some influential environment variables: | |
834 | CC C compiler command | |
835 | CFLAGS C compiler flags | |
836 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
837 | nonstandard directory <lib dir> | |
838 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
839 | headers in a nonstandard directory <include dir> | |
840 | ||
841 | Use these variables to override the choices made by `configure' or to help | |
842 | it to find libraries and programs with nonstandard names/locations. | |
843 | ||
844 | _ACEOF | |
845 | fi | |
846 | ||
847 | if test "$ac_init_help" = "recursive"; then | |
848 | # If there are subdirs, report their specific --help. | |
849 | ac_popdir=`pwd` | |
850 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
851 | test -d $ac_dir || continue | |
852 | ac_builddir=. | |
853 | ||
854 | if test "$ac_dir" != .; then | |
855 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
856 | # A "../" for each directory in $ac_dir_suffix. | |
857 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
858 | else | |
859 | ac_dir_suffix= ac_top_builddir= | |
860 | fi | |
861 | ||
862 | case $srcdir in | |
863 | .) # No --srcdir option. We are building in place. | |
864 | ac_srcdir=. | |
865 | if test -z "$ac_top_builddir"; then | |
866 | ac_top_srcdir=. | |
867 | else | |
868 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
869 | fi ;; | |
870 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
871 | ac_srcdir=$srcdir$ac_dir_suffix; | |
872 | ac_top_srcdir=$srcdir ;; | |
873 | *) # Relative path. | |
874 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
875 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
876 | esac | |
877 | ||
878 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
879 | # the directories may not exist. | |
880 | case `pwd` in | |
881 | .) ac_abs_builddir="$ac_dir";; | |
882 | *) | |
883 | case "$ac_dir" in | |
884 | .) ac_abs_builddir=`pwd`;; | |
885 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
886 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
887 | esac;; | |
888 | esac | |
889 | case $ac_abs_builddir in | |
890 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
891 | *) | |
892 | case ${ac_top_builddir}. in | |
893 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
894 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
895 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
896 | esac;; | |
897 | esac | |
898 | case $ac_abs_builddir in | |
899 | .) ac_abs_srcdir=$ac_srcdir;; | |
900 | *) | |
901 | case $ac_srcdir in | |
902 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
903 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
904 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
905 | esac;; | |
906 | esac | |
907 | case $ac_abs_builddir in | |
908 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
909 | *) | |
910 | case $ac_top_srcdir in | |
911 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
912 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
913 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
914 | esac;; | |
915 | esac | |
916 | ||
917 | cd $ac_dir | |
918 | # Check for guested configure; otherwise get Cygnus style configure. | |
919 | if test -f $ac_srcdir/configure.gnu; then | |
920 | echo | |
921 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
922 | elif test -f $ac_srcdir/configure; then | |
923 | echo | |
924 | $SHELL $ac_srcdir/configure --help=recursive | |
925 | elif test -f $ac_srcdir/configure.ac || | |
926 | test -f $ac_srcdir/configure.in; then | |
927 | echo | |
928 | $ac_configure --help | |
929 | else | |
930 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
931 | fi | |
932 | cd $ac_popdir | |
933 | done | |
934 | fi | |
935 | ||
936 | test -n "$ac_init_help" && exit 0 | |
937 | if $ac_init_version; then | |
938 | cat <<\_ACEOF | |
939 | ||
940 | Copyright (C) 2003 Free Software Foundation, Inc. | |
941 | This configure script is free software; the Free Software Foundation | |
942 | gives unlimited permission to copy, distribute and modify it. | |
943 | _ACEOF | |
944 | exit 0 | |
945 | fi | |
946 | exec 5>config.log | |
947 | cat >&5 <<_ACEOF | |
948 | This file contains any messages produced by compilers while | |
949 | running configure, to aid debugging if configure makes a mistake. | |
950 | ||
951 | It was created by $as_me, which was | |
952 | generated by GNU Autoconf 2.59. Invocation command line was | |
953 | ||
954 | $ $0 $@ | |
955 | ||
956 | _ACEOF | |
957 | { | |
958 | cat <<_ASUNAME | |
959 | ## --------- ## | |
960 | ## Platform. ## | |
961 | ## --------- ## | |
962 | ||
963 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
964 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
965 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
966 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
967 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
968 | ||
969 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
970 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
971 | ||
972 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
973 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
974 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
975 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
976 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
977 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
978 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
979 | ||
980 | _ASUNAME | |
981 | ||
982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
983 | for as_dir in $PATH | |
984 | do | |
985 | IFS=$as_save_IFS | |
986 | test -z "$as_dir" && as_dir=. | |
987 | echo "PATH: $as_dir" | |
988 | done | |
989 | ||
990 | } >&5 | |
991 | ||
992 | cat >&5 <<_ACEOF | |
993 | ||
671aa708 | 994 | |
6b65a26d CM |
995 | ## ----------- ## |
996 | ## Core tests. ## | |
997 | ## ----------- ## | |
998 | ||
999 | _ACEOF | |
1000 | ||
1001 | ||
1002 | # Keep a trace of the command line. | |
1003 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1004 | # Strip out --silent because we don't want to record it for future runs. | |
1005 | # Also quote any args containing shell meta-characters. | |
1006 | # Make two passes to allow for proper duplicate-argument suppression. | |
1007 | ac_configure_args= | |
1008 | ac_configure_args0= | |
1009 | ac_configure_args1= | |
1010 | ac_sep= | |
1011 | ac_must_keep_next=false | |
1012 | for ac_pass in 1 2 | |
1013 | do | |
1014 | for ac_arg | |
1015 | do | |
1016 | case $ac_arg in | |
1017 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1018 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1019 | | -silent | --silent | --silen | --sile | --sil) | |
1020 | continue ;; | |
1021 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1022 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1023 | esac | |
1024 | case $ac_pass in | |
1025 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1026 | 2) | |
1027 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1028 | if test $ac_must_keep_next = true; then | |
1029 | ac_must_keep_next=false # Got value, back to normal. | |
1030 | else | |
1031 | case $ac_arg in | |
1032 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1033 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1034 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1035 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1036 | case "$ac_configure_args0 " in | |
1037 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1038 | esac | |
1039 | ;; | |
1040 | -* ) ac_must_keep_next=true ;; | |
1041 | esac | |
1042 | fi | |
1043 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1044 | # Get rid of the leading space. | |
1045 | ac_sep=" " | |
1046 | ;; | |
1047 | esac | |
1048 | done | |
1049 | done | |
1050 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1051 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1052 | ||
1053 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1054 | # config.log. We remove comments because anyway the quotes in there | |
1055 | # would cause problems or look ugly. | |
1056 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1057 | # such as our DU 5.0 friend, will then `close' the trap. | |
1058 | trap 'exit_status=$? | |
1059 | # Save into config.log some information that might help in debugging. | |
1060 | { | |
1061 | echo | |
1062 | ||
1063 | cat <<\_ASBOX | |
1064 | ## ---------------- ## | |
1065 | ## Cache variables. ## | |
1066 | ## ---------------- ## | |
1067 | _ASBOX | |
1068 | echo | |
1069 | # The following way of writing the cache mishandles newlines in values, | |
1070 | { | |
1071 | (set) 2>&1 | | |
1072 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1073 | *ac_space=\ *) | |
1074 | sed -n \ | |
1075 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1076 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1077 | ;; | |
1078 | *) | |
1079 | sed -n \ | |
1080 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1081 | ;; | |
1082 | esac; | |
1083 | } | |
1084 | echo | |
1085 | ||
1086 | cat <<\_ASBOX | |
1087 | ## ----------------- ## | |
1088 | ## Output variables. ## | |
1089 | ## ----------------- ## | |
1090 | _ASBOX | |
1091 | echo | |
1092 | for ac_var in $ac_subst_vars | |
1093 | do | |
1094 | eval ac_val=$`echo $ac_var` | |
1095 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1096 | done | sort | |
1097 | echo | |
1098 | ||
1099 | if test -n "$ac_subst_files"; then | |
1100 | cat <<\_ASBOX | |
1101 | ## ------------- ## | |
1102 | ## Output files. ## | |
1103 | ## ------------- ## | |
1104 | _ASBOX | |
1105 | echo | |
1106 | for ac_var in $ac_subst_files | |
1107 | do | |
1108 | eval ac_val=$`echo $ac_var` | |
1109 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1110 | done | sort | |
1111 | echo | |
1112 | fi | |
1113 | ||
1114 | if test -s confdefs.h; then | |
1115 | cat <<\_ASBOX | |
1116 | ## ----------- ## | |
1117 | ## confdefs.h. ## | |
1118 | ## ----------- ## | |
1119 | _ASBOX | |
1120 | echo | |
1121 | sed "/^$/d" confdefs.h | sort | |
1122 | echo | |
1123 | fi | |
1124 | test "$ac_signal" != 0 && | |
1125 | echo "$as_me: caught signal $ac_signal" | |
1126 | echo "$as_me: exit $exit_status" | |
1127 | } >&5 | |
1128 | rm -f core *.core && | |
1129 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1130 | exit $exit_status | |
1131 | ' 0 | |
1132 | for ac_signal in 1 2 13 15; do | |
1133 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1134 | done | |
1135 | ac_signal=0 | |
1136 | ||
1137 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1138 | rm -rf conftest* confdefs.h | |
1139 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1140 | echo >confdefs.h | |
1141 | ||
1142 | # Predefined preprocessor variables. | |
1143 | ||
1144 | cat >>confdefs.h <<_ACEOF | |
1145 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1146 | _ACEOF | |
1147 | ||
1148 | ||
1149 | cat >>confdefs.h <<_ACEOF | |
1150 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1151 | _ACEOF | |
1152 | ||
1153 | ||
1154 | cat >>confdefs.h <<_ACEOF | |
1155 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1156 | _ACEOF | |
1157 | ||
1158 | ||
1159 | cat >>confdefs.h <<_ACEOF | |
1160 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1161 | _ACEOF | |
1162 | ||
1163 | ||
1164 | cat >>confdefs.h <<_ACEOF | |
1165 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1166 | _ACEOF | |
1167 | ||
1168 | ||
1169 | # Let the site file select an alternate cache file if it wants to. | |
671aa708 | 1170 | # Prefer explicitly selected file to automatically selected ones. |
bba5e0ca EB |
1171 | if test -z "$CONFIG_SITE"; then |
1172 | if test "x$prefix" != xNONE; then | |
1173 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1174 | else | |
1175 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
671aa708 NN |
1176 | fi |
1177 | fi | |
1178 | for ac_site_file in $CONFIG_SITE; do | |
1179 | if test -r "$ac_site_file"; then | |
6b65a26d CM |
1180 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1181 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1182 | sed 's/^/| /' "$ac_site_file" >&5 | |
671aa708 NN |
1183 | . "$ac_site_file" |
1184 | fi | |
1185 | done | |
1186 | ||
1187 | if test -r "$cache_file"; then | |
6b65a26d CM |
1188 | # Some versions of bash will fail to source /dev/null (special |
1189 | # files actually), so we avoid doing that. | |
1190 | if test -f "$cache_file"; then | |
1191 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1192 | echo "$as_me: loading cache $cache_file" >&6;} | |
1193 | case $cache_file in | |
1194 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1195 | *) . ./$cache_file;; | |
1196 | esac | |
1197 | fi | |
671aa708 | 1198 | else |
6b65a26d CM |
1199 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1200 | echo "$as_me: creating cache $cache_file" >&6;} | |
1201 | >$cache_file | |
1202 | fi | |
1203 | ||
1204 | # Check that the precious variables saved in the cache have kept the same | |
1205 | # value. | |
1206 | ac_cache_corrupted=false | |
1207 | for ac_var in `(set) 2>&1 | | |
1208 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1209 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1210 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1211 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1212 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1213 | case $ac_old_set,$ac_new_set in | |
1214 | set,) | |
1215 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1216 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1217 | ac_cache_corrupted=: ;; | |
1218 | ,set) | |
1219 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1220 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1221 | ac_cache_corrupted=: ;; | |
1222 | ,);; | |
1223 | *) | |
1224 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1225 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1226 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1227 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1228 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1229 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1230 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1231 | ac_cache_corrupted=: | |
1232 | fi;; | |
1233 | esac | |
1234 | # Pass precious variables to config.status. | |
1235 | if test "$ac_new_set" = set; then | |
1236 | case $ac_new_val in | |
1237 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1238 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1239 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1240 | esac | |
1241 | case " $ac_configure_args " in | |
1242 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1243 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1244 | esac | |
1245 | fi | |
1246 | done | |
1247 | if $ac_cache_corrupted; then | |
1248 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1249 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1250 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1251 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1252 | { (exit 1); exit 1; }; } | |
671aa708 NN |
1253 | fi |
1254 | ||
1255 | ac_ext=c | |
671aa708 | 1256 | ac_cpp='$CPP $CPPFLAGS' |
6b65a26d CM |
1257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1260 | ||
1261 | ||
1262 | ||
1263 | ||
1264 | ||
1265 | ||
1266 | ||
1267 | ||
1268 | ||
1269 | ||
1270 | ||
1271 | ||
1272 | ||
1273 | ||
1274 | ||
1275 | ||
1276 | ||
671aa708 NN |
1277 | |
1278 | ||
d02c69be | 1279 | |
671aa708 | 1280 | ac_aux_dir= |
4c4a5bbc | 1281 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
671aa708 NN |
1282 | if test -f $ac_dir/install-sh; then |
1283 | ac_aux_dir=$ac_dir | |
1284 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1285 | break | |
1286 | elif test -f $ac_dir/install.sh; then | |
1287 | ac_aux_dir=$ac_dir | |
1288 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1289 | break | |
6b65a26d CM |
1290 | elif test -f $ac_dir/shtool; then |
1291 | ac_aux_dir=$ac_dir | |
1292 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1293 | break | |
671aa708 NN |
1294 | fi |
1295 | done | |
1296 | if test -z "$ac_aux_dir"; then | |
6b65a26d CM |
1297 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1298 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1299 | { (exit 1); exit 1; }; } | |
671aa708 | 1300 | fi |
6b65a26d CM |
1301 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1302 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1303 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
671aa708 | 1304 | |
6b65a26d CM |
1305 | # Make sure we can run config.sub. |
1306 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1307 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1308 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1309 | { (exit 1); exit 1; }; } | |
1310 | ||
1311 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1312 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1313 | if test "${ac_cv_build+set}" = set; then | |
1314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1315 | else | |
1316 | ac_cv_build_alias=$build_alias | |
1317 | test -z "$ac_cv_build_alias" && | |
1318 | ac_cv_build_alias=`$ac_config_guess` | |
1319 | test -z "$ac_cv_build_alias" && | |
1320 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1321 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1322 | { (exit 1); exit 1; }; } | |
1323 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1324 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1325 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1326 | { (exit 1); exit 1; }; } | |
1327 | ||
1328 | fi | |
1329 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1330 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1331 | build=$ac_cv_build | |
1332 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1333 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1334 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1335 | ||
1336 | ||
1337 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1338 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1339 | if test "${ac_cv_host+set}" = set; then | |
1340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1341 | else | |
1342 | ac_cv_host_alias=$host_alias | |
1343 | test -z "$ac_cv_host_alias" && | |
1344 | ac_cv_host_alias=$ac_cv_build_alias | |
1345 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1346 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1347 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1348 | { (exit 1); exit 1; }; } | |
1349 | ||
1350 | fi | |
1351 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1352 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1353 | host=$ac_cv_host | |
1354 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1355 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1356 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1357 | ||
1358 | ||
1359 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1360 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1361 | if test "${ac_cv_target+set}" = set; then | |
1362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1363 | else | |
1364 | ac_cv_target_alias=$target_alias | |
1365 | test "x$ac_cv_target_alias" = "x" && | |
1366 | ac_cv_target_alias=$ac_cv_host_alias | |
1367 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1368 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1369 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1370 | { (exit 1); exit 1; }; } | |
1371 | ||
1372 | fi | |
1373 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1374 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1375 | target=$ac_cv_target | |
1376 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1377 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1378 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
671aa708 | 1379 | |
671aa708 NN |
1380 | |
1381 | # The aliases save the names the user supplied, while $host etc. | |
1382 | # will get canonicalized. | |
6b65a26d | 1383 | test -n "$target_alias" && |
671aa708 NN |
1384 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1385 | NONENONEs,x,x, && | |
1386 | program_prefix=${target_alias}- | |
671aa708 | 1387 | test "$program_prefix" != NONE && |
6b65a26d | 1388 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
671aa708 NN |
1389 | # Use a double $ so make ignores it. |
1390 | test "$program_suffix" != NONE && | |
6b65a26d CM |
1391 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1392 | # Double any \ or $. echo might interpret backslashes. | |
1393 | # By default was `s,x,x', remove it if useless. | |
1394 | cat <<\_ACEOF >conftest.sed | |
1395 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1396 | _ACEOF | |
1397 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1398 | rm conftest.sed | |
671aa708 NN |
1399 | |
1400 | ||
775956d0 NN |
1401 | # Get 'install' or 'install-sh' and its variants. |
1402 | # Find a good install program. We prefer a C program (faster), | |
1403 | # so one script is as good as another. But avoid the broken or | |
1404 | # incompatible versions: | |
1405 | # SysV /etc/install, /usr/sbin/install | |
1406 | # SunOS /usr/etc/install | |
1407 | # IRIX /sbin/install | |
1408 | # AIX /bin/install | |
6b65a26d | 1409 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
1410 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1411 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1412 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6b65a26d | 1413 | # OS/2's system install, which has a completely different semantic |
775956d0 | 1414 | # ./install, which can be erroneously created by make from ./install.sh. |
6b65a26d CM |
1415 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1416 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
775956d0 | 1417 | if test -z "$INSTALL"; then |
6b65a26d CM |
1418 | if test "${ac_cv_path_install+set}" = set; then |
1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1420 | else | |
1421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1422 | for as_dir in $PATH | |
1423 | do | |
1424 | IFS=$as_save_IFS | |
1425 | test -z "$as_dir" && as_dir=. | |
1426 | # Account for people who put trailing slashes in PATH elements. | |
1427 | case $as_dir/ in | |
1428 | ./ | .// | /cC/* | \ | |
1429 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1430 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1431 | /usr/ucb/* ) ;; | |
1432 | *) | |
1433 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1434 | # Don't use installbsd from OSF since it installs stuff as root | |
1435 | # by default. | |
1436 | for ac_prog in ginstall scoinst install; do | |
1437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1438 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
775956d0 | 1439 | if test $ac_prog = install && |
6b65a26d | 1440 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
1441 | # AIX install. It has an incompatible calling convention. |
1442 | : | |
6b65a26d CM |
1443 | elif test $ac_prog = install && |
1444 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1445 | # program-specific install script used by HP pwplus--don't use. | |
1446 | : | |
775956d0 | 1447 | else |
6b65a26d CM |
1448 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1449 | break 3 | |
775956d0 NN |
1450 | fi |
1451 | fi | |
1452 | done | |
6b65a26d CM |
1453 | done |
1454 | ;; | |
1455 | esac | |
1456 | done | |
1457 | ||
775956d0 NN |
1458 | |
1459 | fi | |
1460 | if test "${ac_cv_path_install+set}" = set; then | |
6b65a26d | 1461 | INSTALL=$ac_cv_path_install |
775956d0 NN |
1462 | else |
1463 | # As a last resort, use the slow shell script. We don't cache a | |
1464 | # path for INSTALL within a source directory, because that will | |
1465 | # break other packages using the cache if that directory is | |
1466 | # removed, or if the path is relative. | |
6b65a26d | 1467 | INSTALL=$ac_install_sh |
775956d0 NN |
1468 | fi |
1469 | fi | |
6b65a26d CM |
1470 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1471 | echo "${ECHO_T}$INSTALL" >&6 | |
775956d0 NN |
1472 | |
1473 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1474 | # It thinks the first close brace ends the variable substitution. | |
1475 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1476 | ||
6b65a26d | 1477 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
1478 | |
1479 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1480 | ||
6b65a26d CM |
1481 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
1482 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 | |
1483 | if test "${acx_cv_prog_LN+set}" = set; then | |
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ad6717df PB |
1485 | else |
1486 | rm -f conftestdata_t | |
1487 | echo >conftestdata_f | |
1488 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1489 | then | |
1490 | acx_cv_prog_LN=ln | |
1491 | else | |
1492 | acx_cv_prog_LN=no | |
1493 | fi | |
1494 | rm -f conftestdata_f conftestdata_t | |
1495 | ||
1496 | fi | |
1497 | if test $acx_cv_prog_LN = no; then | |
1498 | LN="cp" | |
6b65a26d CM |
1499 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
1500 | echo "${ECHO_T}no, using $LN" >&6 | |
ad6717df PB |
1501 | else |
1502 | LN="$acx_cv_prog_LN" | |
6b65a26d CM |
1503 | echo "$as_me:$LINENO: result: yes" >&5 |
1504 | echo "${ECHO_T}yes" >&6 | |
ad6717df PB |
1505 | fi |
1506 | ||
6b65a26d CM |
1507 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
1508 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
1509 | LN_S=$as_ln_s | |
1510 | if test "$LN_S" = "ln -s"; then | |
1511 | echo "$as_me:$LINENO: result: yes" >&5 | |
1512 | echo "${ECHO_T}yes" >&6 | |
148907ea | 1513 | else |
6b65a26d CM |
1514 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
1515 | echo "${ECHO_T}no, using $LN_S" >&6 | |
148907ea PB |
1516 | fi |
1517 | ||
775956d0 | 1518 | |
79c06341 | 1519 | ### we might need to use some other shell than /bin/sh for running subshells |
79c06341 JL |
1520 | ### If we are on Windows, search for the shell. This will permit people |
1521 | ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure | |
1522 | ### without also having to set CONFIG_SHELL. This code will work when | |
1523 | ### using bash, which sets OSTYPE. | |
1524 | case "${OSTYPE}" in | |
1525 | *win32*) | |
671aa708 NN |
1526 | if test x${CONFIG_SHELL} = x ; then |
1527 | if test ! -f /bin/sh ; then | |
1528 | if test x${SHELL} != x && test -f ${SHELL} ; then | |
79c06341 JL |
1529 | CONFIG_SHELL=${SHELL} |
1530 | export CONFIG_SHELL | |
1531 | else | |
1532 | for prog in sh sh.exe bash bash.exe; do | |
1533 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1534 | for dir in $PATH; do | |
1535 | test -z "$dir" && dir=. | |
1536 | if test -f $dir/$prog; then | |
1537 | CONFIG_SHELL=$dir/$prog | |
1538 | export CONFIG_SHELL | |
1539 | break | |
1540 | fi | |
1541 | done | |
1542 | IFS="$save_ifs" | |
1543 | test -n "${CONFIG_SHELL}" && break | |
1544 | done | |
1545 | fi | |
1546 | fi | |
1547 | fi | |
1548 | ;; | |
1549 | esac | |
1550 | ||
1551 | config_shell=${CONFIG_SHELL-/bin/sh} | |
1552 | ||
79c06341 JL |
1553 | progname=$0 |
1554 | # if PWD already has a value, it is probably wrong. | |
671aa708 | 1555 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi |
79c06341 | 1556 | |
b348267b | 1557 | # Export original configure arguments for use by sub-configures. These |
eeae7b41 DJ |
1558 | # will be expanded by make, so quote '$'. |
1559 | tmp="$progname $@" | |
1560 | sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out | |
1561 | $tmp | |
b348267b | 1562 | EOF_SED |
eeae7b41 DJ |
1563 | TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out` |
1564 | rm -f conftestsed.out | |
3dfabf63 | 1565 | |
cc1e60ea | 1566 | |
671aa708 | 1567 | moveifchange=${srcdir}/move-if-change |
79c06341 | 1568 | |
ee6a22df L |
1569 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
1570 | ||
1571 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
1572 | # a relative path. | |
1573 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
1574 | INSTALL="${srcpwd}/install-sh -c" | |
1575 | fi | |
1576 | ||
671aa708 NN |
1577 | # Set srcdir to "." if that's what it is. |
1578 | # This is important for multilib support. | |
1579 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
1580 | if test "${pwd}" = "${srcpwd}" ; then |
1581 | srcdir=. | |
79c06341 JL |
1582 | fi |
1583 | ||
671aa708 | 1584 | topsrcdir=$srcpwd |
5d4a5ee6 | 1585 | |
671aa708 | 1586 | extra_host_args= |
afabd8e6 | 1587 | |
671aa708 NN |
1588 | ### To add a new directory to the tree, first choose whether it is a target |
1589 | ### or a host dependent tool. Then put it into the appropriate list | |
1590 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 1591 | |
6b65a26d | 1592 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 1593 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 1594 | |
6b65a26d CM |
1595 | # Dependency sorting is only needed when *configuration* must be done in |
1596 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 1597 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 1598 | |
671aa708 NN |
1599 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
1600 | # cause circular dependencies and break everything horribly. | |
79c06341 | 1601 | |
23f6b2f9 PB |
1602 | # these library is used by various programs built for the build |
1603 | # environment | |
1604 | # | |
1605 | build_libs="build-libiberty" | |
1606 | ||
1607 | # these tools are built for the build environment | |
71b5d516 | 1608 | build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 1609 | |
671aa708 NN |
1610 | # these libraries are used by various programs built for the host environment |
1611 | # | |
0a050485 | 1612 | host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp" |
671aa708 | 1613 | |
671aa708 NN |
1614 | # these tools are built for the host environment |
1615 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
1616 | # know that we are building the simulator. | |
1617 | # binutils, gas and ld appear in that order because it makes sense to run | |
1618 | # "make check" in that particular order. | |
5395b47b | 1619 | 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 |
1620 | |
1621 | # libgcj represents the runtime libraries only used by gcj. | |
1622 | libgcj="target-libffi \ | |
1623 | target-boehm-gc \ | |
1624 | target-zlib \ | |
1625 | target-qthreads \ | |
1626 | target-libjava" | |
1627 | ||
1628 | # these libraries are built for the target environment, and are built after | |
1629 | # the host libraries and the host tools (which may be a cross compiler) | |
1630 | # | |
4dbda6f0 | 1631 | target_libraries="target-libiberty \ |
671aa708 NN |
1632 | target-libgloss \ |
1633 | target-newlib \ | |
cb543528 | 1634 | target-libstdc++-v3 \ |
6de9cd9a | 1635 | target-libmudflap \ |
77008252 | 1636 | target-libssp \ |
6de9cd9a | 1637 | target-libgfortran \ |
77d187bc | 1638 | ${libgcj} \ |
d9cdb878 AC |
1639 | target-libobjc \ |
1640 | target-libada" | |
671aa708 | 1641 | |
4dbda6f0 NN |
1642 | # these tools are built using the target libraries, and are intended to |
1643 | # run only in the target environment | |
671aa708 | 1644 | # |
4dbda6f0 | 1645 | # note: any program that *uses* libraries that are in the "target_libraries" |
671aa708 NN |
1646 | # list belongs in this list. those programs are also very likely |
1647 | # candidates for the "native_only" list which follows | |
1648 | # | |
97286f7f | 1649 | target_tools="target-examples target-groff target-gperf target-rda" |
79c06341 | 1650 | |
671aa708 | 1651 | ################################################################################ |
79c06341 | 1652 | |
671aa708 NN |
1653 | ## All tools belong in one of the four categories, and are assigned above |
1654 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
1655 | ## is important because configure will choke if they ever get through. | |
1656 | ## ${configdirs} is directories we build using the host tools. | |
1657 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 1658 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 1659 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 1660 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 1661 | |
671aa708 | 1662 | ################################################################################ |
79c06341 | 1663 | |
671aa708 | 1664 | srcname="gnu development package" |
79c06341 | 1665 | |
671aa708 NN |
1666 | # This gets set non-empty for some net releases of packages. |
1667 | appdirs="" | |
79c06341 | 1668 | |
671aa708 NN |
1669 | # Define is_cross_compiler to save on calls to 'test'. |
1670 | is_cross_compiler= | |
1671 | if test x"${host}" = x"${target}" ; then | |
1672 | is_cross_compiler=no | |
79c06341 | 1673 | else |
671aa708 | 1674 | is_cross_compiler=yes |
6b65a26d | 1675 | fi |
79c06341 | 1676 | |
b4acb5ef | 1677 | # Find the build and target subdir names. |
8b87bb96 NN |
1678 | case ${build_alias} in |
1679 | "") build_noncanonical=${build} ;; | |
1680 | *) build_noncanonical=${build_alias} ;; | |
1681 | esac | |
1682 | ||
1683 | case ${host_alias} in | |
1684 | "") host_noncanonical=${build_noncanonical} ;; | |
1685 | *) host_noncanonical=${host_alias} ;; | |
1686 | esac | |
1687 | ||
1688 | case ${target_alias} in | |
1689 | "") target_noncanonical=${host_noncanonical} ;; | |
1690 | *) target_noncanonical=${target_alias} ;; | |
1691 | esac | |
1692 | ||
1693 | # Prefix 'build-' so this never conflicts with target_subdir. | |
1694 | build_subdir="build-${build_noncanonical}" | |
215c351a PB |
1695 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
1696 | if ( test $srcdir = . && test -d gcc ) \ | |
1697 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1698 | host_subdir="host-${host_noncanonical}" | |
1699 | else | |
1700 | host_subdir=. | |
1701 | fi | |
8b87bb96 NN |
1702 | # No prefix. |
1703 | target_subdir=${target_noncanonical} | |
6b65a26d | 1704 | |
79c06341 | 1705 | |
671aa708 NN |
1706 | # Skipdirs are removed silently. |
1707 | skipdirs= | |
1708 | # Noconfigdirs are removed loudly. | |
1709 | noconfigdirs="" | |
79c06341 | 1710 | |
671aa708 NN |
1711 | use_gnu_ld= |
1712 | # Make sure we don't let GNU ld be added if we didn't want it. | |
1713 | if test x$with_gnu_ld = xno ; then | |
1714 | use_gnu_ld=no | |
1715 | noconfigdirs="$noconfigdirs ld" | |
79c06341 JL |
1716 | fi |
1717 | ||
671aa708 NN |
1718 | use_gnu_as= |
1719 | # Make sure we don't let GNU as be added if we didn't want it. | |
1720 | if test x$with_gnu_as = xno ; then | |
1721 | use_gnu_as=no | |
1722 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
1723 | fi |
1724 | ||
6b65a26d | 1725 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 1726 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 1727 | |
671aa708 NN |
1728 | case ${with_x} in |
1729 | yes | "") ;; # the default value for this tree is that X11 is available | |
1730 | no) | |
b4f96efe | 1731 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 1732 | # We won't be able to build gdbtk without X. |
6b65a26d | 1733 | enable_gdbtk=no |
671aa708 NN |
1734 | ;; |
1735 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
1736 | esac | |
79c06341 | 1737 | |
671aa708 | 1738 | # Some tools are only suitable for building in a "native" situation. |
6b65a26d | 1739 | # Remove these if host!=target. |
61b56b2e | 1740 | native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" |
79c06341 | 1741 | |
671aa708 NN |
1742 | # Similarly, some are only suitable for cross toolchains. |
1743 | # Remove these if host=target. | |
1744 | cross_only="target-libgloss target-newlib target-opcodes" | |
1745 | ||
1746 | case $is_cross_compiler in | |
1747 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
1748 | yes) skipdirs="${skipdirs} ${native_only}" ;; | |
1749 | esac | |
79c06341 | 1750 | |
671aa708 NN |
1751 | # If both --with-headers and --with-libs are specified, default to |
1752 | # --without-newlib. | |
ee6a22df L |
1753 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
1754 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
1755 | if test x"${with_newlib}" = x ; then |
1756 | with_newlib=no | |
1757 | fi | |
79c06341 JL |
1758 | fi |
1759 | ||
671aa708 NN |
1760 | # Recognize --with-newlib/--without-newlib. |
1761 | case ${with_newlib} in | |
1762 | no) skipdirs="${skipdirs} target-newlib" ;; | |
1763 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
1764 | esac | |
79c06341 | 1765 | |
671aa708 | 1766 | # Configure extra directories which are host specific |
79c06341 | 1767 | |
671aa708 NN |
1768 | case "${host}" in |
1769 | *-cygwin*) | |
1770 | configdirs="$configdirs libtermcap" ;; | |
1771 | esac | |
79c06341 | 1772 | |
4fab7234 HPN |
1773 | # A target can indicate whether a language isn't supported for some reason. |
1774 | # Only spaces may be used in this macro; not newlines or tabs. | |
1775 | unsupported_languages= | |
1776 | ||
6b65a26d | 1777 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
1778 | # target this usually means that a port of the program doesn't |
1779 | # exist yet. | |
ec8d6ddc | 1780 | |
671aa708 NN |
1781 | case "${host}" in |
1782 | hppa*64*-*-*) | |
1783 | noconfigdirs="$noconfigdirs byacc" | |
1784 | ;; | |
f2a0e225 | 1785 | i[3456789]86-*-vsta) |
b4f96efe | 1786 | noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext" |
671aa708 | 1787 | ;; |
f2a0e225 | 1788 | i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) |
b4f96efe | 1789 | noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi" |
3aa83176 | 1790 | ;; |
f2a0e225 | 1791 | i[3456789]86-*-mingw32*) |
b4f96efe | 1792 | # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv" |
a22c2d8d | 1793 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool" |
3aa83176 | 1794 | ;; |
f2a0e225 | 1795 | i[3456789]86-*-beos*) |
b4f96efe | 1796 | noconfigdirs="$noconfigdirs tk itcl libgui gdb" |
3aa83176 | 1797 | ;; |
671aa708 | 1798 | *-*-cygwin*) |
a22c2d8d | 1799 | noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" |
671aa708 NN |
1800 | ;; |
1801 | *-*-netbsd*) | |
a22c2d8d | 1802 | noconfigdirs="$noconfigdirs rcs" |
671aa708 NN |
1803 | ;; |
1804 | ppc*-*-pe) | |
b4f96efe | 1805 | noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv" |
671aa708 NN |
1806 | ;; |
1807 | powerpc-*-beos*) | |
b4f96efe | 1808 | noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" |
671aa708 | 1809 | ;; |
671aa708 | 1810 | esac |
ec8d6ddc | 1811 | |
6de9cd9a | 1812 | |
d9cdb878 AC |
1813 | # Check whether --enable-libada or --disable-libada was given. |
1814 | if test "${enable_libada+set}" = set; then | |
1815 | enableval="$enable_libada" | |
1816 | ENABLE_LIBADA=$enableval | |
1817 | else | |
1818 | ENABLE_LIBADA=yes | |
6b65a26d | 1819 | fi; |
d9cdb878 AC |
1820 | if test "${ENABLE_LIBADA}" != "yes" ; then |
1821 | noconfigdirs="$noconfigdirs target-libada" | |
5395b47b | 1822 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
1823 | fi |
1824 | ||
ef0087a7 KH |
1825 | # Check whether --enable-libssp or --disable-libssp was given. |
1826 | if test "${enable_libssp+set}" = set; then | |
1827 | enableval="$enable_libssp" | |
1828 | ENABLE_LIBSSP=$enableval | |
1829 | else | |
1830 | ENABLE_LIBSSP=yes | |
6b65a26d | 1831 | fi; |
ef0087a7 KH |
1832 | if test "${ENABLE_LIBSSP}" != "yes" ; then |
1833 | noconfigdirs="$noconfigdirs target-libssp" | |
1834 | fi | |
1835 | ||
671aa708 NN |
1836 | # Save it here so that, even in case of --enable-libgcj, if the Java |
1837 | # front-end isn't enabled, we still get libgcj disabled. | |
1838 | libgcj_saved=$libgcj | |
1839 | case $enable_libgcj in | |
1840 | yes) | |
1841 | # If we reset it here, it won't get added to noconfigdirs in the | |
1842 | # target-specific build rules, so it will be forcibly enabled | |
1843 | # (unless the Java language itself isn't enabled). | |
1844 | libgcj= | |
1845 | ;; | |
1846 | no) | |
1847 | # Make sure we get it printed in the list of not supported target libs. | |
1848 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1849 | ;; | |
1850 | esac | |
ec8d6ddc | 1851 | |
6de9cd9a DN |
1852 | |
1853 | # Allow --disable-libmudflap to exclude target-libmudflap | |
1854 | case $enable_libmudflap in | |
dfcada9a | 1855 | yes) |
6de9cd9a DN |
1856 | ;; |
1857 | no) | |
1858 | noconfigdirs="$noconfigdirs target-libmudflap" | |
1859 | ;; | |
dfcada9a MM |
1860 | "") |
1861 | case "${target}" in | |
98a5bb3b RM |
1862 | *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu) |
1863 | # Enable libmudflap by default in GNU and friends. | |
dfcada9a | 1864 | ;; |
a3e8d8b4 LR |
1865 | *-*-freebsd*) |
1866 | # Enable libmudflap by default in FreeBSD. | |
1867 | ;; | |
dfcada9a MM |
1868 | *) |
1869 | # Disable it by default everywhere else. | |
1870 | noconfigdirs="$noconfigdirs target-libmudflap" | |
1871 | ;; | |
1872 | esac | |
6de9cd9a DN |
1873 | esac |
1874 | ||
1875 | ||
671aa708 NN |
1876 | case "${target}" in |
1877 | *-*-chorusos) | |
1878 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1879 | ;; | |
940cde4d | 1880 | powerpc-*-darwin*) |
c8e5d1af | 1881 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" |
9c8f9ec2 | 1882 | noconfigdirs="$noconfigdirs sim target-rda" |
c8e5d1af | 1883 | ;; |
940cde4d GK |
1884 | *-*-darwin*) |
1885 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" | |
9c8f9ec2 | 1886 | noconfigdirs="$noconfigdirs sim target-rda" |
0a1c093b | 1887 | noconfigdirs="$noconfigdirs ${libgcj}" |
940cde4d | 1888 | ;; |
671aa708 NN |
1889 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
1890 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1891 | ;; | |
c3f84f61 | 1892 | *-*-freebsd*) |
6de9cd9a DN |
1893 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
1894 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
1895 | && test -f /usr/local/include/gmp.h; then | |
1896 | with_gmp=/usr/local | |
1897 | fi | |
1898 | ||
1899 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
1900 | case "${target}" in | |
1901 | i*86-*-*) ;; | |
1902 | alpha*-*-*) ;; | |
1903 | *) | |
1904 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1905 | ;; | |
1906 | esac | |
1907 | ;; | |
ef4e7569 US |
1908 | *-*-kaos*) |
1909 | # Remove unsupported stuff on all kaOS configurations. | |
b4117c30 | 1910 | skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" |
ef4e7569 US |
1911 | skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" |
1912 | skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" | |
1913 | noconfigdirs="$noconfigdirs target-libgloss" | |
1914 | ;; | |
671aa708 NN |
1915 | *-*-netbsd*) |
1916 | # Skip some stuff on all NetBSD configurations. | |
1917 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" | |
1918 | ||
1919 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
1920 | case "${target}" in | |
1921 | i*86-*-netbsdelf*) ;; | |
0590b963 | 1922 | arm*-*-netbsdelf*) ;; |
671aa708 NN |
1923 | *) |
1924 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1925 | ;; | |
1926 | esac | |
1927 | ;; | |
61fec9ff JB |
1928 | *-*-netware*) |
1929 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" | |
671aa708 NN |
1930 | ;; |
1931 | *-*-rtems*) | |
1932 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
671aa708 | 1933 | ;; |
a8ba31f2 EC |
1934 | # The tpf target doesn't support gdb yet. |
1935 | *-*-tpf*) | |
1936 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" | |
1937 | ;; | |
5785c0ed BI |
1938 | *-*-uclinux*) |
1939 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" | |
1940 | ;; | |
671aa708 | 1941 | *-*-vxworks*) |
d8852c4f | 1942 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 1943 | ;; |
fd7ea4ab JB |
1944 | m32c-*-*) |
1945 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
1946 | ;; | |
671aa708 NN |
1947 | alpha*-dec-osf*) |
1948 | # ld works, but does not support shared libraries. | |
1949 | # newlib is not 64 bit ready. I'm not sure about fileutils. | |
1950 | # gas doesn't generate exception information. | |
1951 | noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" | |
1952 | ;; | |
1953 | alpha*-*-*vms*) | |
556f03c4 | 1954 | noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" |
671aa708 NN |
1955 | ;; |
1956 | alpha*-*-linux*) | |
1957 | # newlib is not 64 bit ready | |
1958 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1959 | ;; | |
671aa708 NN |
1960 | alpha*-*-*) |
1961 | # newlib is not 64 bit ready | |
1962 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1963 | ;; | |
33952f6f AO |
1964 | am33_2.0-*-linux*) |
1965 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | |
1966 | ;; | |
671aa708 NN |
1967 | sh-*-linux*) |
1968 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | |
6b65a26d | 1969 | ;; |
671aa708 NN |
1970 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
1971 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1972 | noconfigdirs="$noconfigdirs target-examples" | |
1973 | noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" | |
b4f96efe | 1974 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 NN |
1975 | noconfigdirs="$noconfigdirs expect dejagnu" |
1976 | # the C++ libraries don't build on top of CE's C libraries | |
cb543528 | 1977 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
671aa708 NN |
1978 | noconfigdirs="$noconfigdirs target-newlib" |
1979 | case "${host}" in | |
1980 | *-*-cygwin*) ;; # keep gdb and readline | |
aa9c3ab4 | 1981 | *) noconfigdirs="$noconfigdirs gdb readline" |
671aa708 NN |
1982 | ;; |
1983 | esac | |
1984 | ;; | |
1985 | arc-*-*) | |
1986 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1987 | ;; | |
ee6a22df | 1988 | arm-semi-aof ) |
ee6a22df | 1989 | ;; |
671aa708 NN |
1990 | arm-*-coff | strongarm-*-coff | xscale-*-coff) |
1991 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1992 | ;; | |
b3f8d95d | 1993 | arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) |
671aa708 NN |
1994 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" |
1995 | ;; | |
972974fc MM |
1996 | arm*-*-symbianelf*) |
1997 | noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" | |
1998 | ;; | |
671aa708 NN |
1999 | arm-*-pe*) |
2000 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2001 | ;; | |
671aa708 NN |
2002 | thumb-*-coff) |
2003 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2004 | ;; | |
2005 | thumb-*-elf) | |
2006 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2007 | ;; | |
671aa708 NN |
2008 | thumb-*-pe) |
2009 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2010 | ;; | |
2011 | arm-*-riscix*) | |
2012 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" | |
2013 | ;; | |
2014 | avr-*-*) | |
556f03c4 | 2015 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 2016 | ;; |
6b65a26d CM |
2017 | bfin-*-*) |
2018 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
2019 | if x${is_cross_compiler} != xno ; then | |
2020 | target_configdirs="${target_configdirs} target-bsp target-cygmon" | |
2021 | fi | |
2022 | ;; | |
671aa708 | 2023 | c4x-*-* | tic4x-*-*) |
cb543528 | 2024 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2025 | ;; |
2026 | c54x*-*-* | tic54x-*-*) | |
cb543528 | 2027 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" |
671aa708 | 2028 | ;; |
40d64b5a | 2029 | cris-*-* | crisv32-*-*) |
4fab7234 | 2030 | unsupported_languages="$unsupported_languages java" |
40d64b5a | 2031 | case "${target}" in |
c2e0d3a9 | 2032 | *-*-aout) |
7f26dfa3 | 2033 | unsupported_languages="$unsupported_languages fortran" |
4fab7234 | 2034 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; |
c2e0d3a9 | 2035 | *-*-elf) |
7f26dfa3 | 2036 | unsupported_languages="$unsupported_languages fortran" |
789ec619 | 2037 | noconfigdirs="$noconfigdirs target-boehm-gc";; |
c2e0d3a9 | 2038 | *-*-linux*) |
789ec619 | 2039 | noconfigdirs="$noconfigdirs target-newlib target-libgloss";; |
40d64b5a | 2040 | *) |
7f26dfa3 | 2041 | unsupported_languages="$unsupported_languages fortran" |
40d64b5a HPN |
2042 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; |
2043 | esac | |
671aa708 | 2044 | ;; |
25b656e7 | 2045 | crx-*-*) |
ee6a22df | 2046 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" |
25b656e7 | 2047 | ;; |
671aa708 | 2048 | d10v-*-*) |
cb543528 | 2049 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 NN |
2050 | ;; |
2051 | d30v-*-*) | |
fb87ad5d | 2052 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
2053 | ;; |
2054 | fr30-*-elf*) | |
fb87ad5d | 2055 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
671aa708 NN |
2056 | ;; |
2057 | frv-*-*) | |
2058 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2059 | ;; | |
2060 | h8300*-*-*) | |
b4117c30 | 2061 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
671aa708 NN |
2062 | ;; |
2063 | h8500-*-*) | |
b4117c30 | 2064 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2065 | ;; |
ee6a22df | 2066 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 2067 | ;; |
671aa708 NN |
2068 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
2069 | # In this case, it's because the hppa64-linux target is for | |
2070 | # the kernel only at this point and has no libc, and thus no | |
2071 | # headers, crt*.o, etc., all of which are needed by these. | |
2072 | noconfigdirs="$noconfigdirs target-zlib" | |
2073 | ;; | |
3e732ba0 JDA |
2074 | parisc*-*-linux* | hppa*-*-linux*) |
2075 | ;; | |
671aa708 | 2076 | hppa*-*-*elf* | \ |
671aa708 NN |
2077 | hppa*-*-lites* | \ |
2078 | hppa*-*-openbsd* | \ | |
2079 | hppa*64*-*-*) | |
2080 | noconfigdirs="$noconfigdirs ${libgcj}" | |
671aa708 NN |
2081 | ;; |
2082 | hppa*-*-*) | |
2083 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
2084 | # build on HP-UX 10.20. | |
2085 | noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" | |
2086 | ;; | |
fb87ad5d HPN |
2087 | i960-*-*) |
2088 | noconfigdirs="$noconfigdirs ${libgcj} gdb" | |
2089 | ;; | |
671aa708 NN |
2090 | ia64*-*-elf*) |
2091 | # No gdb support yet. | |
b4f96efe | 2092 | noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" |
671aa708 NN |
2093 | ;; |
2094 | ia64*-**-hpux*) | |
2095 | # No gdb or ld support yet. | |
b4f96efe | 2096 | noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" |
671aa708 | 2097 | ;; |
ee6a22df | 2098 | i370-*-opened*) |
ee6a22df | 2099 | ;; |
f2a0e225 | 2100 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
671aa708 NN |
2101 | noconfigdirs="$noconfigdirs ${libgcj}" |
2102 | ;; | |
f2a0e225 | 2103 | i[3456789]86-*-linux*) |
671aa708 NN |
2104 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's |
2105 | # not build java stuff by default. | |
2106 | case "${target}" in | |
2107 | *-*-*libc1*) | |
2108 | noconfigdirs="$noconfigdirs ${libgcj}";; | |
2109 | esac | |
2110 | ||
2111 | # This section makes it possible to build newlib natively on linux. | |
2112 | # If we are using a cross compiler then don't configure newlib. | |
2113 | if test x${is_cross_compiler} != xno ; then | |
3aa83176 | 2114 | noconfigdirs="$noconfigdirs target-newlib" |
671aa708 NN |
2115 | fi |
2116 | noconfigdirs="$noconfigdirs target-libgloss" | |
2117 | # If we are not using a cross compiler, do configure newlib. | |
2118 | # Note however, that newlib will only be configured in this situation | |
2119 | # if the --with-newlib option has been given, because otherwise | |
2120 | # 'target-newlib' will appear in skipdirs. | |
2121 | ;; | |
f2a0e225 | 2122 | i[3456789]86-*-mingw32*) |
671aa708 | 2123 | target_configdirs="$target_configdirs target-mingw" |
556f03c4 | 2124 | noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}" |
671aa708 NN |
2125 | |
2126 | # Can't build gdb for mingw32 if not native. | |
2127 | case "${host}" in | |
f2a0e225 | 2128 | i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc. |
b4f96efe | 2129 | *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv" |
671aa708 NN |
2130 | ;; |
2131 | esac | |
6b65a26d | 2132 | ;; |
671aa708 NN |
2133 | *-*-cygwin*) |
2134 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
556f03c4 | 2135 | noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" |
801e2270 | 2136 | # always build newlib if winsup directory is present. |
ee6a22df | 2137 | if test -d "$srcdir/winsup"; then |
801e2270 | 2138 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 2139 | elif test -d "$srcdir/newlib"; then |
801e2270 CV |
2140 | echo "Warning: winsup is missing so newlib can't be built." |
2141 | fi | |
671aa708 NN |
2142 | |
2143 | # Can't build gdb for Cygwin if not native. | |
2144 | case "${host}" in | |
2145 | *-*-cygwin*) ;; # keep gdb tcl tk expect etc. | |
b4f96efe | 2146 | *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv" |
671aa708 NN |
2147 | ;; |
2148 | esac | |
6b65a26d | 2149 | ;; |
ee6a22df L |
2150 | i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \ |
2151 | i[3456789]86-*-uwin* | i[3456789]86-*-interix* ) | |
ee6a22df | 2152 | ;; |
f2a0e225 | 2153 | i[3456789]86-*-pe) |
556f03c4 | 2154 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
671aa708 | 2155 | ;; |
f2a0e225 | 2156 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
2157 | # The linker does not yet know about weak symbols in COFF, |
2158 | # and is not configured to handle mixed ELF and COFF. | |
2159 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" | |
2160 | ;; | |
f2a0e225 | 2161 | i[3456789]86-*-sco*) |
671aa708 NN |
2162 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
2163 | ;; | |
f2a0e225 | 2164 | i[3456789]86-*-solaris2*) |
671aa708 NN |
2165 | noconfigdirs="$noconfigdirs target-libgloss" |
2166 | ;; | |
f2a0e225 | 2167 | i[3456789]86-*-sysv4*) |
671aa708 NN |
2168 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
2169 | ;; | |
f2a0e225 | 2170 | i[3456789]86-*-beos*) |
3aa83176 NN |
2171 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
2172 | ;; | |
fb87ad5d | 2173 | m32r-*-*) |
c197e306 | 2174 | noconfigdirs="$noconfigdirs ${libgcj}" |
fb87ad5d | 2175 | ;; |
671aa708 | 2176 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
cb543528 | 2177 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 NN |
2178 | ;; |
2179 | m68k-*-elf*) | |
2180 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2181 | ;; | |
2182 | m68k-*-coff*) | |
2183 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2184 | ;; | |
2185 | mcore-*-pe*) | |
2186 | # The EPOC C++ environment does not support exceptions or rtti, | |
2187 | # and so building libstdc++-v3 tends not to always work. | |
2188 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
2189 | ;; | |
2190 | mmix-*-*) | |
4fab7234 | 2191 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" |
7f26dfa3 | 2192 | unsupported_languages="$unsupported_languages fortran java" |
671aa708 NN |
2193 | ;; |
2194 | mn10200-*-*) | |
2195 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2196 | ;; | |
2197 | mn10300-*-*) | |
2198 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2199 | ;; | |
79dd769c AH |
2200 | ms1-*-*) |
2201 | noconfigdirs="$noconfigdirs sim" | |
2202 | ;; | |
671aa708 NN |
2203 | powerpc-*-aix*) |
2204 | # copied from rs6000-*-* entry | |
3a3c28db | 2205 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2206 | ;; |
2207 | powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) | |
2208 | target_configdirs="$target_configdirs target-winsup" | |
b4f96efe | 2209 | noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}" |
671aa708 NN |
2210 | # always build newlib. |
2211 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
2212 | ;; | |
2213 | # This is temporary until we can link against shared libraries | |
2214 | powerpcle-*-solaris*) | |
b4f96efe | 2215 | noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" |
671aa708 NN |
2216 | ;; |
2217 | powerpc-*-beos*) | |
2218 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" | |
2219 | ;; | |
671aa708 | 2220 | powerpc-*-eabi) |
556f03c4 | 2221 | noconfigdirs="$noconfigdirs ${libgcj}" |
ee6a22df L |
2222 | ;; |
2223 | powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) | |
671aa708 | 2224 | ;; |
671aa708 NN |
2225 | rs6000-*-lynxos*) |
2226 | noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" | |
2227 | ;; | |
2228 | rs6000-*-aix*) | |
3a3c28db | 2229 | noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" |
671aa708 NN |
2230 | ;; |
2231 | rs6000-*-*) | |
2232 | noconfigdirs="$noconfigdirs gprof ${libgcj}" | |
2233 | ;; | |
2234 | m68k-apollo-*) | |
2235 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" | |
2236 | ;; | |
2237 | mips*-*-irix5*) | |
1f1d584b | 2238 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
2239 | ;; |
2240 | mips*-*-irix6*) | |
671aa708 NN |
2241 | # Linking libjava exceeds command-line length limits on at least |
2242 | # IRIX 6.2, but not on IRIX 6.5. | |
2243 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
2244 | # <oldham@codesourcery.com> | |
7c005a3a | 2245 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
671aa708 NN |
2246 | ;; |
2247 | mips*-dec-bsd*) | |
2248 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" | |
2249 | ;; | |
2250 | mips*-*-bsd*) | |
2251 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" | |
2252 | ;; | |
2253 | mipstx39-*-*) | |
2254 | noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips | |
3aa83176 | 2255 | ;; |
d0fe5ad3 RS |
2256 | mips64*-*-linux*) |
2257 | noconfigdirs="$noconfigdirs target-newlib ${libgcj}" | |
2258 | ;; | |
671aa708 NN |
2259 | mips*-*-linux*) |
2260 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
2261 | ;; | |
2262 | mips*-*-*) | |
2263 | noconfigdirs="$noconfigdirs gprof ${libgcj}" | |
2264 | ;; | |
2265 | romp-*-*) | |
2266 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" | |
2267 | ;; | |
669f01d8 | 2268 | sh-*-* | sh64-*-*) |
671aa708 | 2269 | case "${host}" in |
f2a0e225 KC |
2270 | i[3456789]86-*-vsta) ;; # don't add gprof back in |
2271 | i[3456789]86-*-go32*) ;; # don't add gprof back in | |
2272 | i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in | |
671aa708 NN |
2273 | *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; |
2274 | esac | |
2275 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2276 | ;; | |
671aa708 NN |
2277 | sparc-*-elf*) |
2278 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2279 | ;; | |
2280 | sparc64-*-elf*) | |
2281 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2282 | ;; | |
2283 | sparclite-*-*) | |
2284 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2285 | ;; | |
2286 | sparc-*-sunos4*) | |
2287 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2288 | if test x${is_cross_compiler} != xno ; then | |
2289 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
2290 | else | |
2291 | use_gnu_ld=no | |
2292 | fi | |
2293 | ;; | |
bba5e0ca EB |
2294 | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
2295 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2296 | ;; | |
671aa708 NN |
2297 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) |
2298 | ;; | |
2299 | v810-*-*) | |
cb543528 | 2300 | noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" |
671aa708 NN |
2301 | ;; |
2302 | v850-*-*) | |
2303 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2304 | ;; | |
2305 | v850e-*-*) | |
2306 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2307 | ;; | |
2308 | v850ea-*-*) | |
2309 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
2310 | ;; | |
2311 | vax-*-vms) | |
2312 | noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" | |
2313 | ;; | |
2314 | vax-*-*) | |
2315 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
2316 | ;; | |
0d4f1b4e BW |
2317 | xtensa-*-*) |
2318 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2319 | ;; | |
671aa708 | 2320 | ip2k-*-*) |
cb543528 | 2321 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
671aa708 | 2322 | ;; |
c3f84f61 | 2323 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
671aa708 NN |
2324 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
2325 | ;; | |
2326 | *-*-lynxos*) | |
2327 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
6b65a26d | 2328 | ;; |
671aa708 NN |
2329 | *-*-*) |
2330 | noconfigdirs="$noconfigdirs ${libgcj}" | |
2331 | ;; | |
2332 | esac | |
79c06341 | 2333 | |
671aa708 NN |
2334 | # If we aren't building newlib, then don't build libgloss, since libgloss |
2335 | # depends upon some newlib header files. | |
2336 | case "${noconfigdirs}" in | |
2337 | *target-libgloss*) ;; | |
2338 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
2339 | esac | |
2340 | ||
671aa708 NN |
2341 | # Work in distributions that contain no compiler tools, like Autoconf. |
2342 | tentative_cc="" | |
2343 | host_makefile_frag=/dev/null | |
2344 | if test -d ${srcdir}/config ; then | |
2345 | case "${host}" in | |
2346 | m68k-hp-hpux*) | |
2347 | # Avoid "too much defining" errors from HPUX compiler. | |
2348 | tentative_cc="cc -Wp,-H256000" | |
2349 | # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. | |
2350 | # If it's HP/UX ar, this should be harmless. | |
2351 | RANLIB="ar ts" | |
2352 | ;; | |
2353 | m68k-apollo-sysv*) | |
2354 | tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" | |
2355 | ;; | |
2356 | m68k-apollo-bsd*) | |
2357 | #None of the Apollo compilers can compile gas or binutils. The preprocessor | |
2358 | # chokes on bfd, the compiler won't let you assign integers to enums, and | |
2359 | # other problems. Defining CC to gcc is a questionable way to say "don't use | |
2360 | # the apollo compiler" (the preferred version of GCC could be called cc, | |
2361 | # or whatever), but I'm not sure leaving CC as cc is any better... | |
2362 | #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG | |
2363 | # Used to have BISON=yacc. | |
2364 | tentative_cc=gcc | |
2365 | ;; | |
2366 | m88k-dg-dgux*) | |
2367 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" | |
671aa708 NN |
2368 | ;; |
2369 | m88k-harris-cxux*) | |
2370 | # Under CX/UX, we want to tell the compiler to use ANSI mode. | |
2371 | tentative_cc="cc -Xa" | |
2372 | host_makefile_frag="config/mh-cxux" | |
2373 | ;; | |
2374 | m88k-motorola-sysv*) | |
2375 | ;; | |
2376 | mips*-dec-ultrix*) | |
2377 | tentative_cc="cc -Wf,-XNg1000" | |
2378 | host_makefile_frag="config/mh-decstation" | |
2379 | ;; | |
2380 | mips*-nec-sysv4*) | |
2381 | # The C compiler on NEC MIPS SVR4 needs bigger tables. | |
2382 | tentative_cc="cc -ZXNd=5000 -ZXNg=1000" | |
2383 | host_makefile_frag="config/mh-necv4" | |
2384 | ;; | |
2385 | mips*-sgi-irix4*) | |
2386 | # Tell compiler to use K&R C. We can't compile under the SGI Ansi | |
2387 | # environment. Also bump switch table size so that cp-parse will | |
2388 | # compile. Bump string length limit so linker builds. | |
2389 | tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" | |
2390 | ;; | |
2391 | mips*-*-sysv4*) | |
2392 | host_makefile_frag="config/mh-sysv4" | |
2393 | ;; | |
2394 | mips*-*-sysv*) | |
2395 | # This is for a MIPS running RISC/os 4.52C. | |
2396 | ||
2397 | # This is needed for GDB, but needs to be in the top-level make because | |
2398 | # if a library is compiled with the bsd headers and gets linked with the | |
2399 | # sysv system libraries all hell can break loose (e.g. a jmp_buf might be | |
2400 | # a different size). | |
2401 | # ptrace(2) apparently has problems in the BSD environment. No workaround is | |
2402 | # known except to select the sysv environment. Could we use /proc instead? | |
2403 | # These "sysv environments" and "bsd environments" often end up being a pain. | |
2404 | # | |
2405 | # This is not part of CFLAGS because perhaps not all C compilers have this | |
2406 | # option. | |
2407 | tentative_cc="cc -systype sysv" | |
2408 | ;; | |
2409 | i370-ibm-opened*) | |
2410 | tentative_cc="c89" | |
2411 | ;; | |
f2a0e225 | 2412 | i[3456789]86-*-sysv5*) |
671aa708 NN |
2413 | host_makefile_frag="config/mh-sysv5" |
2414 | ;; | |
f2a0e225 | 2415 | i[3456789]86-*-dgux*) |
671aa708 NN |
2416 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" |
2417 | host_makefile_frag="config/mh-dgux386" | |
2418 | ;; | |
f2a0e225 | 2419 | i[3456789]86-ncr-sysv4.3*) |
671aa708 NN |
2420 | # The MetaWare compiler will generate a copyright message unless you |
2421 | # turn it off by adding the -Hnocopyr flag. | |
2422 | tentative_cc="cc -Hnocopyr" | |
2423 | ;; | |
f2a0e225 | 2424 | i[3456789]86-ncr-sysv4*) |
671aa708 NN |
2425 | # for an NCR 3000 (i486/SVR4) system. |
2426 | # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. | |
2427 | # This compiler not only emits obnoxious copyright messages every time | |
2428 | # you run it, but it chokes and dies on a whole bunch of GNU source | |
2429 | # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. | |
2430 | tentative_cc="/usr/ccs/ATT/cc" | |
2431 | host_makefile_frag="config/mh-ncr3000" | |
2432 | ;; | |
f2a0e225 | 2433 | i[3456789]86-*-sco3.2v5*) |
671aa708 | 2434 | ;; |
f2a0e225 | 2435 | i[3456789]86-*-sco*) |
671aa708 NN |
2436 | # The native C compiler botches some simple uses of const. Unfortunately, |
2437 | # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. | |
2438 | tentative_cc="cc -Dconst=" | |
2439 | host_makefile_frag="config/mh-sco" | |
2440 | ;; | |
f2a0e225 | 2441 | i[3456789]86-*-udk*) |
671aa708 NN |
2442 | host_makefile_frag="config/mh-sysv5" |
2443 | ;; | |
f2a0e225 | 2444 | i[3456789]86-*-solaris2*) |
671aa708 NN |
2445 | host_makefile_frag="config/mh-sysv4" |
2446 | ;; | |
f2a0e225 | 2447 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
2448 | host_makefile_frag="config/mh-djgpp" |
2449 | ;; | |
2450 | *-cygwin*) | |
2451 | host_makefile_frag="config/mh-cygwin" | |
2452 | ;; | |
2453 | *-mingw32*) | |
671aa708 NN |
2454 | ;; |
2455 | *-interix*) | |
2456 | host_makefile_frag="config/mh-interix" | |
2457 | ;; | |
2458 | vax-*-ultrix2*) | |
2459 | # The old BSD pcc isn't up to compiling parts of gdb so use gcc | |
2460 | tentative_cc=gcc | |
2461 | ;; | |
2462 | *-*-solaris2*) | |
2463 | host_makefile_frag="config/mh-solaris" | |
2464 | ;; | |
2465 | m68k-sun-sunos*) | |
2466 | # Sun's C compiler needs the -J flag to be able to compile cp-parse.c | |
2467 | # without overflowing the jump tables (-J says to use a 32 bit table) | |
2468 | tentative_cc="cc -J" | |
2469 | ;; | |
2470 | *-hp-hpux*) | |
2471 | tentative_cc="cc -Wp,-H256000" | |
2472 | ;; | |
2473 | *-*-hiux*) | |
2474 | tentative_cc="cc -Wp,-H256000" | |
2475 | ;; | |
2476 | rs6000-*-lynxos*) | |
2477 | # /bin/cc is less than useful for our purposes. Always use GCC | |
2478 | tentative_cc="/usr/cygnus/progressive/bin/gcc" | |
2479 | host_makefile_frag="config/mh-lynxrs6k" | |
2480 | ;; | |
45f366ab | 2481 | powerpc-*-darwin*) |
be8fff81 RB |
2482 | host_makefile_frag="config/mh-ppc-darwin" |
2483 | ;; | |
671aa708 NN |
2484 | *-*-lynxos*) |
2485 | # /bin/cc is less than useful for our purposes. Always use GCC | |
2486 | tentative_cc="/bin/gcc" | |
2487 | ;; | |
2488 | *-*-sysv4*) | |
2489 | host_makefile_frag="config/mh-sysv4" | |
2490 | ;; | |
95c53c62 RS |
2491 | # This is placed last to prevent interfering with the cases above. |
2492 | i[3456789]86-*-*) | |
2493 | # Build the stage2 and stage3 compilers with -fomit-frame-pointer. | |
2494 | host_makefile_frag="config/mh-x86omitfp" | |
2495 | ;; | |
671aa708 NN |
2496 | esac |
2497 | fi | |
2498 | ||
55ffb5ed NN |
2499 | # If we aren't going to be using gcc, see if we can extract a definition |
2500 | # of CC from the fragment. | |
2501 | # Actually, use the 'pre-extracted' version above. | |
2502 | if test -z "${CC}" && test "${build}" = "${host}" ; then | |
2503 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
2504 | found= | |
2505 | for dir in $PATH; do | |
2506 | test -z "$dir" && dir=. | |
2507 | if test -f $dir/gcc; then | |
2508 | found=yes | |
2509 | break | |
2510 | fi | |
2511 | done | |
2512 | IFS="$save_ifs" | |
2513 | if test -z "${found}" && test -n "${tentative_cc}" ; then | |
2514 | CC=$tentative_cc | |
2515 | fi | |
2516 | fi | |
2517 | ||
2518 | if test "${build}" != "${host}" ; then | |
2519 | # If we are doing a Canadian Cross, in which the host and build systems | |
2520 | # are not the same, we set reasonable default values for the tools. | |
2521 | ||
55ffb5ed NN |
2522 | CC=${CC-${host_alias}-gcc} |
2523 | CFLAGS=${CFLAGS-"-g -O2"} | |
2524 | CXX=${CXX-${host_alias}-c++} | |
2525 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
2526 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} | |
55ffb5ed NN |
2527 | BUILD_PREFIX=${build_alias}- |
2528 | BUILD_PREFIX_1=${build_alias}- | |
55ffb5ed NN |
2529 | |
2530 | else | |
2531 | # Set reasonable default values for some tools even if not Canadian. | |
2532 | # Of course, these are different reasonable default values, originally | |
2533 | # specified directly in the Makefile. | |
2534 | # We don't export, so that autoconf can do its job. | |
2535 | # Note that all these settings are above the fragment inclusion point | |
2536 | # in Makefile.in, so can still be overridden by fragments. | |
2537 | # This is all going to change when we autoconfiscate... | |
2538 | ||
55ffb5ed | 2539 | CC_FOR_BUILD="\$(CC)" |
55ffb5ed NN |
2540 | BUILD_PREFIX= |
2541 | BUILD_PREFIX_1=loser- | |
55ffb5ed | 2542 | |
6b65a26d CM |
2543 | ac_ext=c |
2544 | ac_cpp='$CPP $CPPFLAGS' | |
2545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2548 | if test -n "$ac_tool_prefix"; then | |
2549 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2550 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2551 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2553 | if test "${ac_cv_prog_CC+set}" = set; then | |
2554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2555 | else | |
2556 | if test -n "$CC"; then | |
2557 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2558 | else | |
2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2560 | for as_dir in $PATH | |
2561 | do | |
2562 | IFS=$as_save_IFS | |
2563 | test -z "$as_dir" && as_dir=. | |
2564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2565 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2566 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2567 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2568 | break 2 | |
2569 | fi | |
2570 | done | |
2571 | done | |
2572 | ||
2573 | fi | |
2574 | fi | |
2575 | CC=$ac_cv_prog_CC | |
2576 | if test -n "$CC"; then | |
2577 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2578 | echo "${ECHO_T}$CC" >&6 | |
2579 | else | |
2580 | echo "$as_me:$LINENO: result: no" >&5 | |
2581 | echo "${ECHO_T}no" >&6 | |
2582 | fi | |
2583 | ||
2584 | fi | |
2585 | if test -z "$ac_cv_prog_CC"; then | |
2586 | ac_ct_CC=$CC | |
23f6b2f9 | 2587 | # Extract the first word of "gcc", so it can be a program name with args. |
55ffb5ed | 2588 | set dummy gcc; ac_word=$2 |
6b65a26d CM |
2589 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2591 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2593 | else | |
2594 | if test -n "$ac_ct_CC"; then | |
2595 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2596 | else | |
2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2598 | for as_dir in $PATH | |
2599 | do | |
2600 | IFS=$as_save_IFS | |
2601 | test -z "$as_dir" && as_dir=. | |
2602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2604 | ac_cv_prog_ac_ct_CC="gcc" | |
2605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2606 | break 2 | |
2607 | fi | |
2608 | done | |
2609 | done | |
2610 | ||
2611 | fi | |
2612 | fi | |
2613 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2614 | if test -n "$ac_ct_CC"; then | |
2615 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2616 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2617 | else | |
2618 | echo "$as_me:$LINENO: result: no" >&5 | |
2619 | echo "${ECHO_T}no" >&6 | |
2620 | fi | |
2621 | ||
2622 | CC=$ac_ct_CC | |
2623 | else | |
2624 | CC="$ac_cv_prog_CC" | |
2625 | fi | |
2626 | ||
2627 | if test -z "$CC"; then | |
2628 | if test -n "$ac_tool_prefix"; then | |
2629 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2630 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2633 | if test "${ac_cv_prog_CC+set}" = set; then | |
2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
2635 | else |
2636 | if test -n "$CC"; then | |
2637 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2638 | else | |
6b65a26d CM |
2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2640 | for as_dir in $PATH | |
2641 | do | |
2642 | IFS=$as_save_IFS | |
2643 | test -z "$as_dir" && as_dir=. | |
2644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2646 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2648 | break 2 | |
2649 | fi | |
2650 | done | |
2651 | done | |
2652 | ||
55ffb5ed NN |
2653 | fi |
2654 | fi | |
6b65a26d | 2655 | CC=$ac_cv_prog_CC |
55ffb5ed | 2656 | if test -n "$CC"; then |
6b65a26d CM |
2657 | echo "$as_me:$LINENO: result: $CC" >&5 |
2658 | echo "${ECHO_T}$CC" >&6 | |
55ffb5ed | 2659 | else |
6b65a26d CM |
2660 | echo "$as_me:$LINENO: result: no" >&5 |
2661 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
2662 | fi |
2663 | ||
6b65a26d CM |
2664 | fi |
2665 | if test -z "$ac_cv_prog_CC"; then | |
2666 | ac_ct_CC=$CC | |
2667 | # Extract the first word of "cc", so it can be a program name with args. | |
2668 | set dummy cc; ac_word=$2 | |
2669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2671 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2673 | else | |
2674 | if test -n "$ac_ct_CC"; then | |
2675 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2676 | else | |
2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2678 | for as_dir in $PATH | |
2679 | do | |
2680 | IFS=$as_save_IFS | |
2681 | test -z "$as_dir" && as_dir=. | |
2682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2684 | ac_cv_prog_ac_ct_CC="cc" | |
2685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2686 | break 2 | |
2687 | fi | |
2688 | done | |
2689 | done | |
2690 | ||
2691 | fi | |
2692 | fi | |
2693 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2694 | if test -n "$ac_ct_CC"; then | |
2695 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2696 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2697 | else | |
2698 | echo "$as_me:$LINENO: result: no" >&5 | |
2699 | echo "${ECHO_T}no" >&6 | |
2700 | fi | |
2701 | ||
2702 | CC=$ac_ct_CC | |
2703 | else | |
2704 | CC="$ac_cv_prog_CC" | |
2705 | fi | |
2706 | ||
2707 | fi | |
55ffb5ed NN |
2708 | if test -z "$CC"; then |
2709 | # Extract the first word of "cc", so it can be a program name with args. | |
2710 | set dummy cc; ac_word=$2 | |
6b65a26d CM |
2711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2713 | if test "${ac_cv_prog_CC+set}" = set; then | |
2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
2715 | else |
2716 | if test -n "$CC"; then | |
2717 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2718 | else | |
55ffb5ed | 2719 | ac_prog_rejected=no |
6b65a26d CM |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2721 | for as_dir in $PATH | |
2722 | do | |
2723 | IFS=$as_save_IFS | |
2724 | test -z "$as_dir" && as_dir=. | |
2725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2727 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2728 | ac_prog_rejected=yes | |
2729 | continue | |
2730 | fi | |
2731 | ac_cv_prog_CC="cc" | |
2732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2733 | break 2 | |
2734 | fi | |
2735 | done | |
2736 | done | |
2737 | ||
55ffb5ed NN |
2738 | if test $ac_prog_rejected = yes; then |
2739 | # We found a bogon in the path, so make sure we never use it. | |
2740 | set dummy $ac_cv_prog_CC | |
2741 | shift | |
6b65a26d | 2742 | if test $# != 0; then |
55ffb5ed NN |
2743 | # We chose a different compiler from the bogus one. |
2744 | # However, it has the same basename, so the bogon will be chosen | |
2745 | # first if we set CC to just the basename; use the full file name. | |
2746 | shift | |
6b65a26d | 2747 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
2748 | fi |
2749 | fi | |
2750 | fi | |
2751 | fi | |
6b65a26d | 2752 | CC=$ac_cv_prog_CC |
55ffb5ed | 2753 | if test -n "$CC"; then |
6b65a26d CM |
2754 | echo "$as_me:$LINENO: result: $CC" >&5 |
2755 | echo "${ECHO_T}$CC" >&6 | |
55ffb5ed | 2756 | else |
6b65a26d CM |
2757 | echo "$as_me:$LINENO: result: no" >&5 |
2758 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
2759 | fi |
2760 | ||
6b65a26d CM |
2761 | fi |
2762 | if test -z "$CC"; then | |
2763 | if test -n "$ac_tool_prefix"; then | |
2764 | for ac_prog in cl | |
2765 | do | |
2766 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2767 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2770 | if test "${ac_cv_prog_CC+set}" = set; then | |
2771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
2772 | else |
2773 | if test -n "$CC"; then | |
2774 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2775 | else | |
6b65a26d CM |
2776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2777 | for as_dir in $PATH | |
2778 | do | |
2779 | IFS=$as_save_IFS | |
2780 | test -z "$as_dir" && as_dir=. | |
2781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2783 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2785 | break 2 | |
2786 | fi | |
2787 | done | |
2788 | done | |
2789 | ||
55ffb5ed NN |
2790 | fi |
2791 | fi | |
6b65a26d | 2792 | CC=$ac_cv_prog_CC |
55ffb5ed | 2793 | if test -n "$CC"; then |
6b65a26d CM |
2794 | echo "$as_me:$LINENO: result: $CC" >&5 |
2795 | echo "${ECHO_T}$CC" >&6 | |
55ffb5ed | 2796 | else |
6b65a26d CM |
2797 | echo "$as_me:$LINENO: result: no" >&5 |
2798 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
2799 | fi |
2800 | ||
6b65a26d CM |
2801 | test -n "$CC" && break |
2802 | done | |
55ffb5ed | 2803 | fi |
6b65a26d CM |
2804 | if test -z "$CC"; then |
2805 | ac_ct_CC=$CC | |
2806 | for ac_prog in cl | |
2807 | do | |
2808 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2809 | set dummy $ac_prog; ac_word=$2 | |
2810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2812 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed | 2814 | else |
6b65a26d CM |
2815 | if test -n "$ac_ct_CC"; then |
2816 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2817 | else | |
2818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2819 | for as_dir in $PATH | |
2820 | do | |
2821 | IFS=$as_save_IFS | |
2822 | test -z "$as_dir" && as_dir=. | |
2823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2825 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2827 | break 2 | |
2828 | fi | |
2829 | done | |
2830 | done | |
2831 | ||
55ffb5ed | 2832 | fi |
6b65a26d CM |
2833 | fi |
2834 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2835 | if test -n "$ac_ct_CC"; then | |
2836 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2837 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2838 | else | |
2839 | echo "$as_me:$LINENO: result: no" >&5 | |
2840 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
2841 | fi |
2842 | ||
6b65a26d CM |
2843 | test -n "$ac_ct_CC" && break |
2844 | done | |
55ffb5ed | 2845 | |
6b65a26d CM |
2846 | CC=$ac_ct_CC |
2847 | fi | |
2848 | ||
2849 | fi | |
2850 | ||
2851 | ||
2852 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2853 | See \`config.log' for more details." >&5 | |
2854 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2855 | See \`config.log' for more details." >&2;} | |
2856 | { (exit 1); exit 1; }; } | |
2857 | ||
2858 | # Provide some information about the compiler. | |
2859 | echo "$as_me:$LINENO:" \ | |
2860 | "checking for C compiler version" >&5 | |
2861 | ac_compiler=`set X $ac_compile; echo $2` | |
2862 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2863 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2864 | ac_status=$? | |
2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2866 | (exit $ac_status); } | |
2867 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2868 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2869 | ac_status=$? | |
2870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2871 | (exit $ac_status); } | |
2872 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2873 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2874 | ac_status=$? | |
2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2876 | (exit $ac_status); } | |
2877 | ||
2878 | cat >conftest.$ac_ext <<_ACEOF | |
2879 | /* confdefs.h. */ | |
2880 | _ACEOF | |
2881 | cat confdefs.h >>conftest.$ac_ext | |
2882 | cat >>conftest.$ac_ext <<_ACEOF | |
2883 | /* end confdefs.h. */ | |
2884 | ||
2885 | int | |
2886 | main () | |
2887 | { | |
2888 | ||
2889 | ; | |
2890 | return 0; | |
2891 | } | |
2892 | _ACEOF | |
2893 | ac_clean_files_save=$ac_clean_files | |
2894 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2895 | # Try to create an executable without -o first, disregard a.out. | |
2896 | # It will help us diagnose broken compilers, and finding out an intuition | |
2897 | # of exeext. | |
2898 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2899 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2900 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2901 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2902 | (eval $ac_link_default) 2>&5 | |
2903 | ac_status=$? | |
2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2905 | (exit $ac_status); }; then | |
2906 | # Find the output, starting from the most likely. This scheme is | |
2907 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2908 | # resort. | |
2909 | ||
2910 | # Be careful to initialize this variable, since it used to be cached. | |
2911 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2912 | ac_cv_exeext= | |
2913 | # b.out is created by i960 compilers. | |
2914 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2915 | do | |
2916 | test -f "$ac_file" || continue | |
2917 | case $ac_file in | |
2918 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2919 | ;; | |
2920 | conftest.$ac_ext ) | |
2921 | # This is the source file. | |
2922 | ;; | |
2923 | [ab].out ) | |
2924 | # We found the default executable, but exeext='' is most | |
2925 | # certainly right. | |
2926 | break;; | |
2927 | *.* ) | |
2928 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2929 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2930 | # but it would be cool to find out if it's true. Does anybody | |
2931 | # maintain Libtool? --akim. | |
2932 | export ac_cv_exeext | |
2933 | break;; | |
2934 | * ) | |
2935 | break;; | |
2936 | esac | |
2937 | done | |
55ffb5ed | 2938 | else |
6b65a26d CM |
2939 | echo "$as_me: failed program was:" >&5 |
2940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2941 | ||
2942 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2943 | See \`config.log' for more details." >&5 | |
2944 | echo "$as_me: error: C compiler cannot create executables | |
2945 | See \`config.log' for more details." >&2;} | |
2946 | { (exit 77); exit 77; }; } | |
2947 | fi | |
2948 | ||
2949 | ac_exeext=$ac_cv_exeext | |
2950 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2951 | echo "${ECHO_T}$ac_file" >&6 | |
2952 | ||
2953 | # Check the compiler produces executables we can run. If not, either | |
2954 | # the compiler is broken, or we cross compile. | |
2955 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2956 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2957 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2958 | # If not cross compiling, check that we can run a simple program. | |
2959 | if test "$cross_compiling" != yes; then | |
2960 | if { ac_try='./$ac_file' | |
2961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2962 | (eval $ac_try) 2>&5 | |
2963 | ac_status=$? | |
2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2965 | (exit $ac_status); }; }; then | |
2966 | cross_compiling=no | |
2967 | else | |
2968 | if test "$cross_compiling" = maybe; then | |
2969 | cross_compiling=yes | |
2970 | else | |
2971 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2972 | If you meant to cross compile, use \`--host'. | |
2973 | See \`config.log' for more details." >&5 | |
2974 | echo "$as_me: error: cannot run C compiled programs. | |
2975 | If you meant to cross compile, use \`--host'. | |
2976 | See \`config.log' for more details." >&2;} | |
2977 | { (exit 1); exit 1; }; } | |
2978 | fi | |
2979 | fi | |
55ffb5ed | 2980 | fi |
6b65a26d CM |
2981 | echo "$as_me:$LINENO: result: yes" >&5 |
2982 | echo "${ECHO_T}yes" >&6 | |
2983 | ||
2984 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2985 | ac_clean_files=$ac_clean_files_save | |
2986 | # Check the compiler produces executables we can run. If not, either | |
2987 | # the compiler is broken, or we cross compile. | |
2988 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2989 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2990 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2991 | echo "${ECHO_T}$cross_compiling" >&6 | |
2992 | ||
2993 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2994 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2996 | (eval $ac_link) 2>&5 | |
2997 | ac_status=$? | |
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2999 | (exit $ac_status); }; then | |
3000 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3001 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3002 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3003 | # `rm'. | |
3004 | for ac_file in conftest.exe conftest conftest.*; do | |
3005 | test -f "$ac_file" || continue | |
3006 | case $ac_file in | |
3007 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
3008 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3009 | export ac_cv_exeext | |
3010 | break;; | |
3011 | * ) break;; | |
3012 | esac | |
3013 | done | |
3014 | else | |
3015 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3016 | See \`config.log' for more details." >&5 | |
3017 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3018 | See \`config.log' for more details." >&2;} | |
3019 | { (exit 1); exit 1; }; } | |
3020 | fi | |
3021 | ||
3022 | rm -f conftest$ac_cv_exeext | |
3023 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3024 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
3025 | ||
3026 | rm -f conftest.$ac_ext | |
3027 | EXEEXT=$ac_cv_exeext | |
3028 | ac_exeext=$EXEEXT | |
3029 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3030 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
3031 | if test "${ac_cv_objext+set}" = set; then | |
3032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3033 | else | |
3034 | cat >conftest.$ac_ext <<_ACEOF | |
3035 | /* confdefs.h. */ | |
3036 | _ACEOF | |
3037 | cat confdefs.h >>conftest.$ac_ext | |
3038 | cat >>conftest.$ac_ext <<_ACEOF | |
3039 | /* end confdefs.h. */ | |
3040 | ||
3041 | int | |
3042 | main () | |
3043 | { | |
3044 | ||
3045 | ; | |
3046 | return 0; | |
3047 | } | |
3048 | _ACEOF | |
3049 | rm -f conftest.o conftest.obj | |
3050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3051 | (eval $ac_compile) 2>&5 | |
3052 | ac_status=$? | |
3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3054 | (exit $ac_status); }; then | |
3055 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3056 | case $ac_file in | |
3057 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
3058 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3059 | break;; | |
3060 | esac | |
3061 | done | |
55ffb5ed | 3062 | else |
6b65a26d CM |
3063 | echo "$as_me: failed program was:" >&5 |
3064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3065 | ||
3066 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3067 | See \`config.log' for more details." >&5 | |
3068 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3069 | See \`config.log' for more details." >&2;} | |
3070 | { (exit 1); exit 1; }; } | |
3071 | fi | |
3072 | ||
3073 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3074 | fi | |
3075 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3076 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3077 | OBJEXT=$ac_cv_objext | |
3078 | ac_objext=$OBJEXT | |
3079 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3080 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3081 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3083 | else | |
3084 | cat >conftest.$ac_ext <<_ACEOF | |
3085 | /* confdefs.h. */ | |
3086 | _ACEOF | |
3087 | cat confdefs.h >>conftest.$ac_ext | |
3088 | cat >>conftest.$ac_ext <<_ACEOF | |
3089 | /* end confdefs.h. */ | |
3090 | ||
3091 | int | |
3092 | main () | |
3093 | { | |
3094 | #ifndef __GNUC__ | |
3095 | choke me | |
3096 | #endif | |
3097 | ||
3098 | ; | |
3099 | return 0; | |
3100 | } | |
3101 | _ACEOF | |
3102 | rm -f conftest.$ac_objext | |
3103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3104 | (eval $ac_compile) 2>conftest.er1 | |
3105 | ac_status=$? | |
3106 | grep -v '^ *+' conftest.er1 >conftest.err | |
3107 | rm -f conftest.er1 | |
3108 | cat conftest.err >&5 | |
3109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3110 | (exit $ac_status); } && | |
3111 | { ac_try='test -z "$ac_c_werror_flag" | |
3112 | || test ! -s conftest.err' | |
3113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3114 | (eval $ac_try) 2>&5 | |
3115 | ac_status=$? | |
3116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3117 | (exit $ac_status); }; } && | |
3118 | { ac_try='test -s conftest.$ac_objext' | |
3119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3120 | (eval $ac_try) 2>&5 | |
3121 | ac_status=$? | |
3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3123 | (exit $ac_status); }; }; then | |
3124 | ac_compiler_gnu=yes | |
3125 | else | |
3126 | echo "$as_me: failed program was:" >&5 | |
3127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3128 | ||
3129 | ac_compiler_gnu=no | |
3130 | fi | |
3131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3132 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3133 | ||
3134 | fi | |
3135 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3136 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3137 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3138 | ac_test_CFLAGS=${CFLAGS+set} | |
3139 | ac_save_CFLAGS=$CFLAGS | |
3140 | CFLAGS="-g" | |
3141 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3142 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3143 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3145 | else | |
3146 | cat >conftest.$ac_ext <<_ACEOF | |
3147 | /* confdefs.h. */ | |
3148 | _ACEOF | |
3149 | cat confdefs.h >>conftest.$ac_ext | |
3150 | cat >>conftest.$ac_ext <<_ACEOF | |
3151 | /* end confdefs.h. */ | |
3152 | ||
3153 | int | |
3154 | main () | |
3155 | { | |
3156 | ||
3157 | ; | |
3158 | return 0; | |
3159 | } | |
3160 | _ACEOF | |
3161 | rm -f conftest.$ac_objext | |
3162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3163 | (eval $ac_compile) 2>conftest.er1 | |
3164 | ac_status=$? | |
3165 | grep -v '^ *+' conftest.er1 >conftest.err | |
3166 | rm -f conftest.er1 | |
3167 | cat conftest.err >&5 | |
3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3169 | (exit $ac_status); } && | |
3170 | { ac_try='test -z "$ac_c_werror_flag" | |
3171 | || test ! -s conftest.err' | |
3172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3173 | (eval $ac_try) 2>&5 | |
3174 | ac_status=$? | |
3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3176 | (exit $ac_status); }; } && | |
3177 | { ac_try='test -s conftest.$ac_objext' | |
3178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3179 | (eval $ac_try) 2>&5 | |
3180 | ac_status=$? | |
3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3182 | (exit $ac_status); }; }; then | |
55ffb5ed NN |
3183 | ac_cv_prog_cc_g=yes |
3184 | else | |
6b65a26d CM |
3185 | echo "$as_me: failed program was:" >&5 |
3186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
55ffb5ed | 3187 | |
6b65a26d | 3188 | ac_cv_prog_cc_g=no |
55ffb5ed | 3189 | fi |
6b65a26d CM |
3190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3191 | fi | |
3192 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3193 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
55ffb5ed | 3194 | if test "$ac_test_CFLAGS" = set; then |
6b65a26d | 3195 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
3196 | elif test $ac_cv_prog_cc_g = yes; then |
3197 | if test "$GCC" = yes; then | |
3198 | CFLAGS="-g -O2" | |
3199 | else | |
3200 | CFLAGS="-g" | |
3201 | fi | |
3202 | else | |
3203 | if test "$GCC" = yes; then | |
3204 | CFLAGS="-O2" | |
3205 | else | |
3206 | CFLAGS= | |
3207 | fi | |
3208 | fi | |
6b65a26d CM |
3209 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3210 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3211 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3213 | else | |
3214 | ac_cv_prog_cc_stdc=no | |
3215 | ac_save_CC=$CC | |
3216 | cat >conftest.$ac_ext <<_ACEOF | |
3217 | /* confdefs.h. */ | |
3218 | _ACEOF | |
3219 | cat confdefs.h >>conftest.$ac_ext | |
3220 | cat >>conftest.$ac_ext <<_ACEOF | |
3221 | /* end confdefs.h. */ | |
3222 | #include <stdarg.h> | |
3223 | #include <stdio.h> | |
3224 | #include <sys/types.h> | |
3225 | #include <sys/stat.h> | |
3226 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3227 | struct buf { int x; }; | |
3228 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3229 | static char *e (p, i) | |
3230 | char **p; | |
3231 | int i; | |
3232 | { | |
3233 | return p[i]; | |
3234 | } | |
3235 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3236 | { | |
3237 | char *s; | |
3238 | va_list v; | |
3239 | va_start (v,p); | |
3240 | s = g (p, va_arg (v,int)); | |
3241 | va_end (v); | |
3242 | return s; | |
3243 | } | |
3244 | ||
3245 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3246 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3247 | These don't provoke an error unfortunately, instead are silently treated | |
3248 | as 'x'. The following induces an error, until -std1 is added to get | |
3249 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3250 | array size at least. It's necessary to write '\x00'==0 to get something | |
3251 | that's true only with -std1. */ | |
3252 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3253 | ||
3254 | int test (int i, double x); | |
3255 | struct s1 {int (*f) (int a);}; | |
3256 | struct s2 {int (*f) (double a);}; | |
3257 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3258 | int argc; | |
3259 | char **argv; | |
3260 | int | |
3261 | main () | |
3262 | { | |
3263 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3264 | ; | |
3265 | return 0; | |
3266 | } | |
3267 | _ACEOF | |
3268 | # Don't try gcc -ansi; that turns off useful extensions and | |
3269 | # breaks some systems' header files. | |
3270 | # AIX -qlanglvl=ansi | |
3271 | # Ultrix and OSF/1 -std1 | |
3272 | # HP-UX 10.20 and later -Ae | |
3273 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3274 | # SVR4 -Xc -D__EXTENSIONS__ | |
3275 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3276 | do | |
3277 | CC="$ac_save_CC $ac_arg" | |
3278 | rm -f conftest.$ac_objext | |
3279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3280 | (eval $ac_compile) 2>conftest.er1 | |
3281 | ac_status=$? | |
3282 | grep -v '^ *+' conftest.er1 >conftest.err | |
3283 | rm -f conftest.er1 | |
3284 | cat conftest.err >&5 | |
3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3286 | (exit $ac_status); } && | |
3287 | { ac_try='test -z "$ac_c_werror_flag" | |
3288 | || test ! -s conftest.err' | |
3289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3290 | (eval $ac_try) 2>&5 | |
3291 | ac_status=$? | |
3292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3293 | (exit $ac_status); }; } && | |
3294 | { ac_try='test -s conftest.$ac_objext' | |
3295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3296 | (eval $ac_try) 2>&5 | |
3297 | ac_status=$? | |
3298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3299 | (exit $ac_status); }; }; then | |
3300 | ac_cv_prog_cc_stdc=$ac_arg | |
3301 | break | |
3302 | else | |
3303 | echo "$as_me: failed program was:" >&5 | |
3304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3305 | ||
3306 | fi | |
3307 | rm -f conftest.err conftest.$ac_objext | |
3308 | done | |
3309 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3310 | CC=$ac_save_CC | |
3311 | ||
3312 | fi | |
3313 | ||
3314 | case "x$ac_cv_prog_cc_stdc" in | |
3315 | x|xno) | |
3316 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3317 | echo "${ECHO_T}none needed" >&6 ;; | |
3318 | *) | |
3319 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3320 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3321 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3322 | esac | |
3323 | ||
3324 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3325 | # in C++ we need to declare it. In case someone uses the same compiler | |
3326 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3327 | # the declaration of exit, since it's the most demanding environment. | |
3328 | cat >conftest.$ac_ext <<_ACEOF | |
3329 | #ifndef __cplusplus | |
3330 | choke me | |
3331 | #endif | |
3332 | _ACEOF | |
3333 | rm -f conftest.$ac_objext | |
3334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3335 | (eval $ac_compile) 2>conftest.er1 | |
3336 | ac_status=$? | |
3337 | grep -v '^ *+' conftest.er1 >conftest.err | |
3338 | rm -f conftest.er1 | |
3339 | cat conftest.err >&5 | |
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3341 | (exit $ac_status); } && | |
3342 | { ac_try='test -z "$ac_c_werror_flag" | |
3343 | || test ! -s conftest.err' | |
3344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3345 | (eval $ac_try) 2>&5 | |
3346 | ac_status=$? | |
3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3348 | (exit $ac_status); }; } && | |
3349 | { ac_try='test -s conftest.$ac_objext' | |
3350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3351 | (eval $ac_try) 2>&5 | |
3352 | ac_status=$? | |
3353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3354 | (exit $ac_status); }; }; then | |
3355 | for ac_declaration in \ | |
3356 | '' \ | |
3357 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3358 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3359 | 'extern "C" void exit (int) throw ();' \ | |
3360 | 'extern "C" void exit (int);' \ | |
3361 | 'void exit (int);' | |
3362 | do | |
3363 | cat >conftest.$ac_ext <<_ACEOF | |
3364 | /* confdefs.h. */ | |
3365 | _ACEOF | |
3366 | cat confdefs.h >>conftest.$ac_ext | |
3367 | cat >>conftest.$ac_ext <<_ACEOF | |
3368 | /* end confdefs.h. */ | |
3369 | $ac_declaration | |
3370 | #include <stdlib.h> | |
3371 | int | |
3372 | main () | |
3373 | { | |
3374 | exit (42); | |
3375 | ; | |
3376 | return 0; | |
3377 | } | |
3378 | _ACEOF | |
3379 | rm -f conftest.$ac_objext | |
3380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3381 | (eval $ac_compile) 2>conftest.er1 | |
3382 | ac_status=$? | |
3383 | grep -v '^ *+' conftest.er1 >conftest.err | |
3384 | rm -f conftest.er1 | |
3385 | cat conftest.err >&5 | |
3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3387 | (exit $ac_status); } && | |
3388 | { ac_try='test -z "$ac_c_werror_flag" | |
3389 | || test ! -s conftest.err' | |
3390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3391 | (eval $ac_try) 2>&5 | |
3392 | ac_status=$? | |
3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3394 | (exit $ac_status); }; } && | |
3395 | { ac_try='test -s conftest.$ac_objext' | |
3396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3397 | (eval $ac_try) 2>&5 | |
3398 | ac_status=$? | |
3399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3400 | (exit $ac_status); }; }; then | |
3401 | : | |
3402 | else | |
3403 | echo "$as_me: failed program was:" >&5 | |
3404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3405 | ||
3406 | continue | |
3407 | fi | |
3408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3409 | cat >conftest.$ac_ext <<_ACEOF | |
3410 | /* confdefs.h. */ | |
3411 | _ACEOF | |
3412 | cat confdefs.h >>conftest.$ac_ext | |
3413 | cat >>conftest.$ac_ext <<_ACEOF | |
3414 | /* end confdefs.h. */ | |
3415 | $ac_declaration | |
3416 | int | |
3417 | main () | |
3418 | { | |
3419 | exit (42); | |
3420 | ; | |
3421 | return 0; | |
3422 | } | |
3423 | _ACEOF | |
3424 | rm -f conftest.$ac_objext | |
3425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3426 | (eval $ac_compile) 2>conftest.er1 | |
3427 | ac_status=$? | |
3428 | grep -v '^ *+' conftest.er1 >conftest.err | |
3429 | rm -f conftest.er1 | |
3430 | cat conftest.err >&5 | |
3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3432 | (exit $ac_status); } && | |
3433 | { ac_try='test -z "$ac_c_werror_flag" | |
3434 | || test ! -s conftest.err' | |
3435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3436 | (eval $ac_try) 2>&5 | |
3437 | ac_status=$? | |
3438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3439 | (exit $ac_status); }; } && | |
3440 | { ac_try='test -s conftest.$ac_objext' | |
3441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3442 | (eval $ac_try) 2>&5 | |
3443 | ac_status=$? | |
3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3445 | (exit $ac_status); }; }; then | |
3446 | break | |
3447 | else | |
3448 | echo "$as_me: failed program was:" >&5 | |
3449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3450 | ||
3451 | fi | |
3452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3453 | done | |
3454 | rm -f conftest* | |
3455 | if test -n "$ac_declaration"; then | |
3456 | echo '#ifdef __cplusplus' >>confdefs.h | |
3457 | echo $ac_declaration >>confdefs.h | |
3458 | echo '#endif' >>confdefs.h | |
3459 | fi | |
3460 | ||
3461 | else | |
3462 | echo "$as_me: failed program was:" >&5 | |
3463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3464 | ||
3465 | fi | |
3466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3467 | ac_ext=c | |
3468 | ac_cpp='$CPP $CPPFLAGS' | |
3469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
55ffb5ed NN |
3472 | |
3473 | ||
23f6b2f9 PB |
3474 | # We must set the default linker to the linker used by gcc for the correct |
3475 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
3476 | # set the LD default to the ld used by gcc. | |
3477 | if test -z "$LD"; then | |
3478 | if test "$GCC" = yes; then | |
3479 | case $build in | |
3480 | *-*-mingw*) | |
3481 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
3482 | *) | |
3483 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
3484 | esac | |
3485 | case $gcc_prog_ld in | |
3486 | # Accept absolute paths. | |
3487 | [\\/]* | [A-Za-z]:[\\/]*) | |
3488 | LD="$gcc_prog_ld" ;; | |
3489 | esac | |
3490 | fi | |
3491 | fi | |
3492 | ||
3493 | CXX=${CXX-"c++"} | |
3494 | CFLAGS=${CFLAGS-"-g"} | |
3495 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
3496 | fi | |
3497 | ||
23f6b2f9 PB |
3498 | |
3499 | ||
55ffb5ed | 3500 | |
6b65a26d CM |
3501 | if test -n "$ac_tool_prefix"; then |
3502 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 3503 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
6b65a26d CM |
3504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3506 | if test "${ac_cv_prog_GNATBIND+set}" = set; then | |
3507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3508 | else |
3509 | if test -n "$GNATBIND"; then | |
3510 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
3511 | else | |
6b65a26d CM |
3512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3513 | for as_dir in $PATH | |
3514 | do | |
3515 | IFS=$as_save_IFS | |
3516 | test -z "$as_dir" && as_dir=. | |
3517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3519 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" | |
3520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3521 | break 2 | |
3522 | fi | |
3523 | done | |
3524 | done | |
3525 | ||
55ffb5ed NN |
3526 | fi |
3527 | fi | |
6b65a26d | 3528 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 3529 | if test -n "$GNATBIND"; then |
6b65a26d CM |
3530 | echo "$as_me:$LINENO: result: $GNATBIND" >&5 |
3531 | echo "${ECHO_T}$GNATBIND" >&6 | |
55ffb5ed | 3532 | else |
6b65a26d CM |
3533 | echo "$as_me:$LINENO: result: no" >&5 |
3534 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
3535 | fi |
3536 | ||
6b65a26d | 3537 | fi |
55ffb5ed | 3538 | if test -z "$ac_cv_prog_GNATBIND"; then |
6b65a26d | 3539 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
3540 | # Extract the first word of "gnatbind", so it can be a program name with args. |
3541 | set dummy gnatbind; ac_word=$2 | |
6b65a26d CM |
3542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3544 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then | |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed | 3546 | else |
6b65a26d CM |
3547 | if test -n "$ac_ct_GNATBIND"; then |
3548 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 3549 | else |
6b65a26d CM |
3550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3551 | for as_dir in $PATH | |
3552 | do | |
3553 | IFS=$as_save_IFS | |
3554 | test -z "$as_dir" && as_dir=. | |
3555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3557 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" | |
3558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3559 | break 2 | |
3560 | fi | |
3561 | done | |
3562 | done | |
3563 | ||
3564 | test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no" | |
55ffb5ed NN |
3565 | fi |
3566 | fi | |
6b65a26d CM |
3567 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
3568 | if test -n "$ac_ct_GNATBIND"; then | |
3569 | echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5 | |
3570 | echo "${ECHO_T}$ac_ct_GNATBIND" >&6 | |
55ffb5ed | 3571 | else |
6b65a26d CM |
3572 | echo "$as_me:$LINENO: result: no" >&5 |
3573 | echo "${ECHO_T}no" >&6 | |
55ffb5ed NN |
3574 | fi |
3575 | ||
6b65a26d | 3576 | GNATBIND=$ac_ct_GNATBIND |
55ffb5ed | 3577 | else |
6b65a26d | 3578 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
3579 | fi |
3580 | ||
6b65a26d CM |
3581 | echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5 |
3582 | echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6 | |
3583 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then | |
3584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
55ffb5ed NN |
3585 | else |
3586 | cat >conftest.adb <<EOF | |
3587 | procedure conftest is begin null; end conftest; | |
3588 | EOF | |
3589 | acx_cv_cc_gcc_supports_ada=no | |
3590 | # There is a bug in old released versions of GCC which causes the | |
3591 | # driver to exit successfully when the appropriate language module | |
3592 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
3593 | # Therefore we must check for the error message as well as an | |
3594 | # unsuccessful exit. | |
1db673ca RO |
3595 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
3596 | # given a .adb file, but produce no object file. So we must check | |
3597 | # if an object file was really produced to guard against this. | |
55ffb5ed | 3598 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 3599 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 3600 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
3601 | fi |
3602 | rm -f conftest.* | |
3603 | fi | |
6b65a26d CM |
3604 | echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5 |
3605 | echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6 | |
55ffb5ed | 3606 | |
1db673ca | 3607 | if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
3608 | have_gnat=yes |
3609 | else | |
3610 | have_gnat=no | |
3611 | fi | |
3612 | ||
6b65a26d CM |
3613 | echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5 |
3614 | echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6 | |
3615 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then | |
3616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a76494aa PB |
3617 | else |
3618 | echo abfoo >t1 | |
3619 | echo cdfoo >t2 | |
3620 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
3621 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
3622 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
3623 | : | |
3624 | else | |
3625 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
3626 | fi | |
3627 | fi | |
a76494aa PB |
3628 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
3629 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 3630 | : |
a76494aa PB |
3631 | else |
3632 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
3633 | fi | |
3634 | fi | |
3635 | rm t1 t2 | |
3636 | ||
3637 | fi | |
6b65a26d CM |
3638 | echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5 |
3639 | echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6 | |
a76494aa PB |
3640 | do_compare="$gcc_cv_prog_cmp_skip" |
3641 | ||
3642 | ||
55ffb5ed | 3643 | |
bebf829d | 3644 | # Check for GMP and MPFR |
6de9cd9a DN |
3645 | gmplibs= |
3646 | gmpinc= | |
3647 | have_gmp=yes | |
bebf829d PB |
3648 | # Specify a location for mpfr |
3649 | # check for this first so it ends up on the link line before gmp. | |
6b65a26d | 3650 | |
bebf829d PB |
3651 | # Check whether --with-mpfr-dir or --without-mpfr-dir was given. |
3652 | if test "${with_mpfr_dir+set}" = set; then | |
3653 | withval="$with_mpfr_dir" | |
bebf829d | 3654 | |
6b65a26d | 3655 | fi; |
bebf829d PB |
3656 | |
3657 | if test "x$with_mpfr_dir" != x; then | |
68193f9b | 3658 | gmpinc="-I$with_mpfr_dir" |
bebf829d PB |
3659 | gmplibs="$with_mpfr_dir/libmpfr.a" |
3660 | else | |
3661 | gmplibs="-lmpfr" | |
3662 | fi | |
3663 | ||
6b65a26d | 3664 | |
bebf829d PB |
3665 | # Check whether --with-mpfr or --without-mpfr was given. |
3666 | if test "${with_mpfr+set}" = set; then | |
3667 | withval="$with_mpfr" | |
bebf829d | 3668 | |
6b65a26d | 3669 | fi; |
bebf829d PB |
3670 | |
3671 | if test "x$with_mpfr" != x; then | |
3672 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3673 | gmpinc="-I$with_mpfr/include" | |
3674 | fi | |
3675 | ||
6de9cd9a | 3676 | # Specify a location for gmp |
6b65a26d | 3677 | |
6de9cd9a DN |
3678 | # Check whether --with-gmp-dir or --without-gmp-dir was given. |
3679 | if test "${with_gmp_dir+set}" = set; then | |
3680 | withval="$with_gmp_dir" | |
6de9cd9a | 3681 | |
6b65a26d | 3682 | fi; |
6de9cd9a | 3683 | |
bebf829d PB |
3684 | if test "x$with_gmp_dir" != x; then |
3685 | gmpinc="$gmpinc -I$with_gmp_dir" | |
6de9cd9a | 3686 | if test -f "$with_gmp_dir/.libs/libgmp.a"; then |
bebf829d | 3687 | gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a" |
6de9cd9a | 3688 | elif test -f "$with_gmp_dir/_libs/libgmp.a"; then |
bebf829d | 3689 | gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a" |
6de9cd9a DN |
3690 | fi |
3691 | # One of the later tests will catch the error if neither library is present. | |
bebf829d PB |
3692 | else |
3693 | gmplibs="$gmplibs -lgmp" | |
6de9cd9a DN |
3694 | fi |
3695 | ||
6b65a26d | 3696 | |
6de9cd9a DN |
3697 | # Check whether --with-gmp or --without-gmp was given. |
3698 | if test "${with_gmp+set}" = set; then | |
3699 | withval="$with_gmp" | |
6de9cd9a | 3700 | |
6b65a26d | 3701 | fi; |
6de9cd9a | 3702 | |
bebf829d PB |
3703 | if test "x$with_gmp" != x; then |
3704 | gmplibs="-L$with_gmp/lib $gmplibs" | |
3705 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a DN |
3706 | fi |
3707 | ||
3708 | saved_CFLAGS="$CFLAGS" | |
3709 | CFLAGS="$CFLAGS $gmpinc" | |
3710 | # Check GMP actually works | |
6b65a26d CM |
3711 | echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5 |
3712 | echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6 | |
3713 | ||
3714 | cat >conftest.$ac_ext <<_ACEOF | |
3715 | /* confdefs.h. */ | |
3716 | _ACEOF | |
3717 | cat confdefs.h >>conftest.$ac_ext | |
3718 | cat >>conftest.$ac_ext <<_ACEOF | |
3719 | /* end confdefs.h. */ | |
6de9cd9a | 3720 | #include "gmp.h" |
6b65a26d CM |
3721 | int |
3722 | main () | |
3723 | { | |
6de9cd9a DN |
3724 | |
3725 | #if __GNU_MP_VERSION < 3 | |
3726 | choke me | |
3727 | #endif | |
3728 | ||
6b65a26d CM |
3729 | ; |
3730 | return 0; | |
3731 | } | |
3732 | _ACEOF | |
3733 | rm -f conftest.$ac_objext | |
3734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3735 | (eval $ac_compile) 2>conftest.er1 | |
3736 | ac_status=$? | |
3737 | grep -v '^ *+' conftest.er1 >conftest.err | |
3738 | rm -f conftest.er1 | |
3739 | cat conftest.err >&5 | |
3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3741 | (exit $ac_status); } && | |
3742 | { ac_try='test -z "$ac_c_werror_flag" | |
3743 | || test ! -s conftest.err' | |
3744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3745 | (eval $ac_try) 2>&5 | |
3746 | ac_status=$? | |
3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3748 | (exit $ac_status); }; } && | |
3749 | { ac_try='test -s conftest.$ac_objext' | |
3750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3751 | (eval $ac_try) 2>&5 | |
3752 | ac_status=$? | |
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3754 | (exit $ac_status); }; }; then | |
3755 | echo "$as_me:$LINENO: result: yes" >&5 | |
3756 | echo "${ECHO_T}yes" >&6 | |
3757 | else | |
3758 | echo "$as_me: failed program was:" >&5 | |
3759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3760 | ||
3761 | echo "$as_me:$LINENO: result: no" >&5 | |
3762 | echo "${ECHO_T}no" >&6; have_gmp=no | |
3763 | fi | |
3764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a DN |
3765 | |
3766 | if test x"$have_gmp" = xyes; then | |
6b65a26d CM |
3767 | echo "$as_me:$LINENO: checking for MPFR" >&5 |
3768 | echo $ECHO_N "checking for MPFR... $ECHO_C" >&6 | |
6de9cd9a DN |
3769 | |
3770 | saved_LIBS="$LIBS" | |
3771 | LIBS="$LIBS $gmplibs" | |
6b65a26d CM |
3772 | cat >conftest.$ac_ext <<_ACEOF |
3773 | /* confdefs.h. */ | |
3774 | _ACEOF | |
3775 | cat confdefs.h >>conftest.$ac_ext | |
3776 | cat >>conftest.$ac_ext <<_ACEOF | |
3777 | /* end confdefs.h. */ | |
6de9cd9a | 3778 | #include <gmp.h> |
bebf829d | 3779 | #include <mpfr.h> |
6b65a26d CM |
3780 | int |
3781 | main () | |
3782 | { | |
bebf829d | 3783 | mpfr_t n; mpfr_init(n); |
6b65a26d CM |
3784 | ; |
3785 | return 0; | |
3786 | } | |
3787 | _ACEOF | |
3788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3790 | (eval $ac_link) 2>conftest.er1 | |
3791 | ac_status=$? | |
3792 | grep -v '^ *+' conftest.er1 >conftest.err | |
3793 | rm -f conftest.er1 | |
3794 | cat conftest.err >&5 | |
3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3796 | (exit $ac_status); } && | |
3797 | { ac_try='test -z "$ac_c_werror_flag" | |
3798 | || test ! -s conftest.err' | |
3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3800 | (eval $ac_try) 2>&5 | |
3801 | ac_status=$? | |
3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3803 | (exit $ac_status); }; } && | |
3804 | { ac_try='test -s conftest$ac_exeext' | |
3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3806 | (eval $ac_try) 2>&5 | |
3807 | ac_status=$? | |
3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3809 | (exit $ac_status); }; }; then | |
3810 | echo "$as_me:$LINENO: result: yes" >&5 | |
3811 | echo "${ECHO_T}yes" >&6 | |
3812 | else | |
3813 | echo "$as_me: failed program was:" >&5 | |
3814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3815 | ||
3816 | echo "$as_me:$LINENO: result: no" >&5 | |
3817 | echo "${ECHO_T}no" >&6; have_gmp=no | |
3818 | fi | |
3819 | rm -f conftest.err conftest.$ac_objext \ | |
3820 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a DN |
3821 | LIBS="$saved_LIBS" |
3822 | CFLAGS="$saved_CFLAGS" | |
3823 | fi | |
3824 | ||
bebf829d | 3825 | # Flags needed for both GMP and/or MPFR |
6de9cd9a DN |
3826 | |
3827 | ||
3828 | ||
1e0f07d3 | 3829 | # By default, C is the only stage 1 language. |
2805b53a NN |
3830 | stage1_languages=c |
3831 | ||
3832 | ||
55ffb5ed NN |
3833 | # Figure out what language subdirectories are present. |
3834 | # Look if the user specified --enable-languages="..."; if not, use | |
3835 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
3836 | # go away some day. | |
3837 | # NB: embedded tabs in this IF block -- do not untabify | |
3838 | if test -d ${srcdir}/gcc; then | |
3839 | if test x"${enable_languages+set}" != xset; then | |
3840 | if test x"${LANGUAGES+set}" = xset; then | |
3841 | enable_languages="${LANGUAGES}" | |
3842 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
3843 | else | |
3844 | enable_languages=all | |
3845 | fi | |
3846 | else | |
3847 | if test x"${enable_languages}" = x || | |
3848 | test x"${enable_languages}" = xyes; | |
3849 | then | |
3850 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
3851 | exit 1 | |
3852 | fi | |
3853 | fi | |
3854 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
3855 | ||
7f26dfa3 FXC |
3856 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
3857 | # and make the substitution. | |
3858 | case ,${enable_languages}, in | |
3859 | *,f95,*) | |
3860 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
3861 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
3862 | ;; | |
3863 | esac | |
3864 | ||
55ffb5ed NN |
3865 | # First scan to see if an enabled language requires some other language. |
3866 | # We assume that a given config-lang.in will list all the language | |
3867 | # front ends it requires, even if some are required indirectly. | |
3868 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
3869 | case ${lang_frag} in | |
3870 | ..) ;; | |
3871 | # The odd quoting in the next line works around | |
3872 | # an apparent bug in bash 1.12 on linux. | |
3873 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
3874 | *) | |
3875 | # From the config-lang.in, get $language, $lang_requires | |
3876 | language= | |
3877 | lang_requires= | |
3878 | . ${lang_frag} | |
3879 | for other in ${lang_requires} ; do | |
3880 | case ,${enable_languages}, in | |
3881 | *,$other,*) ;; | |
3882 | *,all,*) ;; | |
3883 | *,$language,*) | |
3884 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
3885 | enable_languages="${enable_languages},${other}" | |
3886 | ;; | |
3887 | esac | |
3888 | done | |
3889 | ;; | |
3890 | esac | |
3891 | done | |
3892 | ||
3893 | new_enable_languages=c | |
3894 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` | |
9c71a529 | 3895 | potential_languages=c |
55ffb5ed NN |
3896 | |
3897 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
3898 | case ${lang_frag} in | |
3899 | ..) ;; | |
3900 | # The odd quoting in the next line works around | |
3901 | # an apparent bug in bash 1.12 on linux. | |
3902 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
3903 | *) | |
6b65a26d | 3904 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 3905 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
3906 | language= |
3907 | target_libs= | |
3908 | lang_dirs= | |
2805b53a | 3909 | boot_language= |
55ffb5ed | 3910 | build_by_default= |
9c71a529 | 3911 | need_gmp= |
55ffb5ed | 3912 | . ${lang_frag} |
9c71a529 | 3913 | potential_languages="${potential_languages},${language}" |
55ffb5ed NN |
3914 | # This is quite sensitive to the ordering of the case statement arms. |
3915 | case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in | |
3916 | *::*:*) | |
3917 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
3918 | exit 1 | |
9c71a529 | 3919 | ;; |
55ffb5ed NN |
3920 | *:ada:no:*) |
3921 | # Ada was requested with no preexisting GNAT. Disable unconditionally. | |
3922 | add_this_lang=no | |
3923 | ;; | |
3924 | *,${language},*:*:*:*) | |
3925 | # Language was explicitly selected; include it. | |
3926 | add_this_lang=yes | |
3927 | ;; | |
3928 | *,all,*:*:*:no) | |
3929 | # 'all' was selected, but this is not a default language | |
9c71a529 | 3930 | # so do not include it. |
55ffb5ed | 3931 | add_this_lang=no |
9c71a529 | 3932 | ;; |
55ffb5ed NN |
3933 | *,all,*:*:*:*) |
3934 | # 'all' was selected and this is a default language; include it. | |
3935 | add_this_lang=yes | |
3936 | ;; | |
3937 | *) | |
3938 | add_this_lang=no | |
3939 | ;; | |
3940 | esac | |
6de9cd9a | 3941 | |
ce7cbbb0 PE |
3942 | # Disable languages that need GMP if it isn't available. |
3943 | case ,${enable_languages},:${have_gmp}:${need_gmp} in | |
3944 | *,${language},*:no:yes) | |
3945 | # Specifically requested language; tell them. | |
6b65a26d CM |
3946 | { { echo "$as_me:$LINENO: error: GMP with MPFR support is required to build $language" >&5 |
3947 | echo "$as_me: error: GMP with MPFR support is required to build $language" >&2;} | |
3948 | { (exit 1); exit 1; }; } | |
ce7cbbb0 PE |
3949 | ;; |
3950 | *:no:yes) | |
3951 | # Silently disable. | |
3952 | add_this_lang=no | |
3953 | ;; | |
3954 | esac | |
4fab7234 HPN |
3955 | |
3956 | # Disable a language that is unsupported by the target. | |
3957 | case " $unsupported_languages " in | |
3958 | *" $language "*) | |
3959 | add_this_lang=no | |
3960 | ;; | |
3961 | esac | |
3962 | ||
6de9cd9a | 3963 | case $add_this_lang in |
55ffb5ed NN |
3964 | no) |
3965 | # Remove language-dependent dirs. | |
2805b53a NN |
3966 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" |
3967 | ;; | |
55ffb5ed NN |
3968 | *) |
3969 | new_enable_languages="$new_enable_languages,$language" | |
2805b53a NN |
3970 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
3971 | case ${boot_language} in | |
3972 | yes) | |
340de83f NN |
3973 | # Add to (comma-separated) list of stage 1 languages. |
3974 | stage1_languages="${stage1_languages},${language}" | |
2805b53a NN |
3975 | ;; |
3976 | esac | |
3977 | ;; | |
55ffb5ed NN |
3978 | esac |
3979 | ;; | |
3980 | esac | |
3981 | done | |
3982 | ||
79b4b7d2 | 3983 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
55ffb5ed | 3984 | if test "x$missing_languages" != x; then |
6b65a26d CM |
3985 | { { echo "$as_me:$LINENO: error: |
3986 | The following requested languages could not be built: ${missing_languages} | |
3987 | Recognised languages are: ${potential_languages}" >&5 | |
3988 | echo "$as_me: error: | |
0cf085e4 | 3989 | The following requested languages could not be built: ${missing_languages} |
6b65a26d CM |
3990 | Recognised languages are: ${potential_languages}" >&2;} |
3991 | { (exit 1); exit 1; }; } | |
55ffb5ed NN |
3992 | fi |
3993 | ||
3994 | if test "x$new_enable_languages" != "x$enable_languages"; then | |
3995 | echo The following languages will be built: ${new_enable_languages} | |
3996 | fi | |
3997 | enable_languages="$new_enable_languages" | |
6bbec498 | 3998 | ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ ` |
55ffb5ed NN |
3999 | fi |
4000 | ||
ee6a22df L |
4001 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
4002 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
4003 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
4004 | ||
4005 | notsupp="" | |
4006 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 4007 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
4008 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
4009 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
4010 | if test -r $srcdir/$dirname/configure ; then | |
4011 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4012 | true | |
4013 | else | |
4014 | notsupp="$notsupp $dir" | |
4015 | fi | |
4016 | fi | |
4017 | fi | |
ee6a22df L |
4018 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
4019 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
4020 | if test -r $srcdir/$dirname/configure ; then | |
4021 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4022 | true | |
4023 | else | |
4024 | notsupp="$notsupp $dir" | |
4025 | fi | |
4026 | fi | |
4027 | fi | |
55ffb5ed NN |
4028 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
4029 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
4030 | if test -r $srcdir/$dirname/configure ; then | |
4031 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4032 | true | |
4033 | else | |
4034 | notsupp="$notsupp $dir" | |
4035 | fi | |
4036 | fi | |
4037 | fi | |
4038 | done | |
4039 | ||
4040 | # Sometimes the tools are distributed with libiberty but with no other | |
4041 | # libraries. In that case, we don't want to build target-libiberty. | |
4042 | if test -n "${target_configdirs}" ; then | |
4043 | others= | |
4044 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
4045 | if test "$i" != "libiberty" ; then | |
4046 | if test -r $srcdir/$i/configure ; then | |
4047 | others=yes; | |
4048 | break; | |
4049 | fi | |
4050 | fi | |
4051 | done | |
4052 | if test -z "${others}" ; then | |
4053 | target_configdirs= | |
4054 | fi | |
4055 | fi | |
4056 | ||
4057 | # Quietly strip out all directories which aren't configurable in this tree. | |
4058 | # This relies on all configurable subdirectories being autoconfiscated, which | |
4059 | # is now the case. | |
23f6b2f9 PB |
4060 | build_configdirs_all="$build_configdirs" |
4061 | build_configdirs= | |
4062 | for i in ${build_configdirs_all} ; do | |
6b65a26d | 4063 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
4064 | if test -f ${srcdir}/$j/configure ; then |
4065 | build_configdirs="${build_configdirs} $i" | |
4066 | fi | |
4067 | done | |
4068 | ||
55ffb5ed NN |
4069 | configdirs_all="$configdirs" |
4070 | configdirs= | |
4071 | for i in ${configdirs_all} ; do | |
4072 | if test -f ${srcdir}/$i/configure ; then | |
4073 | configdirs="${configdirs} $i" | |
4074 | fi | |
4075 | done | |
23f6b2f9 | 4076 | |
55ffb5ed NN |
4077 | target_configdirs_all="$target_configdirs" |
4078 | target_configdirs= | |
4079 | for i in ${target_configdirs_all} ; do | |
6b65a26d | 4080 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
4081 | if test -f ${srcdir}/$j/configure ; then |
4082 | target_configdirs="${target_configdirs} $i" | |
4083 | fi | |
4084 | done | |
4085 | ||
4086 | # Produce a warning message for the subdirs we can't configure. | |
4087 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
4088 | # FSF releases, it's important to let people know when their machine isn't | |
4089 | # supported by the one or two programs in a package. | |
4090 | ||
4091 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
4092 | # If $appdirs is non-empty, at least one of those directories must still | |
4093 | # be configured, or we error out. (E.g., if the gas release supports a | |
4094 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
4095 | # pretend that all is well.) | |
4096 | if test -n "$appdirs" ; then | |
4097 | for dir in $appdirs ; do | |
4098 | if test -r $dir/Makefile.in ; then | |
4099 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
4100 | appdirs="" | |
4101 | break | |
4102 | fi | |
23f6b2f9 | 4103 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
4104 | appdirs="" |
4105 | break | |
4106 | fi | |
4107 | fi | |
4108 | done | |
4109 | if test -n "$appdirs" ; then | |
4110 | echo "*** This configuration is not supported by this package." 1>&2 | |
4111 | exit 1 | |
4112 | fi | |
4113 | fi | |
4114 | # Okay, some application will build, or we don't care to check. Still | |
4115 | # notify of subdirs not getting built. | |
4116 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
4117 | echo " ${notsupp}" 1>&2 | |
4118 | echo " (Any other directories should still work fine.)" 1>&2 | |
4119 | fi | |
4120 | ||
4121 | case "$host" in | |
4122 | *msdosdjgpp*) | |
4123 | enable_gdbtk=no ;; | |
4124 | esac | |
4125 | ||
4126 | copy_dirs= | |
4127 | ||
6b65a26d | 4128 | |
526635cb MM |
4129 | # Check whether --with-build-sysroot or --without-build-sysroot was given. |
4130 | if test "${with_build_sysroot+set}" = set; then | |
4131 | withval="$with_build_sysroot" | |
4132 | if test x"$withval" != x ; then | |
4133 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" | |
4134 | fi | |
4135 | else | |
4136 | SYSROOT_CFLAGS_FOR_TARGET= | |
6b65a26d | 4137 | fi; |
526635cb MM |
4138 | |
4139 | ||
55ffb5ed NN |
4140 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
4141 | # the named directory are copied to $(tooldir)/sys-include. | |
4142 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
4143 | if test x${is_cross_compiler} = xno ; then | |
4144 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
4145 | exit 1 | |
4146 | fi | |
4147 | if test x"${with_headers}" != xyes ; then | |
4148 | case "${exec_prefixoption}" in | |
4149 | "") x=${prefix} ;; | |
4150 | *) x=${exec_prefix} ;; | |
4151 | esac | |
4152 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" | |
4153 | fi | |
4154 | fi | |
4155 | ||
4156 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
4157 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
4158 | # are permitted. | |
4159 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
4160 | if test x${is_cross_compiler} = xno ; then | |
4161 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
4162 | exit 1 | |
4163 | fi | |
4164 | if test x"${with_libs}" != xyes ; then | |
4165 | # Copy the libraries in reverse order, so that files in the first named | |
4166 | # library override files in subsequent libraries. | |
4167 | case "${exec_prefixoption}" in | |
4168 | "") x=${prefix} ;; | |
4169 | *) x=${exec_prefix} ;; | |
4170 | esac | |
4171 | for l in ${with_libs}; do | |
4172 | copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" | |
4173 | done | |
4174 | fi | |
4175 | fi | |
4176 | ||
4177 | # Handle ${copy_dirs} | |
4178 | set fnord ${copy_dirs} | |
4179 | shift | |
4180 | while test $# != 0 ; do | |
4181 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
4182 | : | |
4183 | else | |
4184 | echo Copying $1 to $2 | |
4185 | ||
4186 | # Use the install script to create the directory and all required | |
4187 | # parent directories. | |
4188 | if test -d $2 ; then | |
4189 | : | |
4190 | else | |
4191 | echo >config.temp | |
4192 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
4193 | fi | |
4194 | ||
4195 | # Copy the directory, assuming we have tar. | |
4196 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
4197 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
4198 | ||
4199 | # It is the responsibility of the user to correctly adjust all | |
4200 | # symlinks. If somebody can figure out how to handle them correctly | |
4201 | # here, feel free to add the code. | |
4202 | ||
4203 | echo $1 > $2/COPIED | |
4204 | fi | |
4205 | shift; shift | |
4206 | done | |
4207 | ||
671aa708 NN |
4208 | extra_arflags_for_target= |
4209 | extra_nmflags_for_target= | |
4210 | extra_ranlibflags_for_target= | |
4211 | target_makefile_frag=/dev/null | |
4212 | case "${target}" in | |
61fec9ff | 4213 | *-*-netware*) |
671aa708 NN |
4214 | target_makefile_frag="config/mt-netware" |
4215 | ;; | |
98a5bb3b RM |
4216 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
4217 | target_makefile_frag="config/mt-gnu" | |
671aa708 NN |
4218 | ;; |
4219 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
6b65a26d | 4220 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
4221 | # commands to handle both 32-bit and 64-bit objects. These flags are |
4222 | # harmless if we're using GNU nm or ar. | |
4223 | extra_arflags_for_target=" -X32_64" | |
4224 | extra_nmflags_for_target=" -B -X32_64" | |
4225 | ;; | |
4226 | *-*-darwin*) | |
4227 | # ranlib from Darwin requires the -c flag to look at common symbols. | |
4228 | extra_ranlibflags_for_target=" -c" | |
4229 | ;; | |
4230 | mips*-*-pe | sh*-*-pe | *arm-wince-pe) | |
4231 | target_makefile_frag="config/mt-wince" | |
4232 | ;; | |
4233 | esac | |
4234 | ||
4235 | alphaieee_frag=/dev/null | |
4236 | case $target in | |
4237 | alpha*-*-*) | |
4238 | # This just makes sure to use the -mieee option to build target libs. | |
4239 | # This should probably be set individually by each library. | |
4240 | alphaieee_frag="config/mt-alphaieee" | |
4241 | ;; | |
4242 | esac | |
4243 | ||
4244 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
4245 | # the target libraries, similarly if it is not specified, use -Os | |
4246 | # on selected platforms. | |
4247 | ospace_frag=/dev/null | |
4248 | case "${enable_target_optspace}:${target}" in | |
4249 | yes:*) | |
4250 | ospace_frag="config/mt-ospace" | |
4251 | ;; | |
4252 | :d30v-*) | |
4253 | ospace_frag="config/mt-d30v" | |
4254 | ;; | |
4255 | :m32r-* | :d10v-* | :fr30-*) | |
4256 | ospace_frag="config/mt-ospace" | |
4257 | ;; | |
4258 | no:* | :*) | |
4259 | ;; | |
4260 | *) | |
4261 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
4262 | ;; | |
4263 | esac | |
4264 | ||
4265 | # Set with_gnu_as and with_gnu_ld as appropriate. | |
4266 | # | |
4267 | # This is done by determining whether or not the appropriate directory | |
4268 | # is available, and by checking whether or not specific configurations | |
4269 | # have requested that this magic not happen. | |
6b65a26d CM |
4270 | # |
4271 | # The command line options always override the explicit settings in | |
671aa708 NN |
4272 | # configure.in, and the settings in configure.in override this magic. |
4273 | # | |
6b65a26d | 4274 | # If the default for a toolchain is to use GNU as and ld, and you don't |
671aa708 NN |
4275 | # want to do that, then you should use the --without-gnu-as and |
4276 | # --without-gnu-ld options for the configure script. | |
4277 | ||
4278 | if test x${use_gnu_as} = x && | |
4279 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
4280 | with_gnu_as=yes | |
4281 | extra_host_args="$extra_host_args --with-gnu-as" | |
4282 | fi | |
4283 | ||
4284 | if test x${use_gnu_ld} = x && | |
4285 | echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then | |
4286 | with_gnu_ld=yes | |
4287 | extra_host_args="$extra_host_args --with-gnu-ld" | |
4288 | fi | |
4289 | ||
4290 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure | |
4291 | # can detect this case. | |
4292 | ||
4293 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
4294 | with_newlib=yes | |
4295 | extra_host_args="$extra_host_args --with-newlib" | |
4296 | fi | |
4297 | ||
671aa708 NN |
4298 | # Default to using --with-stabs for certain targets. |
4299 | if test x${with_stabs} = x ; then | |
4300 | case "${target}" in | |
89a95129 | 4301 | mips*-*-irix[56]*) |
671aa708 NN |
4302 | ;; |
4303 | mips*-*-* | alpha*-*-osf*) | |
4304 | with_stabs=yes; | |
4305 | extra_host_args="${extra_host_args} --with-stabs" | |
4306 | ;; | |
4307 | esac | |
4308 | fi | |
4309 | ||
4310 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
4311 | # them automatically. | |
4312 | case "${host}" in | |
6b65a26d | 4313 | hppa*64*-*-hpux11*) |
671aa708 NN |
4314 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" |
4315 | ;; | |
4316 | esac | |
4317 | ||
671aa708 NN |
4318 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
4319 | # using) don't handle "\$" correctly, so don't use it here. | |
df445104 | 4320 | tooldir='${exec_prefix}'/${target_alias} |
671aa708 NN |
4321 | build_tooldir=${tooldir} |
4322 | ||
23f6b2f9 PB |
4323 | # Generate default definitions for YACC, M4, LEX and other programs that run |
4324 | # on the build machine. These are used if the Makefile can't locate these | |
4325 | # programs in objdir. | |
1e0f07d3 | 4326 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
23f6b2f9 PB |
4327 | for ac_prog in bison |
4328 | do | |
6b65a26d | 4329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
23f6b2f9 | 4330 | set dummy $ac_prog; ac_word=$2 |
6b65a26d CM |
4331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4333 | if test "${ac_cv_prog_CONFIGURED_BISON+set}" = set; then | |
4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23f6b2f9 PB |
4335 | else |
4336 | if test -n "$CONFIGURED_BISON"; then | |
4337 | ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test. | |
4338 | else | |
6b65a26d CM |
4339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4340 | for as_dir in $PATH | |
4341 | do | |
4342 | IFS=$as_save_IFS | |
4343 | test -z "$as_dir" && as_dir=. | |
4344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4346 | ac_cv_prog_CONFIGURED_BISON="$ac_prog" | |
4347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4348 | break 2 | |
4349 | fi | |
4350 | done | |
4351 | done | |
4352 | ||
23f6b2f9 PB |
4353 | fi |
4354 | fi | |
6b65a26d | 4355 | CONFIGURED_BISON=$ac_cv_prog_CONFIGURED_BISON |
23f6b2f9 | 4356 | if test -n "$CONFIGURED_BISON"; then |
6b65a26d CM |
4357 | echo "$as_me:$LINENO: result: $CONFIGURED_BISON" >&5 |
4358 | echo "${ECHO_T}$CONFIGURED_BISON" >&6 | |
23f6b2f9 | 4359 | else |
6b65a26d CM |
4360 | echo "$as_me:$LINENO: result: no" >&5 |
4361 | echo "${ECHO_T}no" >&6 | |
23f6b2f9 PB |
4362 | fi |
4363 | ||
6b65a26d | 4364 | test -n "$CONFIGURED_BISON" && break |
23f6b2f9 PB |
4365 | done |
4366 | test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison" | |
4367 | ||
1e0f07d3 | 4368 | for ac_prog in 'bison -y' byacc yacc |
671aa708 | 4369 | do |
6b65a26d | 4370 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1e0f07d3 | 4371 | set dummy $ac_prog; ac_word=$2 |
6b65a26d CM |
4372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4374 | if test "${ac_cv_prog_CONFIGURED_YACC+set}" = set; then | |
4375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1e0f07d3 | 4376 | else |
23f6b2f9 PB |
4377 | if test -n "$CONFIGURED_YACC"; then |
4378 | ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test. | |
1e0f07d3 | 4379 | else |
6b65a26d CM |
4380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4381 | for as_dir in $PATH | |
4382 | do | |
4383 | IFS=$as_save_IFS | |
4384 | test -z "$as_dir" && as_dir=. | |
4385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4387 | ac_cv_prog_CONFIGURED_YACC="$ac_prog" | |
4388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4389 | break 2 | |
4390 | fi | |
4391 | done | |
4392 | done | |
4393 | ||
1e0f07d3 PB |
4394 | fi |
4395 | fi | |
6b65a26d | 4396 | CONFIGURED_YACC=$ac_cv_prog_CONFIGURED_YACC |
23f6b2f9 | 4397 | if test -n "$CONFIGURED_YACC"; then |
6b65a26d CM |
4398 | echo "$as_me:$LINENO: result: $CONFIGURED_YACC" >&5 |
4399 | echo "${ECHO_T}$CONFIGURED_YACC" >&6 | |
1e0f07d3 | 4400 | else |
6b65a26d CM |
4401 | echo "$as_me:$LINENO: result: no" >&5 |
4402 | echo "${ECHO_T}no" >&6 | |
1e0f07d3 | 4403 | fi |
671aa708 | 4404 | |
6b65a26d | 4405 | test -n "$CONFIGURED_YACC" && break |
671aa708 | 4406 | done |
23f6b2f9 | 4407 | test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y" |
671aa708 | 4408 | |
1e0f07d3 | 4409 | for ac_prog in gm4 gnum4 m4 |
671aa708 | 4410 | do |
6b65a26d | 4411 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1e0f07d3 | 4412 | set dummy $ac_prog; ac_word=$2 |
6b65a26d CM |
4413 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4415 | if test "${ac_cv_prog_CONFIGURED_M4+set}" = set; then | |
4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23f6b2f9 PB |
4417 | else |
4418 | if test -n "$CONFIGURED_M4"; then | |
4419 | ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test. | |
4420 | else | |
6b65a26d CM |
4421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4422 | for as_dir in $PATH | |
4423 | do | |
4424 | IFS=$as_save_IFS | |
4425 | test -z "$as_dir" && as_dir=. | |
4426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4427 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4428 | ac_cv_prog_CONFIGURED_M4="$ac_prog" | |
4429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4430 | break 2 | |
4431 | fi | |
4432 | done | |
4433 | done | |
4434 | ||
23f6b2f9 PB |
4435 | fi |
4436 | fi | |
6b65a26d | 4437 | CONFIGURED_M4=$ac_cv_prog_CONFIGURED_M4 |
23f6b2f9 | 4438 | if test -n "$CONFIGURED_M4"; then |
6b65a26d CM |
4439 | echo "$as_me:$LINENO: result: $CONFIGURED_M4" >&5 |
4440 | echo "${ECHO_T}$CONFIGURED_M4" >&6 | |
23f6b2f9 | 4441 | else |
6b65a26d CM |
4442 | echo "$as_me:$LINENO: result: no" >&5 |
4443 | echo "${ECHO_T}no" >&6 | |
23f6b2f9 PB |
4444 | fi |
4445 | ||
6b65a26d | 4446 | test -n "$CONFIGURED_M4" && break |
23f6b2f9 PB |
4447 | done |
4448 | test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4" | |
4449 | ||
4450 | for ac_prog in flex | |
4451 | do | |
6b65a26d | 4452 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
23f6b2f9 | 4453 | set dummy $ac_prog; ac_word=$2 |
6b65a26d CM |
4454 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4456 | if test "${ac_cv_prog_CONFIGURED_FLEX+set}" = set; then | |
4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1e0f07d3 | 4458 | else |
23f6b2f9 PB |
4459 | if test -n "$CONFIGURED_FLEX"; then |
4460 | ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test. | |
1e0f07d3 | 4461 | else |
6b65a26d CM |
4462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4463 | for as_dir in $PATH | |
4464 | do | |
4465 | IFS=$as_save_IFS | |
4466 | test -z "$as_dir" && as_dir=. | |
4467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4469 | ac_cv_prog_CONFIGURED_FLEX="$ac_prog" | |
4470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4471 | break 2 | |
4472 | fi | |
4473 | done | |
4474 | done | |
4475 | ||
1e0f07d3 PB |
4476 | fi |
4477 | fi | |
6b65a26d | 4478 | CONFIGURED_FLEX=$ac_cv_prog_CONFIGURED_FLEX |
23f6b2f9 | 4479 | if test -n "$CONFIGURED_FLEX"; then |
6b65a26d CM |
4480 | echo "$as_me:$LINENO: result: $CONFIGURED_FLEX" >&5 |
4481 | echo "${ECHO_T}$CONFIGURED_FLEX" >&6 | |
1e0f07d3 | 4482 | else |
6b65a26d CM |
4483 | echo "$as_me:$LINENO: result: no" >&5 |
4484 | echo "${ECHO_T}no" >&6 | |
1e0f07d3 | 4485 | fi |
671aa708 | 4486 | |
6b65a26d | 4487 | test -n "$CONFIGURED_FLEX" && break |
671aa708 | 4488 | done |
23f6b2f9 | 4489 | test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex" |
671aa708 | 4490 | |
1e0f07d3 | 4491 | for ac_prog in flex lex |
671aa708 | 4492 | do |
6b65a26d | 4493 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1e0f07d3 | 4494 | set dummy $ac_prog; ac_word=$2 |
6b65a26d CM |
4495 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4497 | if test "${ac_cv_prog_CONFIGURED_LEX+set}" = set; then | |
4498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1e0f07d3 | 4499 | else |
23f6b2f9 PB |
4500 | if test -n "$CONFIGURED_LEX"; then |
4501 | ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test. | |
1e0f07d3 | 4502 | else |
6b65a26d CM |
4503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4504 | for as_dir in $PATH | |
4505 | do | |
4506 | IFS=$as_save_IFS | |
4507 | test -z "$as_dir" && as_dir=. | |
4508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4510 | ac_cv_prog_CONFIGURED_LEX="$ac_prog" | |
4511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4512 | break 2 | |
4513 | fi | |
4514 | done | |
4515 | done | |
4516 | ||
1e0f07d3 PB |
4517 | fi |
4518 | fi | |
6b65a26d | 4519 | CONFIGURED_LEX=$ac_cv_prog_CONFIGURED_LEX |
23f6b2f9 | 4520 | if test -n "$CONFIGURED_LEX"; then |
6b65a26d CM |
4521 | echo "$as_me:$LINENO: result: $CONFIGURED_LEX" >&5 |
4522 | echo "${ECHO_T}$CONFIGURED_LEX" >&6 | |
1e0f07d3 | 4523 | else |
6b65a26d CM |
4524 | echo "$as_me:$LINENO: result: no" >&5 |
4525 | echo "${ECHO_T}no" >&6 | |
1e0f07d3 | 4526 | fi |
671aa708 | 4527 | |
6b65a26d | 4528 | test -n "$CONFIGURED_LEX" && break |
671aa708 | 4529 | done |
23f6b2f9 PB |
4530 | test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex" |
4531 | ||
4532 | for ac_prog in makeinfo | |
4533 | do | |
6b65a26d | 4534 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
23f6b2f9 | 4535 | set dummy $ac_prog; ac_word=$2 |
6b65a26d CM |
4536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4538 | if test "${ac_cv_prog_CONFIGURED_MAKEINFO+set}" = set; then | |
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23f6b2f9 PB |
4540 | else |
4541 | if test -n "$CONFIGURED_MAKEINFO"; then | |
4542 | ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test. | |
4543 | else | |
6b65a26d CM |
4544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4545 | for as_dir in $PATH | |
4546 | do | |
4547 | IFS=$as_save_IFS | |
4548 | test -z "$as_dir" && as_dir=. | |
4549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4551 | ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog" | |
4552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4553 | break 2 | |
4554 | fi | |
4555 | done | |
4556 | done | |
4557 | ||
23f6b2f9 PB |
4558 | fi |
4559 | fi | |
6b65a26d | 4560 | CONFIGURED_MAKEINFO=$ac_cv_prog_CONFIGURED_MAKEINFO |
23f6b2f9 | 4561 | if test -n "$CONFIGURED_MAKEINFO"; then |
6b65a26d CM |
4562 | echo "$as_me:$LINENO: result: $CONFIGURED_MAKEINFO" >&5 |
4563 | echo "${ECHO_T}$CONFIGURED_MAKEINFO" >&6 | |
23f6b2f9 | 4564 | else |
6b65a26d CM |
4565 | echo "$as_me:$LINENO: result: no" >&5 |
4566 | echo "${ECHO_T}no" >&6 | |
23f6b2f9 PB |
4567 | fi |
4568 | ||
6b65a26d | 4569 | test -n "$CONFIGURED_MAKEINFO" && break |
23f6b2f9 PB |
4570 | done |
4571 | test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo" | |
1e0f07d3 | 4572 | |
671aa708 | 4573 | |
671aa708 NN |
4574 | # Create a .gdbinit file which runs the one in srcdir |
4575 | # and tells GDB to look there for source files. | |
4576 | ||
4577 | if test -r ${srcdir}/.gdbinit ; then | |
4578 | case ${srcdir} in | |
4579 | .) ;; | |
4580 | *) cat > ./.gdbinit <<EOF | |
4581 | # ${NO_EDIT} | |
4582 | dir ${srcdir} | |
4583 | dir . | |
4584 | source ${srcdir}/.gdbinit | |
4585 | EOF | |
4586 | ;; | |
4587 | esac | |
4588 | fi | |
4589 | ||
671aa708 NN |
4590 | # Make sure that the compiler is able to generate an executable. If it |
4591 | # can't, we are probably in trouble. We don't care whether we can run the | |
4592 | # executable--we might be using a cross compiler--we only care whether it | |
4593 | # can be created. At this point the main configure script has set CC. | |
4594 | we_are_ok=no | |
4595 | echo "int main () { return 0; }" > conftest.c | |
4596 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
4597 | if test $? = 0 ; then | |
4598 | if test -s conftest || test -s conftest.exe ; then | |
4599 | we_are_ok=yes | |
4600 | fi | |
6b65a26d | 4601 | fi |
671aa708 NN |
4602 | case $we_are_ok in |
4603 | no) | |
4604 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
4605 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
4606 | rm -f conftest* | |
4607 | exit 1 | |
4608 | ;; | |
4609 | esac | |
4610 | rm -f conftest* | |
4611 | ||
4612 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
4613 | case "${host}" in | |
4614 | sparc-sun-solaris2*) | |
4615 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
4616 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
4617 | could_use= | |
4618 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
4619 | if test -d /opt/cygnus/bin ; then | |
4620 | if test "$could_use" = "" ; then | |
4621 | could_use="/opt/cygnus/bin" | |
4622 | else | |
4623 | could_use="$could_use or /opt/cygnus/bin" | |
4624 | fi | |
4625 | fi | |
4626 | if test "$could_use" = "" ; then | |
4627 | echo "Warning: compilation may fail because you're using" | |
4628 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
4629 | echo "variable and rerun configure." | |
4630 | else | |
4631 | echo "Warning: compilation may fail because you're using" | |
4632 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
4633 | echo "$could_use. You should change your" | |
4634 | echo "PATH or CC variable and rerun configure." | |
4635 | fi | |
4636 | fi | |
4637 | ;; | |
4638 | esac | |
4639 | ||
671aa708 NN |
4640 | case "${host}" in |
4641 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
256f7136 | 4642 | *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
671aa708 NN |
4643 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
4644 | esac | |
4645 | ||
4646 | # Record target_configdirs and the configure arguments for target and | |
4647 | # build configuration in Makefile. | |
4648 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 4649 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
671aa708 | 4650 | |
671aa708 NN |
4651 | # Determine whether gdb needs tk/tcl or not. |
4652 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
4653 | # and in that case we want gdb to be built without tk. Ugh! | |
4654 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
4655 | # so we should be able to put the 'maybe's in unconditionally and | |
4656 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
4657 | # 100% sure that that's safe though. | |
e914a571 | 4658 | |
b4f96efe | 4659 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
4660 | case "$enable_gdbtk" in |
4661 | no) | |
4662 | GDB_TK="" ;; | |
e914a571 AC |
4663 | yes) |
4664 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 4665 | *) |
e914a571 AC |
4666 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
4667 | # distro. Eventually someone will fix this and move Insight, nee | |
4668 | # gdbtk to a separate directory. | |
4669 | if test -d ${srcdir}/gdb/gdbtk ; then | |
4670 | GDB_TK="${gdb_tk}" | |
4671 | else | |
4672 | GDB_TK="" | |
4673 | fi | |
4674 | ;; | |
671aa708 NN |
4675 | esac |
4676 | ||
60975492 | 4677 | # Strip out unwanted targets. |
8b87bb96 NN |
4678 | |
4679 | # While at that, we remove Makefiles if we were started for recursive | |
4680 | # configuration, so that the top-level Makefile reconfigures them, | |
4681 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 4682 | |
60975492 PB |
4683 | # Loop over modules. $extrasub must be used with care, limiting as |
4684 | # much as possible the usage of range addresses. That's because autoconf | |
4685 | # splits the sed script to overcome limits in the number of commands, | |
4686 | # and relying on carefully-timed sed passes may turn out to be very hard | |
4687 | # to maintain later. In this particular case, you just have to be careful | |
4688 | # not to nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 4689 | |
f516a7da PB |
4690 | # Check whether --enable-bootstrap or --disable-bootstrap was given. |
4691 | if test "${enable_bootstrap+set}" = set; then | |
4692 | enableval="$enable_bootstrap" | |
6b65a26d | 4693 | |
f516a7da | 4694 | else |
ce521a9c | 4695 | enable_bootstrap=default |
6b65a26d | 4696 | fi; |
f516a7da | 4697 | |
ce521a9c PB |
4698 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
4699 | case "$configdirs" in | |
4700 | *gcc*) have_compiler=yes ;; | |
4701 | *) have_compiler=no ;; | |
4702 | esac | |
4703 | ||
4704 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
4705 | *:*:*:no) ;; | |
4706 | ||
4707 | # Default behavior. (We'll) enable bootstrap if we have a compiler | |
4708 | # and we are in a native configuration. | |
4709 | yes:$build:$build:default) | |
4710 | # This will become 'yes' | |
4711 | enable_bootstrap=no ;; | |
4712 | ||
4713 | *:*:*:default) | |
4714 | enable_bootstrap=no ;; | |
4715 | ||
4716 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
4717 | yes:$build:$build:yes | yes:$build:$build:lean) | |
4718 | ;; | |
4719 | ||
4720 | # Other configurations, but we have a compiler. Assume the user knows | |
4721 | # what he's doing. | |
4722 | yes:*:*:yes | yes:*:*:lean) | |
6b65a26d CM |
4723 | { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5 |
4724 | echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
ce521a9c PB |
4725 | ;; |
4726 | ||
4727 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
4728 | no:*:*:yes | no:*:*:lean) | |
6b65a26d CM |
4729 | { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5 |
4730 | echo "$as_me: error: cannot bootstrap without a compiler" >&2;} | |
4731 | { (exit 1); exit 1; }; } ;; | |
ce521a9c PB |
4732 | |
4733 | # Fail if wrong command line | |
4734 | *) | |
6b65a26d CM |
4735 | { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5 |
4736 | echo "$as_me: error: invalid option for --enable-bootstrap" >&2;} | |
4737 | { (exit 1); exit 1; }; } | |
ce521a9c PB |
4738 | ;; |
4739 | esac | |
4740 | ||
4741 | # Adjust the toplevel makefile according to whether bootstrap was selected. | |
f516a7da PB |
4742 | case "$enable_bootstrap" in |
4743 | yes) | |
ce521a9c PB |
4744 | bootstrap_lean='#' |
4745 | default_target=bootstrap | |
4746 | bootstrap_suffix=bootstrap ;; | |
4747 | lean) | |
4748 | bootstrap_lean='' | |
c2f7605f | 4749 | default_target=bootstrap |
5607edfd | 4750 | bootstrap_suffix=bootstrap ;; |
f516a7da PB |
4751 | no) |
4752 | default_target=all | |
5607edfd | 4753 | bootstrap_suffix=no-bootstrap ;; |
f516a7da PB |
4754 | esac |
4755 | ||
4756 | ||
ce521a9c | 4757 | |
23f6b2f9 | 4758 | for module in ${build_configdirs} ; do |
5607edfd PB |
4759 | if test -z "${no_recursion}" \ |
4760 | && test -f ${build_subdir}/${module}/Makefile; then | |
4761 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
4762 | rm -f ${build_subdir}/${module}/Makefile | |
4763 | fi | |
4764 | extrasub="$extrasub | |
4765 | /^@if build-$module\$/d | |
4766 | /^@endif build-$module\$/d | |
4767 | /^@if build-$module-$bootstrap_suffix\$/d | |
4768 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
4769 | done | |
4770 | for module in ${configdirs} ; do | |
4771 | if test -z "${no_recursion}" \ | |
4772 | && test -f ${module}/Makefile; then | |
4773 | echo 1>&2 "*** removing ${module}/Makefile to force reconfigure" | |
4774 | rm -f ${module}/Makefile | |
4775 | fi | |
4776 | extrasub="$extrasub | |
4777 | /^@if $module\$/d | |
4778 | /^@endif $module\$/d | |
4779 | /^@if $module-$bootstrap_suffix\$/d | |
4780 | /^@endif $module-$bootstrap_suffix\$/d" | |
4781 | done | |
4782 | for module in ${target_configdirs} ; do | |
4783 | if test -z "${no_recursion}" \ | |
4784 | && test -f ${target_subdir}/${module}/Makefile; then | |
4785 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
4786 | rm -f ${target_subdir}/${module}/Makefile | |
4787 | fi | |
4788 | extrasub="$extrasub | |
4789 | /^@if target-$module\$/d | |
4790 | /^@endif target-$module\$/d | |
4791 | /^@if target-$module-$bootstrap_suffix\$/d | |
4792 | /^@endif target-$module-$bootstrap_suffix\$/d" | |
4793 | done | |
4794 | ||
60975492 PB |
4795 | extrasub="$extrasub |
4796 | /^@if /,/^@endif /d" | |
671aa708 NN |
4797 | |
4798 | # Create the serialization dependencies. This uses a temporary file. | |
4799 | ||
ade82b16 AO |
4800 | # Check whether --enable-serial-configure or --disable-serial-configure was given. |
4801 | if test "${enable_serial_configure+set}" = set; then | |
4802 | enableval="$enable_serial_configure" | |
ade82b16 | 4803 | |
6b65a26d | 4804 | fi; |
ade82b16 | 4805 | |
bf1d3e81 NN |
4806 | case ${enable_serial_configure} in |
4807 | yes) | |
4808 | enable_serial_build_configure=yes | |
4809 | enable_serial_host_configure=yes | |
4810 | enable_serial_target_configure=yes | |
4811 | ;; | |
4812 | esac | |
4813 | ||
671aa708 NN |
4814 | # These force 'configure's to be done one at a time, to avoid problems |
4815 | # with contention over a shared config.cache. | |
4816 | rm -f serdep.tmp | |
ade82b16 | 4817 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 4818 | olditem= |
bf1d3e81 | 4819 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
4820 | for item in ${build_configdirs} ; do |
4821 | case ${olditem} in | |
4822 | "") ;; | |
ade82b16 | 4823 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
4824 | esac |
4825 | olditem=${item} | |
4826 | done | |
4827 | olditem= | |
bf1d3e81 | 4828 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
4829 | for item in ${configdirs} ; do |
4830 | case ${olditem} in | |
4831 | "") ;; | |
ade82b16 | 4832 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
4833 | esac |
4834 | olditem=${item} | |
4835 | done | |
4836 | olditem= | |
bf1d3e81 | 4837 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
4838 | for item in ${target_configdirs} ; do |
4839 | case ${olditem} in | |
4840 | "") ;; | |
ade82b16 | 4841 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
4842 | esac |
4843 | olditem=${item} | |
4844 | done | |
4845 | serialization_dependencies=serdep.tmp | |
4846 | ||
4847 | ||
ade82b16 AO |
4848 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
4849 | # target and nonopt. These are the ones we might not want to pass | |
43bb47c2 DJ |
4850 | # down to subconfigures. Also strip program-prefix, program-suffix, |
4851 | # and program-transform-name, so that we can pass down a consistent | |
4852 | # program-transform-name. If autoconf has put single quotes around | |
4853 | # any of these arguments (because they contain shell metacharacters) | |
4854 | # then this will fail; in practice this only happens for | |
4855 | # --program-transform-name, so be sure to override --program-transform-name | |
4856 | # at the end of the argument list. | |
4857 | # These will be expanded by make, so quote '$'. | |
b348267b | 4858 | cat <<\EOF_SED > conftestsed |
9104315a NN |
4859 | s/ --no[^ ]*/ /g |
4860 | s/ --c[a-z-]*[= ][^ ]*//g | |
4861 | s/ --sr[a-z-]*[= ][^ ]*//g | |
4862 | s/ --ho[a-z-]*[= ][^ ]*//g | |
4863 | s/ --bu[a-z-]*[= ][^ ]*//g | |
4864 | s/ --t[a-z-]*[= ][^ ]*//g | |
4865 | s/ --program-[pst][a-z-]*[= ][^ ]*//g | |
4866 | s/ -cache-file[= ][^ ]*//g | |
4867 | s/ -srcdir[= ][^ ]*//g | |
4868 | s/ -host[= ][^ ]*//g | |
4869 | s/ -build[= ][^ ]*//g | |
4870 | s/ -target[= ][^ ]*//g | |
4871 | s/ -program-prefix[= ][^ ]*//g | |
4872 | s/ -program-suffix[= ][^ ]*//g | |
4873 | s/ -program-transform-name[= ][^ ]*//g | |
b348267b GK |
4874 | s/ [^' -][^ ]* / / |
4875 | s/^ *//;s/ *$// | |
eeae7b41 DJ |
4876 | s,\$,$$,g |
4877 | EOF_SED | |
4878 | sed -f conftestsed <<EOF_SED > conftestsed.out | |
6b65a26d | 4879 | ${ac_configure_args} |
b348267b | 4880 | EOF_SED |
eeae7b41 DJ |
4881 | baseargs=`cat conftestsed.out` |
4882 | rm -f conftestsed conftestsed.out | |
671aa708 | 4883 | |
43bb47c2 DJ |
4884 | # Add in --program-transform-name, after --program-prefix and |
4885 | # --program-suffix have been applied to it. Autoconf has already | |
4886 | # doubled dollar signs and backslashes in program_transform_name; we want | |
4887 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
6b65a26d | 4888 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
4889 | # Also, because we want to override the logic in subdir configure scripts to |
4890 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
4891 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
4892 | ${program_transform_name} | |
4893 | EOF_SED | |
4894 | gcc_transform_name=`cat conftestsed.out` | |
4895 | rm -f conftestsed.out | |
4896 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
4897 | ||
671aa708 NN |
4898 | # For the build-side libraries, we just need to pretend we're native, |
4899 | # and not use the same cache file. Multilibs are neither needed nor | |
4900 | # desired. | |
556f03c4 | 4901 | build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}" |
671aa708 NN |
4902 | |
4903 | # For host modules, accept cache file option, or specification as blank. | |
4904 | case "${cache_file}" in | |
4905 | "") # empty | |
4906 | cache_file_option="" ;; | |
4907 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
4908 | cache_file_option="--cache-file=${cache_file}" ;; | |
4909 | *) # relative path | |
4910 | cache_file_option="--cache-file=../${cache_file}" ;; | |
4911 | esac | |
4912 | ||
09438bde NN |
4913 | # Host dirs don't like to share a cache file either, horribly enough. |
4914 | # This seems to be due to autoconf 2.5x stupidity. | |
2b6c260d | 4915 | host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" |
671aa708 NN |
4916 | |
4917 | target_configargs=${baseargs} | |
4918 | ||
4919 | # Passing a --with-cross-host argument lets the target libraries know | |
4920 | # whether they are being built with a cross-compiler or being built | |
4921 | # native. However, it would be better to use other mechanisms to make the | |
4922 | # sorts of decisions they want to make on this basis. Please consider | |
4923 | # this option to be deprecated. FIXME. | |
4924 | if test x${is_cross_compiler} = xyes ; then | |
4925 | target_configargs="--with-cross-host=${host_alias} ${target_configargs}" | |
4926 | fi | |
4927 | ||
4928 | # Default to --enable-multilib. | |
4929 | if test x${enable_multilib} = x ; then | |
4930 | target_configargs="--enable-multilib ${target_configargs}" | |
4931 | fi | |
4932 | ||
4933 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
4934 | # changed from the earlier setting of with_newlib. | |
4935 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
4936 | target_configargs="--with-newlib ${target_configargs}" | |
4937 | fi | |
4938 | ||
6b9eb62c NN |
4939 | # Different target subdirs use different values of certain variables |
4940 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
4941 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
4942 | # it doesn't automatically accept command-line overrides of them. | |
4943 | # This means it's not safe for target subdirs to share a cache file, | |
4944 | # which is disgusting, but there you have it. Hopefully this can be | |
4945 | # fixed in future. It's still worthwhile to use a cache file for each | |
4946 | # directory. I think. | |
4947 | ||
bebcd931 MS |
4948 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
4949 | # We need to pass --target, as newer autoconf's requires consistency | |
4950 | # for target_alias and gcc doesn't manage it consistently. | |
4951 | target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}" | |
671aa708 | 4952 | |
671aa708 NN |
4953 | FLAGS_FOR_TARGET= |
4954 | case " $target_configdirs " in | |
4955 | *" newlib "*) | |
4956 | case " $target_configargs " in | |
4957 | *" --with-newlib "*) | |
4958 | case "$target" in | |
4959 | *-cygwin*) | |
aa8f1f57 | 4960 | 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 |
4961 | esac |
4962 | ||
4963 | # If we're not building GCC, don't discard standard headers. | |
4964 | if test -d ${srcdir}/gcc; then | |
4965 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
4966 | ||
4967 | if test "${build}" != "${host}"; then | |
4968 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
4969 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
4970 | # to it. This is right: we don't want to search that directory | |
4971 | # for binaries, but we want the header files in there, so add | |
4972 | # them explicitly. | |
215c351a | 4973 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' |
671aa708 NN |
4974 | |
4975 | # Someone might think of using the pre-installed headers on | |
4976 | # Canadian crosses, in case the installed compiler is not fully | |
4977 | # compatible with the compiler being built. In this case, it | |
4978 | # would be better to flag an error than risking having | |
4979 | # incompatible object files being constructed. We can't | |
4980 | # guarantee that an error will be flagged, but let's hope the | |
4981 | # compiler will do it, when presented with incompatible header | |
4982 | # files. | |
4983 | fi | |
4984 | fi | |
4985 | ||
4986 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 4987 | i[3456789]86-*-linux*-no) |
671aa708 NN |
4988 | # Here host == target, so we don't need to build gcc, |
4989 | # so we don't want to discard standard headers. | |
4990 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
4991 | ;; | |
4992 | *) | |
4993 | # If we're building newlib, use its generic headers last, but search | |
4994 | # for any libc-related directories first (so make it the last -B | |
4995 | # switch). | |
4996 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
4997 | ;; | |
4998 | esac | |
4999 | ;; | |
5000 | esac | |
5001 | ;; | |
5002 | esac | |
5003 | ||
6691a79e ME |
5004 | # Allow the user to override the flags for |
5005 | # our build compiler if desired. | |
5006 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
5007 | ||
671aa708 NN |
5008 | # On Canadian crosses, we'll be searching the right directories for |
5009 | # the previously-installed cross compiler, so don't bother to add | |
5010 | # flags for directories within the install tree of the compiler | |
5011 | # being built; programs in there won't even run. | |
5012 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
5013 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 5014 | 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 |
5015 | fi |
5016 | ||
5017 | if test "x${use_gnu_ld}" = x && | |
5018 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
5019 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 5020 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
5021 | fi |
5022 | ||
671aa708 | 5023 | # Makefile fragments. |
7b61653a PE |
5024 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
5025 | do | |
5026 | eval fragval=\$$frag | |
5027 | if test $fragval != /dev/null; then | |
5028 | eval $frag=${srcdir}/$fragval | |
5029 | fi | |
5030 | done | |
671aa708 NN |
5031 | |
5032 | ||
5033 | ||
5034 | ||
5035 | ||
5036 | # Miscellanea: directories, flags, etc. | |
5037 | ||
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
23f6b2f9 | 5044 | # Build module lists & subconfigure args. |
671aa708 NN |
5045 | |
5046 | ||
5047 | ||
671aa708 NN |
5048 | # Host module lists & subconfigure args. |
5049 | ||
5050 | ||
5051 | ||
671aa708 NN |
5052 | # Target module lists & subconfigure args. |
5053 | ||
5054 | ||
5055 | ||
671aa708 NN |
5056 | # Build tools. |
5057 | ||
5058 | ||
5059 | ||
671aa708 | 5060 | # Host tools. |
ca9f4b81 AO |
5061 | ncn_tool_prefix= |
5062 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
5063 | ncn_target_tool_prefix= | |
5064 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
5065 | ||
2693c0b0 PB |
5066 | for ncn_progname in ar; do |
5067 | if test -n "$ncn_tool_prefix"; then | |
5068 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5069 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5070 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5072 | if test "${ac_cv_prog_AR+set}" = set; then | |
5073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5074 | else |
5075 | if test -n "$AR"; then | |
5076 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5077 | else | |
6b65a26d CM |
5078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5079 | for as_dir in $PATH | |
5080 | do | |
5081 | IFS=$as_save_IFS | |
5082 | test -z "$as_dir" && as_dir=. | |
5083 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5084 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5085 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" | |
5086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5087 | break 2 | |
5088 | fi | |
5089 | done | |
5090 | done | |
5091 | ||
ca9f4b81 AO |
5092 | fi |
5093 | fi | |
6b65a26d | 5094 | AR=$ac_cv_prog_AR |
ca9f4b81 | 5095 | if test -n "$AR"; then |
6b65a26d CM |
5096 | echo "$as_me:$LINENO: result: $AR" >&5 |
5097 | echo "${ECHO_T}$AR" >&6 | |
ca9f4b81 | 5098 | else |
6b65a26d CM |
5099 | echo "$as_me:$LINENO: result: no" >&5 |
5100 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5101 | fi |
5102 | ||
2693c0b0 PB |
5103 | fi |
5104 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
5105 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5106 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5109 | if test "${ac_cv_prog_AR+set}" = set; then | |
5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5111 | else |
2693c0b0 PB |
5112 | if test -n "$AR"; then |
5113 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
ca9f4b81 | 5114 | else |
6b65a26d CM |
5115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5116 | for as_dir in $PATH | |
5117 | do | |
5118 | IFS=$as_save_IFS | |
5119 | test -z "$as_dir" && as_dir=. | |
5120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5122 | ac_cv_prog_AR="${ncn_progname}" | |
5123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5124 | break 2 | |
5125 | fi | |
5126 | done | |
5127 | done | |
5128 | ||
ca9f4b81 AO |
5129 | fi |
5130 | fi | |
6b65a26d | 5131 | AR=$ac_cv_prog_AR |
2693c0b0 | 5132 | if test -n "$AR"; then |
6b65a26d CM |
5133 | echo "$as_me:$LINENO: result: $AR" >&5 |
5134 | echo "${ECHO_T}$AR" >&6 | |
ca9f4b81 | 5135 | else |
6b65a26d CM |
5136 | echo "$as_me:$LINENO: result: no" >&5 |
5137 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5138 | fi |
6b65a26d | 5139 | |
2693c0b0 PB |
5140 | fi |
5141 | test -n "$ac_cv_prog_AR" && break | |
5142 | done | |
5143 | ||
5144 | if test -z "$ac_cv_prog_AR" ; then | |
5145 | set dummy ar | |
5146 | if test $build = $host ; then | |
5147 | AR="$2" | |
ca9f4b81 | 5148 | else |
2693c0b0 | 5149 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 5150 | fi |
ca9f4b81 AO |
5151 | fi |
5152 | ||
2693c0b0 PB |
5153 | for ncn_progname in as; do |
5154 | if test -n "$ncn_tool_prefix"; then | |
5155 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5156 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5159 | if test "${ac_cv_prog_AS+set}" = set; then | |
5160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5161 | else |
5162 | if test -n "$AS"; then | |
5163 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
5164 | else | |
6b65a26d CM |
5165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5166 | for as_dir in $PATH | |
5167 | do | |
5168 | IFS=$as_save_IFS | |
5169 | test -z "$as_dir" && as_dir=. | |
5170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5172 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" | |
5173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5174 | break 2 | |
5175 | fi | |
5176 | done | |
5177 | done | |
5178 | ||
ca9f4b81 AO |
5179 | fi |
5180 | fi | |
6b65a26d | 5181 | AS=$ac_cv_prog_AS |
ca9f4b81 | 5182 | if test -n "$AS"; then |
6b65a26d CM |
5183 | echo "$as_me:$LINENO: result: $AS" >&5 |
5184 | echo "${ECHO_T}$AS" >&6 | |
ca9f4b81 | 5185 | else |
6b65a26d CM |
5186 | echo "$as_me:$LINENO: result: no" >&5 |
5187 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5188 | fi |
5189 | ||
2693c0b0 PB |
5190 | fi |
5191 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
5192 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5193 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5194 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5196 | if test "${ac_cv_prog_AS+set}" = set; then | |
5197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5198 | else |
2693c0b0 PB |
5199 | if test -n "$AS"; then |
5200 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 5201 | else |
6b65a26d CM |
5202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5203 | for as_dir in $PATH | |
5204 | do | |
5205 | IFS=$as_save_IFS | |
5206 | test -z "$as_dir" && as_dir=. | |
5207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5208 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5209 | ac_cv_prog_AS="${ncn_progname}" | |
5210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5211 | break 2 | |
5212 | fi | |
5213 | done | |
5214 | done | |
5215 | ||
ca9f4b81 AO |
5216 | fi |
5217 | fi | |
6b65a26d | 5218 | AS=$ac_cv_prog_AS |
2693c0b0 | 5219 | if test -n "$AS"; then |
6b65a26d CM |
5220 | echo "$as_me:$LINENO: result: $AS" >&5 |
5221 | echo "${ECHO_T}$AS" >&6 | |
ca9f4b81 | 5222 | else |
6b65a26d CM |
5223 | echo "$as_me:$LINENO: result: no" >&5 |
5224 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5225 | fi |
6b65a26d | 5226 | |
2693c0b0 PB |
5227 | fi |
5228 | test -n "$ac_cv_prog_AS" && break | |
5229 | done | |
5230 | ||
5231 | if test -z "$ac_cv_prog_AS" ; then | |
5232 | set dummy as | |
5233 | if test $build = $host ; then | |
5234 | AS="$2" | |
ca9f4b81 | 5235 | else |
2693c0b0 | 5236 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 5237 | fi |
ca9f4b81 AO |
5238 | fi |
5239 | ||
2693c0b0 PB |
5240 | for ncn_progname in dlltool; do |
5241 | if test -n "$ncn_tool_prefix"; then | |
5242 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5243 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5246 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5248 | else |
5249 | if test -n "$DLLTOOL"; then | |
5250 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5251 | else | |
6b65a26d CM |
5252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5253 | for as_dir in $PATH | |
5254 | do | |
5255 | IFS=$as_save_IFS | |
5256 | test -z "$as_dir" && as_dir=. | |
5257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5259 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" | |
5260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5261 | break 2 | |
5262 | fi | |
5263 | done | |
5264 | done | |
5265 | ||
ca9f4b81 AO |
5266 | fi |
5267 | fi | |
6b65a26d | 5268 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 5269 | if test -n "$DLLTOOL"; then |
6b65a26d CM |
5270 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
5271 | echo "${ECHO_T}$DLLTOOL" >&6 | |
ca9f4b81 | 5272 | else |
6b65a26d CM |
5273 | echo "$as_me:$LINENO: result: no" >&5 |
5274 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5275 | fi |
5276 | ||
2693c0b0 PB |
5277 | fi |
5278 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
5279 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5280 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5283 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
5284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5285 | else |
2693c0b0 PB |
5286 | if test -n "$DLLTOOL"; then |
5287 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 5288 | else |
6b65a26d CM |
5289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5290 | for as_dir in $PATH | |
5291 | do | |
5292 | IFS=$as_save_IFS | |
5293 | test -z "$as_dir" && as_dir=. | |
5294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5296 | ac_cv_prog_DLLTOOL="${ncn_progname}" | |
5297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5298 | break 2 | |
5299 | fi | |
5300 | done | |
5301 | done | |
5302 | ||
ca9f4b81 AO |
5303 | fi |
5304 | fi | |
6b65a26d | 5305 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 5306 | if test -n "$DLLTOOL"; then |
6b65a26d CM |
5307 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
5308 | echo "${ECHO_T}$DLLTOOL" >&6 | |
ca9f4b81 | 5309 | else |
6b65a26d CM |
5310 | echo "$as_me:$LINENO: result: no" >&5 |
5311 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5312 | fi |
6b65a26d | 5313 | |
2693c0b0 PB |
5314 | fi |
5315 | test -n "$ac_cv_prog_DLLTOOL" && break | |
5316 | done | |
5317 | ||
5318 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
5319 | set dummy dlltool | |
5320 | if test $build = $host ; then | |
5321 | DLLTOOL="$2" | |
ca9f4b81 | 5322 | else |
2693c0b0 | 5323 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 5324 | fi |
ca9f4b81 AO |
5325 | fi |
5326 | ||
2693c0b0 PB |
5327 | for ncn_progname in ld; do |
5328 | if test -n "$ncn_tool_prefix"; then | |
5329 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5330 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5333 | if test "${ac_cv_prog_LD+set}" = set; then | |
5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5335 | else |
5336 | if test -n "$LD"; then | |
5337 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5338 | else | |
6b65a26d CM |
5339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5340 | for as_dir in $PATH | |
5341 | do | |
5342 | IFS=$as_save_IFS | |
5343 | test -z "$as_dir" && as_dir=. | |
5344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5346 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" | |
5347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5348 | break 2 | |
5349 | fi | |
5350 | done | |
5351 | done | |
5352 | ||
ca9f4b81 AO |
5353 | fi |
5354 | fi | |
6b65a26d | 5355 | LD=$ac_cv_prog_LD |
ca9f4b81 | 5356 | if test -n "$LD"; then |
6b65a26d CM |
5357 | echo "$as_me:$LINENO: result: $LD" >&5 |
5358 | echo "${ECHO_T}$LD" >&6 | |
ca9f4b81 | 5359 | else |
6b65a26d CM |
5360 | echo "$as_me:$LINENO: result: no" >&5 |
5361 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5362 | fi |
5363 | ||
2693c0b0 PB |
5364 | fi |
5365 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
5366 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5367 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5370 | if test "${ac_cv_prog_LD+set}" = set; then | |
5371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5372 | else |
2693c0b0 PB |
5373 | if test -n "$LD"; then |
5374 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d CM |
5375 | else |
5376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5377 | for as_dir in $PATH | |
5378 | do | |
5379 | IFS=$as_save_IFS | |
5380 | test -z "$as_dir" && as_dir=. | |
5381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5383 | ac_cv_prog_LD="${ncn_progname}" | |
5384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5385 | break 2 | |
5386 | fi | |
5387 | done | |
5388 | done | |
5389 | ||
ca9f4b81 AO |
5390 | fi |
5391 | fi | |
6b65a26d | 5392 | LD=$ac_cv_prog_LD |
2693c0b0 | 5393 | if test -n "$LD"; then |
6b65a26d CM |
5394 | echo "$as_me:$LINENO: result: $LD" >&5 |
5395 | echo "${ECHO_T}$LD" >&6 | |
ca9f4b81 | 5396 | else |
6b65a26d CM |
5397 | echo "$as_me:$LINENO: result: no" >&5 |
5398 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5399 | fi |
6b65a26d | 5400 | |
2693c0b0 PB |
5401 | fi |
5402 | test -n "$ac_cv_prog_LD" && break | |
5403 | done | |
5404 | ||
5405 | if test -z "$ac_cv_prog_LD" ; then | |
5406 | set dummy ld | |
5407 | if test $build = $host ; then | |
5408 | LD="$2" | |
ca9f4b81 | 5409 | else |
2693c0b0 | 5410 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 5411 | fi |
ca9f4b81 AO |
5412 | fi |
5413 | ||
2693c0b0 PB |
5414 | for ncn_progname in nm; do |
5415 | if test -n "$ncn_tool_prefix"; then | |
5416 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5417 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5420 | if test "${ac_cv_prog_NM+set}" = set; then | |
5421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5422 | else |
5423 | if test -n "$NM"; then | |
5424 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
5425 | else | |
6b65a26d CM |
5426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5427 | for as_dir in $PATH | |
5428 | do | |
5429 | IFS=$as_save_IFS | |
5430 | test -z "$as_dir" && as_dir=. | |
5431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5433 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" | |
5434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5435 | break 2 | |
5436 | fi | |
5437 | done | |
5438 | done | |
5439 | ||
ca9f4b81 AO |
5440 | fi |
5441 | fi | |
6b65a26d | 5442 | NM=$ac_cv_prog_NM |
ca9f4b81 | 5443 | if test -n "$NM"; then |
6b65a26d CM |
5444 | echo "$as_me:$LINENO: result: $NM" >&5 |
5445 | echo "${ECHO_T}$NM" >&6 | |
ca9f4b81 | 5446 | else |
6b65a26d CM |
5447 | echo "$as_me:$LINENO: result: no" >&5 |
5448 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5449 | fi |
5450 | ||
2693c0b0 PB |
5451 | fi |
5452 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then | |
5453 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5454 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5457 | if test "${ac_cv_prog_NM+set}" = set; then | |
5458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5459 | else |
2693c0b0 PB |
5460 | if test -n "$NM"; then |
5461 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 5462 | else |
6b65a26d CM |
5463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5464 | for as_dir in $PATH | |
5465 | do | |
5466 | IFS=$as_save_IFS | |
5467 | test -z "$as_dir" && as_dir=. | |
5468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5470 | ac_cv_prog_NM="${ncn_progname}" | |
5471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5472 | break 2 | |
5473 | fi | |
5474 | done | |
5475 | done | |
5476 | ||
ca9f4b81 AO |
5477 | fi |
5478 | fi | |
6b65a26d | 5479 | NM=$ac_cv_prog_NM |
2693c0b0 | 5480 | if test -n "$NM"; then |
6b65a26d CM |
5481 | echo "$as_me:$LINENO: result: $NM" >&5 |
5482 | echo "${ECHO_T}$NM" >&6 | |
ca9f4b81 | 5483 | else |
6b65a26d CM |
5484 | echo "$as_me:$LINENO: result: no" >&5 |
5485 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5486 | fi |
6b65a26d | 5487 | |
2693c0b0 PB |
5488 | fi |
5489 | test -n "$ac_cv_prog_NM" && break | |
5490 | done | |
5491 | ||
5492 | if test -z "$ac_cv_prog_NM" ; then | |
5493 | set dummy nm | |
5494 | if test $build = $host ; then | |
5495 | NM="$2" | |
ca9f4b81 | 5496 | else |
2693c0b0 | 5497 | NM="${ncn_tool_prefix}$2" |
ca9f4b81 | 5498 | fi |
ca9f4b81 AO |
5499 | fi |
5500 | ||
2693c0b0 PB |
5501 | for ncn_progname in ranlib; do |
5502 | if test -n "$ncn_tool_prefix"; then | |
5503 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5504 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5507 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5509 | else |
5510 | if test -n "$RANLIB"; then | |
5511 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5512 | else | |
6b65a26d CM |
5513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5514 | for as_dir in $PATH | |
5515 | do | |
5516 | IFS=$as_save_IFS | |
5517 | test -z "$as_dir" && as_dir=. | |
5518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5520 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" | |
5521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5522 | break 2 | |
5523 | fi | |
5524 | done | |
5525 | done | |
5526 | ||
ca9f4b81 AO |
5527 | fi |
5528 | fi | |
6b65a26d | 5529 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 5530 | if test -n "$RANLIB"; then |
6b65a26d CM |
5531 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5532 | echo "${ECHO_T}$RANLIB" >&6 | |
ca9f4b81 | 5533 | else |
6b65a26d CM |
5534 | echo "$as_me:$LINENO: result: no" >&5 |
5535 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5536 | fi |
5537 | ||
2693c0b0 PB |
5538 | fi |
5539 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
5540 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5541 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5544 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5546 | else |
2693c0b0 PB |
5547 | if test -n "$RANLIB"; then |
5548 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 5549 | else |
6b65a26d CM |
5550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5551 | for as_dir in $PATH | |
5552 | do | |
5553 | IFS=$as_save_IFS | |
5554 | test -z "$as_dir" && as_dir=. | |
5555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5557 | ac_cv_prog_RANLIB="${ncn_progname}" | |
5558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5559 | break 2 | |
5560 | fi | |
5561 | done | |
5562 | done | |
5563 | ||
ca9f4b81 AO |
5564 | fi |
5565 | fi | |
6b65a26d | 5566 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 5567 | if test -n "$RANLIB"; then |
6b65a26d CM |
5568 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5569 | echo "${ECHO_T}$RANLIB" >&6 | |
ca9f4b81 | 5570 | else |
6b65a26d CM |
5571 | echo "$as_me:$LINENO: result: no" >&5 |
5572 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5573 | fi |
6b65a26d | 5574 | |
ca9f4b81 | 5575 | fi |
2693c0b0 PB |
5576 | test -n "$ac_cv_prog_RANLIB" && break |
5577 | done | |
5578 | ||
5579 | if test -z "$ac_cv_prog_RANLIB" ; then | |
5580 | RANLIB=":" | |
ca9f4b81 AO |
5581 | fi |
5582 | ||
2693c0b0 PB |
5583 | for ncn_progname in windres; do |
5584 | if test -n "$ncn_tool_prefix"; then | |
5585 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5586 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5589 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
5590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5591 | else |
5592 | if test -n "$WINDRES"; then | |
5593 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
5594 | else | |
6b65a26d CM |
5595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5596 | for as_dir in $PATH | |
5597 | do | |
5598 | IFS=$as_save_IFS | |
5599 | test -z "$as_dir" && as_dir=. | |
5600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5601 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5602 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" | |
5603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5604 | break 2 | |
5605 | fi | |
5606 | done | |
5607 | done | |
5608 | ||
ca9f4b81 AO |
5609 | fi |
5610 | fi | |
6b65a26d | 5611 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 5612 | if test -n "$WINDRES"; then |
6b65a26d CM |
5613 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
5614 | echo "${ECHO_T}$WINDRES" >&6 | |
ca9f4b81 | 5615 | else |
6b65a26d CM |
5616 | echo "$as_me:$LINENO: result: no" >&5 |
5617 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5618 | fi |
5619 | ||
2693c0b0 PB |
5620 | fi |
5621 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
5622 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5623 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5624 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5626 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
5627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5628 | else |
2693c0b0 PB |
5629 | if test -n "$WINDRES"; then |
5630 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 5631 | else |
6b65a26d CM |
5632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5633 | for as_dir in $PATH | |
5634 | do | |
5635 | IFS=$as_save_IFS | |
5636 | test -z "$as_dir" && as_dir=. | |
5637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5639 | ac_cv_prog_WINDRES="${ncn_progname}" | |
5640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5641 | break 2 | |
5642 | fi | |
5643 | done | |
5644 | done | |
5645 | ||
ca9f4b81 AO |
5646 | fi |
5647 | fi | |
6b65a26d | 5648 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 5649 | if test -n "$WINDRES"; then |
6b65a26d CM |
5650 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
5651 | echo "${ECHO_T}$WINDRES" >&6 | |
ca9f4b81 | 5652 | else |
6b65a26d CM |
5653 | echo "$as_me:$LINENO: result: no" >&5 |
5654 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5655 | fi |
6b65a26d | 5656 | |
2693c0b0 PB |
5657 | fi |
5658 | test -n "$ac_cv_prog_WINDRES" && break | |
5659 | done | |
5660 | ||
5661 | if test -z "$ac_cv_prog_WINDRES" ; then | |
5662 | set dummy windres | |
5663 | if test $build = $host ; then | |
5664 | WINDRES="$2" | |
ca9f4b81 | 5665 | else |
2693c0b0 | 5666 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 5667 | fi |
ca9f4b81 AO |
5668 | fi |
5669 | ||
2693c0b0 PB |
5670 | for ncn_progname in objcopy; do |
5671 | if test -n "$ncn_tool_prefix"; then | |
5672 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5673 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5676 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then | |
5677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5678 | else |
5679 | if test -n "$OBJCOPY"; then | |
5680 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
5681 | else | |
6b65a26d CM |
5682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5683 | for as_dir in $PATH | |
5684 | do | |
5685 | IFS=$as_save_IFS | |
5686 | test -z "$as_dir" && as_dir=. | |
5687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5689 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" | |
5690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5691 | break 2 | |
5692 | fi | |
5693 | done | |
5694 | done | |
5695 | ||
ca9f4b81 AO |
5696 | fi |
5697 | fi | |
6b65a26d | 5698 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 5699 | if test -n "$OBJCOPY"; then |
6b65a26d CM |
5700 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
5701 | echo "${ECHO_T}$OBJCOPY" >&6 | |
ca9f4b81 | 5702 | else |
6b65a26d CM |
5703 | echo "$as_me:$LINENO: result: no" >&5 |
5704 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5705 | fi |
5706 | ||
2693c0b0 PB |
5707 | fi |
5708 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
5709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5710 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5713 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then | |
5714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5715 | else |
2693c0b0 PB |
5716 | if test -n "$OBJCOPY"; then |
5717 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 5718 | else |
6b65a26d CM |
5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5720 | for as_dir in $PATH | |
5721 | do | |
5722 | IFS=$as_save_IFS | |
5723 | test -z "$as_dir" && as_dir=. | |
5724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5726 | ac_cv_prog_OBJCOPY="${ncn_progname}" | |
5727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5728 | break 2 | |
5729 | fi | |
5730 | done | |
5731 | done | |
5732 | ||
ca9f4b81 AO |
5733 | fi |
5734 | fi | |
6b65a26d | 5735 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 5736 | if test -n "$OBJCOPY"; then |
6b65a26d CM |
5737 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 |
5738 | echo "${ECHO_T}$OBJCOPY" >&6 | |
ca9f4b81 | 5739 | else |
6b65a26d CM |
5740 | echo "$as_me:$LINENO: result: no" >&5 |
5741 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5742 | fi |
6b65a26d | 5743 | |
2693c0b0 PB |
5744 | fi |
5745 | test -n "$ac_cv_prog_OBJCOPY" && break | |
5746 | done | |
5747 | ||
5748 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
5749 | set dummy objcopy | |
5750 | if test $build = $host ; then | |
5751 | OBJCOPY="$2" | |
ca9f4b81 | 5752 | else |
2693c0b0 | 5753 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 5754 | fi |
ca9f4b81 AO |
5755 | fi |
5756 | ||
2693c0b0 PB |
5757 | for ncn_progname in objdump; do |
5758 | if test -n "$ncn_tool_prefix"; then | |
5759 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5760 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5763 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 AO |
5765 | else |
5766 | if test -n "$OBJDUMP"; then | |
5767 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5768 | else | |
6b65a26d CM |
5769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5770 | for as_dir in $PATH | |
5771 | do | |
5772 | IFS=$as_save_IFS | |
5773 | test -z "$as_dir" && as_dir=. | |
5774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5776 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" | |
5777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5778 | break 2 | |
5779 | fi | |
5780 | done | |
5781 | done | |
5782 | ||
ca9f4b81 AO |
5783 | fi |
5784 | fi | |
6b65a26d | 5785 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 5786 | if test -n "$OBJDUMP"; then |
6b65a26d CM |
5787 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
5788 | echo "${ECHO_T}$OBJDUMP" >&6 | |
ca9f4b81 | 5789 | else |
6b65a26d CM |
5790 | echo "$as_me:$LINENO: result: no" >&5 |
5791 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5792 | fi |
5793 | ||
2693c0b0 PB |
5794 | fi |
5795 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
5796 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5797 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5800 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5802 | else |
2693c0b0 PB |
5803 | if test -n "$OBJDUMP"; then |
5804 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 5805 | else |
6b65a26d CM |
5806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5807 | for as_dir in $PATH | |
5808 | do | |
5809 | IFS=$as_save_IFS | |
5810 | test -z "$as_dir" && as_dir=. | |
5811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5813 | ac_cv_prog_OBJDUMP="${ncn_progname}" | |
5814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5815 | break 2 | |
5816 | fi | |
5817 | done | |
5818 | done | |
5819 | ||
ca9f4b81 AO |
5820 | fi |
5821 | fi | |
6b65a26d | 5822 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 5823 | if test -n "$OBJDUMP"; then |
6b65a26d CM |
5824 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
5825 | echo "${ECHO_T}$OBJDUMP" >&6 | |
ca9f4b81 | 5826 | else |
6b65a26d CM |
5827 | echo "$as_me:$LINENO: result: no" >&5 |
5828 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5829 | fi |
6b65a26d | 5830 | |
2693c0b0 PB |
5831 | fi |
5832 | test -n "$ac_cv_prog_OBJDUMP" && break | |
5833 | done | |
5834 | ||
5835 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
5836 | set dummy objdump | |
5837 | if test $build = $host ; then | |
5838 | OBJDUMP="$2" | |
ca9f4b81 | 5839 | else |
2693c0b0 | 5840 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 5841 | fi |
ca9f4b81 AO |
5842 | fi |
5843 | ||
671aa708 NN |
5844 | |
5845 | ||
5846 | ||
5847 | ||
5848 | ||
5849 | ||
4de997d1 PB |
5850 | # Target tools. Do the tests using the names they may have passed in |
5851 | # the environment, then move it to CONFIGURED_*_FOR_TARGET. | |
2693c0b0 PB |
5852 | for ncn_progname in ar; do |
5853 | if test -n "$ncn_target_tool_prefix"; then | |
5854 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5855 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5856 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5858 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then | |
5859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5860 | else |
4de997d1 PB |
5861 | if test -n "$AR_FOR_TARGET"; then |
5862 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 5863 | else |
6b65a26d CM |
5864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5865 | for as_dir in $PATH | |
5866 | do | |
5867 | IFS=$as_save_IFS | |
5868 | test -z "$as_dir" && as_dir=. | |
5869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5871 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
5872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5873 | break 2 | |
5874 | fi | |
5875 | done | |
5876 | done | |
5877 | ||
ca9f4b81 AO |
5878 | fi |
5879 | fi | |
6b65a26d | 5880 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
4de997d1 | 5881 | if test -n "$AR_FOR_TARGET"; then |
6b65a26d CM |
5882 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
5883 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
ca9f4b81 | 5884 | else |
6b65a26d CM |
5885 | echo "$as_me:$LINENO: result: no" >&5 |
5886 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5887 | fi |
5888 | ||
2693c0b0 PB |
5889 | fi |
5890 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
5891 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5892 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5895 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then | |
5896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5897 | else |
2693c0b0 PB |
5898 | if test -n "$AR_FOR_TARGET"; then |
5899 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 5900 | else |
6b65a26d CM |
5901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5902 | for as_dir in $PATH | |
5903 | do | |
5904 | IFS=$as_save_IFS | |
5905 | test -z "$as_dir" && as_dir=. | |
5906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5907 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5908 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" | |
5909 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5910 | break 2 | |
5911 | fi | |
5912 | done | |
5913 | done | |
5914 | ||
ca9f4b81 AO |
5915 | fi |
5916 | fi | |
6b65a26d | 5917 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2693c0b0 | 5918 | if test -n "$AR_FOR_TARGET"; then |
6b65a26d CM |
5919 | echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 |
5920 | echo "${ECHO_T}$AR_FOR_TARGET" >&6 | |
ca9f4b81 | 5921 | else |
6b65a26d CM |
5922 | echo "$as_me:$LINENO: result: no" >&5 |
5923 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 5924 | fi |
6b65a26d | 5925 | |
2693c0b0 PB |
5926 | fi |
5927 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
5928 | done | |
5929 | ||
5930 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then | |
5931 | set dummy ar | |
5932 | if test $build = $target ; then | |
5933 | AR_FOR_TARGET="$2" | |
ca9f4b81 | 5934 | else |
2693c0b0 | 5935 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 5936 | fi |
ca9f4b81 AO |
5937 | fi |
5938 | ||
2693c0b0 PB |
5939 | for ncn_progname in as; do |
5940 | if test -n "$ncn_target_tool_prefix"; then | |
5941 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5942 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5945 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then | |
5946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5947 | else |
4de997d1 PB |
5948 | if test -n "$AS_FOR_TARGET"; then |
5949 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 5950 | else |
6b65a26d CM |
5951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5952 | for as_dir in $PATH | |
5953 | do | |
5954 | IFS=$as_save_IFS | |
5955 | test -z "$as_dir" && as_dir=. | |
5956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5958 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
5959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5960 | break 2 | |
5961 | fi | |
5962 | done | |
5963 | done | |
5964 | ||
ca9f4b81 AO |
5965 | fi |
5966 | fi | |
6b65a26d | 5967 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
4de997d1 | 5968 | if test -n "$AS_FOR_TARGET"; then |
6b65a26d CM |
5969 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
5970 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
ca9f4b81 | 5971 | else |
6b65a26d CM |
5972 | echo "$as_me:$LINENO: result: no" >&5 |
5973 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
5974 | fi |
5975 | ||
2693c0b0 PB |
5976 | fi |
5977 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
5978 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5979 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
5980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5982 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then | |
5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 5984 | else |
2693c0b0 PB |
5985 | if test -n "$AS_FOR_TARGET"; then |
5986 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 5987 | else |
6b65a26d CM |
5988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5989 | for as_dir in $PATH | |
5990 | do | |
5991 | IFS=$as_save_IFS | |
5992 | test -z "$as_dir" && as_dir=. | |
5993 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5995 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" | |
5996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5997 | break 2 | |
5998 | fi | |
5999 | done | |
6000 | done | |
6001 | ||
ca9f4b81 AO |
6002 | fi |
6003 | fi | |
6b65a26d | 6004 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2693c0b0 | 6005 | if test -n "$AS_FOR_TARGET"; then |
6b65a26d CM |
6006 | echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 |
6007 | echo "${ECHO_T}$AS_FOR_TARGET" >&6 | |
ca9f4b81 | 6008 | else |
6b65a26d CM |
6009 | echo "$as_me:$LINENO: result: no" >&5 |
6010 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6011 | fi |
6b65a26d | 6012 | |
2693c0b0 PB |
6013 | fi |
6014 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
6015 | done | |
6016 | ||
6017 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then | |
6018 | set dummy as | |
6019 | if test $build = $target ; then | |
6020 | AS_FOR_TARGET="$2" | |
ca9f4b81 | 6021 | else |
2693c0b0 | 6022 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 6023 | fi |
4de997d1 PB |
6024 | fi |
6025 | ||
2693c0b0 PB |
6026 | for ncn_progname in cc gcc; do |
6027 | if test -n "$ncn_target_tool_prefix"; then | |
6028 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6029 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6030 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6032 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then | |
6033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
6034 | else |
6035 | if test -n "$CC_FOR_TARGET"; then | |
6036 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
6037 | else | |
6b65a26d CM |
6038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6039 | for as_dir in $PATH | |
6040 | do | |
6041 | IFS=$as_save_IFS | |
6042 | test -z "$as_dir" && as_dir=. | |
6043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6045 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6047 | break 2 | |
6048 | fi | |
6049 | done | |
6050 | done | |
6051 | ||
4de997d1 PB |
6052 | fi |
6053 | fi | |
6b65a26d | 6054 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 6055 | if test -n "$CC_FOR_TARGET"; then |
6b65a26d CM |
6056 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
6057 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
4de997d1 | 6058 | else |
6b65a26d CM |
6059 | echo "$as_me:$LINENO: result: no" >&5 |
6060 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
6061 | fi |
6062 | ||
2693c0b0 PB |
6063 | fi |
6064 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
6065 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6066 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6069 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then | |
6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 6071 | else |
2693c0b0 PB |
6072 | if test -n "$CC_FOR_TARGET"; then |
6073 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 6074 | else |
6b65a26d CM |
6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6076 | for as_dir in $PATH | |
6077 | do | |
6078 | IFS=$as_save_IFS | |
6079 | test -z "$as_dir" && as_dir=. | |
6080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6082 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" | |
6083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6084 | break 2 | |
6085 | fi | |
6086 | done | |
6087 | done | |
6088 | ||
4de997d1 PB |
6089 | fi |
6090 | fi | |
6b65a26d | 6091 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 6092 | if test -n "$CC_FOR_TARGET"; then |
6b65a26d CM |
6093 | echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 |
6094 | echo "${ECHO_T}$CC_FOR_TARGET" >&6 | |
4de997d1 | 6095 | else |
6b65a26d CM |
6096 | echo "$as_me:$LINENO: result: no" >&5 |
6097 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 6098 | fi |
6b65a26d | 6099 | |
2693c0b0 PB |
6100 | fi |
6101 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
6102 | done | |
6103 | ||
6104 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then | |
6105 | set dummy cc gcc | |
6106 | if test $build = $target ; then | |
6107 | CC_FOR_TARGET="$2" | |
4de997d1 | 6108 | else |
2693c0b0 | 6109 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 6110 | fi |
4de997d1 PB |
6111 | fi |
6112 | ||
2693c0b0 PB |
6113 | for ncn_progname in c++ g++ cxx gxx; do |
6114 | if test -n "$ncn_target_tool_prefix"; then | |
6115 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6116 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6117 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6119 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then | |
6120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
6121 | else |
6122 | if test -n "$CXX_FOR_TARGET"; then | |
6123 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
6124 | else | |
6b65a26d CM |
6125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6126 | for as_dir in $PATH | |
6127 | do | |
6128 | IFS=$as_save_IFS | |
6129 | test -z "$as_dir" && as_dir=. | |
6130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6132 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6134 | break 2 | |
6135 | fi | |
6136 | done | |
6137 | done | |
6138 | ||
4de997d1 PB |
6139 | fi |
6140 | fi | |
6b65a26d | 6141 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 6142 | if test -n "$CXX_FOR_TARGET"; then |
6b65a26d CM |
6143 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
6144 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
4de997d1 | 6145 | else |
6b65a26d CM |
6146 | echo "$as_me:$LINENO: result: no" >&5 |
6147 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
6148 | fi |
6149 | ||
2693c0b0 PB |
6150 | fi |
6151 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
6152 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6153 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6154 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6156 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then | |
6157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 6158 | else |
2693c0b0 PB |
6159 | if test -n "$CXX_FOR_TARGET"; then |
6160 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 6161 | else |
6b65a26d CM |
6162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6163 | for as_dir in $PATH | |
6164 | do | |
6165 | IFS=$as_save_IFS | |
6166 | test -z "$as_dir" && as_dir=. | |
6167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6168 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6169 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" | |
6170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6171 | break 2 | |
6172 | fi | |
6173 | done | |
6174 | done | |
6175 | ||
4de997d1 PB |
6176 | fi |
6177 | fi | |
6b65a26d | 6178 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 6179 | if test -n "$CXX_FOR_TARGET"; then |
6b65a26d CM |
6180 | echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 |
6181 | echo "${ECHO_T}$CXX_FOR_TARGET" >&6 | |
4de997d1 | 6182 | else |
6b65a26d CM |
6183 | echo "$as_me:$LINENO: result: no" >&5 |
6184 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 6185 | fi |
6b65a26d | 6186 | |
2693c0b0 PB |
6187 | fi |
6188 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
6189 | done | |
6190 | ||
6191 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then | |
6192 | set dummy c++ g++ cxx gxx | |
6193 | if test $build = $target ; then | |
6194 | CXX_FOR_TARGET="$2" | |
4de997d1 | 6195 | else |
2693c0b0 | 6196 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 6197 | fi |
ca9f4b81 AO |
6198 | fi |
6199 | ||
2693c0b0 PB |
6200 | for ncn_progname in dlltool; do |
6201 | if test -n "$ncn_target_tool_prefix"; then | |
6202 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6203 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6204 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6206 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then | |
6207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6208 | else |
4de997d1 PB |
6209 | if test -n "$DLLTOOL_FOR_TARGET"; then |
6210 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6211 | else |
6b65a26d CM |
6212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6213 | for as_dir in $PATH | |
6214 | do | |
6215 | IFS=$as_save_IFS | |
6216 | test -z "$as_dir" && as_dir=. | |
6217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6218 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6219 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6221 | break 2 | |
6222 | fi | |
6223 | done | |
6224 | done | |
6225 | ||
ca9f4b81 AO |
6226 | fi |
6227 | fi | |
6b65a26d | 6228 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
4de997d1 | 6229 | if test -n "$DLLTOOL_FOR_TARGET"; then |
6b65a26d CM |
6230 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
6231 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
ca9f4b81 | 6232 | else |
6b65a26d CM |
6233 | echo "$as_me:$LINENO: result: no" >&5 |
6234 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6235 | fi |
6236 | ||
2693c0b0 PB |
6237 | fi |
6238 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
6239 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6240 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6243 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then | |
6244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6245 | else |
2693c0b0 PB |
6246 | if test -n "$DLLTOOL_FOR_TARGET"; then |
6247 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6248 | else |
6b65a26d CM |
6249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6250 | for as_dir in $PATH | |
6251 | do | |
6252 | IFS=$as_save_IFS | |
6253 | test -z "$as_dir" && as_dir=. | |
6254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6255 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6256 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" | |
6257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6258 | break 2 | |
6259 | fi | |
6260 | done | |
6261 | done | |
6262 | ||
ca9f4b81 AO |
6263 | fi |
6264 | fi | |
6b65a26d | 6265 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2693c0b0 | 6266 | if test -n "$DLLTOOL_FOR_TARGET"; then |
6b65a26d CM |
6267 | echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 |
6268 | echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 | |
ca9f4b81 | 6269 | else |
6b65a26d CM |
6270 | echo "$as_me:$LINENO: result: no" >&5 |
6271 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6272 | fi |
6b65a26d | 6273 | |
2693c0b0 PB |
6274 | fi |
6275 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
6276 | done | |
6277 | ||
6278 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then | |
6279 | set dummy dlltool | |
6280 | if test $build = $target ; then | |
6281 | DLLTOOL_FOR_TARGET="$2" | |
ca9f4b81 | 6282 | else |
2693c0b0 | 6283 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 6284 | fi |
4de997d1 PB |
6285 | fi |
6286 | ||
2693c0b0 PB |
6287 | for ncn_progname in gcc; do |
6288 | if test -n "$ncn_target_tool_prefix"; then | |
6289 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6290 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6291 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6293 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then | |
6294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
6295 | else |
6296 | if test -n "$GCC_FOR_TARGET"; then | |
6297 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
6298 | else | |
6b65a26d CM |
6299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6300 | for as_dir in $PATH | |
6301 | do | |
6302 | IFS=$as_save_IFS | |
6303 | test -z "$as_dir" && as_dir=. | |
6304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6305 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6306 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6308 | break 2 | |
6309 | fi | |
6310 | done | |
6311 | done | |
6312 | ||
4de997d1 PB |
6313 | fi |
6314 | fi | |
6b65a26d | 6315 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
4de997d1 | 6316 | if test -n "$GCC_FOR_TARGET"; then |
6b65a26d CM |
6317 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
6318 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
4de997d1 | 6319 | else |
6b65a26d CM |
6320 | echo "$as_me:$LINENO: result: no" >&5 |
6321 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
6322 | fi |
6323 | ||
2693c0b0 PB |
6324 | fi |
6325 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
6326 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6327 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6330 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then | |
6331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 6332 | else |
2693c0b0 PB |
6333 | if test -n "$GCC_FOR_TARGET"; then |
6334 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 6335 | else |
6b65a26d CM |
6336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6337 | for as_dir in $PATH | |
6338 | do | |
6339 | IFS=$as_save_IFS | |
6340 | test -z "$as_dir" && as_dir=. | |
6341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6343 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" | |
6344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6345 | break 2 | |
6346 | fi | |
6347 | done | |
6348 | done | |
6349 | ||
4de997d1 PB |
6350 | fi |
6351 | fi | |
6b65a26d | 6352 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
2693c0b0 | 6353 | if test -n "$GCC_FOR_TARGET"; then |
6b65a26d CM |
6354 | echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 |
6355 | echo "${ECHO_T}$GCC_FOR_TARGET" >&6 | |
4de997d1 | 6356 | else |
6b65a26d CM |
6357 | echo "$as_me:$LINENO: result: no" >&5 |
6358 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 6359 | fi |
6b65a26d | 6360 | |
4de997d1 | 6361 | fi |
2693c0b0 PB |
6362 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break |
6363 | done | |
6364 | ||
6365 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then | |
6366 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
4de997d1 PB |
6367 | fi |
6368 | ||
2693c0b0 PB |
6369 | for ncn_progname in gcj; do |
6370 | if test -n "$ncn_target_tool_prefix"; then | |
6371 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6372 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6373 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6375 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then | |
6376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
6377 | else |
6378 | if test -n "$GCJ_FOR_TARGET"; then | |
6379 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
6380 | else | |
6b65a26d CM |
6381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6382 | for as_dir in $PATH | |
6383 | do | |
6384 | IFS=$as_save_IFS | |
6385 | test -z "$as_dir" && as_dir=. | |
6386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6387 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6388 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6390 | break 2 | |
6391 | fi | |
6392 | done | |
6393 | done | |
6394 | ||
4de997d1 PB |
6395 | fi |
6396 | fi | |
6b65a26d | 6397 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
4de997d1 | 6398 | if test -n "$GCJ_FOR_TARGET"; then |
6b65a26d CM |
6399 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
6400 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
4de997d1 | 6401 | else |
6b65a26d CM |
6402 | echo "$as_me:$LINENO: result: no" >&5 |
6403 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
6404 | fi |
6405 | ||
2693c0b0 PB |
6406 | fi |
6407 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
6408 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6409 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6410 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6412 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then | |
6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 6414 | else |
2693c0b0 PB |
6415 | if test -n "$GCJ_FOR_TARGET"; then |
6416 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 6417 | else |
6b65a26d CM |
6418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6419 | for as_dir in $PATH | |
6420 | do | |
6421 | IFS=$as_save_IFS | |
6422 | test -z "$as_dir" && as_dir=. | |
6423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6425 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" | |
6426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6427 | break 2 | |
6428 | fi | |
6429 | done | |
6430 | done | |
6431 | ||
4de997d1 PB |
6432 | fi |
6433 | fi | |
6b65a26d | 6434 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
2693c0b0 | 6435 | if test -n "$GCJ_FOR_TARGET"; then |
6b65a26d CM |
6436 | echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 |
6437 | echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 | |
4de997d1 | 6438 | else |
6b65a26d CM |
6439 | echo "$as_me:$LINENO: result: no" >&5 |
6440 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 6441 | fi |
6b65a26d | 6442 | |
2693c0b0 PB |
6443 | fi |
6444 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
6445 | done | |
6446 | ||
6447 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
6448 | set dummy gcj | |
6449 | if test $build = $target ; then | |
6450 | GCJ_FOR_TARGET="$2" | |
4de997d1 | 6451 | else |
2693c0b0 | 6452 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 6453 | fi |
4de997d1 PB |
6454 | fi |
6455 | ||
2693c0b0 PB |
6456 | for ncn_progname in gfortran; do |
6457 | if test -n "$ncn_target_tool_prefix"; then | |
6458 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6459 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6462 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then | |
6463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 PB |
6464 | else |
6465 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
6466 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
6467 | else | |
6b65a26d CM |
6468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6469 | for as_dir in $PATH | |
6470 | do | |
6471 | IFS=$as_save_IFS | |
6472 | test -z "$as_dir" && as_dir=. | |
6473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6475 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6477 | break 2 | |
6478 | fi | |
6479 | done | |
6480 | done | |
6481 | ||
4de997d1 PB |
6482 | fi |
6483 | fi | |
6b65a26d | 6484 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
4de997d1 | 6485 | if test -n "$GFORTRAN_FOR_TARGET"; then |
6b65a26d CM |
6486 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
6487 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
4de997d1 | 6488 | else |
6b65a26d CM |
6489 | echo "$as_me:$LINENO: result: no" >&5 |
6490 | echo "${ECHO_T}no" >&6 | |
4de997d1 PB |
6491 | fi |
6492 | ||
2693c0b0 PB |
6493 | fi |
6494 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
6495 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6496 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6499 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then | |
6500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4de997d1 | 6501 | else |
2693c0b0 PB |
6502 | if test -n "$GFORTRAN_FOR_TARGET"; then |
6503 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 6504 | else |
6b65a26d CM |
6505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6506 | for as_dir in $PATH | |
6507 | do | |
6508 | IFS=$as_save_IFS | |
6509 | test -z "$as_dir" && as_dir=. | |
6510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6512 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" | |
6513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6514 | break 2 | |
6515 | fi | |
6516 | done | |
6517 | done | |
6518 | ||
4de997d1 PB |
6519 | fi |
6520 | fi | |
6b65a26d | 6521 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
2693c0b0 | 6522 | if test -n "$GFORTRAN_FOR_TARGET"; then |
6b65a26d CM |
6523 | echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 |
6524 | echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 | |
4de997d1 | 6525 | else |
6b65a26d CM |
6526 | echo "$as_me:$LINENO: result: no" >&5 |
6527 | echo "${ECHO_T}no" >&6 | |
4de997d1 | 6528 | fi |
6b65a26d | 6529 | |
2693c0b0 PB |
6530 | fi |
6531 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
6532 | done | |
6533 | ||
6534 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then | |
6535 | set dummy gfortran | |
6536 | if test $build = $target ; then | |
6537 | GFORTRAN_FOR_TARGET="$2" | |
4de997d1 | 6538 | else |
2693c0b0 | 6539 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 6540 | fi |
ca9f4b81 AO |
6541 | fi |
6542 | ||
2693c0b0 PB |
6543 | for ncn_progname in ld; do |
6544 | if test -n "$ncn_target_tool_prefix"; then | |
6545 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6546 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6547 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6549 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then | |
6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6551 | else |
4de997d1 PB |
6552 | if test -n "$LD_FOR_TARGET"; then |
6553 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6554 | else |
6b65a26d CM |
6555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6556 | for as_dir in $PATH | |
6557 | do | |
6558 | IFS=$as_save_IFS | |
6559 | test -z "$as_dir" && as_dir=. | |
6560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6561 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6562 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6563 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6564 | break 2 | |
6565 | fi | |
6566 | done | |
6567 | done | |
6568 | ||
ca9f4b81 AO |
6569 | fi |
6570 | fi | |
6b65a26d | 6571 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 6572 | if test -n "$LD_FOR_TARGET"; then |
6b65a26d CM |
6573 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
6574 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
ca9f4b81 | 6575 | else |
6b65a26d CM |
6576 | echo "$as_me:$LINENO: result: no" >&5 |
6577 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6578 | fi |
6579 | ||
2693c0b0 PB |
6580 | fi |
6581 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
6582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6583 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6584 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6586 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then | |
6587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6588 | else |
2693c0b0 PB |
6589 | if test -n "$LD_FOR_TARGET"; then |
6590 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6591 | else |
6b65a26d CM |
6592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6593 | for as_dir in $PATH | |
6594 | do | |
6595 | IFS=$as_save_IFS | |
6596 | test -z "$as_dir" && as_dir=. | |
6597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6599 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" | |
6600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6601 | break 2 | |
6602 | fi | |
6603 | done | |
6604 | done | |
6605 | ||
ca9f4b81 AO |
6606 | fi |
6607 | fi | |
6b65a26d | 6608 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 6609 | if test -n "$LD_FOR_TARGET"; then |
6b65a26d CM |
6610 | echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 |
6611 | echo "${ECHO_T}$LD_FOR_TARGET" >&6 | |
ca9f4b81 | 6612 | else |
6b65a26d CM |
6613 | echo "$as_me:$LINENO: result: no" >&5 |
6614 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6615 | fi |
6b65a26d | 6616 | |
2693c0b0 PB |
6617 | fi |
6618 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
6619 | done | |
6620 | ||
6621 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then | |
6622 | set dummy ld | |
6623 | if test $build = $target ; then | |
6624 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 6625 | else |
2693c0b0 | 6626 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 6627 | fi |
ca9f4b81 AO |
6628 | fi |
6629 | ||
040b1c5a | 6630 | for ncn_progname in lipo; do |
2693c0b0 PB |
6631 | if test -n "$ncn_target_tool_prefix"; then |
6632 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6633 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6636 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then | |
6637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
6638 | else |
6639 | if test -n "$LIPO_FOR_TARGET"; then | |
6640 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
6641 | else | |
6b65a26d CM |
6642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6643 | for as_dir in $PATH | |
6644 | do | |
6645 | IFS=$as_save_IFS | |
6646 | test -z "$as_dir" && as_dir=. | |
6647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6649 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6651 | break 2 | |
6652 | fi | |
6653 | done | |
6654 | done | |
6655 | ||
040b1c5a GK |
6656 | fi |
6657 | fi | |
6b65a26d | 6658 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 6659 | if test -n "$LIPO_FOR_TARGET"; then |
6b65a26d CM |
6660 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
6661 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
040b1c5a | 6662 | else |
6b65a26d CM |
6663 | echo "$as_me:$LINENO: result: no" >&5 |
6664 | echo "${ECHO_T}no" >&6 | |
040b1c5a GK |
6665 | fi |
6666 | ||
6667 | fi | |
6668 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
6669 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6670 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6673 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then | |
6674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
6675 | else |
6676 | if test -n "$LIPO_FOR_TARGET"; then | |
6677 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
6678 | else | |
6b65a26d CM |
6679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6680 | for as_dir in $PATH | |
6681 | do | |
6682 | IFS=$as_save_IFS | |
6683 | test -z "$as_dir" && as_dir=. | |
6684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6686 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" | |
6687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6688 | break 2 | |
6689 | fi | |
6690 | done | |
6691 | done | |
6692 | ||
040b1c5a GK |
6693 | fi |
6694 | fi | |
6b65a26d | 6695 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 6696 | if test -n "$LIPO_FOR_TARGET"; then |
6b65a26d CM |
6697 | echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 |
6698 | echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 | |
040b1c5a | 6699 | else |
6b65a26d CM |
6700 | echo "$as_me:$LINENO: result: no" >&5 |
6701 | echo "${ECHO_T}no" >&6 | |
040b1c5a | 6702 | fi |
6b65a26d | 6703 | |
040b1c5a GK |
6704 | fi |
6705 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
6706 | done | |
6707 | ||
6708 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then | |
6709 | set dummy lipo | |
6710 | if test $build = $target ; then | |
6711 | LIPO_FOR_TARGET="$2" | |
6712 | else | |
6713 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
6714 | fi | |
6715 | fi | |
6716 | ||
6717 | for ncn_progname in nm; do | |
6718 | if test -n "$ncn_target_tool_prefix"; then | |
6719 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6720 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6723 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then | |
6724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6725 | else |
4de997d1 PB |
6726 | if test -n "$NM_FOR_TARGET"; then |
6727 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6728 | else |
6b65a26d CM |
6729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6730 | for as_dir in $PATH | |
6731 | do | |
6732 | IFS=$as_save_IFS | |
6733 | test -z "$as_dir" && as_dir=. | |
6734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6736 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6738 | break 2 | |
6739 | fi | |
6740 | done | |
6741 | done | |
6742 | ||
ca9f4b81 AO |
6743 | fi |
6744 | fi | |
6b65a26d | 6745 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 6746 | if test -n "$NM_FOR_TARGET"; then |
6b65a26d CM |
6747 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
6748 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
ca9f4b81 | 6749 | else |
6b65a26d CM |
6750 | echo "$as_me:$LINENO: result: no" >&5 |
6751 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6752 | fi |
6753 | ||
2693c0b0 PB |
6754 | fi |
6755 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
6756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6757 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6760 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then | |
6761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6762 | else |
2693c0b0 PB |
6763 | if test -n "$NM_FOR_TARGET"; then |
6764 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6765 | else |
6b65a26d CM |
6766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6767 | for as_dir in $PATH | |
6768 | do | |
6769 | IFS=$as_save_IFS | |
6770 | test -z "$as_dir" && as_dir=. | |
6771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6773 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" | |
6774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6775 | break 2 | |
6776 | fi | |
6777 | done | |
6778 | done | |
6779 | ||
ca9f4b81 AO |
6780 | fi |
6781 | fi | |
6b65a26d | 6782 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 6783 | if test -n "$NM_FOR_TARGET"; then |
6b65a26d CM |
6784 | echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 |
6785 | echo "${ECHO_T}$NM_FOR_TARGET" >&6 | |
ca9f4b81 | 6786 | else |
6b65a26d CM |
6787 | echo "$as_me:$LINENO: result: no" >&5 |
6788 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6789 | fi |
6b65a26d | 6790 | |
2693c0b0 PB |
6791 | fi |
6792 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
6793 | done | |
6794 | ||
6795 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then | |
6796 | set dummy nm | |
6797 | if test $build = $target ; then | |
6798 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 6799 | else |
2693c0b0 | 6800 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 6801 | fi |
ca9f4b81 AO |
6802 | fi |
6803 | ||
2693c0b0 PB |
6804 | for ncn_progname in ranlib; do |
6805 | if test -n "$ncn_target_tool_prefix"; then | |
6806 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6807 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6810 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then | |
6811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6812 | else |
4de997d1 PB |
6813 | if test -n "$RANLIB_FOR_TARGET"; then |
6814 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6815 | else |
6b65a26d CM |
6816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6817 | for as_dir in $PATH | |
6818 | do | |
6819 | IFS=$as_save_IFS | |
6820 | test -z "$as_dir" && as_dir=. | |
6821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6823 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6825 | break 2 | |
6826 | fi | |
6827 | done | |
6828 | done | |
6829 | ||
ca9f4b81 AO |
6830 | fi |
6831 | fi | |
6b65a26d | 6832 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 6833 | if test -n "$RANLIB_FOR_TARGET"; then |
6b65a26d CM |
6834 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
6835 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
ca9f4b81 | 6836 | else |
6b65a26d CM |
6837 | echo "$as_me:$LINENO: result: no" >&5 |
6838 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
6839 | fi |
6840 | ||
2693c0b0 PB |
6841 | fi |
6842 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
6843 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6844 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6847 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then | |
6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6849 | else |
2693c0b0 PB |
6850 | if test -n "$RANLIB_FOR_TARGET"; then |
6851 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6852 | else |
6b65a26d CM |
6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6854 | for as_dir in $PATH | |
6855 | do | |
6856 | IFS=$as_save_IFS | |
6857 | test -z "$as_dir" && as_dir=. | |
6858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6860 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" | |
6861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6862 | break 2 | |
6863 | fi | |
6864 | done | |
6865 | done | |
6866 | ||
ca9f4b81 AO |
6867 | fi |
6868 | fi | |
6b65a26d | 6869 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 6870 | if test -n "$RANLIB_FOR_TARGET"; then |
6b65a26d CM |
6871 | echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 |
6872 | echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 | |
ca9f4b81 | 6873 | else |
6b65a26d CM |
6874 | echo "$as_me:$LINENO: result: no" >&5 |
6875 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 6876 | fi |
6b65a26d | 6877 | |
ca9f4b81 | 6878 | fi |
2693c0b0 PB |
6879 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break |
6880 | done | |
6881 | ||
6882 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then | |
6883 | RANLIB_FOR_TARGET=":" | |
ca9f4b81 AO |
6884 | fi |
6885 | ||
040b1c5a GK |
6886 | for ncn_progname in strip; do |
6887 | if test -n "$ncn_target_tool_prefix"; then | |
6888 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6889 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6892 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then | |
6893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
6894 | else |
6895 | if test -n "$STRIP_FOR_TARGET"; then | |
6896 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
6897 | else | |
6b65a26d CM |
6898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6899 | for as_dir in $PATH | |
6900 | do | |
6901 | IFS=$as_save_IFS | |
6902 | test -z "$as_dir" && as_dir=. | |
6903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6905 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6907 | break 2 | |
6908 | fi | |
6909 | done | |
6910 | done | |
6911 | ||
040b1c5a GK |
6912 | fi |
6913 | fi | |
6b65a26d | 6914 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 6915 | if test -n "$STRIP_FOR_TARGET"; then |
6b65a26d CM |
6916 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
6917 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
040b1c5a | 6918 | else |
6b65a26d CM |
6919 | echo "$as_me:$LINENO: result: no" >&5 |
6920 | echo "${ECHO_T}no" >&6 | |
040b1c5a GK |
6921 | fi |
6922 | ||
6923 | fi | |
6924 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
6925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6926 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6927 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6929 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then | |
6930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
040b1c5a GK |
6931 | else |
6932 | if test -n "$STRIP_FOR_TARGET"; then | |
6933 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
6934 | else | |
6b65a26d CM |
6935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6936 | for as_dir in $PATH | |
6937 | do | |
6938 | IFS=$as_save_IFS | |
6939 | test -z "$as_dir" && as_dir=. | |
6940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6941 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6942 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" | |
6943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6944 | break 2 | |
6945 | fi | |
6946 | done | |
6947 | done | |
6948 | ||
040b1c5a GK |
6949 | fi |
6950 | fi | |
6b65a26d | 6951 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 6952 | if test -n "$STRIP_FOR_TARGET"; then |
6b65a26d CM |
6953 | echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 |
6954 | echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 | |
040b1c5a | 6955 | else |
6b65a26d CM |
6956 | echo "$as_me:$LINENO: result: no" >&5 |
6957 | echo "${ECHO_T}no" >&6 | |
040b1c5a | 6958 | fi |
6b65a26d | 6959 | |
040b1c5a GK |
6960 | fi |
6961 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
6962 | done | |
6963 | ||
6964 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then | |
6965 | set dummy strip | |
6966 | if test $build = $target ; then | |
6967 | STRIP_FOR_TARGET="$2" | |
6968 | else | |
6969 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
6970 | fi | |
6971 | fi | |
6972 | ||
2693c0b0 PB |
6973 | for ncn_progname in windres; do |
6974 | if test -n "$ncn_target_tool_prefix"; then | |
6975 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6976 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
6977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6979 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then | |
6980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 6981 | else |
4de997d1 PB |
6982 | if test -n "$WINDRES_FOR_TARGET"; then |
6983 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 6984 | else |
6b65a26d CM |
6985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6986 | for as_dir in $PATH | |
6987 | do | |
6988 | IFS=$as_save_IFS | |
6989 | test -z "$as_dir" && as_dir=. | |
6990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6991 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6992 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
6993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6994 | break 2 | |
6995 | fi | |
6996 | done | |
6997 | done | |
6998 | ||
ca9f4b81 AO |
6999 | fi |
7000 | fi | |
6b65a26d | 7001 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 7002 | if test -n "$WINDRES_FOR_TARGET"; then |
6b65a26d CM |
7003 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
7004 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
ca9f4b81 | 7005 | else |
6b65a26d CM |
7006 | echo "$as_me:$LINENO: result: no" >&5 |
7007 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 AO |
7008 | fi |
7009 | ||
2693c0b0 PB |
7010 | fi |
7011 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
7012 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7013 | set dummy ${ncn_progname}; ac_word=$2 | |
6b65a26d CM |
7014 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7016 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then | |
7017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca9f4b81 | 7018 | else |
2693c0b0 PB |
7019 | if test -n "$WINDRES_FOR_TARGET"; then |
7020 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 7021 | else |
6b65a26d CM |
7022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7023 | for as_dir in $PATH | |
7024 | do | |
7025 | IFS=$as_save_IFS | |
7026 | test -z "$as_dir" && as_dir=. | |
7027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7028 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7029 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" | |
7030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7031 | break 2 | |
7032 | fi | |
7033 | done | |
7034 | done | |
7035 | ||
ca9f4b81 AO |
7036 | fi |
7037 | fi | |
6b65a26d | 7038 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 7039 | if test -n "$WINDRES_FOR_TARGET"; then |
6b65a26d CM |
7040 | echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 |
7041 | echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 | |
ca9f4b81 | 7042 | else |
6b65a26d CM |
7043 | echo "$as_me:$LINENO: result: no" >&5 |
7044 | echo "${ECHO_T}no" >&6 | |
ca9f4b81 | 7045 | fi |
6b65a26d | 7046 | |
2693c0b0 PB |
7047 | fi |
7048 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
7049 | done | |
7050 | ||
7051 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then | |
7052 | set dummy windres | |
7053 | if test $build = $target ; then | |
7054 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 7055 | else |
2693c0b0 | 7056 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 7057 | fi |
ca9f4b81 AO |
7058 | fi |
7059 | ||
4977bab6 | 7060 | |
4de997d1 PB |
7061 | CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET" |
7062 | CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET" | |
7063 | CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET" | |
7064 | CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET" | |
7065 | CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" | |
7066 | CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET" | |
7067 | CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" | |
7068 | CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" | |
7069 | CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET" | |
040b1c5a | 7070 | CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" |
4de997d1 PB |
7071 | CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET" |
7072 | CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" | |
040b1c5a | 7073 | CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" |
4de997d1 | 7074 | CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" |
79c06341 | 7075 | |
671aa708 | 7076 | |
6de9cd9a | 7077 | |
671aa708 NN |
7078 | # Fix up target tools. |
7079 | if test "x${build}" = "x${host}" ; then | |
7080 | # In this case, the newly built tools can and should be used, | |
7081 | # so we override the results of the autoconf tests. | |
7082 | # This should really only happen when the tools are actually being built, | |
7083 | # but that's a further refinement. The new build scheme, where | |
7084 | # tools are built into a structure paralleling where they're installed, | |
7085 | # should also eliminate all of this cleanly. | |
7086 | AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)" | |
7087 | AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)" | |
4de997d1 PB |
7088 | CC_FOR_TARGET="\$(USUAL_CC_FOR_TARGET)" |
7089 | CXX_FOR_TARGET="\$(USUAL_CXX_FOR_TARGET)" | |
7090 | RAW_CXX_FOR_TARGET="\$(USUAL_RAW_CXX_FOR_TARGET)" | |
671aa708 | 7091 | DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)" |
4de997d1 PB |
7092 | GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)" |
7093 | GCJ_FOR_TARGET="\$(USUAL_GCJ_FOR_TARGET)" | |
7094 | GFORTRAN_FOR_TARGET="\$(USUAL_GFORTRAN_FOR_TARGET)" | |
671aa708 | 7095 | LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)" |
040b1c5a | 7096 | LIPO_FOR_TARGET="\$(USUAL_LIPO_FOR_TARGET)" |
671aa708 NN |
7097 | NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)" |
7098 | RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)" | |
040b1c5a | 7099 | STRIP_FOR_TARGET="\$(USUAL_STRIP_FOR_TARGET)" |
671aa708 | 7100 | WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)" |
be912515 NN |
7101 | else |
7102 | # Just use the ones we found. | |
7103 | AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)" | |
7104 | AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)" | |
4de997d1 PB |
7105 | CC_FOR_TARGET="\$(CONFIGURED_CC_FOR_TARGET)" |
7106 | CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)" | |
7107 | RAW_CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)" | |
be912515 | 7108 | DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)" |
4de997d1 PB |
7109 | GCC_FOR_TARGET="\$(CONFIGURED_GCC_FOR_TARGET)" |
7110 | GCJ_FOR_TARGET="\$(CONFIGURED_GCJ_FOR_TARGET)" | |
7111 | GFORTRAN_FOR_TARGET="\$(CONFIGURED_GFORTRAN_FOR_TARGET)" | |
be912515 | 7112 | LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)" |
040b1c5a | 7113 | LIPO_FOR_TARGET="\$(CONFIGURED_LIPO_FOR_TARGET)" |
be912515 NN |
7114 | NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)" |
7115 | RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)" | |
040b1c5a | 7116 | STRIP_FOR_TARGET="\$(CONFIGURED_STRIP_FOR_TARGET)" |
6b65a26d | 7117 | WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)" |
671aa708 | 7118 | fi |
be912515 NN |
7119 | |
7120 | ||
7121 | ||
671aa708 NN |
7122 | # Certain tools may need extra flags. |
7123 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
7124 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
7125 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
7126 | ||
6b65a26d CM |
7127 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
7128 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
ee03dc5e AO |
7129 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
7130 | if test "${enable_maintainer_mode+set}" = set; then | |
7131 | enableval="$enable_maintainer_mode" | |
7132 | USE_MAINTAINER_MODE=$enableval | |
7133 | else | |
7134 | USE_MAINTAINER_MODE=no | |
6b65a26d CM |
7135 | fi; |
7136 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
7137 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
ee03dc5e AO |
7138 | |
7139 | ||
7140 | if test "$USE_MAINTAINER_MODE" = yes; then | |
7141 | MAINTAINER_MODE_TRUE= | |
7142 | MAINTAINER_MODE_FALSE='#' | |
7143 | else | |
7144 | MAINTAINER_MODE_TRUE='#' | |
7145 | MAINTAINER_MODE_FALSE= | |
6b65a26d | 7146 | fi |
ee03dc5e AO |
7147 | MAINT=$MAINTAINER_MODE_TRUE |
7148 | ||
2805b53a NN |
7149 | # --------------------- |
7150 | # GCC bootstrap support | |
7151 | # --------------------- | |
7152 | ||
7153 | # Stage specific cflags for build. | |
7154 | stage1_cflags="-g" | |
7155 | case $build in | |
7156 | vax-*-*) | |
7157 | case ${GCC} in | |
7158 | yes) stage1_cflags="-g -Wa,-J" ;; | |
7159 | *) stage1_cflags="-g -J" ;; | |
7160 | esac ;; | |
7161 | powerpc-*-darwin*) | |
7162 | # The spiffy cpp-precomp chokes on some legitimate constructs in GCC | |
7163 | # sources; use -no-cpp-precomp to get to GNU cpp. | |
7164 | # Apple's GCC has bugs in designated initializer handling, so disable | |
7165 | # that too. | |
7166 | stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0" | |
7167 | ;; | |
7168 | esac | |
7169 | ||
7170 | ||
148907ea | 7171 | # It makes debugging easier if we create as symlinks the stage directories |
ce521a9c | 7172 | # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not |
148907ea | 7173 | # possible, however, we can resort to mv. |
6b65a26d CM |
7174 | echo "$as_me:$LINENO: checking if symbolic links between directories work" >&5 |
7175 | echo $ECHO_N "checking if symbolic links between directories work... $ECHO_C" >&6 | |
7176 | if test "${gcc_cv_prog_ln_s_dir+set}" = set; then | |
7177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
148907ea PB |
7178 | else |
7179 | if test "${LN_S}" = "ln -s" \ | |
7180 | && mkdir confdir.s1 \ | |
7181 | && ln -s confdir.s1 confdir.s2 \ | |
7182 | && echo timestamp1 > confdir.s1/conftest.1 \ | |
7183 | && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \ | |
7184 | && echo timestamp2 > confdir.s2/conftest.2 \ | |
7185 | && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \ | |
7186 | && rm -f confdir.s2; then | |
7187 | gcc_cv_prog_ln_s_dir=yes | |
7188 | else | |
215c351a | 7189 | gcc_cv_prog_ln_s_dir=no |
148907ea PB |
7190 | fi |
7191 | rm -rf confdir.s1 confdir.s2 | |
7192 | fi | |
6b65a26d CM |
7193 | echo "$as_me:$LINENO: result: $gcc_cv_prog_ln_s_dir" >&5 |
7194 | echo "${ECHO_T}$gcc_cv_prog_ln_s_dir" >&6 | |
148907ea PB |
7195 | |
7196 | case ${gcc_cv_prog_ln_s_dir} in | |
7197 | yes) | |
7198 | CREATE_LINK_TO_DIR='ln -s $$1 $$2' | |
7199 | UNDO_LINK_TO_DIR='rm -f $$1' ;; | |
7200 | *) | |
7201 | CREATE_LINK_TO_DIR='mv $$1 $$2' | |
7202 | UNDO_LINK_TO_DIR='mv $$1 $$2' ;; | |
7203 | esac | |
7204 | ||
7205 | ||
7206 | ||
2805b53a NN |
7207 | # Enable -Werror in bootstrap stage2 and later. |
7208 | # Change the default to "no" on release branches. | |
7209 | # Check whether --enable-werror or --disable-werror was given. | |
7210 | if test "${enable_werror+set}" = set; then | |
7211 | enableval="$enable_werror" | |
6b65a26d | 7212 | |
2805b53a NN |
7213 | else |
7214 | enable_werror=yes | |
6b65a26d | 7215 | fi; |
09a9c095 NN |
7216 | case ${enable_werror} in |
7217 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
7218 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
7219 | esac |
7220 | ||
7221 | ||
6b65a26d CM |
7222 | ac_config_files="$ac_config_files Makefile" |
7223 | cat >confcache <<\_ACEOF | |
671aa708 NN |
7224 | # This file is a shell script that caches the results of configure |
7225 | # tests run on this system so they can be shared between configure | |
6b65a26d CM |
7226 | # scripts and configure runs, see configure's option --config-cache. |
7227 | # It is not useful on other systems. If it contains results you don't | |
7228 | # want to keep, you may remove or edit it. | |
671aa708 | 7229 | # |
6b65a26d CM |
7230 | # config.status only pays attention to the cache file if you give it |
7231 | # the --recheck option to rerun configure. | |
671aa708 | 7232 | # |
6b65a26d CM |
7233 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
7234 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7235 | # following values. | |
7236 | ||
7237 | _ACEOF | |
7238 | ||
671aa708 NN |
7239 | # The following way of writing the cache mishandles newlines in values, |
7240 | # but we know of no workaround that is simple, portable, and efficient. | |
7241 | # So, don't put newlines in cache variables' values. | |
7242 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7243 | # and sets the high bit in the cache file unless we assign to the vars. | |
6b65a26d CM |
7244 | { |
7245 | (set) 2>&1 | | |
7246 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7247 | *ac_space=\ *) | |
7248 | # `set' does not quote correctly, so add quotes (double-quote | |
7249 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7250 | sed -n \ | |
7251 | "s/'/'\\\\''/g; | |
7252 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7253 | ;; | |
7254 | *) | |
7255 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7256 | sed -n \ | |
7257 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7258 | ;; | |
7259 | esac; | |
7260 | } | | |
7261 | sed ' | |
7262 | t clear | |
7263 | : clear | |
7264 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7265 | t end | |
7266 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7267 | : end' >>confcache | |
7268 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
671aa708 | 7269 | if test -w $cache_file; then |
6b65a26d CM |
7270 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7271 | cat confcache >$cache_file | |
671aa708 NN |
7272 | else |
7273 | echo "not updating unwritable cache $cache_file" | |
7274 | fi | |
4977bab6 | 7275 | fi |
671aa708 | 7276 | rm -f confcache |
79c06341 | 7277 | |
671aa708 NN |
7278 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7279 | # Let make expand exec_prefix. | |
7280 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 7281 | |
6b65a26d CM |
7282 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7283 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7284 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7285 | # (actually we leave an empty line to preserve line numbers). | |
671aa708 | 7286 | if test "x$srcdir" = x.; then |
6b65a26d CM |
7287 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7288 | s/:*\$(srcdir):*/:/; | |
7289 | s/:*\${srcdir}:*/:/; | |
7290 | s/:*@srcdir@:*/:/; | |
7291 | s/^\([^=]*=[ ]*\):*/\1/; | |
7292 | s/:*$//; | |
7293 | s/^[^=]*=[ ]*$//; | |
7294 | }' | |
671aa708 | 7295 | fi |
79c06341 | 7296 | |
671aa708 NN |
7297 | # Transform confdefs.h into DEFS. |
7298 | # Protect against shell expansion while executing Makefile rules. | |
7299 | # Protect against Makefile macro expansion. | |
6b65a26d CM |
7300 | # |
7301 | # If the first sed substitution is executed (which looks for macros that | |
7302 | # take arguments), then we branch to the quote section. Otherwise, | |
7303 | # look for a macro that doesn't take arguments. | |
7304 | cat >confdef2opt.sed <<\_ACEOF | |
7305 | t clear | |
7306 | : clear | |
7307 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
7308 | t quote | |
7309 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
7310 | t quote | |
7311 | d | |
7312 | : quote | |
7313 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
7314 | s,\[,\\&,g | |
7315 | s,\],\\&,g | |
7316 | s,\$,$$,g | |
7317 | p | |
7318 | _ACEOF | |
7319 | # We use echo to avoid assuming a particular line-breaking character. | |
7320 | # The extra dot is to prevent the shell from consuming trailing | |
7321 | # line-breaks from the sub-command output. A line-break within | |
7322 | # single-quotes doesn't work because, if this script is created in a | |
7323 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
7324 | # would break. | |
7325 | ac_LF_and_DOT=`echo; echo .` | |
7326 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
7327 | rm -f confdef2opt.sed | |
7328 | ||
7329 | ||
7330 | ac_libobjs= | |
7331 | ac_ltlibobjs= | |
7332 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7333 | # 1. Remove the extension, and $U if already installed. | |
7334 | ac_i=`echo "$ac_i" | | |
7335 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7336 | # 2. Add them. | |
7337 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7338 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7339 | done | |
7340 | LIBOBJS=$ac_libobjs | |
4977bab6 | 7341 | |
6b65a26d | 7342 | LTLIBOBJS=$ac_ltlibobjs |
4977bab6 | 7343 | |
4977bab6 | 7344 | |
6b65a26d CM |
7345 | |
7346 | : ${CONFIG_STATUS=./config.status} | |
7347 | ac_clean_files_save=$ac_clean_files | |
7348 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7349 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7350 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7351 | cat >$CONFIG_STATUS <<_ACEOF | |
7352 | #! $SHELL | |
7353 | # Generated by $as_me. | |
671aa708 | 7354 | # Run this file to recreate the current configuration. |
671aa708 | 7355 | # Compiler output produced by configure, useful for debugging |
6b65a26d | 7356 | # configure, is in config.log if it exists. |
4977bab6 | 7357 | |
6b65a26d CM |
7358 | debug=false |
7359 | ac_cs_recheck=false | |
7360 | ac_cs_silent=false | |
7361 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7362 | _ACEOF | |
7363 | ||
7364 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7365 | ## --------------------- ## | |
7366 | ## M4sh Initialization. ## | |
7367 | ## --------------------- ## | |
7368 | ||
7369 | # Be Bourne compatible | |
7370 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7371 | emulate sh | |
7372 | NULLCMD=: | |
7373 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7374 | # is contrary to our usage. Disable this feature. | |
7375 | alias -g '${1+"$@"}'='"$@"' | |
7376 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7377 | set -o posix | |
7378 | fi | |
7379 | DUALCASE=1; export DUALCASE # for MKS sh | |
7380 | ||
7381 | # Support unset when possible. | |
7382 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7383 | as_unset=unset | |
7384 | else | |
7385 | as_unset=false | |
7386 | fi | |
7387 | ||
7388 | ||
7389 | # Work around bugs in pre-3.0 UWIN ksh. | |
7390 | $as_unset ENV MAIL MAILPATH | |
7391 | PS1='$ ' | |
7392 | PS2='> ' | |
7393 | PS4='+ ' | |
7394 | ||
7395 | # NLS nuisances. | |
7396 | for as_var in \ | |
7397 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7398 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7399 | LC_TELEPHONE LC_TIME | |
7400 | do | |
7401 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
7402 | eval $as_var=C; export $as_var | |
7403 | else | |
7404 | $as_unset $as_var | |
7405 | fi | |
7406 | done | |
7407 | ||
7408 | # Required to use basename. | |
7409 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7410 | as_expr=expr | |
7411 | else | |
7412 | as_expr=false | |
7413 | fi | |
7414 | ||
7415 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7416 | as_basename=basename | |
7417 | else | |
7418 | as_basename=false | |
7419 | fi | |
7420 | ||
7421 | ||
7422 | # Name of the executable. | |
7423 | as_me=`$as_basename "$0" || | |
7424 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7425 | X"$0" : 'X\(//\)$' \| \ | |
7426 | X"$0" : 'X\(/\)$' \| \ | |
7427 | . : '\(.\)' 2>/dev/null || | |
7428 | echo X/"$0" | | |
7429 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7430 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7431 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7432 | s/.*/./; q'` | |
7433 | ||
7434 | ||
7435 | # PATH needs CR, and LINENO needs CR and PATH. | |
7436 | # Avoid depending upon Character Ranges. | |
7437 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7438 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7439 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7440 | as_cr_digits='0123456789' | |
7441 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7442 | ||
7443 | # The user is always right. | |
7444 | if test "${PATH_SEPARATOR+set}" != set; then | |
7445 | echo "#! /bin/sh" >conf$$.sh | |
7446 | echo "exit 0" >>conf$$.sh | |
7447 | chmod +x conf$$.sh | |
7448 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7449 | PATH_SEPARATOR=';' | |
7450 | else | |
7451 | PATH_SEPARATOR=: | |
7452 | fi | |
7453 | rm -f conf$$.sh | |
7454 | fi | |
7455 | ||
7456 | ||
7457 | as_lineno_1=$LINENO | |
7458 | as_lineno_2=$LINENO | |
7459 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7460 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7461 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7462 | # Find who we are. Look in the path if we contain no path at all | |
7463 | # relative or not. | |
7464 | case $0 in | |
7465 | *[\\/]* ) as_myself=$0 ;; | |
7466 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7467 | for as_dir in $PATH | |
7468 | do | |
7469 | IFS=$as_save_IFS | |
7470 | test -z "$as_dir" && as_dir=. | |
7471 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7472 | done | |
7473 | ||
7474 | ;; | |
7475 | esac | |
7476 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7477 | # in which case we are not to be found in the path. | |
7478 | if test "x$as_myself" = x; then | |
7479 | as_myself=$0 | |
7480 | fi | |
7481 | if test ! -f "$as_myself"; then | |
7482 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7483 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7484 | { (exit 1); exit 1; }; } | |
7485 | fi | |
7486 | case $CONFIG_SHELL in | |
7487 | '') | |
7488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7489 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7490 | do | |
7491 | IFS=$as_save_IFS | |
7492 | test -z "$as_dir" && as_dir=. | |
7493 | for as_base in sh bash ksh sh5; do | |
7494 | case $as_dir in | |
7495 | /*) | |
7496 | if ("$as_dir/$as_base" -c ' | |
7497 | as_lineno_1=$LINENO | |
7498 | as_lineno_2=$LINENO | |
7499 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7500 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7501 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7502 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7503 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7504 | CONFIG_SHELL=$as_dir/$as_base | |
7505 | export CONFIG_SHELL | |
7506 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7507 | fi;; | |
7508 | esac | |
7509 | done | |
7510 | done | |
7511 | ;; | |
7512 | esac | |
7513 | ||
7514 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7515 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7516 | # line-number line before each line; the second 'sed' does the real | |
7517 | # work. The second script uses 'N' to pair each line-number line | |
7518 | # with the numbered line, and appends trailing '-' during | |
7519 | # substitution so that $LINENO is not a special case at line end. | |
7520 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7521 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7522 | sed '=' <$as_myself | | |
7523 | sed ' | |
7524 | N | |
7525 | s,$,-, | |
7526 | : loop | |
7527 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7528 | t loop | |
7529 | s,-$,, | |
7530 | s,^['$as_cr_digits']*\n,, | |
7531 | ' >$as_me.lineno && | |
7532 | chmod +x $as_me.lineno || | |
7533 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7534 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7535 | { (exit 1); exit 1; }; } | |
7536 | ||
7537 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7538 | # (the dirname of $[0] is not the place where we might find the | |
7539 | # original and so on. Autoconf is especially sensible to this). | |
7540 | . ./$as_me.lineno | |
7541 | # Exit status is that of the last command. | |
7542 | exit | |
7543 | } | |
7544 | ||
7545 | ||
7546 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7547 | *c*,-n*) ECHO_N= ECHO_C=' | |
7548 | ' ECHO_T=' ' ;; | |
7549 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7550 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7551 | esac | |
7552 | ||
7553 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7554 | as_expr=expr | |
7555 | else | |
7556 | as_expr=false | |
7557 | fi | |
7558 | ||
7559 | rm -f conf$$ conf$$.exe conf$$.file | |
7560 | echo >conf$$.file | |
7561 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7562 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7563 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7564 | if test -f conf$$.exe; then | |
7565 | # Don't use ln at all; we don't have any links | |
7566 | as_ln_s='cp -p' | |
7567 | else | |
7568 | as_ln_s='ln -s' | |
7569 | fi | |
7570 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7571 | as_ln_s=ln | |
7572 | else | |
7573 | as_ln_s='cp -p' | |
7574 | fi | |
7575 | rm -f conf$$ conf$$.exe conf$$.file | |
7576 | ||
7577 | if mkdir -p . 2>/dev/null; then | |
7578 | as_mkdir_p=: | |
7579 | else | |
7580 | test -d ./-p && rmdir ./-p | |
7581 | as_mkdir_p=false | |
7582 | fi | |
7583 | ||
7584 | as_executable_p="test -f" | |
7585 | ||
7586 | # Sed expression to map a string onto a valid CPP name. | |
7587 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7588 | ||
7589 | # Sed expression to map a string onto a valid variable name. | |
7590 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7591 | ||
7592 | ||
7593 | # IFS | |
7594 | # We need space, tab and new line, in precisely that order. | |
7595 | as_nl=' | |
7596 | ' | |
7597 | IFS=" $as_nl" | |
7598 | ||
7599 | # CDPATH. | |
7600 | $as_unset CDPATH | |
7601 | ||
7602 | exec 6>&1 | |
7603 | ||
7604 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
7605 | # report actual input values of CONFIG_FILES etc. instead of their | |
7606 | # values after options handling. Logging --version etc. is OK. | |
7607 | exec 5>>config.log | |
7608 | { | |
7609 | echo | |
7610 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7611 | ## Running $as_me. ## | |
7612 | _ASBOX | |
7613 | } >&5 | |
7614 | cat >&5 <<_CSEOF | |
7615 | ||
7616 | This file was extended by $as_me, which was | |
7617 | generated by GNU Autoconf 2.59. Invocation command line was | |
7618 | ||
7619 | CONFIG_FILES = $CONFIG_FILES | |
7620 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7621 | CONFIG_LINKS = $CONFIG_LINKS | |
7622 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7623 | $ $0 $@ | |
7624 | ||
7625 | _CSEOF | |
7626 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7627 | echo >&5 | |
7628 | _ACEOF | |
7629 | ||
7630 | # Files that config.status was made for. | |
7631 | if test -n "$ac_config_files"; then | |
7632 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7633 | fi | |
7634 | ||
7635 | if test -n "$ac_config_headers"; then | |
7636 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7637 | fi | |
7638 | ||
7639 | if test -n "$ac_config_links"; then | |
7640 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7641 | fi | |
7642 | ||
7643 | if test -n "$ac_config_commands"; then | |
7644 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7645 | fi | |
7646 | ||
7647 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7648 | ||
7649 | ac_cs_usage="\ | |
7650 | \`$as_me' instantiates files from templates according to the | |
7651 | current configuration. | |
7652 | ||
7653 | Usage: $0 [OPTIONS] [FILE]... | |
7654 | ||
7655 | -h, --help print this help, then exit | |
7656 | -V, --version print version number, then exit | |
7657 | -q, --quiet do not print progress messages | |
7658 | -d, --debug don't remove temporary files | |
7659 | --recheck update $as_me by reconfiguring in the same conditions | |
7660 | --file=FILE[:TEMPLATE] | |
7661 | instantiate the configuration file FILE | |
7662 | ||
7663 | Configuration files: | |
7664 | $config_files | |
7665 | ||
7666 | Report bugs to <bug-autoconf@gnu.org>." | |
7667 | _ACEOF | |
7668 | ||
7669 | cat >>$CONFIG_STATUS <<_ACEOF | |
7670 | ac_cs_version="\\ | |
7671 | config.status | |
7672 | configured by $0, generated by GNU Autoconf 2.59, | |
7673 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7674 | ||
7675 | Copyright (C) 2003 Free Software Foundation, Inc. | |
7676 | This config.status script is free software; the Free Software Foundation | |
7677 | gives unlimited permission to copy, distribute and modify it." | |
7678 | srcdir=$srcdir | |
7679 | INSTALL="$INSTALL" | |
7680 | _ACEOF | |
7681 | ||
7682 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7683 | # If no file are specified by the user, then we need to provide default | |
7684 | # value. By we need to know if files were specified by the user. | |
7685 | ac_need_defaults=: | |
7686 | while test $# != 0 | |
671aa708 | 7687 | do |
6b65a26d CM |
7688 | case $1 in |
7689 | --*=*) | |
7690 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7691 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7692 | ac_shift=: | |
7693 | ;; | |
7694 | -*) | |
7695 | ac_option=$1 | |
7696 | ac_optarg=$2 | |
7697 | ac_shift=shift | |
7698 | ;; | |
7699 | *) # This is not an option, so the user has probably given explicit | |
7700 | # arguments. | |
7701 | ac_option=$1 | |
7702 | ac_need_defaults=false;; | |
7703 | esac | |
7704 | ||
7705 | case $ac_option in | |
7706 | # Handling of the options. | |
7707 | _ACEOF | |
7708 | cat >>$CONFIG_STATUS <<\_ACEOF | |
671aa708 | 7709 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6b65a26d CM |
7710 | ac_cs_recheck=: ;; |
7711 | --version | --vers* | -V ) | |
7712 | echo "$ac_cs_version"; exit 0 ;; | |
7713 | --he | --h) | |
7714 | # Conflict between --help and --header | |
7715 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7716 | Try \`$0 --help' for more information." >&5 | |
7717 | echo "$as_me: error: ambiguous option: $1 | |
7718 | Try \`$0 --help' for more information." >&2;} | |
7719 | { (exit 1); exit 1; }; };; | |
7720 | --help | --hel | -h ) | |
7721 | echo "$ac_cs_usage"; exit 0 ;; | |
7722 | --debug | --d* | -d ) | |
7723 | debug=: ;; | |
7724 | --file | --fil | --fi | --f ) | |
7725 | $ac_shift | |
7726 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7727 | ac_need_defaults=false;; | |
7728 | --header | --heade | --head | --hea ) | |
7729 | $ac_shift | |
7730 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7731 | ac_need_defaults=false;; | |
7732 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7733 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7734 | ac_cs_silent=: ;; | |
7735 | ||
7736 | # This is an error. | |
7737 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7738 | Try \`$0 --help' for more information." >&5 | |
7739 | echo "$as_me: error: unrecognized option: $1 | |
7740 | Try \`$0 --help' for more information." >&2;} | |
7741 | { (exit 1); exit 1; }; } ;; | |
7742 | ||
7743 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7744 | ||
4977bab6 | 7745 | esac |
6b65a26d | 7746 | shift |
671aa708 | 7747 | done |
4977bab6 | 7748 | |
6b65a26d | 7749 | ac_configure_extra_args= |
79c06341 | 7750 | |
6b65a26d CM |
7751 | if $ac_cs_silent; then |
7752 | exec 6>/dev/null | |
7753 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7754 | fi | |
671aa708 | 7755 | |
6b65a26d CM |
7756 | _ACEOF |
7757 | cat >>$CONFIG_STATUS <<_ACEOF | |
7758 | if \$ac_cs_recheck; then | |
7759 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7760 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7761 | fi | |
7762 | ||
7763 | _ACEOF | |
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7770 | for ac_config_target in $ac_config_targets | |
7771 | do | |
7772 | case "$ac_config_target" in | |
7773 | # Handling of arguments. | |
7774 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7775 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7776 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7777 | { (exit 1); exit 1; }; };; | |
7778 | esac | |
7779 | done | |
7780 | ||
7781 | # If the user did not use the arguments to specify the items to instantiate, | |
7782 | # then the envvar interface is used. Set only those that are not. | |
7783 | # We use the long form for the default assignment because of an extremely | |
7784 | # bizarre bug on SunOS 4.1.3. | |
7785 | if $ac_need_defaults; then | |
7786 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7787 | fi | |
7788 | ||
7789 | # Have a temporary directory for convenience. Make it in the build tree | |
7790 | # simply because there is no reason to put it here, and in addition, | |
7791 | # creating and moving files from /tmp can sometimes cause problems. | |
7792 | # Create a temporary directory, and hook for its removal unless debugging. | |
7793 | $debug || | |
7794 | { | |
7795 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7796 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7797 | } | |
7798 | ||
7799 | # Create a (secure) tmp directory for tmp files. | |
7800 | ||
7801 | { | |
7802 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7803 | test -n "$tmp" && test -d "$tmp" | |
7804 | } || | |
7805 | { | |
7806 | tmp=./confstat$$-$RANDOM | |
7807 | (umask 077 && mkdir $tmp) | |
7808 | } || | |
7809 | { | |
7810 | echo "$me: cannot create a temporary directory in ." >&2 | |
7811 | { (exit 1); exit 1; } | |
7812 | } | |
7813 | ||
7814 | _ACEOF | |
7815 | ||
7816 | cat >>$CONFIG_STATUS <<_ACEOF | |
7817 | ||
7818 | # | |
7819 | # CONFIG_FILES section. | |
7820 | # | |
7821 | ||
7822 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7823 | # This happens for instance when ./config.status config.h | |
7824 | if test -n "\$CONFIG_FILES"; then | |
7825 | # Protect against being on the right side of a sed subst in config.status. | |
7826 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7827 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7828 | s,@SHELL@,$SHELL,;t t | |
7829 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7830 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7831 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7832 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7833 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7834 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7835 | s,@exec_prefix@,$exec_prefix,;t t | |
7836 | s,@prefix@,$prefix,;t t | |
7837 | s,@program_transform_name@,$program_transform_name,;t t | |
7838 | s,@bindir@,$bindir,;t t | |
7839 | s,@sbindir@,$sbindir,;t t | |
7840 | s,@libexecdir@,$libexecdir,;t t | |
7841 | s,@datadir@,$datadir,;t t | |
7842 | s,@sysconfdir@,$sysconfdir,;t t | |
7843 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7844 | s,@localstatedir@,$localstatedir,;t t | |
7845 | s,@libdir@,$libdir,;t t | |
7846 | s,@includedir@,$includedir,;t t | |
7847 | s,@oldincludedir@,$oldincludedir,;t t | |
7848 | s,@infodir@,$infodir,;t t | |
7849 | s,@mandir@,$mandir,;t t | |
7850 | s,@build_alias@,$build_alias,;t t | |
7851 | s,@host_alias@,$host_alias,;t t | |
7852 | s,@target_alias@,$target_alias,;t t | |
7853 | s,@DEFS@,$DEFS,;t t | |
7854 | s,@ECHO_C@,$ECHO_C,;t t | |
7855 | s,@ECHO_N@,$ECHO_N,;t t | |
7856 | s,@ECHO_T@,$ECHO_T,;t t | |
7857 | s,@LIBS@,$LIBS,;t t | |
7858 | s,@build@,$build,;t t | |
7859 | s,@build_cpu@,$build_cpu,;t t | |
7860 | s,@build_vendor@,$build_vendor,;t t | |
7861 | s,@build_os@,$build_os,;t t | |
7862 | s,@host@,$host,;t t | |
7863 | s,@host_cpu@,$host_cpu,;t t | |
7864 | s,@host_vendor@,$host_vendor,;t t | |
7865 | s,@host_os@,$host_os,;t t | |
7866 | s,@target@,$target,;t t | |
7867 | s,@target_cpu@,$target_cpu,;t t | |
7868 | s,@target_vendor@,$target_vendor,;t t | |
7869 | s,@target_os@,$target_os,;t t | |
7870 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7871 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7872 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7873 | s,@LN@,$LN,;t t | |
7874 | s,@LN_S@,$LN_S,;t t | |
7875 | s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t | |
7876 | s,@build_subdir@,$build_subdir,;t t | |
7877 | s,@host_subdir@,$host_subdir,;t t | |
7878 | s,@target_subdir@,$target_subdir,;t t | |
7879 | s,@CC@,$CC,;t t | |
7880 | s,@CFLAGS@,$CFLAGS,;t t | |
7881 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7882 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7883 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7884 | s,@EXEEXT@,$EXEEXT,;t t | |
7885 | s,@OBJEXT@,$OBJEXT,;t t | |
7886 | s,@GNATBIND@,$GNATBIND,;t t | |
7887 | s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t | |
7888 | s,@do_compare@,$do_compare,;t t | |
7889 | s,@gmplibs@,$gmplibs,;t t | |
7890 | s,@gmpinc@,$gmpinc,;t t | |
7891 | s,@stage1_languages@,$stage1_languages,;t t | |
7892 | s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t | |
7893 | s,@CONFIGURED_BISON@,$CONFIGURED_BISON,;t t | |
7894 | s,@CONFIGURED_YACC@,$CONFIGURED_YACC,;t t | |
7895 | s,@CONFIGURED_M4@,$CONFIGURED_M4,;t t | |
7896 | s,@CONFIGURED_FLEX@,$CONFIGURED_FLEX,;t t | |
7897 | s,@CONFIGURED_LEX@,$CONFIGURED_LEX,;t t | |
7898 | s,@CONFIGURED_MAKEINFO@,$CONFIGURED_MAKEINFO,;t t | |
7899 | s,@bootstrap_lean@,$bootstrap_lean,;t t | |
7900 | s,@default_target@,$default_target,;t t | |
7901 | s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t | |
7902 | s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t | |
7903 | s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t | |
7904 | s,@tooldir@,$tooldir,;t t | |
7905 | s,@build_tooldir@,$build_tooldir,;t t | |
7906 | s,@GDB_TK@,$GDB_TK,;t t | |
7907 | s,@build_configargs@,$build_configargs,;t t | |
7908 | s,@build_configdirs@,$build_configdirs,;t t | |
7909 | s,@host_configargs@,$host_configargs,;t t | |
7910 | s,@configdirs@,$configdirs,;t t | |
7911 | s,@target_configargs@,$target_configargs,;t t | |
7912 | s,@target_configdirs@,$target_configdirs,;t t | |
7913 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
7914 | s,@config_shell@,$config_shell,;t t | |
7915 | s,@AR@,$AR,;t t | |
7916 | s,@AS@,$AS,;t t | |
7917 | s,@DLLTOOL@,$DLLTOOL,;t t | |
7918 | s,@LD@,$LD,;t t | |
7919 | s,@NM@,$NM,;t t | |
7920 | s,@RANLIB@,$RANLIB,;t t | |
7921 | s,@WINDRES@,$WINDRES,;t t | |
7922 | s,@OBJCOPY@,$OBJCOPY,;t t | |
7923 | s,@OBJDUMP@,$OBJDUMP,;t t | |
7924 | s,@CXX@,$CXX,;t t | |
7925 | s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t | |
7926 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
7927 | s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t | |
7928 | s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t | |
7929 | s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t | |
7930 | s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t | |
7931 | s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t | |
7932 | s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t | |
7933 | s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t | |
7934 | s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t | |
7935 | s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t | |
7936 | s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t | |
7937 | s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t | |
7938 | s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t | |
7939 | s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t | |
7940 | s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t | |
7941 | s,@CONFIGURED_AR_FOR_TARGET@,$CONFIGURED_AR_FOR_TARGET,;t t | |
7942 | s,@CONFIGURED_AS_FOR_TARGET@,$CONFIGURED_AS_FOR_TARGET,;t t | |
7943 | s,@CONFIGURED_CC_FOR_TARGET@,$CONFIGURED_CC_FOR_TARGET,;t t | |
7944 | s,@CONFIGURED_CXX_FOR_TARGET@,$CONFIGURED_CXX_FOR_TARGET,;t t | |
7945 | s,@CONFIGURED_DLLTOOL_FOR_TARGET@,$CONFIGURED_DLLTOOL_FOR_TARGET,;t t | |
7946 | s,@CONFIGURED_GCC_FOR_TARGET@,$CONFIGURED_GCC_FOR_TARGET,;t t | |
7947 | s,@CONFIGURED_GCJ_FOR_TARGET@,$CONFIGURED_GCJ_FOR_TARGET,;t t | |
7948 | s,@CONFIGURED_GFORTRAN_FOR_TARGET@,$CONFIGURED_GFORTRAN_FOR_TARGET,;t t | |
7949 | s,@CONFIGURED_LD_FOR_TARGET@,$CONFIGURED_LD_FOR_TARGET,;t t | |
7950 | s,@CONFIGURED_LIPO_FOR_TARGET@,$CONFIGURED_LIPO_FOR_TARGET,;t t | |
7951 | s,@CONFIGURED_NM_FOR_TARGET@,$CONFIGURED_NM_FOR_TARGET,;t t | |
7952 | s,@CONFIGURED_RANLIB_FOR_TARGET@,$CONFIGURED_RANLIB_FOR_TARGET,;t t | |
7953 | s,@CONFIGURED_STRIP_FOR_TARGET@,$CONFIGURED_STRIP_FOR_TARGET,;t t | |
7954 | s,@CONFIGURED_WINDRES_FOR_TARGET@,$CONFIGURED_WINDRES_FOR_TARGET,;t t | |
7955 | s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t | |
7956 | s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t | |
7957 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
7958 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
7959 | s,@MAINT@,$MAINT,;t t | |
7960 | s,@stage1_cflags@,$stage1_cflags,;t t | |
7961 | s,@CREATE_LINK_TO_DIR@,$CREATE_LINK_TO_DIR,;t t | |
7962 | s,@UNDO_LINK_TO_DIR@,$UNDO_LINK_TO_DIR,;t t | |
7963 | s,@stage2_werror_flag@,$stage2_werror_flag,;t t | |
7964 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7965 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
671aa708 | 7966 | /@serialization_dependencies@/r $serialization_dependencies |
6b65a26d | 7967 | s,@serialization_dependencies@,,;t t |
671aa708 | 7968 | /@host_makefile_frag@/r $host_makefile_frag |
6b65a26d | 7969 | s,@host_makefile_frag@,,;t t |
671aa708 | 7970 | /@target_makefile_frag@/r $target_makefile_frag |
6b65a26d | 7971 | s,@target_makefile_frag@,,;t t |
671aa708 | 7972 | /@alphaieee_frag@/r $alphaieee_frag |
6b65a26d | 7973 | s,@alphaieee_frag@,,;t t |
671aa708 | 7974 | /@ospace_frag@/r $ospace_frag |
6b65a26d | 7975 | s,@ospace_frag@,,;t t |
671aa708 | 7976 | CEOF |
79c06341 | 7977 | |
6b65a26d CM |
7978 | _ACEOF |
7979 | ||
7980 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7981 | # Split the substitutions into bite-sized pieces for seds with | |
7982 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7983 | ac_max_sed_lines=48 | |
7984 | ac_sed_frag=1 # Number of current file. | |
7985 | ac_beg=1 # First line for current file. | |
7986 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7987 | ac_more_lines=: | |
7988 | ac_sed_cmds= | |
7989 | while $ac_more_lines; do | |
7990 | if test $ac_beg -gt 1; then | |
7991 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7992 | else | |
7993 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7994 | fi | |
7995 | if test ! -s $tmp/subs.frag; then | |
7996 | ac_more_lines=false | |
671aa708 | 7997 | else |
6b65a26d CM |
7998 | # The purpose of the label and of the branching condition is to |
7999 | # speed up the sed processing (if there are no `@' at all, there | |
8000 | # is no need to browse any of the substitutions). | |
8001 | # These are the two extra sed commands mentioned above. | |
8002 | (echo ':t | |
8003 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8004 | if test -z "$ac_sed_cmds"; then | |
8005 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8006 | else | |
8007 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8008 | fi | |
8009 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8010 | ac_beg=$ac_end | |
8011 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
671aa708 | 8012 | fi |
6b65a26d CM |
8013 | done |
8014 | if test -z "$ac_sed_cmds"; then | |
8015 | ac_sed_cmds=cat | |
4977bab6 | 8016 | fi |
6b65a26d | 8017 | fi # test -n "$CONFIG_FILES" |
79c06341 | 8018 | |
6b65a26d CM |
8019 | _ACEOF |
8020 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8021 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
671aa708 | 8022 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6b65a26d CM |
8023 | case $ac_file in |
8024 | - | *:- | *:-:* ) # input from stdin | |
8025 | cat >$tmp/stdin | |
8026 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8027 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8028 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8029 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8030 | * ) ac_file_in=$ac_file.in ;; | |
671aa708 | 8031 | esac |
79c06341 | 8032 | |
6b65a26d CM |
8033 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8034 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8035 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8036 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8037 | X"$ac_file" : 'X\(//\)$' \| \ | |
8038 | X"$ac_file" : 'X\(/\)' \| \ | |
8039 | . : '\(.\)' 2>/dev/null || | |
8040 | echo X"$ac_file" | | |
8041 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8042 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8043 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8044 | /^X\(\/\).*/{ s//\1/; q; } | |
8045 | s/.*/./; q'` | |
8046 | { if $as_mkdir_p; then | |
8047 | mkdir -p "$ac_dir" | |
671aa708 | 8048 | else |
6b65a26d CM |
8049 | as_dir="$ac_dir" |
8050 | as_dirs= | |
8051 | while test ! -d "$as_dir"; do | |
8052 | as_dirs="$as_dir $as_dirs" | |
8053 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8054 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8055 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8056 | X"$as_dir" : 'X\(//\)$' \| \ | |
8057 | X"$as_dir" : 'X\(/\)' \| \ | |
8058 | . : '\(.\)' 2>/dev/null || | |
8059 | echo X"$as_dir" | | |
8060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8061 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8062 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8063 | /^X\(\/\).*/{ s//\1/; q; } | |
8064 | s/.*/./; q'` | |
8065 | done | |
8066 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8067 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8068 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8069 | { (exit 1); exit 1; }; }; } | |
8070 | ||
8071 | ac_builddir=. | |
8072 | ||
8073 | if test "$ac_dir" != .; then | |
8074 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8075 | # A "../" for each directory in $ac_dir_suffix. | |
8076 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8077 | else | |
8078 | ac_dir_suffix= ac_top_builddir= | |
8079 | fi | |
79c06341 | 8080 | |
6b65a26d CM |
8081 | case $srcdir in |
8082 | .) # No --srcdir option. We are building in place. | |
8083 | ac_srcdir=. | |
8084 | if test -z "$ac_top_builddir"; then | |
8085 | ac_top_srcdir=. | |
8086 | else | |
8087 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8088 | fi ;; | |
8089 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8090 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8091 | ac_top_srcdir=$srcdir ;; | |
671aa708 | 8092 | *) # Relative path. |
6b65a26d CM |
8093 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8094 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8095 | esac | |
8096 | ||
8097 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8098 | # the directories may not exist. | |
8099 | case `pwd` in | |
8100 | .) ac_abs_builddir="$ac_dir";; | |
8101 | *) | |
8102 | case "$ac_dir" in | |
8103 | .) ac_abs_builddir=`pwd`;; | |
8104 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8105 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8106 | esac;; | |
8107 | esac | |
8108 | case $ac_abs_builddir in | |
8109 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8110 | *) | |
8111 | case ${ac_top_builddir}. in | |
8112 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8113 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8114 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8115 | esac;; | |
8116 | esac | |
8117 | case $ac_abs_builddir in | |
8118 | .) ac_abs_srcdir=$ac_srcdir;; | |
8119 | *) | |
8120 | case $ac_srcdir in | |
8121 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8122 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8123 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8124 | esac;; | |
8125 | esac | |
8126 | case $ac_abs_builddir in | |
8127 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8128 | *) | |
8129 | case $ac_top_srcdir in | |
8130 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8131 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8132 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8133 | esac;; | |
8134 | esac | |
79c06341 | 8135 | |
79c06341 | 8136 | |
6b65a26d CM |
8137 | case $INSTALL in |
8138 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8139 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
671aa708 | 8140 | esac |
79c06341 | 8141 | |
6b65a26d CM |
8142 | if test x"$ac_file" != x-; then |
8143 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8144 | echo "$as_me: creating $ac_file" >&6;} | |
8145 | rm -f "$ac_file" | |
8146 | fi | |
8147 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8148 | # use $as_me), people would be surprised to read: | |
8149 | # /* config.h. Generated by config.status. */ | |
8150 | if test x"$ac_file" = x-; then | |
8151 | configure_input= | |
8152 | else | |
8153 | configure_input="$ac_file. " | |
8154 | fi | |
8155 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8156 | sed 's,.*/,,'` by configure." | |
8157 | ||
8158 | # First look for the input files in the build tree, otherwise in the | |
8159 | # src tree. | |
8160 | ac_file_inputs=`IFS=: | |
8161 | for f in $ac_file_in; do | |
8162 | case $f in | |
8163 | -) echo $tmp/stdin ;; | |
8164 | [\\/$]*) | |
8165 | # Absolute (can't be DOS-style, as IFS=:) | |
8166 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8167 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8168 | { (exit 1); exit 1; }; } | |
8169 | echo "$f";; | |
8170 | *) # Relative | |
8171 | if test -f "$f"; then | |
8172 | # Build tree | |
8173 | echo "$f" | |
8174 | elif test -f "$srcdir/$f"; then | |
8175 | # Source tree | |
8176 | echo "$srcdir/$f" | |
8177 | else | |
8178 | # /dev/null tree | |
8179 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8180 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8181 | { (exit 1); exit 1; }; } | |
8182 | fi;; | |
8183 | esac | |
8184 | done` || { (exit 1); exit 1; } | |
8185 | _ACEOF | |
8186 | cat >>$CONFIG_STATUS <<_ACEOF | |
8187 | sed "$ac_vpsub | |
8188 | $extrasub | |
8189 | _ACEOF | |
8190 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8191 | :t | |
8192 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8193 | s,@configure_input@,$configure_input,;t t | |
8194 | s,@srcdir@,$ac_srcdir,;t t | |
8195 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8196 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8197 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8198 | s,@builddir@,$ac_builddir,;t t | |
8199 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8200 | s,@top_builddir@,$ac_top_builddir,;t t | |
8201 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8202 | s,@INSTALL@,$ac_INSTALL,;t t | |
8203 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8204 | rm -f $tmp/stdin | |
8205 | if test x"$ac_file" != x-; then | |
8206 | mv $tmp/out $ac_file | |
8207 | else | |
8208 | cat $tmp/out | |
8209 | rm -f $tmp/out | |
8210 | fi | |
79c06341 | 8211 | |
6b65a26d CM |
8212 | done |
8213 | _ACEOF | |
79c06341 | 8214 | |
6b65a26d | 8215 | cat >>$CONFIG_STATUS <<\_ACEOF |
79c06341 | 8216 | |
6b65a26d CM |
8217 | { (exit 0); exit 0; } |
8218 | _ACEOF | |
671aa708 | 8219 | chmod +x $CONFIG_STATUS |
6b65a26d CM |
8220 | ac_clean_files=$ac_clean_files_save |
8221 | ||
8222 | ||
8223 | # configure is writing to config.log, and then calls config.status. | |
8224 | # config.status does its own redirection, appending to config.log. | |
8225 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8226 | # by configure, so config.status won't be able to write to it; its | |
8227 | # output is simply discarded. So we exec the FD to /dev/null, | |
8228 | # effectively closing config.log, so it can be properly (re)opened and | |
8229 | # appended to by config.status. When coming back to configure, we | |
8230 | # need to make the FD available again. | |
8231 | if test "$no_create" != yes; then | |
8232 | ac_cs_success=: | |
8233 | ac_config_status_args= | |
8234 | test "$silent" = yes && | |
8235 | ac_config_status_args="$ac_config_status_args --quiet" | |
8236 | exec 5>/dev/null | |
8237 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8238 | exec 5>>config.log | |
8239 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8240 | # would make configure fail if this is the last instruction. | |
8241 | $ac_cs_success || { (exit 1); exit 1; } | |
8242 | fi | |
79c06341 | 8243 |