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