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