Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
fdd6fa61 | 3 | # Generated by GNU Autoconf 2.59. |
c906108c | 4 | # |
fdd6fa61 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
c906108c SS |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
b7026657 AC |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
fdd6fa61 | 12 | # Be Bourne compatible |
b7026657 AC |
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+"$@"}'='"$@"' | |
fdd6fa61 AG |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
b7026657 | 21 | fi |
fdd6fa61 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
b7026657 AC |
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. | |
fdd6fa61 | 33 | $as_unset ENV MAIL MAILPATH |
b7026657 AC |
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 | |
fdd6fa61 | 47 | $as_unset $as_var |
b7026657 AC |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
fdd6fa61 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
b7026657 AC |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
fdd6fa61 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
b7026657 AC |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
fdd6fa61 | 66 | as_me=`$as_basename "$0" || |
b7026657 AC |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
fdd6fa61 AG |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
b7026657 | 71 | echo X/"$0" | |
fdd6fa61 AG |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
b7026657 | 76 | |
b7026657 | 77 | |
fdd6fa61 AG |
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 | |
df1756f4 | 85 | |
fdd6fa61 AG |
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 | |
df1756f4 TG |
97 | fi |
98 | ||
df1756f4 | 99 | |
fdd6fa61 AG |
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 | |
df1756f4 | 116 | |
fdd6fa61 AG |
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 | '') | |
b7026657 AC |
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=. | |
fdd6fa61 AG |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
b7026657 | 137 | /*) |
fdd6fa61 | 138 | if ("$as_dir/$as_base" -c ' |
df1756f4 TG |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
fdd6fa61 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
df1756f4 | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
fdd6fa61 AG |
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 | |
b7026657 AC |
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 | |
fdd6fa61 AG |
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. | |
b7026657 | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
fdd6fa61 AG |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
b7026657 AC |
165 | sed ' |
166 | N | |
fdd6fa61 AG |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
b7026657 | 170 | t loop |
fdd6fa61 AG |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
b7026657 | 173 | ' >$as_me.lineno && |
fdd6fa61 | 174 | chmod +x $as_me.lineno || |
b7026657 AC |
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 | |
fdd6fa61 AG |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
b7026657 AC |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
fdd6fa61 AG |
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= ;; | |
b7026657 AC |
192 | esac |
193 | ||
fdd6fa61 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
b7026657 AC |
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 | |
fdd6fa61 AG |
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 | |
b7026657 | 207 | as_ln_s='cp -p' |
fdd6fa61 AG |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
b7026657 AC |
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 | |
fdd6fa61 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
b7026657 AC |
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 | |
c906108c | 224 | |
fdd6fa61 | 225 | as_executable_p="test -f" |
b7026657 AC |
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 | ||
fdd6fa61 AG |
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 | |
b7026657 AC |
242 | |
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
fdd6fa61 AG |
249 | exec 6>&1 |
250 | ||
b7026657 AC |
251 | # |
252 | # Initializations. | |
253 | # | |
c906108c | 254 | ac_default_prefix=/usr/local |
b7026657 AC |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
fdd6fa61 AG |
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 | ||
b7026657 AC |
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="Makefile.in" | |
fdd6fa61 AG |
275 | ac_subdirs_all="$ac_subdirs_all arm" |
276 | ac_subdirs_all="$ac_subdirs_all avr" | |
277 | ac_subdirs_all="$ac_subdirs_all cr16" | |
278 | ac_subdirs_all="$ac_subdirs_all cris" | |
279 | ac_subdirs_all="$ac_subdirs_all d10v" | |
280 | ac_subdirs_all="$ac_subdirs_all frv" | |
281 | ac_subdirs_all="$ac_subdirs_all h8300" | |
282 | ac_subdirs_all="$ac_subdirs_all iq2000" | |
c28c63d8 | 283 | ac_subdirs_all="$ac_subdirs_all lm32" |
fdd6fa61 AG |
284 | ac_subdirs_all="$ac_subdirs_all m32c" |
285 | ac_subdirs_all="$ac_subdirs_all m32r" | |
286 | ac_subdirs_all="$ac_subdirs_all m68hc11" | |
287 | ac_subdirs_all="$ac_subdirs_all mcore" | |
288 | ac_subdirs_all="$ac_subdirs_all mips" | |
289 | ac_subdirs_all="$ac_subdirs_all mn10300" | |
290 | ac_subdirs_all="$ac_subdirs_all moxie" | |
291 | ac_subdirs_all="$ac_subdirs_all sh64" | |
292 | ac_subdirs_all="$ac_subdirs_all sh" | |
293 | ac_subdirs_all="$ac_subdirs_all erc32" | |
294 | ac_subdirs_all="$ac_subdirs_all ppc" | |
295 | ac_subdirs_all="$ac_subdirs_all v850" | |
296 | ac_subdirs_all="$ac_subdirs_all testsuite" | |
297 | ac_subdirs_all="$ac_subdirs_all common" | |
298 | ac_subdirs_all="$ac_subdirs_all igen" | |
299 | 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os HDEFINES CC_FOR_BUILD CFLAGS_FOR_BUILD subdirs LIBOBJS LTLIBOBJS' | |
b7026657 | 300 | ac_subst_files='' |
c906108c SS |
301 | |
302 | # Initialize some variables set by options. | |
b7026657 AC |
303 | ac_init_help= |
304 | ac_init_version=false | |
c906108c SS |
305 | # The variables have the same names as the options, with |
306 | # dashes changed to underlines. | |
b7026657 | 307 | cache_file=/dev/null |
c906108c | 308 | exec_prefix=NONE |
c906108c | 309 | no_create= |
c906108c SS |
310 | no_recursion= |
311 | prefix=NONE | |
312 | program_prefix=NONE | |
313 | program_suffix=NONE | |
314 | program_transform_name=s,x,x, | |
315 | silent= | |
316 | site= | |
317 | srcdir= | |
c906108c SS |
318 | verbose= |
319 | x_includes=NONE | |
320 | x_libraries=NONE | |
b7026657 AC |
321 | |
322 | # Installation directory options. | |
323 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
324 | # and all the variables that are supposed to be based on exec_prefix | |
325 | # by default will actually change. | |
326 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
327 | bindir='${exec_prefix}/bin' |
328 | sbindir='${exec_prefix}/sbin' | |
329 | libexecdir='${exec_prefix}/libexec' | |
fdd6fa61 | 330 | datadir='${prefix}/share' |
c906108c SS |
331 | sysconfdir='${prefix}/etc' |
332 | sharedstatedir='${prefix}/com' | |
333 | localstatedir='${prefix}/var' | |
fdd6fa61 | 334 | libdir='${exec_prefix}/lib' |
c906108c SS |
335 | includedir='${prefix}/include' |
336 | oldincludedir='/usr/include' | |
fdd6fa61 AG |
337 | infodir='${prefix}/info' |
338 | mandir='${prefix}/man' | |
c906108c | 339 | |
c906108c SS |
340 | ac_prev= |
341 | for ac_option | |
342 | do | |
c906108c SS |
343 | # If the previous option needs an argument, assign it. |
344 | if test -n "$ac_prev"; then | |
fdd6fa61 | 345 | eval "$ac_prev=\$ac_option" |
c906108c SS |
346 | ac_prev= |
347 | continue | |
348 | fi | |
349 | ||
fdd6fa61 | 350 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
351 | |
352 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
353 | ||
fdd6fa61 | 354 | case $ac_option in |
c906108c SS |
355 | |
356 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
357 | ac_prev=bindir ;; | |
358 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 359 | bindir=$ac_optarg ;; |
c906108c SS |
360 | |
361 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 362 | ac_prev=build_alias ;; |
c906108c | 363 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 364 | build_alias=$ac_optarg ;; |
c906108c SS |
365 | |
366 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
367 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
368 | ac_prev=cache_file ;; | |
369 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
370 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
371 | cache_file=$ac_optarg ;; |
372 | ||
373 | --config-cache | -C) | |
374 | cache_file=config.cache ;; | |
c906108c | 375 | |
fdd6fa61 | 376 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 377 | ac_prev=datadir ;; |
fdd6fa61 AG |
378 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
379 | | --da=*) | |
b7026657 | 380 | datadir=$ac_optarg ;; |
c906108c SS |
381 | |
382 | -disable-* | --disable-*) | |
b7026657 | 383 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 384 | # Reject names that are not valid shell variable names. |
fdd6fa61 | 385 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
b7026657 AC |
386 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
387 | { (exit 1); exit 1; }; } | |
fdd6fa61 AG |
388 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
389 | eval "enable_$ac_feature=no" ;; | |
c906108c SS |
390 | |
391 | -enable-* | --enable-*) | |
b7026657 | 392 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 393 | # Reject names that are not valid shell variable names. |
fdd6fa61 | 394 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
b7026657 AC |
395 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
396 | { (exit 1); exit 1; }; } | |
fdd6fa61 AG |
397 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
398 | case $ac_option in | |
399 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
400 | *) ac_optarg=yes ;; | |
401 | esac | |
402 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
c906108c SS |
403 | |
404 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
405 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
406 | | --exec | --exe | --ex) | |
407 | ac_prev=exec_prefix ;; | |
408 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
409 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
410 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 411 | exec_prefix=$ac_optarg ;; |
c906108c SS |
412 | |
413 | -gas | --gas | --ga | --g) | |
414 | # Obsolete; use --with-gas. | |
415 | with_gas=yes ;; | |
416 | ||
b7026657 AC |
417 | -help | --help | --hel | --he | -h) |
418 | ac_init_help=long ;; | |
419 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
420 | ac_init_help=recursive ;; | |
421 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
422 | ac_init_help=short ;; | |
c906108c SS |
423 | |
424 | -host | --host | --hos | --ho) | |
b7026657 | 425 | ac_prev=host_alias ;; |
c906108c | 426 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 427 | host_alias=$ac_optarg ;; |
c906108c SS |
428 | |
429 | -includedir | --includedir | --includedi | --included | --include \ | |
430 | | --includ | --inclu | --incl | --inc) | |
431 | ac_prev=includedir ;; | |
432 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
433 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 434 | includedir=$ac_optarg ;; |
c906108c SS |
435 | |
436 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
437 | ac_prev=infodir ;; | |
438 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 439 | infodir=$ac_optarg ;; |
c906108c SS |
440 | |
441 | -libdir | --libdir | --libdi | --libd) | |
442 | ac_prev=libdir ;; | |
443 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 444 | libdir=$ac_optarg ;; |
c906108c SS |
445 | |
446 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
447 | | --libexe | --libex | --libe) | |
448 | ac_prev=libexecdir ;; | |
449 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
450 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 451 | libexecdir=$ac_optarg ;; |
c906108c SS |
452 | |
453 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
fdd6fa61 AG |
454 | | --localstate | --localstat | --localsta | --localst \ |
455 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
456 | ac_prev=localstatedir ;; |
457 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
fdd6fa61 AG |
458 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
459 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
b7026657 | 460 | localstatedir=$ac_optarg ;; |
c906108c SS |
461 | |
462 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
463 | ac_prev=mandir ;; | |
464 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 465 | mandir=$ac_optarg ;; |
c906108c SS |
466 | |
467 | -nfp | --nfp | --nf) | |
468 | # Obsolete; use --without-fp. | |
469 | with_fp=no ;; | |
470 | ||
471 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 472 | | --no-cr | --no-c | -n) |
c906108c SS |
473 | no_create=yes ;; |
474 | ||
475 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
476 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
477 | no_recursion=yes ;; | |
478 | ||
479 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
480 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
481 | | --oldin | --oldi | --old | --ol | --o) | |
482 | ac_prev=oldincludedir ;; | |
483 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
484 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
485 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 486 | oldincludedir=$ac_optarg ;; |
c906108c SS |
487 | |
488 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
489 | ac_prev=prefix ;; | |
490 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 491 | prefix=$ac_optarg ;; |
c906108c SS |
492 | |
493 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
494 | | --program-pre | --program-pr | --program-p) | |
495 | ac_prev=program_prefix ;; | |
496 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
497 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 498 | program_prefix=$ac_optarg ;; |
c906108c SS |
499 | |
500 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
501 | | --program-suf | --program-su | --program-s) | |
502 | ac_prev=program_suffix ;; | |
503 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
504 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 505 | program_suffix=$ac_optarg ;; |
c906108c SS |
506 | |
507 | -program-transform-name | --program-transform-name \ | |
508 | | --program-transform-nam | --program-transform-na \ | |
509 | | --program-transform-n | --program-transform- \ | |
510 | | --program-transform | --program-transfor \ | |
511 | | --program-transfo | --program-transf \ | |
512 | | --program-trans | --program-tran \ | |
513 | | --progr-tra | --program-tr | --program-t) | |
514 | ac_prev=program_transform_name ;; | |
515 | -program-transform-name=* | --program-transform-name=* \ | |
516 | | --program-transform-nam=* | --program-transform-na=* \ | |
517 | | --program-transform-n=* | --program-transform-=* \ | |
518 | | --program-transform=* | --program-transfor=* \ | |
519 | | --program-transfo=* | --program-transf=* \ | |
520 | | --program-trans=* | --program-tran=* \ | |
521 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 522 | program_transform_name=$ac_optarg ;; |
c906108c SS |
523 | |
524 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
525 | | -silent | --silent | --silen | --sile | --sil) | |
526 | silent=yes ;; | |
527 | ||
528 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
529 | ac_prev=sbindir ;; | |
530 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
531 | | --sbi=* | --sb=*) | |
b7026657 | 532 | sbindir=$ac_optarg ;; |
c906108c SS |
533 | |
534 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
535 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
536 | | --sharedst | --shareds | --shared | --share | --shar \ | |
537 | | --sha | --sh) | |
538 | ac_prev=sharedstatedir ;; | |
539 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
540 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
541 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
542 | | --sha=* | --sh=*) | |
b7026657 | 543 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
544 | |
545 | -site | --site | --sit) | |
546 | ac_prev=site ;; | |
547 | -site=* | --site=* | --sit=*) | |
b7026657 | 548 | site=$ac_optarg ;; |
0fda6bd2 | 549 | |
c906108c SS |
550 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
551 | ac_prev=srcdir ;; | |
552 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 553 | srcdir=$ac_optarg ;; |
c906108c SS |
554 | |
555 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
556 | | --syscon | --sysco | --sysc | --sys | --sy) | |
557 | ac_prev=sysconfdir ;; | |
558 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
559 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 560 | sysconfdir=$ac_optarg ;; |
c906108c SS |
561 | |
562 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 563 | ac_prev=target_alias ;; |
c906108c | 564 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 565 | target_alias=$ac_optarg ;; |
c906108c SS |
566 | |
567 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
568 | verbose=yes ;; | |
569 | ||
b7026657 AC |
570 | -version | --version | --versio | --versi | --vers | -V) |
571 | ac_init_version=: ;; | |
c906108c SS |
572 | |
573 | -with-* | --with-*) | |
b7026657 | 574 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 575 | # Reject names that are not valid shell variable names. |
fdd6fa61 | 576 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
b7026657 AC |
577 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
578 | { (exit 1); exit 1; }; } | |
fdd6fa61 AG |
579 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
580 | case $ac_option in | |
581 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
582 | *) ac_optarg=yes ;; | |
583 | esac | |
584 | eval "with_$ac_package='$ac_optarg'" ;; | |
c906108c SS |
585 | |
586 | -without-* | --without-*) | |
b7026657 | 587 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 588 | # Reject names that are not valid shell variable names. |
fdd6fa61 | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
b7026657 AC |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
591 | { (exit 1); exit 1; }; } | |
fdd6fa61 AG |
592 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
593 | eval "with_$ac_package=no" ;; | |
c906108c SS |
594 | |
595 | --x) | |
596 | # Obsolete; use --with-x. | |
597 | with_x=yes ;; | |
598 | ||
599 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
600 | | --x-incl | --x-inc | --x-in | --x-i) | |
601 | ac_prev=x_includes ;; | |
602 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
603 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 604 | x_includes=$ac_optarg ;; |
c906108c SS |
605 | |
606 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
607 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
608 | ac_prev=x_libraries ;; | |
609 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
610 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 611 | x_libraries=$ac_optarg ;; |
c906108c | 612 | |
b7026657 AC |
613 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
614 | Try \`$0 --help' for more information." >&2 | |
615 | { (exit 1); exit 1; }; } | |
c906108c SS |
616 | ;; |
617 | ||
b7026657 AC |
618 | *=*) |
619 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
620 | # Reject names that are not valid shell variable names. | |
621 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
622 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
623 | { (exit 1); exit 1; }; } | |
fdd6fa61 AG |
624 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
625 | eval "$ac_envvar='$ac_optarg'" | |
b7026657 AC |
626 | export $ac_envvar ;; |
627 | ||
c906108c | 628 | *) |
b7026657 AC |
629 | # FIXME: should be removed in autoconf 3.0. |
630 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
631 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
632 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
633 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
634 | ;; |
635 | ||
636 | esac | |
637 | done | |
638 | ||
639 | if test -n "$ac_prev"; then | |
b7026657 AC |
640 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
641 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
642 | { (exit 1); exit 1; }; } | |
c906108c | 643 | fi |
c906108c | 644 | |
fdd6fa61 AG |
645 | # Be sure to have absolute paths. |
646 | for ac_var in exec_prefix prefix | |
647 | do | |
648 | eval ac_val=$`echo $ac_var` | |
649 | case $ac_val in | |
650 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
651 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
652 | { (exit 1); exit 1; }; };; | |
653 | esac | |
654 | done | |
655 | ||
656 | # Be sure to have absolute paths. | |
657 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
658 | localstatedir libdir includedir oldincludedir infodir mandir | |
c906108c | 659 | do |
fdd6fa61 | 660 | eval ac_val=$`echo $ac_var` |
b7026657 | 661 | case $ac_val in |
fdd6fa61 AG |
662 | [\\/$]* | ?:[\\/]* ) ;; |
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
664 | { (exit 1); exit 1; }; };; | |
c906108c SS |
665 | esac |
666 | done | |
667 | ||
b7026657 AC |
668 | # There might be people who depend on the old broken behavior: `$host' |
669 | # used to hold the argument of --host etc. | |
670 | # FIXME: To remove some day. | |
671 | build=$build_alias | |
672 | host=$host_alias | |
673 | target=$target_alias | |
674 | ||
675 | # FIXME: To remove some day. | |
676 | if test "x$host_alias" != x; then | |
677 | if test "x$build_alias" = x; then | |
678 | cross_compiling=maybe | |
679 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
680 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
681 | elif test "x$build_alias" != "x$host_alias"; then | |
682 | cross_compiling=yes | |
683 | fi | |
684 | fi | |
c906108c | 685 | |
b7026657 AC |
686 | ac_tool_prefix= |
687 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
688 | ||
689 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 690 | |
c906108c SS |
691 | |
692 | # Find the source files, if location was not specified. | |
693 | if test -z "$srcdir"; then | |
694 | ac_srcdir_defaulted=yes | |
fdd6fa61 AG |
695 | # Try the directory containing this script, then its parent. |
696 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
b7026657 AC |
697 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
698 | X"$0" : 'X\(//\)[^/]' \| \ | |
699 | X"$0" : 'X\(//\)$' \| \ | |
fdd6fa61 AG |
700 | X"$0" : 'X\(/\)' \| \ |
701 | . : '\(.\)' 2>/dev/null || | |
b7026657 | 702 | echo X"$0" | |
fdd6fa61 AG |
703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
704 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
705 | /^X\(\/\/\)$/{ s//\1/; q; } | |
706 | /^X\(\/\).*/{ s//\1/; q; } | |
707 | s/.*/./; q'` | |
c906108c | 708 | srcdir=$ac_confdir |
fdd6fa61 | 709 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
710 | srcdir=.. |
711 | fi | |
712 | else | |
713 | ac_srcdir_defaulted=no | |
714 | fi | |
fdd6fa61 AG |
715 | if test ! -r $srcdir/$ac_unique_file; then |
716 | if test "$ac_srcdir_defaulted" = yes; then | |
717 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
718 | { (exit 1); exit 1; }; } | |
719 | else | |
720 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
b7026657 | 721 | { (exit 1); exit 1; }; } |
fdd6fa61 | 722 | fi |
c906108c | 723 | fi |
fdd6fa61 AG |
724 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
725 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
b7026657 | 726 | { (exit 1); exit 1; }; } |
fdd6fa61 AG |
727 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
728 | ac_env_build_alias_set=${build_alias+set} | |
729 | ac_env_build_alias_value=$build_alias | |
730 | ac_cv_env_build_alias_set=${build_alias+set} | |
731 | ac_cv_env_build_alias_value=$build_alias | |
732 | ac_env_host_alias_set=${host_alias+set} | |
733 | ac_env_host_alias_value=$host_alias | |
734 | ac_cv_env_host_alias_set=${host_alias+set} | |
735 | ac_cv_env_host_alias_value=$host_alias | |
736 | ac_env_target_alias_set=${target_alias+set} | |
737 | ac_env_target_alias_value=$target_alias | |
738 | ac_cv_env_target_alias_set=${target_alias+set} | |
739 | ac_cv_env_target_alias_value=$target_alias | |
740 | ac_env_CC_set=${CC+set} | |
741 | ac_env_CC_value=$CC | |
742 | ac_cv_env_CC_set=${CC+set} | |
743 | ac_cv_env_CC_value=$CC | |
744 | ac_env_CFLAGS_set=${CFLAGS+set} | |
745 | ac_env_CFLAGS_value=$CFLAGS | |
746 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
747 | ac_cv_env_CFLAGS_value=$CFLAGS | |
748 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
749 | ac_env_LDFLAGS_value=$LDFLAGS | |
750 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
751 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
752 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
753 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
754 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
755 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
df1756f4 TG |
756 | |
757 | # | |
b7026657 AC |
758 | # Report the --help message. |
759 | # | |
760 | if test "$ac_init_help" = "long"; then | |
761 | # Omit some internal or obsolete options to make the list less imposing. | |
762 | # This message is too long to be a string in the A/UX 3.1 sh. | |
763 | cat <<_ACEOF | |
764 | \`configure' configures this package to adapt to many kinds of systems. | |
765 | ||
766 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
767 | ||
768 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
769 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
770 | ||
771 | Defaults for the options are specified in brackets. | |
772 | ||
773 | Configuration: | |
774 | -h, --help display this help and exit | |
775 | --help=short display options specific to this package | |
776 | --help=recursive display the short help of all the included packages | |
777 | -V, --version display version information and exit | |
778 | -q, --quiet, --silent do not print \`checking...' messages | |
779 | --cache-file=FILE cache test results in FILE [disabled] | |
780 | -C, --config-cache alias for \`--cache-file=config.cache' | |
781 | -n, --no-create do not create output files | |
782 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
783 | ||
fdd6fa61 AG |
784 | _ACEOF |
785 | ||
786 | cat <<_ACEOF | |
b7026657 AC |
787 | Installation directories: |
788 | --prefix=PREFIX install architecture-independent files in PREFIX | |
789 | [$ac_default_prefix] | |
790 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
791 | [PREFIX] | |
792 | ||
793 | By default, \`make install' will install all the files in | |
794 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
795 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
796 | for instance \`--prefix=\$HOME'. | |
797 | ||
798 | For better control, use the options below. | |
799 | ||
800 | Fine tuning of the installation directories: | |
801 | --bindir=DIR user executables [EPREFIX/bin] | |
802 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
803 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
fdd6fa61 | 804 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
b7026657 AC |
805 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
806 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
807 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
808 | --libdir=DIR object code libraries [EPREFIX/lib] | |
809 | --includedir=DIR C header files [PREFIX/include] | |
810 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
fdd6fa61 AG |
811 | --infodir=DIR info documentation [PREFIX/info] |
812 | --mandir=DIR man documentation [PREFIX/man] | |
b7026657 AC |
813 | _ACEOF |
814 | ||
815 | cat <<\_ACEOF | |
816 | ||
817 | Program names: | |
818 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
819 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
820 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
821 | ||
822 | System types: | |
823 | --build=BUILD configure for building on BUILD [guessed] | |
824 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
825 | --target=TARGET configure for building compilers for TARGET [HOST] | |
826 | _ACEOF | |
827 | fi | |
828 | ||
829 | if test -n "$ac_init_help"; then | |
830 | ||
831 | cat <<\_ACEOF | |
832 | ||
833 | Optional Features: | |
834 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
835 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
836 | --enable-sim | |
837 | ||
838 | Some influential environment variables: | |
839 | CC C compiler command | |
840 | CFLAGS C compiler flags | |
841 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
842 | nonstandard directory <lib dir> | |
fdd6fa61 AG |
843 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
844 | headers in a nonstandard directory <include dir> | |
b7026657 AC |
845 | |
846 | Use these variables to override the choices made by `configure' or to help | |
847 | it to find libraries and programs with nonstandard names/locations. | |
848 | ||
849 | _ACEOF | |
850 | fi | |
851 | ||
852 | if test "$ac_init_help" = "recursive"; then | |
853 | # If there are subdirs, report their specific --help. | |
fdd6fa61 | 854 | ac_popdir=`pwd` |
b7026657 | 855 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
fdd6fa61 | 856 | test -d $ac_dir || continue |
b7026657 AC |
857 | ac_builddir=. |
858 | ||
fdd6fa61 | 859 | if test "$ac_dir" != .; then |
b7026657 | 860 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
fdd6fa61 AG |
861 | # A "../" for each directory in $ac_dir_suffix. |
862 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
863 | else | |
864 | ac_dir_suffix= ac_top_builddir= | |
865 | fi | |
b7026657 AC |
866 | |
867 | case $srcdir in | |
fdd6fa61 | 868 | .) # No --srcdir option. We are building in place. |
b7026657 | 869 | ac_srcdir=. |
fdd6fa61 AG |
870 | if test -z "$ac_top_builddir"; then |
871 | ac_top_srcdir=. | |
872 | else | |
873 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
874 | fi ;; | |
875 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
b7026657 | 876 | ac_srcdir=$srcdir$ac_dir_suffix; |
fdd6fa61 AG |
877 | ac_top_srcdir=$srcdir ;; |
878 | *) # Relative path. | |
879 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
880 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
881 | esac | |
882 | ||
883 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
884 | # the directories may not exist. | |
885 | case `pwd` in | |
886 | .) ac_abs_builddir="$ac_dir";; | |
887 | *) | |
888 | case "$ac_dir" in | |
889 | .) ac_abs_builddir=`pwd`;; | |
890 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
891 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
892 | esac;; | |
893 | esac | |
894 | case $ac_abs_builddir in | |
895 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
896 | *) | |
897 | case ${ac_top_builddir}. in | |
898 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
899 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
900 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
901 | esac;; | |
902 | esac | |
903 | case $ac_abs_builddir in | |
904 | .) ac_abs_srcdir=$ac_srcdir;; | |
905 | *) | |
906 | case $ac_srcdir in | |
907 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
908 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
909 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
910 | esac;; | |
b7026657 | 911 | esac |
fdd6fa61 AG |
912 | case $ac_abs_builddir in |
913 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
914 | *) | |
915 | case $ac_top_srcdir in | |
916 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
917 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
918 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
919 | esac;; | |
920 | esac | |
921 | ||
922 | cd $ac_dir | |
923 | # Check for guested configure; otherwise get Cygnus style configure. | |
924 | if test -f $ac_srcdir/configure.gnu; then | |
925 | echo | |
926 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
927 | elif test -f $ac_srcdir/configure; then | |
928 | echo | |
929 | $SHELL $ac_srcdir/configure --help=recursive | |
930 | elif test -f $ac_srcdir/configure.ac || | |
931 | test -f $ac_srcdir/configure.in; then | |
932 | echo | |
933 | $ac_configure --help | |
0fda6bd2 | 934 | else |
b7026657 | 935 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
fdd6fa61 AG |
936 | fi |
937 | cd $ac_popdir | |
b7026657 AC |
938 | done |
939 | fi | |
940 | ||
fdd6fa61 | 941 | test -n "$ac_init_help" && exit 0 |
b7026657 AC |
942 | if $ac_init_version; then |
943 | cat <<\_ACEOF | |
944 | ||
fdd6fa61 | 945 | Copyright (C) 2003 Free Software Foundation, Inc. |
b7026657 AC |
946 | This configure script is free software; the Free Software Foundation |
947 | gives unlimited permission to copy, distribute and modify it. | |
948 | _ACEOF | |
fdd6fa61 | 949 | exit 0 |
b7026657 | 950 | fi |
fdd6fa61 AG |
951 | exec 5>config.log |
952 | cat >&5 <<_ACEOF | |
b7026657 AC |
953 | This file contains any messages produced by compilers while |
954 | running configure, to aid debugging if configure makes a mistake. | |
955 | ||
956 | It was created by $as_me, which was | |
fdd6fa61 | 957 | generated by GNU Autoconf 2.59. Invocation command line was |
b7026657 AC |
958 | |
959 | $ $0 $@ | |
960 | ||
961 | _ACEOF | |
962 | { | |
963 | cat <<_ASUNAME | |
964 | ## --------- ## | |
965 | ## Platform. ## | |
966 | ## --------- ## | |
967 | ||
968 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
969 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
970 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
971 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
972 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
973 | ||
974 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
975 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
976 | ||
977 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
978 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
979 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
fdd6fa61 | 980 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
981 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
982 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
983 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
984 | ||
985 | _ASUNAME | |
986 | ||
987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
988 | for as_dir in $PATH | |
989 | do | |
990 | IFS=$as_save_IFS | |
991 | test -z "$as_dir" && as_dir=. | |
992 | echo "PATH: $as_dir" | |
993 | done | |
994 | ||
995 | } >&5 | |
996 | ||
997 | cat >&5 <<_ACEOF | |
998 | ||
999 | ||
1000 | ## ----------- ## | |
1001 | ## Core tests. ## | |
1002 | ## ----------- ## | |
1003 | ||
1004 | _ACEOF | |
1005 | ||
1006 | ||
1007 | # Keep a trace of the command line. | |
1008 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1009 | # Strip out --silent because we don't want to record it for future runs. | |
1010 | # Also quote any args containing shell meta-characters. | |
1011 | # Make two passes to allow for proper duplicate-argument suppression. | |
1012 | ac_configure_args= | |
1013 | ac_configure_args0= | |
1014 | ac_configure_args1= | |
fdd6fa61 | 1015 | ac_sep= |
b7026657 AC |
1016 | ac_must_keep_next=false |
1017 | for ac_pass in 1 2 | |
1018 | do | |
1019 | for ac_arg | |
1020 | do | |
1021 | case $ac_arg in | |
1022 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1023 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1024 | | -silent | --silent | --silen | --sile | --sil) | |
1025 | continue ;; | |
fdd6fa61 | 1026 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
b7026657 AC |
1027 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1028 | esac | |
1029 | case $ac_pass in | |
1030 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1031 | 2) | |
1032 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1033 | if test $ac_must_keep_next = true; then | |
1034 | ac_must_keep_next=false # Got value, back to normal. | |
1035 | else | |
1036 | case $ac_arg in | |
1037 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1038 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1039 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1040 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1041 | case "$ac_configure_args0 " in | |
1042 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1043 | esac | |
1044 | ;; | |
1045 | -* ) ac_must_keep_next=true ;; | |
1046 | esac | |
1047 | fi | |
fdd6fa61 AG |
1048 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1049 | # Get rid of the leading space. | |
1050 | ac_sep=" " | |
b7026657 AC |
1051 | ;; |
1052 | esac | |
1053 | done | |
1054 | done | |
1055 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1056 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1057 | ||
1058 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1059 | # config.log. We remove comments because anyway the quotes in there | |
1060 | # would cause problems or look ugly. | |
fdd6fa61 AG |
1061 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1062 | # such as our DU 5.0 friend, will then `close' the trap. | |
b7026657 AC |
1063 | trap 'exit_status=$? |
1064 | # Save into config.log some information that might help in debugging. | |
1065 | { | |
1066 | echo | |
1067 | ||
1068 | cat <<\_ASBOX | |
1069 | ## ---------------- ## | |
1070 | ## Cache variables. ## | |
1071 | ## ---------------- ## | |
1072 | _ASBOX | |
1073 | echo | |
1074 | # The following way of writing the cache mishandles newlines in values, | |
fdd6fa61 | 1075 | { |
b7026657 | 1076 | (set) 2>&1 | |
fdd6fa61 AG |
1077 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1078 | *ac_space=\ *) | |
b7026657 | 1079 | sed -n \ |
fdd6fa61 AG |
1080 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1081 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1082 | ;; | |
b7026657 | 1083 | *) |
fdd6fa61 AG |
1084 | sed -n \ |
1085 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
b7026657 | 1086 | ;; |
fdd6fa61 AG |
1087 | esac; |
1088 | } | |
b7026657 AC |
1089 | echo |
1090 | ||
1091 | cat <<\_ASBOX | |
1092 | ## ----------------- ## | |
1093 | ## Output variables. ## | |
1094 | ## ----------------- ## | |
1095 | _ASBOX | |
1096 | echo | |
1097 | for ac_var in $ac_subst_vars | |
1098 | do | |
fdd6fa61 AG |
1099 | eval ac_val=$`echo $ac_var` |
1100 | echo "$ac_var='"'"'$ac_val'"'"'" | |
b7026657 AC |
1101 | done | sort |
1102 | echo | |
1103 | ||
1104 | if test -n "$ac_subst_files"; then | |
1105 | cat <<\_ASBOX | |
fdd6fa61 AG |
1106 | ## ------------- ## |
1107 | ## Output files. ## | |
1108 | ## ------------- ## | |
b7026657 AC |
1109 | _ASBOX |
1110 | echo | |
1111 | for ac_var in $ac_subst_files | |
1112 | do | |
fdd6fa61 AG |
1113 | eval ac_val=$`echo $ac_var` |
1114 | echo "$ac_var='"'"'$ac_val'"'"'" | |
b7026657 AC |
1115 | done | sort |
1116 | echo | |
1117 | fi | |
1118 | ||
1119 | if test -s confdefs.h; then | |
1120 | cat <<\_ASBOX | |
1121 | ## ----------- ## | |
1122 | ## confdefs.h. ## | |
1123 | ## ----------- ## | |
1124 | _ASBOX | |
1125 | echo | |
fdd6fa61 | 1126 | sed "/^$/d" confdefs.h | sort |
b7026657 | 1127 | echo |
0fda6bd2 | 1128 | fi |
b7026657 AC |
1129 | test "$ac_signal" != 0 && |
1130 | echo "$as_me: caught signal $ac_signal" | |
1131 | echo "$as_me: exit $exit_status" | |
1132 | } >&5 | |
fdd6fa61 AG |
1133 | rm -f core *.core && |
1134 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 1135 | exit $exit_status |
fdd6fa61 | 1136 | ' 0 |
b7026657 AC |
1137 | for ac_signal in 1 2 13 15; do |
1138 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1139 | done | |
1140 | ac_signal=0 | |
1141 | ||
1142 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
fdd6fa61 AG |
1143 | rm -rf conftest* confdefs.h |
1144 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1145 | echo >confdefs.h | |
b7026657 AC |
1146 | |
1147 | # Predefined preprocessor variables. | |
1148 | ||
1149 | cat >>confdefs.h <<_ACEOF | |
1150 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1151 | _ACEOF | |
1152 | ||
1153 | ||
1154 | cat >>confdefs.h <<_ACEOF | |
1155 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1156 | _ACEOF | |
1157 | ||
1158 | ||
1159 | cat >>confdefs.h <<_ACEOF | |
1160 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1161 | _ACEOF | |
1162 | ||
1163 | ||
1164 | cat >>confdefs.h <<_ACEOF | |
1165 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1166 | _ACEOF | |
1167 | ||
1168 | ||
1169 | cat >>confdefs.h <<_ACEOF | |
1170 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1171 | _ACEOF | |
1172 | ||
1173 | ||
1174 | # Let the site file select an alternate cache file if it wants to. | |
1175 | # Prefer explicitly selected file to automatically selected ones. | |
fdd6fa61 AG |
1176 | if test -z "$CONFIG_SITE"; then |
1177 | if test "x$prefix" != xNONE; then | |
1178 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1179 | else | |
1180 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1181 | fi | |
c906108c | 1182 | fi |
fdd6fa61 | 1183 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1184 | if test -r "$ac_site_file"; then |
b7026657 AC |
1185 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1186 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1187 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1188 | . "$ac_site_file" |
1189 | fi | |
1190 | done | |
1191 | ||
1192 | if test -r "$cache_file"; then | |
b7026657 AC |
1193 | # Some versions of bash will fail to source /dev/null (special |
1194 | # files actually), so we avoid doing that. | |
1195 | if test -f "$cache_file"; then | |
1196 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1197 | echo "$as_me: loading cache $cache_file" >&6;} | |
1198 | case $cache_file in | |
fdd6fa61 AG |
1199 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1200 | *) . ./$cache_file;; | |
b7026657 AC |
1201 | esac |
1202 | fi | |
c906108c | 1203 | else |
b7026657 AC |
1204 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1205 | echo "$as_me: creating cache $cache_file" >&6;} | |
1206 | >$cache_file | |
c906108c SS |
1207 | fi |
1208 | ||
b7026657 AC |
1209 | # Check that the precious variables saved in the cache have kept the same |
1210 | # value. | |
1211 | ac_cache_corrupted=false | |
fdd6fa61 AG |
1212 | for ac_var in `(set) 2>&1 | |
1213 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
b7026657 AC |
1214 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1215 | eval ac_new_set=\$ac_env_${ac_var}_set | |
fdd6fa61 AG |
1216 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1217 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
b7026657 AC |
1218 | case $ac_old_set,$ac_new_set in |
1219 | set,) | |
1220 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1221 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1222 | ac_cache_corrupted=: ;; | |
1223 | ,set) | |
1224 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1225 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1226 | ac_cache_corrupted=: ;; | |
1227 | ,);; | |
1228 | *) | |
1229 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1230 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1231 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1232 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1233 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1234 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1235 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1236 | ac_cache_corrupted=: | |
1237 | fi;; | |
1238 | esac | |
1239 | # Pass precious variables to config.status. | |
1240 | if test "$ac_new_set" = set; then | |
1241 | case $ac_new_val in | |
fdd6fa61 AG |
1242 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1243 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
1244 | *) ac_arg=$ac_var=$ac_new_val ;; |
1245 | esac | |
1246 | case " $ac_configure_args " in | |
1247 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1248 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1249 | esac | |
c906108c | 1250 | fi |
b7026657 AC |
1251 | done |
1252 | if $ac_cache_corrupted; then | |
1253 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1254 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1255 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1256 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1257 | { (exit 1); exit 1; }; } | |
c906108c SS |
1258 | fi |
1259 | ||
fdd6fa61 AG |
1260 | ac_ext=c |
1261 | ac_cpp='$CPP $CPPFLAGS' | |
1262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1265 | ||
c906108c SS |
1266 | |
1267 | ||
b7026657 AC |
1268 | |
1269 | ||
1270 | ||
1271 | ||
1272 | ||
1273 | ||
1274 | ||
1275 | ||
1276 | ||
1277 | ||
1278 | ||
1279 | ||
1280 | ||
1281 | ||
1282 | ||
1283 | ||
1284 | ||
1285 | ac_ext=c | |
1286 | ac_cpp='$CPP $CPPFLAGS' | |
1287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1290 | if test -n "$ac_tool_prefix"; then | |
1291 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1292 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
fdd6fa61 AG |
1293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
1295 | if test "${ac_cv_prog_CC+set}" = set; then |
1296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1297 | else |
1298 | if test -n "$CC"; then | |
1299 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1300 | else | |
b7026657 AC |
1301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1302 | for as_dir in $PATH | |
1303 | do | |
1304 | IFS=$as_save_IFS | |
1305 | test -z "$as_dir" && as_dir=. | |
1306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 1307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
1308 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1310 | break 2 | |
1311 | fi | |
1312 | done | |
1313 | done | |
1314 | ||
c906108c SS |
1315 | fi |
1316 | fi | |
b7026657 | 1317 | CC=$ac_cv_prog_CC |
c906108c | 1318 | if test -n "$CC"; then |
fdd6fa61 AG |
1319 | echo "$as_me:$LINENO: result: $CC" >&5 |
1320 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1321 | else |
fdd6fa61 AG |
1322 | echo "$as_me:$LINENO: result: no" >&5 |
1323 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1324 | fi |
1325 | ||
b7026657 AC |
1326 | fi |
1327 | if test -z "$ac_cv_prog_CC"; then | |
1328 | ac_ct_CC=$CC | |
1329 | # Extract the first word of "gcc", so it can be a program name with args. | |
1330 | set dummy gcc; ac_word=$2 | |
fdd6fa61 AG |
1331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
1333 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1335 | else |
b7026657 AC |
1336 | if test -n "$ac_ct_CC"; then |
1337 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1338 | else | |
1339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1340 | for as_dir in $PATH | |
1341 | do | |
1342 | IFS=$as_save_IFS | |
1343 | test -z "$as_dir" && as_dir=. | |
1344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 1345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
1346 | ac_cv_prog_ac_ct_CC="gcc" |
1347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1348 | break 2 | |
1349 | fi | |
1350 | done | |
1351 | done | |
1352 | ||
1353 | fi | |
1354 | fi | |
1355 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1356 | if test -n "$ac_ct_CC"; then | |
fdd6fa61 AG |
1357 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1358 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1359 | else |
fdd6fa61 AG |
1360 | echo "$as_me:$LINENO: result: no" >&5 |
1361 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1362 | fi |
1363 | ||
fdd6fa61 | 1364 | CC=$ac_ct_CC |
b7026657 AC |
1365 | else |
1366 | CC="$ac_cv_prog_CC" | |
1367 | fi | |
1368 | ||
1369 | if test -z "$CC"; then | |
fdd6fa61 AG |
1370 | if test -n "$ac_tool_prefix"; then |
1371 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b7026657 | 1372 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
fdd6fa61 AG |
1373 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
1375 | if test "${ac_cv_prog_CC+set}" = set; then |
1376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1377 | else | |
1378 | if test -n "$CC"; then | |
1379 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1380 | else | |
1381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1382 | for as_dir in $PATH | |
1383 | do | |
1384 | IFS=$as_save_IFS | |
1385 | test -z "$as_dir" && as_dir=. | |
1386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 1387 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
1388 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1390 | break 2 | |
1391 | fi | |
1392 | done | |
1393 | done | |
1394 | ||
1395 | fi | |
1396 | fi | |
1397 | CC=$ac_cv_prog_CC | |
1398 | if test -n "$CC"; then | |
fdd6fa61 AG |
1399 | echo "$as_me:$LINENO: result: $CC" >&5 |
1400 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 1401 | else |
fdd6fa61 AG |
1402 | echo "$as_me:$LINENO: result: no" >&5 |
1403 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1404 | fi |
1405 | ||
fdd6fa61 AG |
1406 | fi |
1407 | if test -z "$ac_cv_prog_CC"; then | |
1408 | ac_ct_CC=$CC | |
1409 | # Extract the first word of "cc", so it can be a program name with args. | |
1410 | set dummy cc; ac_word=$2 | |
1411 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1413 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1415 | else | |
1416 | if test -n "$ac_ct_CC"; then | |
1417 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1418 | else | |
1419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1420 | for as_dir in $PATH | |
1421 | do | |
1422 | IFS=$as_save_IFS | |
1423 | test -z "$as_dir" && as_dir=. | |
1424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1425 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1426 | ac_cv_prog_ac_ct_CC="cc" | |
1427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1428 | break 2 | |
df1756f4 | 1429 | fi |
fdd6fa61 AG |
1430 | done |
1431 | done | |
1432 | ||
1433 | fi | |
1434 | fi | |
1435 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1436 | if test -n "$ac_ct_CC"; then | |
1437 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1438 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1439 | else | |
1440 | echo "$as_me:$LINENO: result: no" >&5 | |
1441 | echo "${ECHO_T}no" >&6 | |
1442 | fi | |
1443 | ||
1444 | CC=$ac_ct_CC | |
1445 | else | |
1446 | CC="$ac_cv_prog_CC" | |
1447 | fi | |
1448 | ||
b7026657 AC |
1449 | fi |
1450 | if test -z "$CC"; then | |
1451 | # Extract the first word of "cc", so it can be a program name with args. | |
1452 | set dummy cc; ac_word=$2 | |
fdd6fa61 AG |
1453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
1455 | if test "${ac_cv_prog_CC+set}" = set; then |
1456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1457 | else | |
1458 | if test -n "$CC"; then | |
c906108c SS |
1459 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1460 | else | |
c906108c | 1461 | ac_prog_rejected=no |
b7026657 AC |
1462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1463 | for as_dir in $PATH | |
1464 | do | |
1465 | IFS=$as_save_IFS | |
1466 | test -z "$as_dir" && as_dir=. | |
1467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 1468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
1469 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1470 | ac_prog_rejected=yes | |
1471 | continue | |
1472 | fi | |
1473 | ac_cv_prog_CC="cc" | |
1474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1475 | break 2 | |
1476 | fi | |
1477 | done | |
1478 | done | |
1479 | ||
c906108c SS |
1480 | if test $ac_prog_rejected = yes; then |
1481 | # We found a bogon in the path, so make sure we never use it. | |
1482 | set dummy $ac_cv_prog_CC | |
1483 | shift | |
b7026657 | 1484 | if test $# != 0; then |
c906108c SS |
1485 | # We chose a different compiler from the bogus one. |
1486 | # However, it has the same basename, so the bogon will be chosen | |
1487 | # first if we set CC to just the basename; use the full file name. | |
1488 | shift | |
b7026657 | 1489 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1490 | fi |
1491 | fi | |
1492 | fi | |
1493 | fi | |
b7026657 | 1494 | CC=$ac_cv_prog_CC |
c906108c | 1495 | if test -n "$CC"; then |
fdd6fa61 AG |
1496 | echo "$as_me:$LINENO: result: $CC" >&5 |
1497 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1498 | else |
fdd6fa61 AG |
1499 | echo "$as_me:$LINENO: result: no" >&5 |
1500 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1501 | fi |
1502 | ||
b7026657 AC |
1503 | fi |
1504 | if test -z "$CC"; then | |
1505 | if test -n "$ac_tool_prefix"; then | |
fdd6fa61 | 1506 | for ac_prog in cl |
b7026657 AC |
1507 | do |
1508 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1509 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
fdd6fa61 AG |
1510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
1512 | if test "${ac_cv_prog_CC+set}" = set; then |
1513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1514 | else |
1515 | if test -n "$CC"; then | |
1516 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1517 | else | |
b7026657 AC |
1518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1519 | for as_dir in $PATH | |
1520 | do | |
1521 | IFS=$as_save_IFS | |
1522 | test -z "$as_dir" && as_dir=. | |
1523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 1524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
1525 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1527 | break 2 | |
1528 | fi | |
1529 | done | |
1530 | done | |
1531 | ||
c906108c SS |
1532 | fi |
1533 | fi | |
b7026657 | 1534 | CC=$ac_cv_prog_CC |
c906108c | 1535 | if test -n "$CC"; then |
fdd6fa61 AG |
1536 | echo "$as_me:$LINENO: result: $CC" >&5 |
1537 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1538 | else |
fdd6fa61 AG |
1539 | echo "$as_me:$LINENO: result: no" >&5 |
1540 | echo "${ECHO_T}no" >&6 | |
c906108c | 1541 | fi |
b7026657 AC |
1542 | |
1543 | test -n "$CC" && break | |
1544 | done | |
1545 | fi | |
1546 | if test -z "$CC"; then | |
1547 | ac_ct_CC=$CC | |
fdd6fa61 | 1548 | for ac_prog in cl |
b7026657 AC |
1549 | do |
1550 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1551 | set dummy $ac_prog; ac_word=$2 | |
fdd6fa61 AG |
1552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
1554 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1556 | else | |
1557 | if test -n "$ac_ct_CC"; then | |
1558 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1559 | else | |
1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1561 | for as_dir in $PATH | |
1562 | do | |
1563 | IFS=$as_save_IFS | |
1564 | test -z "$as_dir" && as_dir=. | |
1565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
1567 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1569 | break 2 | |
c906108c | 1570 | fi |
b7026657 AC |
1571 | done |
1572 | done | |
1573 | ||
1574 | fi | |
1575 | fi | |
1576 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1577 | if test -n "$ac_ct_CC"; then | |
fdd6fa61 AG |
1578 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1579 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1580 | else |
fdd6fa61 AG |
1581 | echo "$as_me:$LINENO: result: no" >&5 |
1582 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1583 | fi |
1584 | ||
1585 | test -n "$ac_ct_CC" && break | |
1586 | done | |
1587 | ||
fdd6fa61 | 1588 | CC=$ac_ct_CC |
b7026657 AC |
1589 | fi |
1590 | ||
c906108c SS |
1591 | fi |
1592 | ||
c906108c | 1593 | |
b7026657 AC |
1594 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1595 | See \`config.log' for more details." >&5 | |
1596 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1597 | See \`config.log' for more details." >&2;} | |
1598 | { (exit 1); exit 1; }; } | |
1599 | ||
1600 | # Provide some information about the compiler. | |
fdd6fa61 AG |
1601 | echo "$as_me:$LINENO:" \ |
1602 | "checking for C compiler version" >&5 | |
b7026657 | 1603 | ac_compiler=`set X $ac_compile; echo $2` |
fdd6fa61 AG |
1604 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1605 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
b7026657 AC |
1606 | ac_status=$? |
1607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1608 | (exit $ac_status); } | |
fdd6fa61 AG |
1609 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1610 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
b7026657 AC |
1611 | ac_status=$? |
1612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1613 | (exit $ac_status); } | |
fdd6fa61 AG |
1614 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1615 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
b7026657 AC |
1616 | ac_status=$? |
1617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1618 | (exit $ac_status); } | |
1619 | ||
1620 | cat >conftest.$ac_ext <<_ACEOF | |
1621 | /* confdefs.h. */ | |
1622 | _ACEOF | |
1623 | cat confdefs.h >>conftest.$ac_ext | |
1624 | cat >>conftest.$ac_ext <<_ACEOF | |
1625 | /* end confdefs.h. */ | |
1626 | ||
1627 | int | |
1628 | main () | |
1629 | { | |
1630 | ||
1631 | ; | |
1632 | return 0; | |
1633 | } | |
1634 | _ACEOF | |
1635 | ac_clean_files_save=$ac_clean_files | |
1636 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1637 | # Try to create an executable without -o first, disregard a.out. | |
1638 | # It will help us diagnose broken compilers, and finding out an intuition | |
1639 | # of exeext. | |
fdd6fa61 AG |
1640 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1641 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
b7026657 | 1642 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
fdd6fa61 AG |
1643 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1644 | (eval $ac_link_default) 2>&5 | |
b7026657 AC |
1645 | ac_status=$? |
1646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1647 | (exit $ac_status); }; then | |
fdd6fa61 AG |
1648 | # Find the output, starting from the most likely. This scheme is |
1649 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1650 | # resort. | |
1651 | ||
1652 | # Be careful to initialize this variable, since it used to be cached. | |
1653 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1654 | ac_cv_exeext= | |
1655 | # b.out is created by i960 compilers. | |
1656 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
b7026657 AC |
1657 | do |
1658 | test -f "$ac_file" || continue | |
1659 | case $ac_file in | |
fdd6fa61 AG |
1660 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1661 | ;; | |
1662 | conftest.$ac_ext ) | |
1663 | # This is the source file. | |
b7026657 AC |
1664 | ;; |
1665 | [ab].out ) | |
1666 | # We found the default executable, but exeext='' is most | |
1667 | # certainly right. | |
1668 | break;; | |
1669 | *.* ) | |
fdd6fa61 AG |
1670 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1671 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1672 | # but it would be cool to find out if it's true. Does anybody | |
1673 | # maintain Libtool? --akim. | |
1674 | export ac_cv_exeext | |
b7026657 AC |
1675 | break;; |
1676 | * ) | |
1677 | break;; | |
1678 | esac | |
1679 | done | |
1680 | else | |
1681 | echo "$as_me: failed program was:" >&5 | |
1682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1683 | ||
1684 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1685 | See \`config.log' for more details." >&5 | |
1686 | echo "$as_me: error: C compiler cannot create executables | |
1687 | See \`config.log' for more details." >&2;} | |
1688 | { (exit 77); exit 77; }; } | |
1689 | fi | |
1690 | ||
1691 | ac_exeext=$ac_cv_exeext | |
fdd6fa61 AG |
1692 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
1693 | echo "${ECHO_T}$ac_file" >&6 | |
b7026657 | 1694 | |
fdd6fa61 | 1695 | # Check the compiler produces executables we can run. If not, either |
b7026657 | 1696 | # the compiler is broken, or we cross compile. |
fdd6fa61 AG |
1697 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1698 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
b7026657 AC |
1699 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1700 | # If not cross compiling, check that we can run a simple program. | |
1701 | if test "$cross_compiling" != yes; then | |
1702 | if { ac_try='./$ac_file' | |
fdd6fa61 AG |
1703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1704 | (eval $ac_try) 2>&5 | |
b7026657 AC |
1705 | ac_status=$? |
1706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1707 | (exit $ac_status); }; }; then | |
1708 | cross_compiling=no | |
c906108c | 1709 | else |
b7026657 AC |
1710 | if test "$cross_compiling" = maybe; then |
1711 | cross_compiling=yes | |
1712 | else | |
1713 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1714 | If you meant to cross compile, use \`--host'. | |
1715 | See \`config.log' for more details." >&5 | |
1716 | echo "$as_me: error: cannot run C compiled programs. | |
1717 | If you meant to cross compile, use \`--host'. | |
1718 | See \`config.log' for more details." >&2;} | |
1719 | { (exit 1); exit 1; }; } | |
1720 | fi | |
c906108c | 1721 | fi |
c906108c | 1722 | fi |
fdd6fa61 AG |
1723 | echo "$as_me:$LINENO: result: yes" >&5 |
1724 | echo "${ECHO_T}yes" >&6 | |
b7026657 AC |
1725 | |
1726 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1727 | ac_clean_files=$ac_clean_files_save | |
fdd6fa61 | 1728 | # Check the compiler produces executables we can run. If not, either |
b7026657 | 1729 | # the compiler is broken, or we cross compile. |
fdd6fa61 AG |
1730 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1731 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1732 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1733 | echo "${ECHO_T}$cross_compiling" >&6 | |
1734 | ||
1735 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1736 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1738 | (eval $ac_link) 2>&5 | |
b7026657 AC |
1739 | ac_status=$? |
1740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1741 | (exit $ac_status); }; then | |
1742 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1743 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1744 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1745 | # `rm'. | |
1746 | for ac_file in conftest.exe conftest conftest.*; do | |
1747 | test -f "$ac_file" || continue | |
1748 | case $ac_file in | |
fdd6fa61 | 1749 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
b7026657 | 1750 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
fdd6fa61 | 1751 | export ac_cv_exeext |
b7026657 AC |
1752 | break;; |
1753 | * ) break;; | |
1754 | esac | |
1755 | done | |
c906108c | 1756 | else |
b7026657 AC |
1757 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1758 | See \`config.log' for more details." >&5 | |
1759 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1760 | See \`config.log' for more details." >&2;} | |
1761 | { (exit 1); exit 1; }; } | |
c906108c | 1762 | fi |
b7026657 AC |
1763 | |
1764 | rm -f conftest$ac_cv_exeext | |
fdd6fa61 AG |
1765 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1766 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
b7026657 AC |
1767 | |
1768 | rm -f conftest.$ac_ext | |
1769 | EXEEXT=$ac_cv_exeext | |
1770 | ac_exeext=$EXEEXT | |
fdd6fa61 AG |
1771 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1772 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
b7026657 AC |
1773 | if test "${ac_cv_objext+set}" = set; then |
1774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1775 | else | |
1776 | cat >conftest.$ac_ext <<_ACEOF | |
1777 | /* confdefs.h. */ | |
1778 | _ACEOF | |
1779 | cat confdefs.h >>conftest.$ac_ext | |
1780 | cat >>conftest.$ac_ext <<_ACEOF | |
1781 | /* end confdefs.h. */ | |
1782 | ||
1783 | int | |
1784 | main () | |
1785 | { | |
1786 | ||
1787 | ; | |
1788 | return 0; | |
1789 | } | |
1790 | _ACEOF | |
1791 | rm -f conftest.o conftest.obj | |
fdd6fa61 AG |
1792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1793 | (eval $ac_compile) 2>&5 | |
b7026657 AC |
1794 | ac_status=$? |
1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1796 | (exit $ac_status); }; then | |
fdd6fa61 | 1797 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
b7026657 | 1798 | case $ac_file in |
fdd6fa61 | 1799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
b7026657 AC |
1800 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1801 | break;; | |
1802 | esac | |
1803 | done | |
1804 | else | |
1805 | echo "$as_me: failed program was:" >&5 | |
1806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1807 | ||
1808 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1809 | See \`config.log' for more details." >&5 | |
1810 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1811 | See \`config.log' for more details." >&2;} | |
1812 | { (exit 1); exit 1; }; } | |
c906108c SS |
1813 | fi |
1814 | ||
b7026657 AC |
1815 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1816 | fi | |
fdd6fa61 AG |
1817 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1818 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
b7026657 AC |
1819 | OBJEXT=$ac_cv_objext |
1820 | ac_objext=$OBJEXT | |
fdd6fa61 AG |
1821 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1822 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
b7026657 AC |
1823 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1825 | else | |
1826 | cat >conftest.$ac_ext <<_ACEOF | |
1827 | /* confdefs.h. */ | |
1828 | _ACEOF | |
1829 | cat confdefs.h >>conftest.$ac_ext | |
1830 | cat >>conftest.$ac_ext <<_ACEOF | |
1831 | /* end confdefs.h. */ | |
1832 | ||
1833 | int | |
1834 | main () | |
1835 | { | |
1836 | #ifndef __GNUC__ | |
1837 | choke me | |
1838 | #endif | |
c906108c | 1839 | |
b7026657 AC |
1840 | ; |
1841 | return 0; | |
1842 | } | |
1843 | _ACEOF | |
1844 | rm -f conftest.$ac_objext | |
fdd6fa61 AG |
1845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1846 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
1847 | ac_status=$? |
1848 | grep -v '^ *+' conftest.er1 >conftest.err | |
1849 | rm -f conftest.er1 | |
1850 | cat conftest.err >&5 | |
1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
1852 | (exit $ac_status); } && |
1853 | { ac_try='test -z "$ac_c_werror_flag" | |
1854 | || test ! -s conftest.err' | |
1855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1856 | (eval $ac_try) 2>&5 | |
1857 | ac_status=$? | |
1858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1859 | (exit $ac_status); }; } && | |
1860 | { ac_try='test -s conftest.$ac_objext' | |
1861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1862 | (eval $ac_try) 2>&5 | |
1863 | ac_status=$? | |
1864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1865 | (exit $ac_status); }; }; then | |
b7026657 | 1866 | ac_compiler_gnu=yes |
c906108c | 1867 | else |
b7026657 AC |
1868 | echo "$as_me: failed program was:" >&5 |
1869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1870 | ||
fdd6fa61 | 1871 | ac_compiler_gnu=no |
c906108c | 1872 | fi |
fdd6fa61 | 1873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 1874 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 1875 | |
b7026657 | 1876 | fi |
fdd6fa61 AG |
1877 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1878 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
b7026657 AC |
1879 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1880 | ac_test_CFLAGS=${CFLAGS+set} | |
1881 | ac_save_CFLAGS=$CFLAGS | |
fdd6fa61 AG |
1882 | CFLAGS="-g" |
1883 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1884 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
b7026657 AC |
1885 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1887 | else |
fdd6fa61 | 1888 | cat >conftest.$ac_ext <<_ACEOF |
b7026657 AC |
1889 | /* confdefs.h. */ |
1890 | _ACEOF | |
1891 | cat confdefs.h >>conftest.$ac_ext | |
1892 | cat >>conftest.$ac_ext <<_ACEOF | |
1893 | /* end confdefs.h. */ | |
1894 | ||
1895 | int | |
1896 | main () | |
1897 | { | |
1898 | ||
1899 | ; | |
1900 | return 0; | |
1901 | } | |
1902 | _ACEOF | |
1903 | rm -f conftest.$ac_objext | |
fdd6fa61 AG |
1904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1905 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
1906 | ac_status=$? |
1907 | grep -v '^ *+' conftest.er1 >conftest.err | |
1908 | rm -f conftest.er1 | |
1909 | cat conftest.err >&5 | |
1910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
1911 | (exit $ac_status); } && |
1912 | { ac_try='test -z "$ac_c_werror_flag" | |
1913 | || test ! -s conftest.err' | |
1914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1915 | (eval $ac_try) 2>&5 | |
b7026657 AC |
1916 | ac_status=$? |
1917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
1918 | (exit $ac_status); }; } && |
1919 | { ac_try='test -s conftest.$ac_objext' | |
1920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1921 | (eval $ac_try) 2>&5 | |
b7026657 AC |
1922 | ac_status=$? |
1923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 | 1924 | (exit $ac_status); }; }; then |
c906108c SS |
1925 | ac_cv_prog_cc_g=yes |
1926 | else | |
b7026657 AC |
1927 | echo "$as_me: failed program was:" >&5 |
1928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 1929 | |
fdd6fa61 | 1930 | ac_cv_prog_cc_g=no |
c906108c | 1931 | fi |
fdd6fa61 | 1932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 1933 | fi |
fdd6fa61 AG |
1934 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
1935 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 1936 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 1937 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
1938 | elif test $ac_cv_prog_cc_g = yes; then |
1939 | if test "$GCC" = yes; then | |
1940 | CFLAGS="-g -O2" | |
1941 | else | |
1942 | CFLAGS="-g" | |
1943 | fi | |
1944 | else | |
1945 | if test "$GCC" = yes; then | |
1946 | CFLAGS="-O2" | |
1947 | else | |
1948 | CFLAGS= | |
1949 | fi | |
1950 | fi | |
fdd6fa61 AG |
1951 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
1952 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
1953 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
b7026657 AC |
1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1955 | else | |
fdd6fa61 | 1956 | ac_cv_prog_cc_stdc=no |
b7026657 AC |
1957 | ac_save_CC=$CC |
1958 | cat >conftest.$ac_ext <<_ACEOF | |
1959 | /* confdefs.h. */ | |
1960 | _ACEOF | |
1961 | cat confdefs.h >>conftest.$ac_ext | |
1962 | cat >>conftest.$ac_ext <<_ACEOF | |
1963 | /* end confdefs.h. */ | |
1964 | #include <stdarg.h> | |
1965 | #include <stdio.h> | |
1966 | #include <sys/types.h> | |
1967 | #include <sys/stat.h> | |
1968 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
1969 | struct buf { int x; }; | |
1970 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
1971 | static char *e (p, i) | |
1972 | char **p; | |
1973 | int i; | |
1974 | { | |
1975 | return p[i]; | |
1976 | } | |
1977 | static char *f (char * (*g) (char **, int), char **p, ...) | |
1978 | { | |
1979 | char *s; | |
1980 | va_list v; | |
1981 | va_start (v,p); | |
1982 | s = g (p, va_arg (v,int)); | |
1983 | va_end (v); | |
1984 | return s; | |
1985 | } | |
1986 | ||
1987 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
1988 | function prototypes and stuff, but not '\xHH' hex character constants. | |
1989 | These don't provoke an error unfortunately, instead are silently treated | |
fdd6fa61 | 1990 | as 'x'. The following induces an error, until -std1 is added to get |
b7026657 AC |
1991 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
1992 | array size at least. It's necessary to write '\x00'==0 to get something | |
fdd6fa61 | 1993 | that's true only with -std1. */ |
b7026657 AC |
1994 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
1995 | ||
1996 | int test (int i, double x); | |
1997 | struct s1 {int (*f) (int a);}; | |
1998 | struct s2 {int (*f) (double a);}; | |
1999 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2000 | int argc; | |
2001 | char **argv; | |
2002 | int | |
2003 | main () | |
2004 | { | |
2005 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2006 | ; | |
2007 | return 0; | |
2008 | } | |
2009 | _ACEOF | |
fdd6fa61 AG |
2010 | # Don't try gcc -ansi; that turns off useful extensions and |
2011 | # breaks some systems' header files. | |
2012 | # AIX -qlanglvl=ansi | |
2013 | # Ultrix and OSF/1 -std1 | |
2014 | # HP-UX 10.20 and later -Ae | |
2015 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2016 | # SVR4 -Xc -D__EXTENSIONS__ | |
2017 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
2018 | do |
2019 | CC="$ac_save_CC $ac_arg" | |
2020 | rm -f conftest.$ac_objext | |
fdd6fa61 AG |
2021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2022 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2023 | ac_status=$? |
2024 | grep -v '^ *+' conftest.er1 >conftest.err | |
2025 | rm -f conftest.er1 | |
2026 | cat conftest.err >&5 | |
2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
2028 | (exit $ac_status); } && |
2029 | { ac_try='test -z "$ac_c_werror_flag" | |
2030 | || test ! -s conftest.err' | |
2031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2032 | (eval $ac_try) 2>&5 | |
2033 | ac_status=$? | |
2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2035 | (exit $ac_status); }; } && | |
2036 | { ac_try='test -s conftest.$ac_objext' | |
2037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2038 | (eval $ac_try) 2>&5 | |
2039 | ac_status=$? | |
2040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2041 | (exit $ac_status); }; }; then | |
2042 | ac_cv_prog_cc_stdc=$ac_arg | |
2043 | break | |
b7026657 AC |
2044 | else |
2045 | echo "$as_me: failed program was:" >&5 | |
2046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2047 | ||
2048 | fi | |
fdd6fa61 | 2049 | rm -f conftest.err conftest.$ac_objext |
b7026657 | 2050 | done |
fdd6fa61 | 2051 | rm -f conftest.$ac_ext conftest.$ac_objext |
b7026657 AC |
2052 | CC=$ac_save_CC |
2053 | ||
2054 | fi | |
fdd6fa61 AG |
2055 | |
2056 | case "x$ac_cv_prog_cc_stdc" in | |
2057 | x|xno) | |
2058 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2059 | echo "${ECHO_T}none needed" >&6 ;; | |
b7026657 | 2060 | *) |
fdd6fa61 AG |
2061 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2062 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2063 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
b7026657 AC |
2064 | esac |
2065 | ||
fdd6fa61 AG |
2066 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2067 | # in C++ we need to declare it. In case someone uses the same compiler | |
2068 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2069 | # the declaration of exit, since it's the most demanding environment. | |
2070 | cat >conftest.$ac_ext <<_ACEOF | |
2071 | #ifndef __cplusplus | |
2072 | choke me | |
2073 | #endif | |
2074 | _ACEOF | |
2075 | rm -f conftest.$ac_objext | |
2076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2077 | (eval $ac_compile) 2>conftest.er1 | |
2078 | ac_status=$? | |
2079 | grep -v '^ *+' conftest.er1 >conftest.err | |
2080 | rm -f conftest.er1 | |
2081 | cat conftest.err >&5 | |
2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2083 | (exit $ac_status); } && | |
2084 | { ac_try='test -z "$ac_c_werror_flag" | |
2085 | || test ! -s conftest.err' | |
2086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2087 | (eval $ac_try) 2>&5 | |
2088 | ac_status=$? | |
2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2090 | (exit $ac_status); }; } && | |
2091 | { ac_try='test -s conftest.$ac_objext' | |
2092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2093 | (eval $ac_try) 2>&5 | |
2094 | ac_status=$? | |
2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2096 | (exit $ac_status); }; }; then | |
2097 | for ac_declaration in \ | |
2098 | '' \ | |
2099 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2100 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2101 | 'extern "C" void exit (int) throw ();' \ | |
2102 | 'extern "C" void exit (int);' \ | |
2103 | 'void exit (int);' | |
b7026657 | 2104 | do |
fdd6fa61 AG |
2105 | cat >conftest.$ac_ext <<_ACEOF |
2106 | /* confdefs.h. */ | |
2107 | _ACEOF | |
2108 | cat confdefs.h >>conftest.$ac_ext | |
2109 | cat >>conftest.$ac_ext <<_ACEOF | |
2110 | /* end confdefs.h. */ | |
2111 | $ac_declaration | |
2112 | #include <stdlib.h> | |
2113 | int | |
2114 | main () | |
2115 | { | |
2116 | exit (42); | |
2117 | ; | |
2118 | return 0; | |
2119 | } | |
2120 | _ACEOF | |
2121 | rm -f conftest.$ac_objext | |
2122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2123 | (eval $ac_compile) 2>conftest.er1 | |
2124 | ac_status=$? | |
2125 | grep -v '^ *+' conftest.er1 >conftest.err | |
2126 | rm -f conftest.er1 | |
2127 | cat conftest.err >&5 | |
2128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2129 | (exit $ac_status); } && | |
2130 | { ac_try='test -z "$ac_c_werror_flag" | |
2131 | || test ! -s conftest.err' | |
2132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2133 | (eval $ac_try) 2>&5 | |
2134 | ac_status=$? | |
2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2136 | (exit $ac_status); }; } && | |
2137 | { ac_try='test -s conftest.$ac_objext' | |
2138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2139 | (eval $ac_try) 2>&5 | |
2140 | ac_status=$? | |
2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2142 | (exit $ac_status); }; }; then | |
2143 | : | |
2144 | else | |
2145 | echo "$as_me: failed program was:" >&5 | |
2146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2147 | ||
2148 | continue | |
2149 | fi | |
2150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2151 | cat >conftest.$ac_ext <<_ACEOF | |
2152 | /* confdefs.h. */ | |
2153 | _ACEOF | |
2154 | cat confdefs.h >>conftest.$ac_ext | |
2155 | cat >>conftest.$ac_ext <<_ACEOF | |
2156 | /* end confdefs.h. */ | |
2157 | $ac_declaration | |
2158 | int | |
2159 | main () | |
2160 | { | |
2161 | exit (42); | |
2162 | ; | |
2163 | return 0; | |
2164 | } | |
2165 | _ACEOF | |
2166 | rm -f conftest.$ac_objext | |
2167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2168 | (eval $ac_compile) 2>conftest.er1 | |
2169 | ac_status=$? | |
2170 | grep -v '^ *+' conftest.er1 >conftest.err | |
2171 | rm -f conftest.er1 | |
2172 | cat conftest.err >&5 | |
2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2174 | (exit $ac_status); } && | |
2175 | { ac_try='test -z "$ac_c_werror_flag" | |
2176 | || test ! -s conftest.err' | |
2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2178 | (eval $ac_try) 2>&5 | |
2179 | ac_status=$? | |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2181 | (exit $ac_status); }; } && | |
2182 | { ac_try='test -s conftest.$ac_objext' | |
2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2184 | (eval $ac_try) 2>&5 | |
2185 | ac_status=$? | |
2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2187 | (exit $ac_status); }; }; then | |
2188 | break | |
2189 | else | |
2190 | echo "$as_me: failed program was:" >&5 | |
2191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2192 | ||
2193 | fi | |
2194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2195 | done | |
2196 | rm -f conftest* | |
2197 | if test -n "$ac_declaration"; then | |
2198 | echo '#ifdef __cplusplus' >>confdefs.h | |
2199 | echo $ac_declaration >>confdefs.h | |
2200 | echo '#endif' >>confdefs.h | |
2201 | fi | |
2202 | ||
2203 | else | |
2204 | echo "$as_me: failed program was:" >&5 | |
2205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2206 | ||
2207 | fi | |
2208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2209 | ac_ext=c | |
2210 | ac_cpp='$CPP $CPPFLAGS' | |
2211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2214 | ||
2215 | ac_aux_dir= | |
2216 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
2217 | if test -f $ac_dir/install-sh; then | |
2218 | ac_aux_dir=$ac_dir | |
2219 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2220 | break | |
2221 | elif test -f $ac_dir/install.sh; then | |
2222 | ac_aux_dir=$ac_dir | |
2223 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2224 | break | |
2225 | elif test -f $ac_dir/shtool; then | |
2226 | ac_aux_dir=$ac_dir | |
2227 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2228 | break | |
2229 | fi | |
2230 | done | |
2231 | if test -z "$ac_aux_dir"; then | |
2232 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
2233 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
2234 | { (exit 1); exit 1; }; } | |
2235 | fi | |
2236 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
2237 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2238 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
2239 | ||
2240 | # Find a good install program. We prefer a C program (faster), | |
2241 | # so one script is as good as another. But avoid the broken or | |
2242 | # incompatible versions: | |
2243 | # SysV /etc/install, /usr/sbin/install | |
2244 | # SunOS /usr/etc/install | |
2245 | # IRIX /sbin/install | |
2246 | # AIX /bin/install | |
2247 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2248 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2249 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2250 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2251 | # OS/2's system install, which has a completely different semantic | |
2252 | # ./install, which can be erroneously created by make from ./install.sh. | |
2253 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2254 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2255 | if test -z "$INSTALL"; then | |
2256 | if test "${ac_cv_path_install+set}" = set; then | |
2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2258 | else | |
2259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2260 | for as_dir in $PATH | |
2261 | do | |
2262 | IFS=$as_save_IFS | |
2263 | test -z "$as_dir" && as_dir=. | |
2264 | # Account for people who put trailing slashes in PATH elements. | |
b7026657 AC |
2265 | case $as_dir/ in |
2266 | ./ | .// | /cC/* | \ | |
2267 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2268 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2269 | /usr/ucb/* ) ;; | |
2270 | *) | |
2271 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2272 | # Don't use installbsd from OSF since it installs stuff as root | |
2273 | # by default. | |
2274 | for ac_prog in ginstall scoinst install; do | |
2275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2276 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
c906108c | 2277 | if test $ac_prog = install && |
b7026657 | 2278 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
c906108c SS |
2279 | # AIX install. It has an incompatible calling convention. |
2280 | : | |
b7026657 AC |
2281 | elif test $ac_prog = install && |
2282 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2283 | # program-specific install script used by HP pwplus--don't use. | |
2284 | : | |
c906108c | 2285 | else |
b7026657 AC |
2286 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2287 | break 3 | |
c906108c SS |
2288 | fi |
2289 | fi | |
2290 | done | |
b7026657 AC |
2291 | done |
2292 | ;; | |
2293 | esac | |
2294 | done | |
2295 | ||
c906108c SS |
2296 | |
2297 | fi | |
2298 | if test "${ac_cv_path_install+set}" = set; then | |
b7026657 | 2299 | INSTALL=$ac_cv_path_install |
c906108c | 2300 | else |
fdd6fa61 AG |
2301 | # As a last resort, use the slow shell script. We don't cache a |
2302 | # path for INSTALL within a source directory, because that will | |
c906108c | 2303 | # break other packages using the cache if that directory is |
fdd6fa61 | 2304 | # removed, or if the path is relative. |
b7026657 | 2305 | INSTALL=$ac_install_sh |
c906108c SS |
2306 | fi |
2307 | fi | |
fdd6fa61 AG |
2308 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2309 | echo "${ECHO_T}$INSTALL" >&6 | |
c906108c SS |
2310 | |
2311 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2312 | # It thinks the first close brace ends the variable substitution. | |
2313 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2314 | ||
b7026657 | 2315 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c906108c SS |
2316 | |
2317 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2318 | ||
b7026657 AC |
2319 | if test -n "$ac_tool_prefix"; then |
2320 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
c906108c | 2321 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
fdd6fa61 AG |
2322 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2324 | if test "${ac_cv_prog_AR+set}" = set; then |
2325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2326 | else |
2327 | if test -n "$AR"; then | |
2328 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2329 | else | |
b7026657 AC |
2330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2331 | for as_dir in $PATH | |
2332 | do | |
2333 | IFS=$as_save_IFS | |
2334 | test -z "$as_dir" && as_dir=. | |
2335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2336 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2337 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
2338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2339 | break 2 | |
2340 | fi | |
2341 | done | |
2342 | done | |
2343 | ||
c906108c SS |
2344 | fi |
2345 | fi | |
b7026657 | 2346 | AR=$ac_cv_prog_AR |
c906108c | 2347 | if test -n "$AR"; then |
fdd6fa61 AG |
2348 | echo "$as_me:$LINENO: result: $AR" >&5 |
2349 | echo "${ECHO_T}$AR" >&6 | |
c906108c | 2350 | else |
fdd6fa61 AG |
2351 | echo "$as_me:$LINENO: result: no" >&5 |
2352 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
2353 | fi |
2354 | ||
c906108c | 2355 | fi |
b7026657 AC |
2356 | if test -z "$ac_cv_prog_AR"; then |
2357 | ac_ct_AR=$AR | |
2358 | # Extract the first word of "ar", so it can be a program name with args. | |
2359 | set dummy ar; ac_word=$2 | |
fdd6fa61 AG |
2360 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2362 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
2363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2364 | else | |
2365 | if test -n "$ac_ct_AR"; then | |
2366 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
2367 | else | |
2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2369 | for as_dir in $PATH | |
2370 | do | |
2371 | IFS=$as_save_IFS | |
2372 | test -z "$as_dir" && as_dir=. | |
2373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2374 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2375 | ac_cv_prog_ac_ct_AR="ar" |
2376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2377 | break 2 | |
2378 | fi | |
2379 | done | |
2380 | done | |
c906108c | 2381 | |
b7026657 AC |
2382 | fi |
2383 | fi | |
2384 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
2385 | if test -n "$ac_ct_AR"; then | |
fdd6fa61 AG |
2386 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
2387 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
b7026657 | 2388 | else |
fdd6fa61 AG |
2389 | echo "$as_me:$LINENO: result: no" >&5 |
2390 | echo "${ECHO_T}no" >&6 | |
b7026657 | 2391 | fi |
c906108c | 2392 | |
fdd6fa61 | 2393 | AR=$ac_ct_AR |
b7026657 AC |
2394 | else |
2395 | AR="$ac_cv_prog_AR" | |
2396 | fi | |
c906108c | 2397 | |
b7026657 AC |
2398 | if test -n "$ac_tool_prefix"; then |
2399 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
c906108c | 2400 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
fdd6fa61 AG |
2401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2403 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
2404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2405 | else |
2406 | if test -n "$RANLIB"; then | |
2407 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2408 | else | |
b7026657 AC |
2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2410 | for as_dir in $PATH | |
2411 | do | |
2412 | IFS=$as_save_IFS | |
2413 | test -z "$as_dir" && as_dir=. | |
2414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2416 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
2417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2418 | break 2 | |
2419 | fi | |
2420 | done | |
2421 | done | |
2422 | ||
c906108c SS |
2423 | fi |
2424 | fi | |
b7026657 | 2425 | RANLIB=$ac_cv_prog_RANLIB |
c906108c | 2426 | if test -n "$RANLIB"; then |
fdd6fa61 AG |
2427 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2428 | echo "${ECHO_T}$RANLIB" >&6 | |
c906108c | 2429 | else |
fdd6fa61 AG |
2430 | echo "$as_me:$LINENO: result: no" >&5 |
2431 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2432 | fi |
2433 | ||
b7026657 | 2434 | fi |
c906108c | 2435 | if test -z "$ac_cv_prog_RANLIB"; then |
b7026657 | 2436 | ac_ct_RANLIB=$RANLIB |
c906108c SS |
2437 | # Extract the first word of "ranlib", so it can be a program name with args. |
2438 | set dummy ranlib; ac_word=$2 | |
fdd6fa61 AG |
2439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2441 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
2442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2443 | else |
b7026657 AC |
2444 | if test -n "$ac_ct_RANLIB"; then |
2445 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
c906108c | 2446 | else |
b7026657 AC |
2447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2448 | for as_dir in $PATH | |
2449 | do | |
2450 | IFS=$as_save_IFS | |
2451 | test -z "$as_dir" && as_dir=. | |
2452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2454 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
2455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2456 | break 2 | |
2457 | fi | |
2458 | done | |
2459 | done | |
2460 | ||
fdd6fa61 | 2461 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
c906108c SS |
2462 | fi |
2463 | fi | |
b7026657 AC |
2464 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2465 | if test -n "$ac_ct_RANLIB"; then | |
fdd6fa61 AG |
2466 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
2467 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
c906108c | 2468 | else |
fdd6fa61 AG |
2469 | echo "$as_me:$LINENO: result: no" >&5 |
2470 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2471 | fi |
2472 | ||
fdd6fa61 | 2473 | RANLIB=$ac_ct_RANLIB |
c906108c | 2474 | else |
b7026657 | 2475 | RANLIB="$ac_cv_prog_RANLIB" |
c906108c SS |
2476 | fi |
2477 | ||
2478 | ||
c906108c | 2479 | # Make sure we can run config.sub. |
fdd6fa61 AG |
2480 | $ac_config_sub sun4 >/dev/null 2>&1 || |
2481 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2482 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
b7026657 AC |
2483 | { (exit 1); exit 1; }; } |
2484 | ||
fdd6fa61 AG |
2485 | echo "$as_me:$LINENO: checking build system type" >&5 |
2486 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
b7026657 AC |
2487 | if test "${ac_cv_build+set}" = set; then |
2488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2489 | else | |
fdd6fa61 AG |
2490 | ac_cv_build_alias=$build_alias |
2491 | test -z "$ac_cv_build_alias" && | |
2492 | ac_cv_build_alias=`$ac_config_guess` | |
2493 | test -z "$ac_cv_build_alias" && | |
b7026657 AC |
2494 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2495 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2496 | { (exit 1); exit 1; }; } | |
fdd6fa61 AG |
2497 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2498 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2499 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
b7026657 | 2500 | { (exit 1); exit 1; }; } |
c906108c | 2501 | |
b7026657 | 2502 | fi |
fdd6fa61 AG |
2503 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2504 | echo "${ECHO_T}$ac_cv_build" >&6 | |
b7026657 | 2505 | build=$ac_cv_build |
fdd6fa61 AG |
2506 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2507 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2508 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2509 | ||
2510 | ||
2511 | echo "$as_me:$LINENO: checking host system type" >&5 | |
2512 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
b7026657 AC |
2513 | if test "${ac_cv_host+set}" = set; then |
2514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2515 | else | |
fdd6fa61 AG |
2516 | ac_cv_host_alias=$host_alias |
2517 | test -z "$ac_cv_host_alias" && | |
2518 | ac_cv_host_alias=$ac_cv_build_alias | |
2519 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2520 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2521 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
b7026657 | 2522 | { (exit 1); exit 1; }; } |
c906108c | 2523 | |
b7026657 | 2524 | fi |
fdd6fa61 AG |
2525 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2526 | echo "${ECHO_T}$ac_cv_host" >&6 | |
b7026657 | 2527 | host=$ac_cv_host |
fdd6fa61 AG |
2528 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2529 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2530 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2531 | ||
2532 | ||
2533 | echo "$as_me:$LINENO: checking target system type" >&5 | |
2534 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
b7026657 AC |
2535 | if test "${ac_cv_target+set}" = set; then |
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2537 | else | |
fdd6fa61 AG |
2538 | ac_cv_target_alias=$target_alias |
2539 | test "x$ac_cv_target_alias" = "x" && | |
2540 | ac_cv_target_alias=$ac_cv_host_alias | |
2541 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2542 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2543 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
b7026657 | 2544 | { (exit 1); exit 1; }; } |
c906108c | 2545 | |
b7026657 | 2546 | fi |
fdd6fa61 AG |
2547 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2548 | echo "${ECHO_T}$ac_cv_target" >&6 | |
b7026657 | 2549 | target=$ac_cv_target |
fdd6fa61 AG |
2550 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2551 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2552 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2553 | |
c906108c | 2554 | |
b7026657 AC |
2555 | # The aliases save the names the user supplied, while $host etc. |
2556 | # will get canonicalized. | |
2557 | test -n "$target_alias" && | |
c906108c SS |
2558 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2559 | NONENONEs,x,x, && | |
2560 | program_prefix=${target_alias}- | |
c906108c | 2561 | test "$program_prefix" != NONE && |
fdd6fa61 | 2562 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
c906108c SS |
2563 | # Use a double $ so make ignores it. |
2564 | test "$program_suffix" != NONE && | |
fdd6fa61 | 2565 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
b7026657 AC |
2566 | # Double any \ or $. echo might interpret backslashes. |
2567 | # By default was `s,x,x', remove it if useless. | |
2568 | cat <<\_ACEOF >conftest.sed | |
2569 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2570 | _ACEOF | |
2571 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
fdd6fa61 | 2572 | rm conftest.sed |
c906108c | 2573 | |
b7026657 AC |
2574 | ac_ext=c |
2575 | ac_cpp='$CPP $CPPFLAGS' | |
2576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2579 | if test -n "$ac_tool_prefix"; then | |
2580 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2581 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
fdd6fa61 AG |
2582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2584 | if test "${ac_cv_prog_CC+set}" = set; then |
2585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2586 | else |
2587 | if test -n "$CC"; then | |
2588 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2589 | else | |
b7026657 AC |
2590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2591 | for as_dir in $PATH | |
2592 | do | |
2593 | IFS=$as_save_IFS | |
2594 | test -z "$as_dir" && as_dir=. | |
2595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2597 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2599 | break 2 | |
2600 | fi | |
2601 | done | |
2602 | done | |
2603 | ||
2604 | fi | |
2605 | fi | |
2606 | CC=$ac_cv_prog_CC | |
2607 | if test -n "$CC"; then | |
fdd6fa61 AG |
2608 | echo "$as_me:$LINENO: result: $CC" >&5 |
2609 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 2610 | else |
fdd6fa61 AG |
2611 | echo "$as_me:$LINENO: result: no" >&5 |
2612 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
2613 | fi |
2614 | ||
2615 | fi | |
2616 | if test -z "$ac_cv_prog_CC"; then | |
2617 | ac_ct_CC=$CC | |
2618 | # Extract the first word of "gcc", so it can be a program name with args. | |
2619 | set dummy gcc; ac_word=$2 | |
fdd6fa61 AG |
2620 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2622 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2624 | else | |
2625 | if test -n "$ac_ct_CC"; then | |
2626 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2627 | else | |
2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2629 | for as_dir in $PATH | |
2630 | do | |
2631 | IFS=$as_save_IFS | |
2632 | test -z "$as_dir" && as_dir=. | |
2633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2634 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2635 | ac_cv_prog_ac_ct_CC="gcc" |
2636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2637 | break 2 | |
2638 | fi | |
2639 | done | |
2640 | done | |
2641 | ||
2642 | fi | |
2643 | fi | |
2644 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2645 | if test -n "$ac_ct_CC"; then | |
fdd6fa61 AG |
2646 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2647 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 2648 | else |
fdd6fa61 AG |
2649 | echo "$as_me:$LINENO: result: no" >&5 |
2650 | echo "${ECHO_T}no" >&6 | |
c906108c | 2651 | fi |
b7026657 | 2652 | |
fdd6fa61 | 2653 | CC=$ac_ct_CC |
b7026657 AC |
2654 | else |
2655 | CC="$ac_cv_prog_CC" | |
c906108c | 2656 | fi |
b7026657 AC |
2657 | |
2658 | if test -z "$CC"; then | |
fdd6fa61 AG |
2659 | if test -n "$ac_tool_prefix"; then |
2660 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b7026657 | 2661 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
fdd6fa61 AG |
2662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2664 | if test "${ac_cv_prog_CC+set}" = set; then |
2665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2666 | else | |
2667 | if test -n "$CC"; then | |
2668 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2669 | else | |
2670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2671 | for as_dir in $PATH | |
2672 | do | |
2673 | IFS=$as_save_IFS | |
2674 | test -z "$as_dir" && as_dir=. | |
2675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2677 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2679 | break 2 | |
2680 | fi | |
2681 | done | |
2682 | done | |
2683 | ||
2684 | fi | |
2685 | fi | |
2686 | CC=$ac_cv_prog_CC | |
c906108c | 2687 | if test -n "$CC"; then |
fdd6fa61 AG |
2688 | echo "$as_me:$LINENO: result: $CC" >&5 |
2689 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 2690 | else |
fdd6fa61 AG |
2691 | echo "$as_me:$LINENO: result: no" >&5 |
2692 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
2693 | fi |
2694 | ||
fdd6fa61 AG |
2695 | fi |
2696 | if test -z "$ac_cv_prog_CC"; then | |
2697 | ac_ct_CC=$CC | |
2698 | # Extract the first word of "cc", so it can be a program name with args. | |
2699 | set dummy cc; ac_word=$2 | |
2700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2702 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2704 | else | |
2705 | if test -n "$ac_ct_CC"; then | |
2706 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2707 | else | |
2708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2709 | for as_dir in $PATH | |
2710 | do | |
2711 | IFS=$as_save_IFS | |
2712 | test -z "$as_dir" && as_dir=. | |
2713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2714 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2715 | ac_cv_prog_ac_ct_CC="cc" | |
2716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2717 | break 2 | |
df1756f4 | 2718 | fi |
fdd6fa61 AG |
2719 | done |
2720 | done | |
2721 | ||
2722 | fi | |
2723 | fi | |
2724 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2725 | if test -n "$ac_ct_CC"; then | |
2726 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2727 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2728 | else | |
2729 | echo "$as_me:$LINENO: result: no" >&5 | |
2730 | echo "${ECHO_T}no" >&6 | |
2731 | fi | |
2732 | ||
2733 | CC=$ac_ct_CC | |
2734 | else | |
2735 | CC="$ac_cv_prog_CC" | |
2736 | fi | |
2737 | ||
b7026657 | 2738 | fi |
c906108c SS |
2739 | if test -z "$CC"; then |
2740 | # Extract the first word of "cc", so it can be a program name with args. | |
2741 | set dummy cc; ac_word=$2 | |
fdd6fa61 AG |
2742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2744 | if test "${ac_cv_prog_CC+set}" = set; then |
2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2746 | else |
2747 | if test -n "$CC"; then | |
2748 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2749 | else | |
c906108c | 2750 | ac_prog_rejected=no |
b7026657 AC |
2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2752 | for as_dir in $PATH | |
2753 | do | |
2754 | IFS=$as_save_IFS | |
2755 | test -z "$as_dir" && as_dir=. | |
2756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2758 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2759 | ac_prog_rejected=yes | |
2760 | continue | |
2761 | fi | |
2762 | ac_cv_prog_CC="cc" | |
2763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2764 | break 2 | |
2765 | fi | |
2766 | done | |
2767 | done | |
2768 | ||
c906108c SS |
2769 | if test $ac_prog_rejected = yes; then |
2770 | # We found a bogon in the path, so make sure we never use it. | |
2771 | set dummy $ac_cv_prog_CC | |
2772 | shift | |
b7026657 | 2773 | if test $# != 0; then |
c906108c SS |
2774 | # We chose a different compiler from the bogus one. |
2775 | # However, it has the same basename, so the bogon will be chosen | |
2776 | # first if we set CC to just the basename; use the full file name. | |
2777 | shift | |
b7026657 | 2778 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
2779 | fi |
2780 | fi | |
2781 | fi | |
2782 | fi | |
b7026657 | 2783 | CC=$ac_cv_prog_CC |
c906108c | 2784 | if test -n "$CC"; then |
fdd6fa61 AG |
2785 | echo "$as_me:$LINENO: result: $CC" >&5 |
2786 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 2787 | else |
fdd6fa61 AG |
2788 | echo "$as_me:$LINENO: result: no" >&5 |
2789 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2790 | fi |
2791 | ||
b7026657 AC |
2792 | fi |
2793 | if test -z "$CC"; then | |
2794 | if test -n "$ac_tool_prefix"; then | |
fdd6fa61 | 2795 | for ac_prog in cl |
b7026657 AC |
2796 | do |
2797 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2798 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
fdd6fa61 AG |
2799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2801 | if test "${ac_cv_prog_CC+set}" = set; then |
2802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2803 | else |
2804 | if test -n "$CC"; then | |
2805 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2806 | else | |
b7026657 AC |
2807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2808 | for as_dir in $PATH | |
2809 | do | |
2810 | IFS=$as_save_IFS | |
2811 | test -z "$as_dir" && as_dir=. | |
2812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2814 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2816 | break 2 | |
2817 | fi | |
2818 | done | |
2819 | done | |
2820 | ||
c906108c SS |
2821 | fi |
2822 | fi | |
b7026657 | 2823 | CC=$ac_cv_prog_CC |
c906108c | 2824 | if test -n "$CC"; then |
fdd6fa61 AG |
2825 | echo "$as_me:$LINENO: result: $CC" >&5 |
2826 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 2827 | else |
fdd6fa61 AG |
2828 | echo "$as_me:$LINENO: result: no" >&5 |
2829 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2830 | fi |
2831 | ||
b7026657 AC |
2832 | test -n "$CC" && break |
2833 | done | |
2834 | fi | |
2835 | if test -z "$CC"; then | |
2836 | ac_ct_CC=$CC | |
fdd6fa61 | 2837 | for ac_prog in cl |
b7026657 AC |
2838 | do |
2839 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2840 | set dummy $ac_prog; ac_word=$2 | |
fdd6fa61 AG |
2841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
2843 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2845 | else |
b7026657 AC |
2846 | if test -n "$ac_ct_CC"; then |
2847 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2848 | else | |
2849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2850 | for as_dir in $PATH | |
2851 | do | |
2852 | IFS=$as_save_IFS | |
2853 | test -z "$as_dir" && as_dir=. | |
2854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 2855 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2856 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2858 | break 2 | |
2859 | fi | |
2860 | done | |
2861 | done | |
2862 | ||
c906108c | 2863 | fi |
b7026657 AC |
2864 | fi |
2865 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2866 | if test -n "$ac_ct_CC"; then | |
fdd6fa61 AG |
2867 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2868 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
c906108c | 2869 | else |
fdd6fa61 AG |
2870 | echo "$as_me:$LINENO: result: no" >&5 |
2871 | echo "${ECHO_T}no" >&6 | |
c906108c | 2872 | fi |
b7026657 AC |
2873 | |
2874 | test -n "$ac_ct_CC" && break | |
2875 | done | |
2876 | ||
fdd6fa61 | 2877 | CC=$ac_ct_CC |
c906108c SS |
2878 | fi |
2879 | ||
b7026657 AC |
2880 | fi |
2881 | ||
2882 | ||
2883 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2884 | See \`config.log' for more details." >&5 | |
2885 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2886 | See \`config.log' for more details." >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
2888 | ||
2889 | # Provide some information about the compiler. | |
fdd6fa61 AG |
2890 | echo "$as_me:$LINENO:" \ |
2891 | "checking for C compiler version" >&5 | |
b7026657 | 2892 | ac_compiler=`set X $ac_compile; echo $2` |
fdd6fa61 AG |
2893 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2894 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
b7026657 AC |
2895 | ac_status=$? |
2896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2897 | (exit $ac_status); } | |
fdd6fa61 AG |
2898 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2899 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
b7026657 AC |
2900 | ac_status=$? |
2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2902 | (exit $ac_status); } | |
fdd6fa61 AG |
2903 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2904 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
b7026657 AC |
2905 | ac_status=$? |
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2907 | (exit $ac_status); } | |
2908 | ||
fdd6fa61 AG |
2909 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2910 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
b7026657 AC |
2911 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2913 | else | |
2914 | cat >conftest.$ac_ext <<_ACEOF | |
2915 | /* confdefs.h. */ | |
2916 | _ACEOF | |
2917 | cat confdefs.h >>conftest.$ac_ext | |
2918 | cat >>conftest.$ac_ext <<_ACEOF | |
2919 | /* end confdefs.h. */ | |
2920 | ||
2921 | int | |
2922 | main () | |
2923 | { | |
2924 | #ifndef __GNUC__ | |
2925 | choke me | |
2926 | #endif | |
c906108c | 2927 | |
b7026657 AC |
2928 | ; |
2929 | return 0; | |
2930 | } | |
2931 | _ACEOF | |
2932 | rm -f conftest.$ac_objext | |
fdd6fa61 AG |
2933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2934 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2935 | ac_status=$? |
2936 | grep -v '^ *+' conftest.er1 >conftest.err | |
2937 | rm -f conftest.er1 | |
2938 | cat conftest.err >&5 | |
2939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
2940 | (exit $ac_status); } && |
2941 | { ac_try='test -z "$ac_c_werror_flag" | |
2942 | || test ! -s conftest.err' | |
2943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2944 | (eval $ac_try) 2>&5 | |
2945 | ac_status=$? | |
2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2947 | (exit $ac_status); }; } && | |
2948 | { ac_try='test -s conftest.$ac_objext' | |
2949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2950 | (eval $ac_try) 2>&5 | |
2951 | ac_status=$? | |
2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2953 | (exit $ac_status); }; }; then | |
b7026657 | 2954 | ac_compiler_gnu=yes |
c906108c | 2955 | else |
b7026657 AC |
2956 | echo "$as_me: failed program was:" >&5 |
2957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2958 | ||
fdd6fa61 | 2959 | ac_compiler_gnu=no |
c906108c | 2960 | fi |
fdd6fa61 | 2961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 2962 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 2963 | |
b7026657 | 2964 | fi |
fdd6fa61 AG |
2965 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2966 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
b7026657 AC |
2967 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2968 | ac_test_CFLAGS=${CFLAGS+set} | |
2969 | ac_save_CFLAGS=$CFLAGS | |
fdd6fa61 AG |
2970 | CFLAGS="-g" |
2971 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2972 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
b7026657 AC |
2973 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2975 | else |
fdd6fa61 | 2976 | cat >conftest.$ac_ext <<_ACEOF |
b7026657 AC |
2977 | /* confdefs.h. */ |
2978 | _ACEOF | |
2979 | cat confdefs.h >>conftest.$ac_ext | |
2980 | cat >>conftest.$ac_ext <<_ACEOF | |
2981 | /* end confdefs.h. */ | |
2982 | ||
2983 | int | |
2984 | main () | |
2985 | { | |
2986 | ||
2987 | ; | |
2988 | return 0; | |
2989 | } | |
2990 | _ACEOF | |
2991 | rm -f conftest.$ac_objext | |
fdd6fa61 AG |
2992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2993 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2994 | ac_status=$? |
2995 | grep -v '^ *+' conftest.er1 >conftest.err | |
2996 | rm -f conftest.er1 | |
2997 | cat conftest.err >&5 | |
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
2999 | (exit $ac_status); } && |
3000 | { ac_try='test -z "$ac_c_werror_flag" | |
3001 | || test ! -s conftest.err' | |
3002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3003 | (eval $ac_try) 2>&5 | |
b7026657 AC |
3004 | ac_status=$? |
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
3006 | (exit $ac_status); }; } && |
3007 | { ac_try='test -s conftest.$ac_objext' | |
3008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3009 | (eval $ac_try) 2>&5 | |
b7026657 AC |
3010 | ac_status=$? |
3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 | 3012 | (exit $ac_status); }; }; then |
c906108c SS |
3013 | ac_cv_prog_cc_g=yes |
3014 | else | |
b7026657 AC |
3015 | echo "$as_me: failed program was:" >&5 |
3016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3017 | |
fdd6fa61 | 3018 | ac_cv_prog_cc_g=no |
df1756f4 | 3019 | fi |
fdd6fa61 | 3020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3021 | fi |
fdd6fa61 AG |
3022 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3023 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 3024 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3025 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3026 | elif test $ac_cv_prog_cc_g = yes; then |
3027 | if test "$GCC" = yes; then | |
3028 | CFLAGS="-g -O2" | |
3029 | else | |
3030 | CFLAGS="-g" | |
3031 | fi | |
3032 | else | |
3033 | if test "$GCC" = yes; then | |
3034 | CFLAGS="-O2" | |
3035 | else | |
3036 | CFLAGS= | |
3037 | fi | |
3038 | fi | |
fdd6fa61 AG |
3039 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3040 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3041 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
b7026657 AC |
3042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3043 | else | |
fdd6fa61 | 3044 | ac_cv_prog_cc_stdc=no |
b7026657 AC |
3045 | ac_save_CC=$CC |
3046 | cat >conftest.$ac_ext <<_ACEOF | |
3047 | /* confdefs.h. */ | |
3048 | _ACEOF | |
3049 | cat confdefs.h >>conftest.$ac_ext | |
3050 | cat >>conftest.$ac_ext <<_ACEOF | |
3051 | /* end confdefs.h. */ | |
3052 | #include <stdarg.h> | |
3053 | #include <stdio.h> | |
3054 | #include <sys/types.h> | |
3055 | #include <sys/stat.h> | |
3056 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3057 | struct buf { int x; }; | |
3058 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3059 | static char *e (p, i) | |
3060 | char **p; | |
3061 | int i; | |
3062 | { | |
3063 | return p[i]; | |
3064 | } | |
3065 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3066 | { | |
3067 | char *s; | |
3068 | va_list v; | |
3069 | va_start (v,p); | |
3070 | s = g (p, va_arg (v,int)); | |
3071 | va_end (v); | |
3072 | return s; | |
3073 | } | |
3074 | ||
3075 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3076 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3077 | These don't provoke an error unfortunately, instead are silently treated | |
fdd6fa61 | 3078 | as 'x'. The following induces an error, until -std1 is added to get |
b7026657 AC |
3079 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3080 | array size at least. It's necessary to write '\x00'==0 to get something | |
fdd6fa61 | 3081 | that's true only with -std1. */ |
b7026657 AC |
3082 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3083 | ||
3084 | int test (int i, double x); | |
3085 | struct s1 {int (*f) (int a);}; | |
3086 | struct s2 {int (*f) (double a);}; | |
3087 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3088 | int argc; | |
3089 | char **argv; | |
3090 | int | |
3091 | main () | |
3092 | { | |
3093 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3094 | ; | |
3095 | return 0; | |
3096 | } | |
3097 | _ACEOF | |
fdd6fa61 AG |
3098 | # Don't try gcc -ansi; that turns off useful extensions and |
3099 | # breaks some systems' header files. | |
3100 | # AIX -qlanglvl=ansi | |
3101 | # Ultrix and OSF/1 -std1 | |
3102 | # HP-UX 10.20 and later -Ae | |
3103 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3104 | # SVR4 -Xc -D__EXTENSIONS__ | |
3105 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
3106 | do |
3107 | CC="$ac_save_CC $ac_arg" | |
3108 | rm -f conftest.$ac_objext | |
fdd6fa61 AG |
3109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3110 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
3111 | ac_status=$? |
3112 | grep -v '^ *+' conftest.er1 >conftest.err | |
3113 | rm -f conftest.er1 | |
3114 | cat conftest.err >&5 | |
3115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
fdd6fa61 AG |
3116 | (exit $ac_status); } && |
3117 | { ac_try='test -z "$ac_c_werror_flag" | |
3118 | || test ! -s conftest.err' | |
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); }; } && | |
3124 | { ac_try='test -s conftest.$ac_objext' | |
3125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3126 | (eval $ac_try) 2>&5 | |
3127 | ac_status=$? | |
3128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3129 | (exit $ac_status); }; }; then | |
3130 | ac_cv_prog_cc_stdc=$ac_arg | |
3131 | break | |
b7026657 AC |
3132 | else |
3133 | echo "$as_me: failed program was:" >&5 | |
3134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3135 | ||
3136 | fi | |
fdd6fa61 | 3137 | rm -f conftest.err conftest.$ac_objext |
b7026657 | 3138 | done |
fdd6fa61 | 3139 | rm -f conftest.$ac_ext conftest.$ac_objext |
b7026657 AC |
3140 | CC=$ac_save_CC |
3141 | ||
3142 | fi | |
fdd6fa61 AG |
3143 | |
3144 | case "x$ac_cv_prog_cc_stdc" in | |
3145 | x|xno) | |
3146 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3147 | echo "${ECHO_T}none needed" >&6 ;; | |
b7026657 | 3148 | *) |
fdd6fa61 AG |
3149 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
3150 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3151 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
b7026657 AC |
3152 | esac |
3153 | ||
fdd6fa61 AG |
3154 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3155 | # in C++ we need to declare it. In case someone uses the same compiler | |
3156 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3157 | # the declaration of exit, since it's the most demanding environment. | |
3158 | cat >conftest.$ac_ext <<_ACEOF | |
3159 | #ifndef __cplusplus | |
3160 | choke me | |
3161 | #endif | |
3162 | _ACEOF | |
3163 | rm -f conftest.$ac_objext | |
3164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3165 | (eval $ac_compile) 2>conftest.er1 | |
3166 | ac_status=$? | |
3167 | grep -v '^ *+' conftest.er1 >conftest.err | |
3168 | rm -f conftest.er1 | |
3169 | cat conftest.err >&5 | |
3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3171 | (exit $ac_status); } && | |
3172 | { ac_try='test -z "$ac_c_werror_flag" | |
3173 | || test ! -s conftest.err' | |
3174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3175 | (eval $ac_try) 2>&5 | |
3176 | ac_status=$? | |
3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3178 | (exit $ac_status); }; } && | |
3179 | { ac_try='test -s conftest.$ac_objext' | |
3180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3181 | (eval $ac_try) 2>&5 | |
3182 | ac_status=$? | |
3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3184 | (exit $ac_status); }; }; then | |
3185 | for ac_declaration in \ | |
3186 | '' \ | |
3187 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3188 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3189 | 'extern "C" void exit (int) throw ();' \ | |
3190 | 'extern "C" void exit (int);' \ | |
3191 | 'void exit (int);' | |
3192 | do | |
3193 | cat >conftest.$ac_ext <<_ACEOF | |
3194 | /* confdefs.h. */ | |
3195 | _ACEOF | |
3196 | cat confdefs.h >>conftest.$ac_ext | |
3197 | cat >>conftest.$ac_ext <<_ACEOF | |
3198 | /* end confdefs.h. */ | |
3199 | $ac_declaration | |
3200 | #include <stdlib.h> | |
3201 | int | |
3202 | main () | |
3203 | { | |
3204 | exit (42); | |
3205 | ; | |
3206 | return 0; | |
3207 | } | |
3208 | _ACEOF | |
3209 | rm -f conftest.$ac_objext | |
3210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3211 | (eval $ac_compile) 2>conftest.er1 | |
3212 | ac_status=$? | |
3213 | grep -v '^ *+' conftest.er1 >conftest.err | |
3214 | rm -f conftest.er1 | |
3215 | cat conftest.err >&5 | |
3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3217 | (exit $ac_status); } && | |
3218 | { ac_try='test -z "$ac_c_werror_flag" | |
3219 | || test ! -s conftest.err' | |
3220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3221 | (eval $ac_try) 2>&5 | |
3222 | ac_status=$? | |
3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3224 | (exit $ac_status); }; } && | |
3225 | { ac_try='test -s conftest.$ac_objext' | |
3226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3227 | (eval $ac_try) 2>&5 | |
3228 | ac_status=$? | |
3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3230 | (exit $ac_status); }; }; then | |
3231 | : | |
3232 | else | |
3233 | echo "$as_me: failed program was:" >&5 | |
3234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 3235 | |
fdd6fa61 AG |
3236 | continue |
3237 | fi | |
3238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3239 | cat >conftest.$ac_ext <<_ACEOF | |
3240 | /* confdefs.h. */ | |
3241 | _ACEOF | |
3242 | cat confdefs.h >>conftest.$ac_ext | |
3243 | cat >>conftest.$ac_ext <<_ACEOF | |
3244 | /* end confdefs.h. */ | |
3245 | $ac_declaration | |
3246 | int | |
3247 | main () | |
3248 | { | |
3249 | exit (42); | |
3250 | ; | |
3251 | return 0; | |
3252 | } | |
3253 | _ACEOF | |
3254 | rm -f conftest.$ac_objext | |
3255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3256 | (eval $ac_compile) 2>conftest.er1 | |
3257 | ac_status=$? | |
3258 | grep -v '^ *+' conftest.er1 >conftest.err | |
3259 | rm -f conftest.er1 | |
3260 | cat conftest.err >&5 | |
3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3262 | (exit $ac_status); } && | |
3263 | { ac_try='test -z "$ac_c_werror_flag" | |
3264 | || test ! -s conftest.err' | |
3265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3266 | (eval $ac_try) 2>&5 | |
3267 | ac_status=$? | |
3268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3269 | (exit $ac_status); }; } && | |
3270 | { ac_try='test -s conftest.$ac_objext' | |
3271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3272 | (eval $ac_try) 2>&5 | |
3273 | ac_status=$? | |
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3275 | (exit $ac_status); }; }; then | |
3276 | break | |
3277 | else | |
3278 | echo "$as_me: failed program was:" >&5 | |
3279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3280 | ||
3281 | fi | |
3282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3283 | done | |
3284 | rm -f conftest* | |
3285 | if test -n "$ac_declaration"; then | |
3286 | echo '#ifdef __cplusplus' >>confdefs.h | |
3287 | echo $ac_declaration >>confdefs.h | |
3288 | echo '#endif' >>confdefs.h | |
3289 | fi | |
3290 | ||
3291 | else | |
3292 | echo "$as_me: failed program was:" >&5 | |
3293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3294 | ||
3295 | fi | |
3296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 AC |
3297 | ac_ext=c |
3298 | ac_cpp='$CPP $CPPFLAGS' | |
3299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
3302 | |
3303 | ||
3304 | ||
3305 | AR=${AR-ar} | |
3306 | ||
b7026657 AC |
3307 | if test -n "$ac_tool_prefix"; then |
3308 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3309 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
fdd6fa61 AG |
3310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
3312 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3314 | else |
3315 | if test -n "$RANLIB"; then | |
3316 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3317 | else | |
b7026657 AC |
3318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3319 | for as_dir in $PATH | |
3320 | do | |
3321 | IFS=$as_save_IFS | |
3322 | test -z "$as_dir" && as_dir=. | |
3323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 3324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
3325 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3327 | break 2 | |
3328 | fi | |
3329 | done | |
3330 | done | |
3331 | ||
c906108c SS |
3332 | fi |
3333 | fi | |
b7026657 | 3334 | RANLIB=$ac_cv_prog_RANLIB |
c906108c | 3335 | if test -n "$RANLIB"; then |
fdd6fa61 AG |
3336 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3337 | echo "${ECHO_T}$RANLIB" >&6 | |
b7026657 | 3338 | else |
fdd6fa61 AG |
3339 | echo "$as_me:$LINENO: result: no" >&5 |
3340 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
3341 | fi |
3342 | ||
3343 | fi | |
3344 | if test -z "$ac_cv_prog_RANLIB"; then | |
3345 | ac_ct_RANLIB=$RANLIB | |
3346 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3347 | set dummy ranlib; ac_word=$2 | |
fdd6fa61 AG |
3348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
b7026657 AC |
3350 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3352 | else | |
3353 | if test -n "$ac_ct_RANLIB"; then | |
3354 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3355 | else | |
3356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3357 | for as_dir in $PATH | |
3358 | do | |
3359 | IFS=$as_save_IFS | |
3360 | test -z "$as_dir" && as_dir=. | |
3361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fdd6fa61 | 3362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
3363 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3365 | break 2 | |
3366 | fi | |
3367 | done | |
3368 | done | |
3369 | ||
fdd6fa61 | 3370 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
b7026657 AC |
3371 | fi |
3372 | fi | |
3373 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3374 | if test -n "$ac_ct_RANLIB"; then | |
fdd6fa61 AG |
3375 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3376 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
c906108c | 3377 | else |
fdd6fa61 AG |
3378 | echo "$as_me:$LINENO: result: no" >&5 |
3379 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
3380 | fi |
3381 | ||
fdd6fa61 | 3382 | RANLIB=$ac_ct_RANLIB |
df1756f4 | 3383 | else |
b7026657 | 3384 | RANLIB="$ac_cv_prog_RANLIB" |
c906108c SS |
3385 | fi |
3386 | ||
3387 | ||
3388 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
c906108c SS |
3389 | if test "x$cross_compiling" = "xno"; then |
3390 | CC_FOR_BUILD='$(CC)' | |
3391 | else | |
3392 | CC_FOR_BUILD=gcc | |
3393 | fi | |
3394 | ||
4b164edf AS |
3395 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} |
3396 | ||
c906108c SS |
3397 | |
3398 | # If a cpu ever has more than one simulator to choose from, use | |
3399 | # --enable-sim=... to choose. | |
fdd6fa61 | 3400 | # Check whether --enable-sim or --disable-sim was given. |
c906108c | 3401 | if test "${enable_sim+set}" = set; then |
fdd6fa61 AG |
3402 | enableval="$enable_sim" |
3403 | case "${enableval}" in | |
c906108c | 3404 | yes | no) ;; |
b7026657 AC |
3405 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for --enable-sim option" >&5 |
3406 | echo "$as_me: error: bad value ${enableval} given for --enable-sim option" >&2;} | |
3407 | { (exit 1); exit 1; }; } ;; | |
c906108c | 3408 | esac |
fdd6fa61 | 3409 | fi; |
c906108c | 3410 | |
b7026657 | 3411 | # WHEN ADDING ENTRIES TO THIS MATRIX: |
c906108c | 3412 | |
b7026657 AC |
3413 | # Make sure that the left side always has two dashes. Otherwise you |
3414 | # can get spurious matches. Even for unambiguous cases, do this as a | |
3415 | # convention, else the table becomes a real mess to understand and | |
3416 | # maintain. | |
c906108c | 3417 | |
b7026657 AC |
3418 | if test "${enable_sim}" != no; then |
3419 | testsuite=no | |
c4d800ae | 3420 | common=yes |
b7026657 AC |
3421 | igen=no |
3422 | case "${target}" in | |
3423 | arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*) | |
fdd6fa61 AG |
3424 | |
3425 | ||
3426 | subdirs="$subdirs arm" | |
86b90b55 SR |
3427 | |
3428 | testsuite=yes | |
3429 | ;; | |
df1756f4 | 3430 | avr*-*-*) |
fdd6fa61 AG |
3431 | |
3432 | ||
3433 | subdirs="$subdirs avr" | |
86b90b55 | 3434 | |
df1756f4 TG |
3435 | ;; |
3436 | cr16*-*-*) | |
fdd6fa61 AG |
3437 | |
3438 | ||
3439 | subdirs="$subdirs cr16" | |
c906108c | 3440 | |
f6bcefef | 3441 | testsuite=yes |
f6bcefef HPN |
3442 | ;; |
3443 | cris-*-* | crisv32-*-*) | |
fdd6fa61 AG |
3444 | |
3445 | ||
3446 | subdirs="$subdirs cris" | |
f6bcefef | 3447 | |
b7026657 | 3448 | testsuite=yes |
b7026657 AC |
3449 | ;; |
3450 | d10v-*-*) | |
fdd6fa61 AG |
3451 | |
3452 | ||
3453 | subdirs="$subdirs d10v" | |
b7026657 AC |
3454 | |
3455 | ;; | |
3456 | frv-*-*) | |
fdd6fa61 AG |
3457 | |
3458 | ||
3459 | subdirs="$subdirs frv" | |
b7026657 AC |
3460 | |
3461 | testsuite=yes | |
b7026657 AC |
3462 | ;; |
3463 | h8300*-*-*) | |
fdd6fa61 AG |
3464 | |
3465 | ||
3466 | subdirs="$subdirs h8300" | |
b7026657 | 3467 | |
edece237 | 3468 | testsuite=yes |
edece237 CV |
3469 | ;; |
3470 | iq2000-*-*) | |
fdd6fa61 AG |
3471 | |
3472 | ||
3473 | subdirs="$subdirs iq2000" | |
edece237 | 3474 | |
b7026657 | 3475 | testsuite=yes |
b7026657 | 3476 | ;; |
c28c63d8 JB |
3477 | lm32-*-*) |
3478 | ||
3479 | ||
3480 | subdirs="$subdirs lm32" | |
3481 | ||
3482 | testsuite=yes | |
3483 | ;; | |
d45a4bef | 3484 | m32c-*-*) |
fdd6fa61 AG |
3485 | |
3486 | ||
3487 | subdirs="$subdirs m32c" | |
d45a4bef | 3488 | |
d45a4bef | 3489 | ;; |
b7026657 | 3490 | m32r-*-*) |
fdd6fa61 AG |
3491 | |
3492 | ||
3493 | subdirs="$subdirs m32r" | |
b7026657 AC |
3494 | |
3495 | testsuite=yes | |
b7026657 AC |
3496 | ;; |
3497 | m68hc11-*-*|m6811-*-*) | |
fdd6fa61 AG |
3498 | |
3499 | ||
3500 | subdirs="$subdirs m68hc11" | |
c906108c | 3501 | |
b7026657 | 3502 | testsuite=yes |
b7026657 AC |
3503 | ;; |
3504 | mcore-*-*) | |
fdd6fa61 AG |
3505 | |
3506 | ||
3507 | subdirs="$subdirs mcore" | |
b7026657 AC |
3508 | |
3509 | testsuite=yes | |
b7026657 AC |
3510 | ;; |
3511 | mips*-*-*) | |
fdd6fa61 AG |
3512 | |
3513 | ||
3514 | subdirs="$subdirs mips" | |
b7026657 AC |
3515 | |
3516 | testsuite=yes | |
3517 | igen=yes | |
3518 | ;; | |
3519 | mn10300*-*-*) | |
fdd6fa61 AG |
3520 | |
3521 | ||
3522 | subdirs="$subdirs mn10300" | |
b7026657 AC |
3523 | |
3524 | igen=yes | |
3525 | ;; | |
fdd6fa61 AG |
3526 | moxie-*-*) |
3527 | ||
3528 | ||
3529 | subdirs="$subdirs moxie" | |
3530 | ||
3531 | testsuite=yes | |
3532 | ;; | |
cecb04b7 | 3533 | sh64*-*-*) |
fdd6fa61 AG |
3534 | |
3535 | ||
3536 | subdirs="$subdirs sh64" | |
21bc7567 CV |
3537 | |
3538 | testsuite=yes | |
21bc7567 | 3539 | ;; |
cecb04b7 | 3540 | sh*-*-*) |
fdd6fa61 AG |
3541 | |
3542 | ||
3543 | subdirs="$subdirs sh" | |
b7026657 | 3544 | |
ce928021 | 3545 | testsuite=yes |
ce928021 DJ |
3546 | ;; |
3547 | sparc-*-rtems*|sparc-*-elf*) | |
fdd6fa61 AG |
3548 | |
3549 | ||
3550 | subdirs="$subdirs erc32" | |
ce928021 | 3551 | |
b7026657 | 3552 | testsuite=yes |
b7026657 AC |
3553 | ;; |
3554 | powerpc*-*-* ) | |
fdd6fa61 AG |
3555 | |
3556 | ||
3557 | subdirs="$subdirs ppc" | |
b7026657 | 3558 | |
b7026657 AC |
3559 | ;; |
3560 | v850*-*-* ) | |
fdd6fa61 AG |
3561 | |
3562 | ||
3563 | subdirs="$subdirs v850" | |
b7026657 | 3564 | |
c3357c64 | 3565 | igen=yes |
c5fbc25b | 3566 | testsuite=yes |
b7026657 | 3567 | ;; |
c4d800ae HPN |
3568 | *) |
3569 | # No simulator subdir, so the subdir "common" isn't needed. | |
3570 | common=no | |
3571 | ;; | |
b7026657 AC |
3572 | esac |
3573 | if test "$testsuite" = yes; then | |
fdd6fa61 AG |
3574 | |
3575 | ||
3576 | subdirs="$subdirs testsuite" | |
b7026657 AC |
3577 | |
3578 | fi | |
3579 | if test "$common" = yes; then | |
fdd6fa61 AG |
3580 | |
3581 | ||
3582 | subdirs="$subdirs common" | |
b7026657 AC |
3583 | |
3584 | fi | |
3585 | if test "$igen" = yes; then | |
fdd6fa61 AG |
3586 | |
3587 | ||
3588 | subdirs="$subdirs igen" | |
b7026657 AC |
3589 | |
3590 | fi | |
c906108c SS |
3591 | fi |
3592 | ||
fdd6fa61 | 3593 | ac_config_files="$ac_config_files Makefile" |
b7026657 | 3594 | cat >confcache <<\_ACEOF |
c906108c SS |
3595 | # This file is a shell script that caches the results of configure |
3596 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
3597 | # scripts and configure runs, see configure's option --config-cache. |
3598 | # It is not useful on other systems. If it contains results you don't | |
3599 | # want to keep, you may remove or edit it. | |
c906108c | 3600 | # |
b7026657 AC |
3601 | # config.status only pays attention to the cache file if you give it |
3602 | # the --recheck option to rerun configure. | |
c906108c | 3603 | # |
b7026657 AC |
3604 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3605 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3606 | # following values. | |
3607 | ||
3608 | _ACEOF | |
3609 | ||
c906108c SS |
3610 | # The following way of writing the cache mishandles newlines in values, |
3611 | # but we know of no workaround that is simple, portable, and efficient. | |
fdd6fa61 | 3612 | # So, don't put newlines in cache variables' values. |
c906108c SS |
3613 | # Ultrix sh set writes to stderr and can't be redirected directly, |
3614 | # and sets the high bit in the cache file unless we assign to the vars. | |
fdd6fa61 | 3615 | { |
b7026657 | 3616 | (set) 2>&1 | |
fdd6fa61 AG |
3617 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
3618 | *ac_space=\ *) | |
b7026657 AC |
3619 | # `set' does not quote correctly, so add quotes (double-quote |
3620 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3621 | sed -n \ | |
3622 | "s/'/'\\\\''/g; | |
3623 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
fdd6fa61 | 3624 | ;; |
b7026657 AC |
3625 | *) |
3626 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
fdd6fa61 AG |
3627 | sed -n \ |
3628 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
b7026657 | 3629 | ;; |
fdd6fa61 AG |
3630 | esac; |
3631 | } | | |
b7026657 AC |
3632 | sed ' |
3633 | t clear | |
fdd6fa61 | 3634 | : clear |
b7026657 AC |
3635 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
3636 | t end | |
fdd6fa61 AG |
3637 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
3638 | : end' >>confcache | |
3639 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
3640 | if test -w $cache_file; then | |
3641 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
b7026657 | 3642 | cat confcache >$cache_file |
c906108c | 3643 | else |
fdd6fa61 | 3644 | echo "not updating unwritable cache $cache_file" |
c906108c SS |
3645 | fi |
3646 | fi | |
3647 | rm -f confcache | |
3648 | ||
c906108c SS |
3649 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
3650 | # Let make expand exec_prefix. | |
3651 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3652 | ||
fdd6fa61 AG |
3653 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
3654 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3655 | # trailing colons and then remove the whole line if VPATH becomes empty | |
3656 | # (actually we leave an empty line to preserve line numbers). | |
3657 | if test "x$srcdir" = x.; then | |
3658 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3659 | s/:*\$(srcdir):*/:/; | |
3660 | s/:*\${srcdir}:*/:/; | |
3661 | s/:*@srcdir@:*/:/; | |
3662 | s/^\([^=]*=[ ]*\):*/\1/; | |
3663 | s/:*$//; | |
3664 | s/^[^=]*=[ ]*$//; | |
3665 | }' | |
3666 | fi | |
3667 | ||
c906108c SS |
3668 | # Transform confdefs.h into DEFS. |
3669 | # Protect against shell expansion while executing Makefile rules. | |
3670 | # Protect against Makefile macro expansion. | |
b7026657 AC |
3671 | # |
3672 | # If the first sed substitution is executed (which looks for macros that | |
fdd6fa61 | 3673 | # take arguments), then we branch to the quote section. Otherwise, |
b7026657 | 3674 | # look for a macro that doesn't take arguments. |
fdd6fa61 | 3675 | cat >confdef2opt.sed <<\_ACEOF |
b7026657 | 3676 | t clear |
fdd6fa61 AG |
3677 | : clear |
3678 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
b7026657 | 3679 | t quote |
fdd6fa61 | 3680 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
b7026657 | 3681 | t quote |
fdd6fa61 AG |
3682 | d |
3683 | : quote | |
3684 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
3685 | s,\[,\\&,g | |
3686 | s,\],\\&,g | |
3687 | s,\$,$$,g | |
3688 | p | |
3689 | _ACEOF | |
3690 | # We use echo to avoid assuming a particular line-breaking character. | |
3691 | # The extra dot is to prevent the shell from consuming trailing | |
3692 | # line-breaks from the sub-command output. A line-break within | |
3693 | # single-quotes doesn't work because, if this script is created in a | |
3694 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
3695 | # would break. | |
3696 | ac_LF_and_DOT=`echo; echo .` | |
3697 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
3698 | rm -f confdef2opt.sed | |
b7026657 AC |
3699 | |
3700 | ||
3701 | ac_libobjs= | |
3702 | ac_ltlibobjs= | |
3703 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3704 | # 1. Remove the extension, and $U if already installed. | |
fdd6fa61 AG |
3705 | ac_i=`echo "$ac_i" | |
3706 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
3707 | # 2. Add them. | |
3708 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
3709 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
b7026657 AC |
3710 | done |
3711 | LIBOBJS=$ac_libobjs | |
c906108c | 3712 | |
b7026657 AC |
3713 | LTLIBOBJS=$ac_ltlibobjs |
3714 | ||
3715 | ||
3716 | ||
3717 | : ${CONFIG_STATUS=./config.status} | |
3718 | ac_clean_files_save=$ac_clean_files | |
3719 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3720 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3721 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3722 | cat >$CONFIG_STATUS <<_ACEOF | |
3723 | #! $SHELL | |
3724 | # Generated by $as_me. | |
c906108c | 3725 | # Run this file to recreate the current configuration. |
c906108c | 3726 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
3727 | # configure, is in config.log if it exists. |
3728 | ||
3729 | debug=false | |
3730 | ac_cs_recheck=false | |
3731 | ac_cs_silent=false | |
3732 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3733 | _ACEOF | |
3734 | ||
3735 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3736 | ## --------------------- ## | |
3737 | ## M4sh Initialization. ## | |
3738 | ## --------------------- ## | |
3739 | ||
fdd6fa61 | 3740 | # Be Bourne compatible |
b7026657 AC |
3741 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
3742 | emulate sh | |
3743 | NULLCMD=: | |
3744 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
3745 | # is contrary to our usage. Disable this feature. | |
3746 | alias -g '${1+"$@"}'='"$@"' | |
fdd6fa61 AG |
3747 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
3748 | set -o posix | |
b7026657 | 3749 | fi |
fdd6fa61 | 3750 | DUALCASE=1; export DUALCASE # for MKS sh |
c906108c | 3751 | |
b7026657 AC |
3752 | # Support unset when possible. |
3753 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
3754 | as_unset=unset | |
3755 | else | |
3756 | as_unset=false | |
3757 | fi | |
3758 | ||
3759 | ||
3760 | # Work around bugs in pre-3.0 UWIN ksh. | |
fdd6fa61 | 3761 | $as_unset ENV MAIL MAILPATH |
b7026657 AC |
3762 | PS1='$ ' |
3763 | PS2='> ' | |
3764 | PS4='+ ' | |
3765 | ||
3766 | # NLS nuisances. | |
3767 | for as_var in \ | |
3768 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
3769 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
3770 | LC_TELEPHONE LC_TIME | |
c906108c | 3771 | do |
b7026657 AC |
3772 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
3773 | eval $as_var=C; export $as_var | |
3774 | else | |
fdd6fa61 | 3775 | $as_unset $as_var |
b7026657 | 3776 | fi |
c906108c SS |
3777 | done |
3778 | ||
b7026657 | 3779 | # Required to use basename. |
fdd6fa61 | 3780 | if expr a : '\(a\)' >/dev/null 2>&1; then |
b7026657 AC |
3781 | as_expr=expr |
3782 | else | |
3783 | as_expr=false | |
3784 | fi | |
c906108c | 3785 | |
fdd6fa61 | 3786 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
b7026657 AC |
3787 | as_basename=basename |
3788 | else | |
3789 | as_basename=false | |
3790 | fi | |
c906108c | 3791 | |
c906108c | 3792 | |
b7026657 | 3793 | # Name of the executable. |
fdd6fa61 | 3794 | as_me=`$as_basename "$0" || |
b7026657 AC |
3795 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
3796 | X"$0" : 'X\(//\)$' \| \ | |
fdd6fa61 AG |
3797 | X"$0" : 'X\(/\)$' \| \ |
3798 | . : '\(.\)' 2>/dev/null || | |
b7026657 | 3799 | echo X/"$0" | |
fdd6fa61 AG |
3800 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
3801 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
3802 | /^X\/\(\/\).*/{ s//\1/; q; } | |
3803 | s/.*/./; q'` | |
b7026657 | 3804 | |
b7026657 | 3805 | |
fdd6fa61 AG |
3806 | # PATH needs CR, and LINENO needs CR and PATH. |
3807 | # Avoid depending upon Character Ranges. | |
3808 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3809 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3810 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3811 | as_cr_digits='0123456789' | |
3812 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3813 | ||
3814 | # The user is always right. | |
3815 | if test "${PATH_SEPARATOR+set}" != set; then | |
3816 | echo "#! /bin/sh" >conf$$.sh | |
3817 | echo "exit 0" >>conf$$.sh | |
3818 | chmod +x conf$$.sh | |
3819 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3820 | PATH_SEPARATOR=';' | |
3821 | else | |
3822 | PATH_SEPARATOR=: | |
3823 | fi | |
3824 | rm -f conf$$.sh | |
3825 | fi | |
b7026657 | 3826 | |
b7026657 | 3827 | |
b7026657 AC |
3828 | as_lineno_1=$LINENO |
3829 | as_lineno_2=$LINENO | |
fdd6fa61 | 3830 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
b7026657 | 3831 | test "x$as_lineno_1" != "x$as_lineno_2" && |
fdd6fa61 AG |
3832 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
3833 | # Find who we are. Look in the path if we contain no path at all | |
3834 | # relative or not. | |
3835 | case $0 in | |
3836 | *[\\/]* ) as_myself=$0 ;; | |
3837 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3838 | for as_dir in $PATH | |
3839 | do | |
3840 | IFS=$as_save_IFS | |
3841 | test -z "$as_dir" && as_dir=. | |
3842 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3843 | done | |
3844 | ||
3845 | ;; | |
3846 | esac | |
3847 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3848 | # in which case we are not to be found in the path. | |
3849 | if test "x$as_myself" = x; then | |
3850 | as_myself=$0 | |
3851 | fi | |
3852 | if test ! -f "$as_myself"; then | |
3853 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
3854 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
3855 | { (exit 1); exit 1; }; } | |
3856 | fi | |
3857 | case $CONFIG_SHELL in | |
3858 | '') | |
3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3860 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
3861 | do | |
3862 | IFS=$as_save_IFS | |
3863 | test -z "$as_dir" && as_dir=. | |
3864 | for as_base in sh bash ksh sh5; do | |
3865 | case $as_dir in | |
3866 | /*) | |
3867 | if ("$as_dir/$as_base" -c ' | |
3868 | as_lineno_1=$LINENO | |
3869 | as_lineno_2=$LINENO | |
3870 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
3871 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
3872 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
3873 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
3874 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
3875 | CONFIG_SHELL=$as_dir/$as_base | |
3876 | export CONFIG_SHELL | |
3877 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
3878 | fi;; | |
3879 | esac | |
3880 | done | |
3881 | done | |
3882 | ;; | |
3883 | esac | |
b7026657 AC |
3884 | |
3885 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3886 | # uniformly replaced by the line number. The first 'sed' inserts a | |
fdd6fa61 AG |
3887 | # line-number line before each line; the second 'sed' does the real |
3888 | # work. The second script uses 'N' to pair each line-number line | |
3889 | # with the numbered line, and appends trailing '-' during | |
3890 | # substitution so that $LINENO is not a special case at line end. | |
b7026657 | 3891 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
fdd6fa61 AG |
3892 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
3893 | sed '=' <$as_myself | | |
b7026657 AC |
3894 | sed ' |
3895 | N | |
fdd6fa61 AG |
3896 | s,$,-, |
3897 | : loop | |
3898 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
b7026657 | 3899 | t loop |
fdd6fa61 AG |
3900 | s,-$,, |
3901 | s,^['$as_cr_digits']*\n,, | |
b7026657 | 3902 | ' >$as_me.lineno && |
fdd6fa61 AG |
3903 | chmod +x $as_me.lineno || |
3904 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
3905 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
b7026657 AC |
3906 | { (exit 1); exit 1; }; } |
3907 | ||
3908 | # Don't try to exec as it changes $[0], causing all sort of problems | |
3909 | # (the dirname of $[0] is not the place where we might find the | |
fdd6fa61 AG |
3910 | # original and so on. Autoconf is especially sensible to this). |
3911 | . ./$as_me.lineno | |
b7026657 AC |
3912 | # Exit status is that of the last command. |
3913 | exit | |
3914 | } | |
3915 | ||
3916 | ||
fdd6fa61 AG |
3917 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
3918 | *c*,-n*) ECHO_N= ECHO_C=' | |
3919 | ' ECHO_T=' ' ;; | |
3920 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
3921 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
b7026657 AC |
3922 | esac |
3923 | ||
fdd6fa61 | 3924 | if expr a : '\(a\)' >/dev/null 2>&1; then |
b7026657 AC |
3925 | as_expr=expr |
3926 | else | |
3927 | as_expr=false | |
3928 | fi | |
3929 | ||
3930 | rm -f conf$$ conf$$.exe conf$$.file | |
3931 | echo >conf$$.file | |
3932 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 AG |
3933 | # We could just check for DJGPP; but this test a) works b) is more generic |
3934 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
3935 | if test -f conf$$.exe; then | |
3936 | # Don't use ln at all; we don't have any links | |
b7026657 | 3937 | as_ln_s='cp -p' |
fdd6fa61 AG |
3938 | else |
3939 | as_ln_s='ln -s' | |
3940 | fi | |
b7026657 AC |
3941 | elif ln conf$$.file conf$$ 2>/dev/null; then |
3942 | as_ln_s=ln | |
3943 | else | |
3944 | as_ln_s='cp -p' | |
3945 | fi | |
fdd6fa61 | 3946 | rm -f conf$$ conf$$.exe conf$$.file |
b7026657 AC |
3947 | |
3948 | if mkdir -p . 2>/dev/null; then | |
3949 | as_mkdir_p=: | |
3950 | else | |
3951 | test -d ./-p && rmdir ./-p | |
3952 | as_mkdir_p=false | |
3953 | fi | |
3954 | ||
fdd6fa61 | 3955 | as_executable_p="test -f" |
b7026657 AC |
3956 | |
3957 | # Sed expression to map a string onto a valid CPP name. | |
3958 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3959 | ||
3960 | # Sed expression to map a string onto a valid variable name. | |
3961 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3962 | ||
3963 | ||
fdd6fa61 AG |
3964 | # IFS |
3965 | # We need space, tab and new line, in precisely that order. | |
3966 | as_nl=' | |
3967 | ' | |
3968 | IFS=" $as_nl" | |
3969 | ||
3970 | # CDPATH. | |
3971 | $as_unset CDPATH | |
3972 | ||
b7026657 AC |
3973 | exec 6>&1 |
3974 | ||
fdd6fa61 | 3975 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
b7026657 | 3976 | # report actual input values of CONFIG_FILES etc. instead of their |
fdd6fa61 AG |
3977 | # values after options handling. Logging --version etc. is OK. |
3978 | exec 5>>config.log | |
3979 | { | |
3980 | echo | |
3981 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3982 | ## Running $as_me. ## | |
3983 | _ASBOX | |
3984 | } >&5 | |
3985 | cat >&5 <<_CSEOF | |
3986 | ||
b7026657 | 3987 | This file was extended by $as_me, which was |
fdd6fa61 | 3988 | generated by GNU Autoconf 2.59. Invocation command line was |
b7026657 AC |
3989 | |
3990 | CONFIG_FILES = $CONFIG_FILES | |
3991 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3992 | CONFIG_LINKS = $CONFIG_LINKS | |
3993 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3994 | $ $0 $@ | |
3995 | ||
fdd6fa61 AG |
3996 | _CSEOF |
3997 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
3998 | echo >&5 | |
b7026657 AC |
3999 | _ACEOF |
4000 | ||
4001 | # Files that config.status was made for. | |
fdd6fa61 AG |
4002 | if test -n "$ac_config_files"; then |
4003 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
4004 | fi | |
b7026657 | 4005 | |
fdd6fa61 AG |
4006 | if test -n "$ac_config_headers"; then |
4007 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
4008 | fi | |
4009 | ||
4010 | if test -n "$ac_config_links"; then | |
4011 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
4012 | fi | |
4013 | ||
4014 | if test -n "$ac_config_commands"; then | |
4015 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
4016 | fi | |
b7026657 AC |
4017 | |
4018 | cat >>$CONFIG_STATUS <<\_ACEOF | |
fdd6fa61 | 4019 | |
b7026657 AC |
4020 | ac_cs_usage="\ |
4021 | \`$as_me' instantiates files from templates according to the | |
4022 | current configuration. | |
4023 | ||
4024 | Usage: $0 [OPTIONS] [FILE]... | |
4025 | ||
4026 | -h, --help print this help, then exit | |
fdd6fa61 | 4027 | -V, --version print version number, then exit |
b7026657 AC |
4028 | -q, --quiet do not print progress messages |
4029 | -d, --debug don't remove temporary files | |
4030 | --recheck update $as_me by reconfiguring in the same conditions | |
4031 | --file=FILE[:TEMPLATE] | |
4032 | instantiate the configuration file FILE | |
4033 | ||
4034 | Configuration files: | |
4035 | $config_files | |
4036 | ||
4037 | Report bugs to <bug-autoconf@gnu.org>." | |
df1756f4 | 4038 | _ACEOF |
fdd6fa61 | 4039 | |
b7026657 AC |
4040 | cat >>$CONFIG_STATUS <<_ACEOF |
4041 | ac_cs_version="\\ | |
4042 | config.status | |
fdd6fa61 AG |
4043 | configured by $0, generated by GNU Autoconf 2.59, |
4044 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
b7026657 | 4045 | |
fdd6fa61 | 4046 | Copyright (C) 2003 Free Software Foundation, Inc. |
b7026657 AC |
4047 | This config.status script is free software; the Free Software Foundation |
4048 | gives unlimited permission to copy, distribute and modify it." | |
fdd6fa61 AG |
4049 | srcdir=$srcdir |
4050 | INSTALL="$INSTALL" | |
b7026657 AC |
4051 | _ACEOF |
4052 | ||
4053 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4054 | # If no file are specified by the user, then we need to provide default | |
4055 | # value. By we need to know if files were specified by the user. | |
4056 | ac_need_defaults=: | |
4057 | while test $# != 0 | |
4058 | do | |
4059 | case $1 in | |
4060 | --*=*) | |
fdd6fa61 AG |
4061 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
4062 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
b7026657 AC |
4063 | ac_shift=: |
4064 | ;; | |
fdd6fa61 | 4065 | -*) |
b7026657 AC |
4066 | ac_option=$1 |
4067 | ac_optarg=$2 | |
4068 | ac_shift=shift | |
4069 | ;; | |
fdd6fa61 AG |
4070 | *) # This is not an option, so the user has probably given explicit |
4071 | # arguments. | |
4072 | ac_option=$1 | |
4073 | ac_need_defaults=false;; | |
b7026657 AC |
4074 | esac |
4075 | ||
4076 | case $ac_option in | |
4077 | # Handling of the options. | |
fdd6fa61 AG |
4078 | _ACEOF |
4079 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b7026657 AC |
4080 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4081 | ac_cs_recheck=: ;; | |
fdd6fa61 AG |
4082 | --version | --vers* | -V ) |
4083 | echo "$ac_cs_version"; exit 0 ;; | |
4084 | --he | --h) | |
4085 | # Conflict between --help and --header | |
4086 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
4087 | Try \`$0 --help' for more information." >&5 | |
4088 | echo "$as_me: error: ambiguous option: $1 | |
4089 | Try \`$0 --help' for more information." >&2;} | |
4090 | { (exit 1); exit 1; }; };; | |
4091 | --help | --hel | -h ) | |
4092 | echo "$ac_cs_usage"; exit 0 ;; | |
4093 | --debug | --d* | -d ) | |
b7026657 AC |
4094 | debug=: ;; |
4095 | --file | --fil | --fi | --f ) | |
4096 | $ac_shift | |
4097 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
4098 | ac_need_defaults=false;; | |
fdd6fa61 AG |
4099 | --header | --heade | --head | --hea ) |
4100 | $ac_shift | |
4101 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
4102 | ac_need_defaults=false;; | |
b7026657 AC |
4103 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4104 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4105 | ac_cs_silent=: ;; | |
4106 | ||
4107 | # This is an error. | |
fdd6fa61 AG |
4108 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
4109 | Try \`$0 --help' for more information." >&5 | |
4110 | echo "$as_me: error: unrecognized option: $1 | |
4111 | Try \`$0 --help' for more information." >&2;} | |
b7026657 AC |
4112 | { (exit 1); exit 1; }; } ;; |
4113 | ||
fdd6fa61 | 4114 | *) ac_config_targets="$ac_config_targets $1" ;; |
b7026657 AC |
4115 | |
4116 | esac | |
4117 | shift | |
c906108c | 4118 | done |
b7026657 AC |
4119 | |
4120 | ac_configure_extra_args= | |
4121 | ||
4122 | if $ac_cs_silent; then | |
4123 | exec 6>/dev/null | |
4124 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 4125 | fi |
c906108c | 4126 | |
b7026657 AC |
4127 | _ACEOF |
4128 | cat >>$CONFIG_STATUS <<_ACEOF | |
4129 | if \$ac_cs_recheck; then | |
fdd6fa61 AG |
4130 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
4131 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
b7026657 | 4132 | fi |
c906108c | 4133 | |
b7026657 AC |
4134 | _ACEOF |
4135 | ||
b7026657 | 4136 | |
df1756f4 | 4137 | |
fdd6fa61 AG |
4138 | |
4139 | ||
4140 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b7026657 AC |
4141 | for ac_config_target in $ac_config_targets |
4142 | do | |
fdd6fa61 AG |
4143 | case "$ac_config_target" in |
4144 | # Handling of arguments. | |
4145 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
b7026657 AC |
4146 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
4147 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
4148 | { (exit 1); exit 1; }; };; | |
c906108c | 4149 | esac |
b7026657 | 4150 | done |
c906108c | 4151 | |
b7026657 AC |
4152 | # If the user did not use the arguments to specify the items to instantiate, |
4153 | # then the envvar interface is used. Set only those that are not. | |
4154 | # We use the long form for the default assignment because of an extremely | |
4155 | # bizarre bug on SunOS 4.1.3. | |
4156 | if $ac_need_defaults; then | |
4157 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4158 | fi | |
c906108c | 4159 | |
b7026657 | 4160 | # Have a temporary directory for convenience. Make it in the build tree |
fdd6fa61 | 4161 | # simply because there is no reason to put it here, and in addition, |
b7026657 | 4162 | # creating and moving files from /tmp can sometimes cause problems. |
fdd6fa61 | 4163 | # Create a temporary directory, and hook for its removal unless debugging. |
b7026657 AC |
4164 | $debug || |
4165 | { | |
fdd6fa61 | 4166 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
b7026657 AC |
4167 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
4168 | } | |
fdd6fa61 | 4169 | |
b7026657 AC |
4170 | # Create a (secure) tmp directory for tmp files. |
4171 | ||
4172 | { | |
fdd6fa61 | 4173 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
b7026657 AC |
4174 | test -n "$tmp" && test -d "$tmp" |
4175 | } || | |
4176 | { | |
fdd6fa61 AG |
4177 | tmp=./confstat$$-$RANDOM |
4178 | (umask 077 && mkdir $tmp) | |
b7026657 AC |
4179 | } || |
4180 | { | |
4181 | echo "$me: cannot create a temporary directory in ." >&2 | |
4182 | { (exit 1); exit 1; } | |
4183 | } | |
4184 | ||
fdd6fa61 AG |
4185 | _ACEOF |
4186 | ||
4187 | cat >>$CONFIG_STATUS <<_ACEOF | |
4188 | ||
b7026657 | 4189 | # |
fdd6fa61 | 4190 | # CONFIG_FILES section. |
b7026657 AC |
4191 | # |
4192 | ||
4193 | # No need to generate the scripts if there are no CONFIG_FILES. | |
4194 | # This happens for instance when ./config.status config.h | |
fdd6fa61 AG |
4195 | if test -n "\$CONFIG_FILES"; then |
4196 | # Protect against being on the right side of a sed subst in config.status. | |
4197 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
4198 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
4199 | s,@SHELL@,$SHELL,;t t | |
4200 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
4201 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
4202 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
4203 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
4204 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
4205 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
4206 | s,@exec_prefix@,$exec_prefix,;t t | |
4207 | s,@prefix@,$prefix,;t t | |
4208 | s,@program_transform_name@,$program_transform_name,;t t | |
4209 | s,@bindir@,$bindir,;t t | |
4210 | s,@sbindir@,$sbindir,;t t | |
4211 | s,@libexecdir@,$libexecdir,;t t | |
4212 | s,@datadir@,$datadir,;t t | |
4213 | s,@sysconfdir@,$sysconfdir,;t t | |
4214 | s,@sharedstatedir@,$sharedstatedir,;t t | |
4215 | s,@localstatedir@,$localstatedir,;t t | |
4216 | s,@libdir@,$libdir,;t t | |
4217 | s,@includedir@,$includedir,;t t | |
4218 | s,@oldincludedir@,$oldincludedir,;t t | |
4219 | s,@infodir@,$infodir,;t t | |
4220 | s,@mandir@,$mandir,;t t | |
4221 | s,@build_alias@,$build_alias,;t t | |
4222 | s,@host_alias@,$host_alias,;t t | |
4223 | s,@target_alias@,$target_alias,;t t | |
4224 | s,@DEFS@,$DEFS,;t t | |
4225 | s,@ECHO_C@,$ECHO_C,;t t | |
4226 | s,@ECHO_N@,$ECHO_N,;t t | |
4227 | s,@ECHO_T@,$ECHO_T,;t t | |
4228 | s,@LIBS@,$LIBS,;t t | |
4229 | s,@CC@,$CC,;t t | |
4230 | s,@CFLAGS@,$CFLAGS,;t t | |
4231 | s,@LDFLAGS@,$LDFLAGS,;t t | |
4232 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
4233 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
4234 | s,@EXEEXT@,$EXEEXT,;t t | |
4235 | s,@OBJEXT@,$OBJEXT,;t t | |
4236 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
4237 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
4238 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
4239 | s,@AR@,$AR,;t t | |
4240 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
4241 | s,@RANLIB@,$RANLIB,;t t | |
4242 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
4243 | s,@build@,$build,;t t | |
4244 | s,@build_cpu@,$build_cpu,;t t | |
4245 | s,@build_vendor@,$build_vendor,;t t | |
4246 | s,@build_os@,$build_os,;t t | |
4247 | s,@host@,$host,;t t | |
4248 | s,@host_cpu@,$host_cpu,;t t | |
4249 | s,@host_vendor@,$host_vendor,;t t | |
4250 | s,@host_os@,$host_os,;t t | |
4251 | s,@target@,$target,;t t | |
4252 | s,@target_cpu@,$target_cpu,;t t | |
4253 | s,@target_vendor@,$target_vendor,;t t | |
4254 | s,@target_os@,$target_os,;t t | |
4255 | s,@HDEFINES@,$HDEFINES,;t t | |
4256 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
4257 | s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t | |
4258 | s,@subdirs@,$subdirs,;t t | |
4259 | s,@LIBOBJS@,$LIBOBJS,;t t | |
4260 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
4261 | CEOF | |
b7026657 AC |
4262 | |
4263 | _ACEOF | |
4264 | ||
fdd6fa61 AG |
4265 | cat >>$CONFIG_STATUS <<\_ACEOF |
4266 | # Split the substitutions into bite-sized pieces for seds with | |
4267 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
4268 | ac_max_sed_lines=48 | |
4269 | ac_sed_frag=1 # Number of current file. | |
4270 | ac_beg=1 # First line for current file. | |
4271 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
4272 | ac_more_lines=: | |
4273 | ac_sed_cmds= | |
4274 | while $ac_more_lines; do | |
4275 | if test $ac_beg -gt 1; then | |
4276 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4277 | else | |
4278 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4279 | fi | |
4280 | if test ! -s $tmp/subs.frag; then | |
4281 | ac_more_lines=false | |
4282 | else | |
4283 | # The purpose of the label and of the branching condition is to | |
4284 | # speed up the sed processing (if there are no `@' at all, there | |
4285 | # is no need to browse any of the substitutions). | |
4286 | # These are the two extra sed commands mentioned above. | |
4287 | (echo ':t | |
4288 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
4289 | if test -z "$ac_sed_cmds"; then | |
4290 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
4291 | else | |
4292 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
4293 | fi | |
4294 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
4295 | ac_beg=$ac_end | |
4296 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
4297 | fi | |
4298 | done | |
4299 | if test -z "$ac_sed_cmds"; then | |
4300 | ac_sed_cmds=cat | |
c906108c | 4301 | fi |
fdd6fa61 | 4302 | fi # test -n "$CONFIG_FILES" |
df1756f4 | 4303 | |
b7026657 AC |
4304 | _ACEOF |
4305 | cat >>$CONFIG_STATUS <<\_ACEOF | |
fdd6fa61 AG |
4306 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
4307 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4308 | case $ac_file in | |
4309 | - | *:- | *:-:* ) # input from stdin | |
4310 | cat >$tmp/stdin | |
4311 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4312 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4313 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4314 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4315 | * ) ac_file_in=$ac_file.in ;; | |
df1756f4 TG |
4316 | esac |
4317 | ||
fdd6fa61 AG |
4318 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
4319 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
b7026657 AC |
4320 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4321 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4322 | X"$ac_file" : 'X\(//\)$' \| \ | |
fdd6fa61 AG |
4323 | X"$ac_file" : 'X\(/\)' \| \ |
4324 | . : '\(.\)' 2>/dev/null || | |
b7026657 | 4325 | echo X"$ac_file" | |
fdd6fa61 AG |
4326 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
4327 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4328 | /^X\(\/\/\)$/{ s//\1/; q; } | |
4329 | /^X\(\/\).*/{ s//\1/; q; } | |
4330 | s/.*/./; q'` | |
4331 | { if $as_mkdir_p; then | |
4332 | mkdir -p "$ac_dir" | |
4333 | else | |
4334 | as_dir="$ac_dir" | |
b7026657 | 4335 | as_dirs= |
fdd6fa61 AG |
4336 | while test ! -d "$as_dir"; do |
4337 | as_dirs="$as_dir $as_dirs" | |
4338 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
b7026657 AC |
4339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4340 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4341 | X"$as_dir" : 'X\(//\)$' \| \ | |
fdd6fa61 AG |
4342 | X"$as_dir" : 'X\(/\)' \| \ |
4343 | . : '\(.\)' 2>/dev/null || | |
b7026657 | 4344 | echo X"$as_dir" | |
fdd6fa61 AG |
4345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
4346 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4347 | /^X\(\/\/\)$/{ s//\1/; q; } | |
4348 | /^X\(\/\).*/{ s//\1/; q; } | |
4349 | s/.*/./; q'` | |
b7026657 | 4350 | done |
fdd6fa61 AG |
4351 | test ! -n "$as_dirs" || mkdir $as_dirs |
4352 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
4353 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
b7026657 | 4354 | { (exit 1); exit 1; }; }; } |
fdd6fa61 | 4355 | |
b7026657 AC |
4356 | ac_builddir=. |
4357 | ||
fdd6fa61 | 4358 | if test "$ac_dir" != .; then |
b7026657 | 4359 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
fdd6fa61 AG |
4360 | # A "../" for each directory in $ac_dir_suffix. |
4361 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
4362 | else | |
4363 | ac_dir_suffix= ac_top_builddir= | |
4364 | fi | |
b7026657 AC |
4365 | |
4366 | case $srcdir in | |
fdd6fa61 | 4367 | .) # No --srcdir option. We are building in place. |
b7026657 | 4368 | ac_srcdir=. |
fdd6fa61 AG |
4369 | if test -z "$ac_top_builddir"; then |
4370 | ac_top_srcdir=. | |
4371 | else | |
4372 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
4373 | fi ;; | |
4374 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
b7026657 | 4375 | ac_srcdir=$srcdir$ac_dir_suffix; |
fdd6fa61 AG |
4376 | ac_top_srcdir=$srcdir ;; |
4377 | *) # Relative path. | |
4378 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
4379 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
b7026657 AC |
4380 | esac |
4381 | ||
fdd6fa61 AG |
4382 | # Do not use `cd foo && pwd` to compute absolute paths, because |
4383 | # the directories may not exist. | |
4384 | case `pwd` in | |
4385 | .) ac_abs_builddir="$ac_dir";; | |
4386 | *) | |
4387 | case "$ac_dir" in | |
4388 | .) ac_abs_builddir=`pwd`;; | |
4389 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
4390 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
4391 | esac;; | |
4392 | esac | |
4393 | case $ac_abs_builddir in | |
4394 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
4395 | *) | |
4396 | case ${ac_top_builddir}. in | |
4397 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
4398 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
4399 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
4400 | esac;; | |
4401 | esac | |
4402 | case $ac_abs_builddir in | |
4403 | .) ac_abs_srcdir=$ac_srcdir;; | |
4404 | *) | |
4405 | case $ac_srcdir in | |
4406 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
4407 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
4408 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
4409 | esac;; | |
4410 | esac | |
4411 | case $ac_abs_builddir in | |
4412 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
4413 | *) | |
4414 | case $ac_top_srcdir in | |
4415 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
4416 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
4417 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
4418 | esac;; | |
4419 | esac | |
b7026657 | 4420 | |
c906108c | 4421 | |
b7026657 AC |
4422 | case $INSTALL in |
4423 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
fdd6fa61 | 4424 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c SS |
4425 | esac |
4426 | ||
fdd6fa61 AG |
4427 | if test x"$ac_file" != x-; then |
4428 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
4429 | echo "$as_me: creating $ac_file" >&6;} | |
4430 | rm -f "$ac_file" | |
4431 | fi | |
4432 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4433 | # use $as_me), people would be surprised to read: | |
4434 | # /* config.h. Generated by config.status. */ | |
4435 | if test x"$ac_file" = x-; then | |
4436 | configure_input= | |
4437 | else | |
4438 | configure_input="$ac_file. " | |
4439 | fi | |
4440 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
4441 | sed 's,.*/,,'` by configure." | |
4442 | ||
4443 | # First look for the input files in the build tree, otherwise in the | |
4444 | # src tree. | |
4445 | ac_file_inputs=`IFS=: | |
4446 | for f in $ac_file_in; do | |
4447 | case $f in | |
4448 | -) echo $tmp/stdin ;; | |
4449 | [\\/$]*) | |
4450 | # Absolute (can't be DOS-style, as IFS=:) | |
4451 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
4452 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
4453 | { (exit 1); exit 1; }; } | |
4454 | echo "$f";; | |
4455 | *) # Relative | |
4456 | if test -f "$f"; then | |
4457 | # Build tree | |
4458 | echo "$f" | |
4459 | elif test -f "$srcdir/$f"; then | |
4460 | # Source tree | |
4461 | echo "$srcdir/$f" | |
4462 | else | |
4463 | # /dev/null tree | |
4464 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
4465 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
4466 | { (exit 1); exit 1; }; } | |
4467 | fi;; | |
4468 | esac | |
4469 | done` || { (exit 1); exit 1; } | |
b7026657 AC |
4470 | _ACEOF |
4471 | cat >>$CONFIG_STATUS <<_ACEOF | |
4472 | sed "$ac_vpsub | |
4473 | $extrasub | |
4474 | _ACEOF | |
4475 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4476 | :t | |
4477 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
fdd6fa61 AG |
4478 | s,@configure_input@,$configure_input,;t t |
4479 | s,@srcdir@,$ac_srcdir,;t t | |
4480 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
4481 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
4482 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
4483 | s,@builddir@,$ac_builddir,;t t | |
4484 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
4485 | s,@top_builddir@,$ac_top_builddir,;t t | |
4486 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
4487 | s,@INSTALL@,$ac_INSTALL,;t t | |
4488 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
4489 | rm -f $tmp/stdin | |
4490 | if test x"$ac_file" != x-; then | |
4491 | mv $tmp/out $ac_file | |
4492 | else | |
4493 | cat $tmp/out | |
4494 | rm -f $tmp/out | |
4495 | fi | |
df1756f4 | 4496 | |
fdd6fa61 AG |
4497 | done |
4498 | _ACEOF | |
df1756f4 | 4499 | |
fdd6fa61 | 4500 | cat >>$CONFIG_STATUS <<\_ACEOF |
c906108c | 4501 | |
b7026657 AC |
4502 | { (exit 0); exit 0; } |
4503 | _ACEOF | |
c906108c | 4504 | chmod +x $CONFIG_STATUS |
b7026657 AC |
4505 | ac_clean_files=$ac_clean_files_save |
4506 | ||
4507 | ||
4508 | # configure is writing to config.log, and then calls config.status. | |
4509 | # config.status does its own redirection, appending to config.log. | |
4510 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
4511 | # by configure, so config.status won't be able to write to it; its | |
4512 | # output is simply discarded. So we exec the FD to /dev/null, | |
4513 | # effectively closing config.log, so it can be properly (re)opened and | |
4514 | # appended to by config.status. When coming back to configure, we | |
4515 | # need to make the FD available again. | |
4516 | if test "$no_create" != yes; then | |
4517 | ac_cs_success=: | |
4518 | ac_config_status_args= | |
4519 | test "$silent" = yes && | |
4520 | ac_config_status_args="$ac_config_status_args --quiet" | |
4521 | exec 5>/dev/null | |
4522 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4523 | exec 5>>config.log | |
4524 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4525 | # would make configure fail if this is the last instruction. | |
4526 | $ac_cs_success || { (exit 1); exit 1; } | |
4527 | fi | |
c906108c | 4528 | |
b7026657 AC |
4529 | # |
4530 | # CONFIG_SUBDIRS section. | |
4531 | # | |
c906108c SS |
4532 | if test "$no_recursion" != yes; then |
4533 | ||
4534 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
4535 | ac_sub_configure_args= | |
4536 | ac_prev= | |
fdd6fa61 | 4537 | for ac_arg in $ac_configure_args; do |
c906108c SS |
4538 | if test -n "$ac_prev"; then |
4539 | ac_prev= | |
4540 | continue | |
4541 | fi | |
b7026657 | 4542 | case $ac_arg in |
c906108c SS |
4543 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
4544 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
4545 | ac_prev=cache_file ;; | |
4546 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
b7026657 AC |
4547 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
4548 | | --c=*) | |
4549 | ;; | |
4550 | --config-cache | -C) | |
c906108c SS |
4551 | ;; |
4552 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
4553 | ac_prev=srcdir ;; | |
4554 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
4555 | ;; | |
b7026657 AC |
4556 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
4557 | ac_prev=prefix ;; | |
4558 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
4559 | ;; | |
fdd6fa61 | 4560 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
c906108c SS |
4561 | esac |
4562 | done | |
4563 | ||
b7026657 AC |
4564 | # Always prepend --prefix to ensure using the same prefix |
4565 | # in subdir configurations. | |
fdd6fa61 | 4566 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
b7026657 AC |
4567 | |
4568 | ac_popdir=`pwd` | |
4569 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
4570 | |
4571 | # Do not complain, so a configure script can configure whichever | |
4572 | # parts of a large source tree are present. | |
fdd6fa61 AG |
4573 | test -d $srcdir/$ac_dir || continue |
4574 | ||
4575 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
4576 | echo "$as_me: configuring in $ac_dir" >&6;} | |
4577 | { if $as_mkdir_p; then | |
4578 | mkdir -p "$ac_dir" | |
4579 | else | |
4580 | as_dir="$ac_dir" | |
b7026657 | 4581 | as_dirs= |
fdd6fa61 AG |
4582 | while test ! -d "$as_dir"; do |
4583 | as_dirs="$as_dir $as_dirs" | |
4584 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
b7026657 AC |
4585 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4586 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4587 | X"$as_dir" : 'X\(//\)$' \| \ | |
fdd6fa61 AG |
4588 | X"$as_dir" : 'X\(/\)' \| \ |
4589 | . : '\(.\)' 2>/dev/null || | |
b7026657 | 4590 | echo X"$as_dir" | |
fdd6fa61 AG |
4591 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
4592 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4593 | /^X\(\/\/\)$/{ s//\1/; q; } | |
4594 | /^X\(\/\).*/{ s//\1/; q; } | |
4595 | s/.*/./; q'` | |
b7026657 | 4596 | done |
fdd6fa61 AG |
4597 | test ! -n "$as_dirs" || mkdir $as_dirs |
4598 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
4599 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
b7026657 | 4600 | { (exit 1); exit 1; }; }; } |
fdd6fa61 | 4601 | |
b7026657 AC |
4602 | ac_builddir=. |
4603 | ||
fdd6fa61 | 4604 | if test "$ac_dir" != .; then |
b7026657 | 4605 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
fdd6fa61 AG |
4606 | # A "../" for each directory in $ac_dir_suffix. |
4607 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
4608 | else | |
4609 | ac_dir_suffix= ac_top_builddir= | |
4610 | fi | |
c906108c | 4611 | |
b7026657 | 4612 | case $srcdir in |
fdd6fa61 | 4613 | .) # No --srcdir option. We are building in place. |
b7026657 | 4614 | ac_srcdir=. |
fdd6fa61 AG |
4615 | if test -z "$ac_top_builddir"; then |
4616 | ac_top_srcdir=. | |
4617 | else | |
4618 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
4619 | fi ;; | |
4620 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
b7026657 | 4621 | ac_srcdir=$srcdir$ac_dir_suffix; |
fdd6fa61 AG |
4622 | ac_top_srcdir=$srcdir ;; |
4623 | *) # Relative path. | |
4624 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
4625 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
4626 | esac | |
4627 | ||
4628 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
4629 | # the directories may not exist. | |
4630 | case `pwd` in | |
4631 | .) ac_abs_builddir="$ac_dir";; | |
4632 | *) | |
4633 | case "$ac_dir" in | |
4634 | .) ac_abs_builddir=`pwd`;; | |
4635 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
4636 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
4637 | esac;; | |
4638 | esac | |
4639 | case $ac_abs_builddir in | |
4640 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
4641 | *) | |
4642 | case ${ac_top_builddir}. in | |
4643 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
4644 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
4645 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
4646 | esac;; | |
4647 | esac | |
4648 | case $ac_abs_builddir in | |
4649 | .) ac_abs_srcdir=$ac_srcdir;; | |
4650 | *) | |
4651 | case $ac_srcdir in | |
4652 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
4653 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
4654 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
4655 | esac;; | |
4656 | esac | |
4657 | case $ac_abs_builddir in | |
4658 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
4659 | *) | |
4660 | case $ac_top_srcdir in | |
4661 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
4662 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
4663 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
4664 | esac;; | |
b7026657 | 4665 | esac |
c906108c | 4666 | |
c906108c | 4667 | |
fdd6fa61 | 4668 | cd $ac_dir |
c906108c SS |
4669 | |
4670 | # Check for guested configure; otherwise get Cygnus style configure. | |
fdd6fa61 AG |
4671 | if test -f $ac_srcdir/configure.gnu; then |
4672 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
4673 | elif test -f $ac_srcdir/configure; then | |
4674 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
4675 | elif test -f $ac_srcdir/configure.in; then | |
4676 | ac_sub_configure=$ac_configure | |
c906108c | 4677 | else |
b7026657 AC |
4678 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
4679 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
4680 | ac_sub_configure= |
4681 | fi | |
4682 | ||
4683 | # The recursion is here. | |
4684 | if test -n "$ac_sub_configure"; then | |
c906108c | 4685 | # Make the cache file name correct relative to the subdirectory. |
b7026657 AC |
4686 | case $cache_file in |
4687 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
fdd6fa61 AG |
4688 | *) # Relative path. |
4689 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 4690 | esac |
c906108c | 4691 | |
fdd6fa61 AG |
4692 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
4693 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 4694 | # The eval makes quoting arguments work. |
fdd6fa61 AG |
4695 | eval $ac_sub_configure $ac_sub_configure_args \ |
4696 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
b7026657 AC |
4697 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
4698 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
4699 | { (exit 1); exit 1; }; } | |
c906108c SS |
4700 | fi |
4701 | ||
fdd6fa61 | 4702 | cd $ac_popdir |
c906108c SS |
4703 | done |
4704 | fi | |
4705 | ||
4706 | ||
4707 | exit 0 |