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