]>
Commit | Line | Data |
---|---|---|
1fd5e000 | 1 | #! /bin/sh |
1fd5e000 | 2 | # Guess values for system-dependent variables and create Makefiles. |
99fc5e10 | 3 | # Generated by GNU Autoconf 2.59. |
1fd5e000 | 4 | # |
99fc5e10 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
1fd5e000 CF |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
99fc5e10 CF |
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 | |
1fd5e000 | 224 | |
99fc5e10 CF |
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 | # | |
1fd5e000 | 254 | ac_default_prefix=/usr/local |
99fc5e10 CF |
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="cygwin-api.in.sgml" | |
275 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT build_exeext LIBOBJS LTLIBOBJS' | |
276 | ac_subst_files='' | |
1fd5e000 CF |
277 | |
278 | # Initialize some variables set by options. | |
99fc5e10 CF |
279 | ac_init_help= |
280 | ac_init_version=false | |
1fd5e000 CF |
281 | # The variables have the same names as the options, with |
282 | # dashes changed to underlines. | |
99fc5e10 | 283 | cache_file=/dev/null |
1fd5e000 | 284 | exec_prefix=NONE |
1fd5e000 | 285 | no_create= |
1fd5e000 CF |
286 | no_recursion= |
287 | prefix=NONE | |
288 | program_prefix=NONE | |
289 | program_suffix=NONE | |
290 | program_transform_name=s,x,x, | |
291 | silent= | |
292 | site= | |
1fd5e000 | 293 | srcdir= |
1fd5e000 CF |
294 | verbose= |
295 | x_includes=NONE | |
296 | x_libraries=NONE | |
99fc5e10 CF |
297 | |
298 | # Installation directory options. | |
299 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
300 | # and all the variables that are supposed to be based on exec_prefix | |
301 | # by default will actually change. | |
302 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
1fd5e000 CF |
303 | bindir='${exec_prefix}/bin' |
304 | sbindir='${exec_prefix}/sbin' | |
305 | libexecdir='${exec_prefix}/libexec' | |
306 | datadir='${prefix}/share' | |
307 | sysconfdir='${prefix}/etc' | |
308 | sharedstatedir='${prefix}/com' | |
309 | localstatedir='${prefix}/var' | |
310 | libdir='${exec_prefix}/lib' | |
311 | includedir='${prefix}/include' | |
312 | oldincludedir='/usr/include' | |
313 | infodir='${prefix}/info' | |
314 | mandir='${prefix}/man' | |
315 | ||
1fd5e000 CF |
316 | ac_prev= |
317 | for ac_option | |
318 | do | |
1fd5e000 CF |
319 | # If the previous option needs an argument, assign it. |
320 | if test -n "$ac_prev"; then | |
321 | eval "$ac_prev=\$ac_option" | |
322 | ac_prev= | |
323 | continue | |
324 | fi | |
325 | ||
99fc5e10 | 326 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
1fd5e000 CF |
327 | |
328 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
329 | ||
99fc5e10 | 330 | case $ac_option in |
1fd5e000 CF |
331 | |
332 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
333 | ac_prev=bindir ;; | |
334 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
99fc5e10 | 335 | bindir=$ac_optarg ;; |
1fd5e000 CF |
336 | |
337 | -build | --build | --buil | --bui | --bu) | |
99fc5e10 | 338 | ac_prev=build_alias ;; |
1fd5e000 | 339 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
99fc5e10 | 340 | build_alias=$ac_optarg ;; |
1fd5e000 CF |
341 | |
342 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
343 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
344 | ac_prev=cache_file ;; | |
345 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
346 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
99fc5e10 CF |
347 | cache_file=$ac_optarg ;; |
348 | ||
349 | --config-cache | -C) | |
350 | cache_file=config.cache ;; | |
1fd5e000 CF |
351 | |
352 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
353 | ac_prev=datadir ;; | |
354 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
355 | | --da=*) | |
99fc5e10 | 356 | datadir=$ac_optarg ;; |
1fd5e000 CF |
357 | |
358 | -disable-* | --disable-*) | |
99fc5e10 | 359 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1fd5e000 | 360 | # Reject names that are not valid shell variable names. |
99fc5e10 CF |
361 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
362 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
363 | { (exit 1); exit 1; }; } | |
364 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
365 | eval "enable_$ac_feature=no" ;; | |
1fd5e000 CF |
366 | |
367 | -enable-* | --enable-*) | |
99fc5e10 | 368 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1fd5e000 | 369 | # Reject names that are not valid shell variable names. |
99fc5e10 CF |
370 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
371 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
372 | { (exit 1); exit 1; }; } | |
373 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
374 | case $ac_option in | |
375 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
1fd5e000 CF |
376 | *) ac_optarg=yes ;; |
377 | esac | |
99fc5e10 | 378 | eval "enable_$ac_feature='$ac_optarg'" ;; |
1fd5e000 CF |
379 | |
380 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
381 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
382 | | --exec | --exe | --ex) | |
383 | ac_prev=exec_prefix ;; | |
384 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
385 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
386 | | --exec=* | --exe=* | --ex=*) | |
99fc5e10 | 387 | exec_prefix=$ac_optarg ;; |
1fd5e000 CF |
388 | |
389 | -gas | --gas | --ga | --g) | |
390 | # Obsolete; use --with-gas. | |
391 | with_gas=yes ;; | |
392 | ||
99fc5e10 CF |
393 | -help | --help | --hel | --he | -h) |
394 | ac_init_help=long ;; | |
395 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
396 | ac_init_help=recursive ;; | |
397 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
398 | ac_init_help=short ;; | |
1fd5e000 CF |
399 | |
400 | -host | --host | --hos | --ho) | |
99fc5e10 | 401 | ac_prev=host_alias ;; |
1fd5e000 | 402 | -host=* | --host=* | --hos=* | --ho=*) |
99fc5e10 | 403 | host_alias=$ac_optarg ;; |
1fd5e000 CF |
404 | |
405 | -includedir | --includedir | --includedi | --included | --include \ | |
406 | | --includ | --inclu | --incl | --inc) | |
407 | ac_prev=includedir ;; | |
408 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
409 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
99fc5e10 | 410 | includedir=$ac_optarg ;; |
1fd5e000 CF |
411 | |
412 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
413 | ac_prev=infodir ;; | |
414 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
99fc5e10 | 415 | infodir=$ac_optarg ;; |
1fd5e000 CF |
416 | |
417 | -libdir | --libdir | --libdi | --libd) | |
418 | ac_prev=libdir ;; | |
419 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
99fc5e10 | 420 | libdir=$ac_optarg ;; |
1fd5e000 CF |
421 | |
422 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
423 | | --libexe | --libex | --libe) | |
424 | ac_prev=libexecdir ;; | |
425 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
426 | | --libexe=* | --libex=* | --libe=*) | |
99fc5e10 | 427 | libexecdir=$ac_optarg ;; |
1fd5e000 CF |
428 | |
429 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
430 | | --localstate | --localstat | --localsta | --localst \ | |
431 | | --locals | --local | --loca | --loc | --lo) | |
432 | ac_prev=localstatedir ;; | |
433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
435 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
99fc5e10 | 436 | localstatedir=$ac_optarg ;; |
1fd5e000 CF |
437 | |
438 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
439 | ac_prev=mandir ;; | |
440 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
99fc5e10 | 441 | mandir=$ac_optarg ;; |
1fd5e000 CF |
442 | |
443 | -nfp | --nfp | --nf) | |
444 | # Obsolete; use --without-fp. | |
445 | with_fp=no ;; | |
446 | ||
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
99fc5e10 | 448 | | --no-cr | --no-c | -n) |
1fd5e000 CF |
449 | no_create=yes ;; |
450 | ||
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
453 | no_recursion=yes ;; | |
454 | ||
455 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
456 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
457 | | --oldin | --oldi | --old | --ol | --o) | |
458 | ac_prev=oldincludedir ;; | |
459 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
460 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
461 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
99fc5e10 | 462 | oldincludedir=$ac_optarg ;; |
1fd5e000 CF |
463 | |
464 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
465 | ac_prev=prefix ;; | |
466 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
99fc5e10 | 467 | prefix=$ac_optarg ;; |
1fd5e000 CF |
468 | |
469 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
470 | | --program-pre | --program-pr | --program-p) | |
471 | ac_prev=program_prefix ;; | |
472 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
473 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
99fc5e10 | 474 | program_prefix=$ac_optarg ;; |
1fd5e000 CF |
475 | |
476 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
477 | | --program-suf | --program-su | --program-s) | |
478 | ac_prev=program_suffix ;; | |
479 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
480 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
99fc5e10 | 481 | program_suffix=$ac_optarg ;; |
1fd5e000 CF |
482 | |
483 | -program-transform-name | --program-transform-name \ | |
484 | | --program-transform-nam | --program-transform-na \ | |
485 | | --program-transform-n | --program-transform- \ | |
486 | | --program-transform | --program-transfor \ | |
487 | | --program-transfo | --program-transf \ | |
488 | | --program-trans | --program-tran \ | |
489 | | --progr-tra | --program-tr | --program-t) | |
490 | ac_prev=program_transform_name ;; | |
491 | -program-transform-name=* | --program-transform-name=* \ | |
492 | | --program-transform-nam=* | --program-transform-na=* \ | |
493 | | --program-transform-n=* | --program-transform-=* \ | |
494 | | --program-transform=* | --program-transfor=* \ | |
495 | | --program-transfo=* | --program-transf=* \ | |
496 | | --program-trans=* | --program-tran=* \ | |
497 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
99fc5e10 | 498 | program_transform_name=$ac_optarg ;; |
1fd5e000 CF |
499 | |
500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
501 | | -silent | --silent | --silen | --sile | --sil) | |
502 | silent=yes ;; | |
503 | ||
504 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
505 | ac_prev=sbindir ;; | |
506 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
507 | | --sbi=* | --sb=*) | |
99fc5e10 | 508 | sbindir=$ac_optarg ;; |
1fd5e000 CF |
509 | |
510 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
511 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
512 | | --sharedst | --shareds | --shared | --share | --shar \ | |
513 | | --sha | --sh) | |
514 | ac_prev=sharedstatedir ;; | |
515 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
516 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
517 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
518 | | --sha=* | --sh=*) | |
99fc5e10 | 519 | sharedstatedir=$ac_optarg ;; |
1fd5e000 CF |
520 | |
521 | -site | --site | --sit) | |
522 | ac_prev=site ;; | |
523 | -site=* | --site=* | --sit=*) | |
99fc5e10 | 524 | site=$ac_optarg ;; |
1fd5e000 | 525 | |
1fd5e000 CF |
526 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
527 | ac_prev=srcdir ;; | |
528 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
99fc5e10 | 529 | srcdir=$ac_optarg ;; |
1fd5e000 CF |
530 | |
531 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
532 | | --syscon | --sysco | --sysc | --sys | --sy) | |
533 | ac_prev=sysconfdir ;; | |
534 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
535 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
99fc5e10 | 536 | sysconfdir=$ac_optarg ;; |
1fd5e000 CF |
537 | |
538 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
99fc5e10 | 539 | ac_prev=target_alias ;; |
1fd5e000 | 540 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
99fc5e10 | 541 | target_alias=$ac_optarg ;; |
1fd5e000 CF |
542 | |
543 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
544 | verbose=yes ;; | |
545 | ||
99fc5e10 CF |
546 | -version | --version | --versio | --versi | --vers | -V) |
547 | ac_init_version=: ;; | |
1fd5e000 CF |
548 | |
549 | -with-* | --with-*) | |
99fc5e10 | 550 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1fd5e000 | 551 | # Reject names that are not valid shell variable names. |
99fc5e10 CF |
552 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
553 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
554 | { (exit 1); exit 1; }; } | |
1fd5e000 | 555 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
99fc5e10 CF |
556 | case $ac_option in |
557 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
1fd5e000 CF |
558 | *) ac_optarg=yes ;; |
559 | esac | |
99fc5e10 | 560 | eval "with_$ac_package='$ac_optarg'" ;; |
1fd5e000 CF |
561 | |
562 | -without-* | --without-*) | |
99fc5e10 | 563 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1fd5e000 | 564 | # Reject names that are not valid shell variable names. |
99fc5e10 CF |
565 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
566 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
567 | { (exit 1); exit 1; }; } | |
568 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
569 | eval "with_$ac_package=no" ;; | |
1fd5e000 CF |
570 | |
571 | --x) | |
572 | # Obsolete; use --with-x. | |
573 | with_x=yes ;; | |
574 | ||
575 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
576 | | --x-incl | --x-inc | --x-in | --x-i) | |
577 | ac_prev=x_includes ;; | |
578 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
579 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
99fc5e10 | 580 | x_includes=$ac_optarg ;; |
1fd5e000 CF |
581 | |
582 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
583 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
584 | ac_prev=x_libraries ;; | |
585 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
586 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
99fc5e10 | 587 | x_libraries=$ac_optarg ;; |
1fd5e000 | 588 | |
99fc5e10 CF |
589 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
590 | Try \`$0 --help' for more information." >&2 | |
591 | { (exit 1); exit 1; }; } | |
1fd5e000 CF |
592 | ;; |
593 | ||
99fc5e10 CF |
594 | *=*) |
595 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
596 | # Reject names that are not valid shell variable names. | |
597 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
598 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
599 | { (exit 1); exit 1; }; } | |
600 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
601 | eval "$ac_envvar='$ac_optarg'" | |
602 | export $ac_envvar ;; | |
603 | ||
1fd5e000 | 604 | *) |
99fc5e10 CF |
605 | # FIXME: should be removed in autoconf 3.0. |
606 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
607 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
608 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
609 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1fd5e000 CF |
610 | ;; |
611 | ||
612 | esac | |
613 | done | |
614 | ||
615 | if test -n "$ac_prev"; then | |
99fc5e10 CF |
616 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
617 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
618 | { (exit 1); exit 1; }; } | |
1fd5e000 | 619 | fi |
1fd5e000 | 620 | |
99fc5e10 CF |
621 | # Be sure to have absolute paths. |
622 | for ac_var in exec_prefix prefix | |
623 | do | |
624 | eval ac_val=$`echo $ac_var` | |
625 | case $ac_val in | |
626 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
627 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
628 | { (exit 1); exit 1; }; };; | |
629 | esac | |
630 | done | |
1fd5e000 | 631 | |
99fc5e10 CF |
632 | # Be sure to have absolute paths. |
633 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
634 | localstatedir libdir includedir oldincludedir infodir mandir | |
1fd5e000 | 635 | do |
99fc5e10 CF |
636 | eval ac_val=$`echo $ac_var` |
637 | case $ac_val in | |
638 | [\\/$]* | ?:[\\/]* ) ;; | |
639 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
640 | { (exit 1); exit 1; }; };; | |
1fd5e000 CF |
641 | esac |
642 | done | |
643 | ||
99fc5e10 CF |
644 | # There might be people who depend on the old broken behavior: `$host' |
645 | # used to hold the argument of --host etc. | |
646 | # FIXME: To remove some day. | |
647 | build=$build_alias | |
648 | host=$host_alias | |
649 | target=$target_alias | |
650 | ||
651 | # FIXME: To remove some day. | |
652 | if test "x$host_alias" != x; then | |
653 | if test "x$build_alias" = x; then | |
654 | cross_compiling=maybe | |
655 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
656 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
657 | elif test "x$build_alias" != "x$host_alias"; then | |
658 | cross_compiling=yes | |
659 | fi | |
660 | fi | |
1fd5e000 | 661 | |
99fc5e10 CF |
662 | ac_tool_prefix= |
663 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
664 | ||
665 | test "$silent" = yes && exec 6>/dev/null | |
1fd5e000 | 666 | |
1fd5e000 CF |
667 | |
668 | # Find the source files, if location was not specified. | |
669 | if test -z "$srcdir"; then | |
670 | ac_srcdir_defaulted=yes | |
671 | # Try the directory containing this script, then its parent. | |
99fc5e10 CF |
672 | ac_confdir=`(dirname "$0") 2>/dev/null || |
673 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
674 | X"$0" : 'X\(//\)[^/]' \| \ | |
675 | X"$0" : 'X\(//\)$' \| \ | |
676 | X"$0" : 'X\(/\)' \| \ | |
677 | . : '\(.\)' 2>/dev/null || | |
678 | echo X"$0" | | |
679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
681 | /^X\(\/\/\)$/{ s//\1/; q; } | |
682 | /^X\(\/\).*/{ s//\1/; q; } | |
683 | s/.*/./; q'` | |
1fd5e000 CF |
684 | srcdir=$ac_confdir |
685 | if test ! -r $srcdir/$ac_unique_file; then | |
686 | srcdir=.. | |
687 | fi | |
688 | else | |
689 | ac_srcdir_defaulted=no | |
690 | fi | |
691 | if test ! -r $srcdir/$ac_unique_file; then | |
692 | if test "$ac_srcdir_defaulted" = yes; then | |
99fc5e10 CF |
693 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
694 | { (exit 1); exit 1; }; } | |
1fd5e000 | 695 | else |
99fc5e10 CF |
696 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
697 | { (exit 1); exit 1; }; } | |
1fd5e000 CF |
698 | fi |
699 | fi | |
99fc5e10 CF |
700 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
701 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
702 | { (exit 1); exit 1; }; } | |
703 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
704 | ac_env_build_alias_set=${build_alias+set} | |
705 | ac_env_build_alias_value=$build_alias | |
706 | ac_cv_env_build_alias_set=${build_alias+set} | |
707 | ac_cv_env_build_alias_value=$build_alias | |
708 | ac_env_host_alias_set=${host_alias+set} | |
709 | ac_env_host_alias_value=$host_alias | |
710 | ac_cv_env_host_alias_set=${host_alias+set} | |
711 | ac_cv_env_host_alias_value=$host_alias | |
712 | ac_env_target_alias_set=${target_alias+set} | |
713 | ac_env_target_alias_value=$target_alias | |
714 | ac_cv_env_target_alias_set=${target_alias+set} | |
715 | ac_cv_env_target_alias_value=$target_alias | |
716 | ac_env_CC_set=${CC+set} | |
717 | ac_env_CC_value=$CC | |
718 | ac_cv_env_CC_set=${CC+set} | |
719 | ac_cv_env_CC_value=$CC | |
720 | ac_env_CFLAGS_set=${CFLAGS+set} | |
721 | ac_env_CFLAGS_value=$CFLAGS | |
722 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
723 | ac_cv_env_CFLAGS_value=$CFLAGS | |
724 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
725 | ac_env_LDFLAGS_value=$LDFLAGS | |
726 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
727 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
728 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
729 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
730 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
731 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
732 | ||
733 | # | |
734 | # Report the --help message. | |
735 | # | |
736 | if test "$ac_init_help" = "long"; then | |
737 | # Omit some internal or obsolete options to make the list less imposing. | |
738 | # This message is too long to be a string in the A/UX 3.1 sh. | |
739 | cat <<_ACEOF | |
740 | \`configure' configures this package to adapt to many kinds of systems. | |
741 | ||
742 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
743 | ||
744 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
745 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
746 | ||
747 | Defaults for the options are specified in brackets. | |
748 | ||
749 | Configuration: | |
750 | -h, --help display this help and exit | |
751 | --help=short display options specific to this package | |
752 | --help=recursive display the short help of all the included packages | |
753 | -V, --version display version information and exit | |
754 | -q, --quiet, --silent do not print \`checking...' messages | |
755 | --cache-file=FILE cache test results in FILE [disabled] | |
756 | -C, --config-cache alias for \`--cache-file=config.cache' | |
757 | -n, --no-create do not create output files | |
758 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
759 | ||
760 | _ACEOF | |
761 | ||
762 | cat <<_ACEOF | |
763 | Installation directories: | |
764 | --prefix=PREFIX install architecture-independent files in PREFIX | |
765 | [$ac_default_prefix] | |
766 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
767 | [PREFIX] | |
768 | ||
769 | By default, \`make install' will install all the files in | |
770 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
771 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
772 | for instance \`--prefix=\$HOME'. | |
773 | ||
774 | For better control, use the options below. | |
775 | ||
776 | Fine tuning of the installation directories: | |
777 | --bindir=DIR user executables [EPREFIX/bin] | |
778 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
779 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
780 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
781 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
782 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
783 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
784 | --libdir=DIR object code libraries [EPREFIX/lib] | |
785 | --includedir=DIR C header files [PREFIX/include] | |
786 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
787 | --infodir=DIR info documentation [PREFIX/info] | |
788 | --mandir=DIR man documentation [PREFIX/man] | |
789 | _ACEOF | |
790 | ||
791 | cat <<\_ACEOF | |
792 | ||
793 | System types: | |
794 | --build=BUILD configure for building on BUILD [guessed] | |
795 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
796 | --target=TARGET configure for building compilers for TARGET [HOST] | |
797 | _ACEOF | |
798 | fi | |
799 | ||
800 | if test -n "$ac_init_help"; then | |
801 | ||
802 | cat <<\_ACEOF | |
803 | ||
804 | Some influential environment variables: | |
805 | CC C compiler command | |
806 | CFLAGS C compiler flags | |
807 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
808 | nonstandard directory <lib dir> | |
809 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
810 | headers in a nonstandard directory <include dir> | |
811 | ||
812 | Use these variables to override the choices made by `configure' or to help | |
813 | it to find libraries and programs with nonstandard names/locations. | |
814 | ||
815 | _ACEOF | |
816 | fi | |
817 | ||
818 | if test "$ac_init_help" = "recursive"; then | |
819 | # If there are subdirs, report their specific --help. | |
820 | ac_popdir=`pwd` | |
821 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
822 | test -d $ac_dir || continue | |
823 | ac_builddir=. | |
824 | ||
825 | if test "$ac_dir" != .; then | |
826 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
827 | # A "../" for each directory in $ac_dir_suffix. | |
828 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
829 | else | |
830 | ac_dir_suffix= ac_top_builddir= | |
831 | fi | |
832 | ||
833 | case $srcdir in | |
834 | .) # No --srcdir option. We are building in place. | |
835 | ac_srcdir=. | |
836 | if test -z "$ac_top_builddir"; then | |
837 | ac_top_srcdir=. | |
838 | else | |
839 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
840 | fi ;; | |
841 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
842 | ac_srcdir=$srcdir$ac_dir_suffix; | |
843 | ac_top_srcdir=$srcdir ;; | |
844 | *) # Relative path. | |
845 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
846 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
847 | esac | |
848 | ||
849 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
850 | # the directories may not exist. | |
851 | case `pwd` in | |
852 | .) ac_abs_builddir="$ac_dir";; | |
853 | *) | |
854 | case "$ac_dir" in | |
855 | .) ac_abs_builddir=`pwd`;; | |
856 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
857 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
858 | esac;; | |
859 | esac | |
860 | case $ac_abs_builddir in | |
861 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
862 | *) | |
863 | case ${ac_top_builddir}. in | |
864 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
865 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
866 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
867 | esac;; | |
868 | esac | |
869 | case $ac_abs_builddir in | |
870 | .) ac_abs_srcdir=$ac_srcdir;; | |
871 | *) | |
872 | case $ac_srcdir in | |
873 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
874 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
875 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
876 | esac;; | |
877 | esac | |
878 | case $ac_abs_builddir in | |
879 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
880 | *) | |
881 | case $ac_top_srcdir in | |
882 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
883 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
884 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
885 | esac;; | |
886 | esac | |
887 | ||
888 | cd $ac_dir | |
889 | # Check for guested configure; otherwise get Cygnus style configure. | |
890 | if test -f $ac_srcdir/configure.gnu; then | |
891 | echo | |
892 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
893 | elif test -f $ac_srcdir/configure; then | |
894 | echo | |
895 | $SHELL $ac_srcdir/configure --help=recursive | |
896 | elif test -f $ac_srcdir/configure.ac || | |
897 | test -f $ac_srcdir/configure.in; then | |
898 | echo | |
899 | $ac_configure --help | |
900 | else | |
901 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
902 | fi | |
903 | cd "$ac_popdir" | |
904 | done | |
905 | fi | |
906 | ||
907 | test -n "$ac_init_help" && exit 0 | |
908 | if $ac_init_version; then | |
909 | cat <<\_ACEOF | |
910 | ||
911 | Copyright (C) 2003 Free Software Foundation, Inc. | |
912 | This configure script is free software; the Free Software Foundation | |
913 | gives unlimited permission to copy, distribute and modify it. | |
914 | _ACEOF | |
915 | exit 0 | |
916 | fi | |
917 | exec 5>config.log | |
918 | cat >&5 <<_ACEOF | |
919 | This file contains any messages produced by compilers while | |
920 | running configure, to aid debugging if configure makes a mistake. | |
921 | ||
922 | It was created by $as_me, which was | |
923 | generated by GNU Autoconf 2.59. Invocation command line was | |
924 | ||
925 | $ $0 $@ | |
926 | ||
927 | _ACEOF | |
928 | { | |
929 | cat <<_ASUNAME | |
930 | ## --------- ## | |
931 | ## Platform. ## | |
932 | ## --------- ## | |
933 | ||
934 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
935 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
936 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
937 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
938 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
939 | ||
940 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
941 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
942 | ||
943 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
944 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
945 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
946 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
947 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
948 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
949 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
950 | ||
951 | _ASUNAME | |
952 | ||
953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
954 | for as_dir in $PATH | |
955 | do | |
956 | IFS=$as_save_IFS | |
957 | test -z "$as_dir" && as_dir=. | |
958 | echo "PATH: $as_dir" | |
959 | done | |
960 | ||
961 | } >&5 | |
962 | ||
963 | cat >&5 <<_ACEOF | |
964 | ||
1fd5e000 | 965 | |
99fc5e10 CF |
966 | ## ----------- ## |
967 | ## Core tests. ## | |
968 | ## ----------- ## | |
969 | ||
970 | _ACEOF | |
971 | ||
972 | ||
973 | # Keep a trace of the command line. | |
974 | # Strip out --no-create and --no-recursion so they do not pile up. | |
975 | # Strip out --silent because we don't want to record it for future runs. | |
976 | # Also quote any args containing shell meta-characters. | |
977 | # Make two passes to allow for proper duplicate-argument suppression. | |
978 | ac_configure_args= | |
979 | ac_configure_args0= | |
980 | ac_configure_args1= | |
981 | ac_sep= | |
982 | ac_must_keep_next=false | |
983 | for ac_pass in 1 2 | |
984 | do | |
985 | for ac_arg | |
986 | do | |
987 | case $ac_arg in | |
988 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
990 | | -silent | --silent | --silen | --sile | --sil) | |
991 | continue ;; | |
992 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
993 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
994 | esac | |
995 | case $ac_pass in | |
996 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
997 | 2) | |
998 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
999 | if test $ac_must_keep_next = true; then | |
1000 | ac_must_keep_next=false # Got value, back to normal. | |
1001 | else | |
1002 | case $ac_arg in | |
1003 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1004 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1005 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1006 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1007 | case "$ac_configure_args0 " in | |
1008 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1009 | esac | |
1010 | ;; | |
1011 | -* ) ac_must_keep_next=true ;; | |
1012 | esac | |
1013 | fi | |
1014 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1015 | # Get rid of the leading space. | |
1016 | ac_sep=" " | |
1017 | ;; | |
1018 | esac | |
1019 | done | |
1020 | done | |
1021 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1022 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1023 | ||
1024 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1025 | # config.log. We remove comments because anyway the quotes in there | |
1026 | # would cause problems or look ugly. | |
1027 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1028 | # such as our DU 5.0 friend, will then `close' the trap. | |
1029 | trap 'exit_status=$? | |
1030 | # Save into config.log some information that might help in debugging. | |
1031 | { | |
1032 | echo | |
1033 | ||
1034 | cat <<\_ASBOX | |
1035 | ## ---------------- ## | |
1036 | ## Cache variables. ## | |
1037 | ## ---------------- ## | |
1038 | _ASBOX | |
1039 | echo | |
1040 | # The following way of writing the cache mishandles newlines in values, | |
1041 | { | |
1042 | (set) 2>&1 | | |
1043 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1044 | *ac_space=\ *) | |
1045 | sed -n \ | |
1046 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1047 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1048 | ;; | |
1049 | *) | |
1050 | sed -n \ | |
1051 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1052 | ;; | |
1053 | esac; | |
1054 | } | |
1055 | echo | |
1056 | ||
1057 | cat <<\_ASBOX | |
1058 | ## ----------------- ## | |
1059 | ## Output variables. ## | |
1060 | ## ----------------- ## | |
1061 | _ASBOX | |
1062 | echo | |
1063 | for ac_var in $ac_subst_vars | |
1064 | do | |
1065 | eval ac_val=$`echo $ac_var` | |
1066 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1067 | done | sort | |
1068 | echo | |
1069 | ||
1070 | if test -n "$ac_subst_files"; then | |
1071 | cat <<\_ASBOX | |
1072 | ## ------------- ## | |
1073 | ## Output files. ## | |
1074 | ## ------------- ## | |
1075 | _ASBOX | |
1076 | echo | |
1077 | for ac_var in $ac_subst_files | |
1078 | do | |
1079 | eval ac_val=$`echo $ac_var` | |
1080 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1081 | done | sort | |
1082 | echo | |
1083 | fi | |
1084 | ||
1085 | if test -s confdefs.h; then | |
1086 | cat <<\_ASBOX | |
1087 | ## ----------- ## | |
1088 | ## confdefs.h. ## | |
1089 | ## ----------- ## | |
1090 | _ASBOX | |
1091 | echo | |
1092 | sed "/^$/d" confdefs.h | sort | |
1093 | echo | |
1094 | fi | |
1095 | test "$ac_signal" != 0 && | |
1096 | echo "$as_me: caught signal $ac_signal" | |
1097 | echo "$as_me: exit $exit_status" | |
1098 | } >&5 | |
1099 | rm -f core *.core && | |
1100 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1101 | exit $exit_status | |
1102 | ' 0 | |
1103 | for ac_signal in 1 2 13 15; do | |
1104 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1105 | done | |
1106 | ac_signal=0 | |
1107 | ||
1108 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1109 | rm -rf conftest* confdefs.h | |
1110 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1111 | echo >confdefs.h | |
1112 | ||
1113 | # Predefined preprocessor variables. | |
1114 | ||
1115 | cat >>confdefs.h <<_ACEOF | |
1116 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1117 | _ACEOF | |
1118 | ||
1119 | ||
1120 | cat >>confdefs.h <<_ACEOF | |
1121 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1122 | _ACEOF | |
1123 | ||
1124 | ||
1125 | cat >>confdefs.h <<_ACEOF | |
1126 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1127 | _ACEOF | |
1128 | ||
1129 | ||
1130 | cat >>confdefs.h <<_ACEOF | |
1131 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1132 | _ACEOF | |
1133 | ||
1134 | ||
1135 | cat >>confdefs.h <<_ACEOF | |
1136 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1137 | _ACEOF | |
1138 | ||
1139 | ||
1140 | # Let the site file select an alternate cache file if it wants to. | |
1fd5e000 | 1141 | # Prefer explicitly selected file to automatically selected ones. |
63928f60 CF |
1142 | if test -z "$CONFIG_SITE"; then |
1143 | if test "x$prefix" != xNONE; then | |
1144 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1145 | else | |
1146 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1fd5e000 | 1147 | fi |
1fd5e000 CF |
1148 | fi |
1149 | for ac_site_file in $CONFIG_SITE; do | |
1150 | if test -r "$ac_site_file"; then | |
99fc5e10 CF |
1151 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1152 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1153 | sed 's/^/| /' "$ac_site_file" >&5 | |
1fd5e000 CF |
1154 | . "$ac_site_file" |
1155 | fi | |
1156 | done | |
1157 | ||
1158 | if test -r "$cache_file"; then | |
99fc5e10 CF |
1159 | # Some versions of bash will fail to source /dev/null (special |
1160 | # files actually), so we avoid doing that. | |
1161 | if test -f "$cache_file"; then | |
1162 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1163 | echo "$as_me: loading cache $cache_file" >&6;} | |
1164 | case $cache_file in | |
1165 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1166 | *) . ./$cache_file;; | |
1167 | esac | |
1168 | fi | |
1fd5e000 | 1169 | else |
99fc5e10 CF |
1170 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1171 | echo "$as_me: creating cache $cache_file" >&6;} | |
1172 | >$cache_file | |
1fd5e000 CF |
1173 | fi |
1174 | ||
99fc5e10 CF |
1175 | # Check that the precious variables saved in the cache have kept the same |
1176 | # value. | |
1177 | ac_cache_corrupted=false | |
1178 | for ac_var in `(set) 2>&1 | | |
1179 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1180 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1181 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1182 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1183 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1184 | case $ac_old_set,$ac_new_set in | |
1185 | set,) | |
1186 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1187 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1188 | ac_cache_corrupted=: ;; | |
1189 | ,set) | |
1190 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1191 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1192 | ac_cache_corrupted=: ;; | |
1193 | ,);; | |
1194 | *) | |
1195 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1196 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1197 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1198 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1199 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1200 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1201 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1202 | ac_cache_corrupted=: | |
1203 | fi;; | |
1204 | esac | |
1205 | # Pass precious variables to config.status. | |
1206 | if test "$ac_new_set" = set; then | |
1207 | case $ac_new_val in | |
1208 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1209 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1210 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1211 | esac | |
1212 | case " $ac_configure_args " in | |
1213 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1214 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1215 | esac | |
1fd5e000 | 1216 | fi |
99fc5e10 CF |
1217 | done |
1218 | if $ac_cache_corrupted; then | |
1219 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1220 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1221 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1222 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1223 | { (exit 1); exit 1; }; } | |
1fd5e000 CF |
1224 | fi |
1225 | ||
99fc5e10 CF |
1226 | ac_ext=c |
1227 | ac_cpp='$CPP $CPPFLAGS' | |
1228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1231 | ||
1232 | ||
1233 | ||
1234 | ||
1235 | ||
1236 | ||
1237 | ||
1238 | ||
1239 | ||
1240 | ||
1241 | ||
1242 | ||
1243 | ||
1244 | ||
1245 | ||
1fd5e000 CF |
1246 | |
1247 | ||
1248 | ||
1249 | ||
1250 | ac_aux_dir= | |
99fc5e10 | 1251 | for ac_dir in ../.. $srcdir/../..; do |
1fd5e000 CF |
1252 | if test -f $ac_dir/install-sh; then |
1253 | ac_aux_dir=$ac_dir | |
1254 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1255 | break | |
1256 | elif test -f $ac_dir/install.sh; then | |
1257 | ac_aux_dir=$ac_dir | |
1258 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1259 | break | |
99fc5e10 CF |
1260 | elif test -f $ac_dir/shtool; then |
1261 | ac_aux_dir=$ac_dir | |
1262 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1263 | break | |
1fd5e000 CF |
1264 | fi |
1265 | done | |
1266 | if test -z "$ac_aux_dir"; then | |
99fc5e10 CF |
1267 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5 |
1268 | echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;} | |
1269 | { (exit 1); exit 1; }; } | |
1fd5e000 | 1270 | fi |
99fc5e10 CF |
1271 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1272 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1273 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1fd5e000 CF |
1274 | |
1275 | ||
1276 | # Make sure we can run config.sub. | |
99fc5e10 CF |
1277 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1278 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1279 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1280 | { (exit 1); exit 1; }; } | |
1281 | ||
1282 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1283 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1284 | if test "${ac_cv_build+set}" = set; then | |
1285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1286 | else | |
1287 | ac_cv_build_alias=$build_alias | |
1288 | test -z "$ac_cv_build_alias" && | |
1289 | ac_cv_build_alias=`$ac_config_guess` | |
1290 | test -z "$ac_cv_build_alias" && | |
1291 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1292 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1293 | { (exit 1); exit 1; }; } | |
1294 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1295 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1296 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1297 | { (exit 1); exit 1; }; } | |
1fd5e000 | 1298 | |
99fc5e10 CF |
1299 | fi |
1300 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1301 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1302 | build=$ac_cv_build | |
1303 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1304 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1305 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1306 | ||
1307 | ||
1308 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1309 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1310 | if test "${ac_cv_host+set}" = set; then | |
1311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1312 | else | |
1313 | ac_cv_host_alias=$host_alias | |
1314 | test -z "$ac_cv_host_alias" && | |
1315 | ac_cv_host_alias=$ac_cv_build_alias | |
1316 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1317 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1318 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1319 | { (exit 1); exit 1; }; } | |
1fd5e000 | 1320 | |
99fc5e10 CF |
1321 | fi |
1322 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1323 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1324 | host=$ac_cv_host | |
1325 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1326 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1327 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1328 | ||
1329 | ||
1330 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1331 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1332 | if test "${ac_cv_target+set}" = set; then | |
1333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1334 | else | |
1335 | ac_cv_target_alias=$target_alias | |
1336 | test "x$ac_cv_target_alias" = "x" && | |
1337 | ac_cv_target_alias=$ac_cv_host_alias | |
1338 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1339 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1340 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1341 | { (exit 1); exit 1; }; } | |
1fd5e000 | 1342 | |
99fc5e10 CF |
1343 | fi |
1344 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1345 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1346 | target=$ac_cv_target | |
1347 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1348 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1349 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1fd5e000 | 1350 | |
1fd5e000 | 1351 | |
99fc5e10 CF |
1352 | # The aliases save the names the user supplied, while $host etc. |
1353 | # will get canonicalized. | |
1354 | test -n "$target_alias" && | |
1fd5e000 CF |
1355 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1356 | NONENONEs,x,x, && | |
1357 | program_prefix=${target_alias}- | |
1358 | ||
99fc5e10 CF |
1359 | if test -n "$ac_tool_prefix"; then |
1360 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1fd5e000 | 1361 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
99fc5e10 CF |
1362 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1364 | if test "${ac_cv_prog_CC+set}" = set; then | |
1365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 CF |
1366 | else |
1367 | if test -n "$CC"; then | |
1368 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1369 | else | |
99fc5e10 CF |
1370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1371 | for as_dir in $PATH | |
1372 | do | |
1373 | IFS=$as_save_IFS | |
1374 | test -z "$as_dir" && as_dir=. | |
1375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1377 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1379 | break 2 | |
1380 | fi | |
1381 | done | |
1382 | done | |
1383 | ||
1fd5e000 CF |
1384 | fi |
1385 | fi | |
99fc5e10 | 1386 | CC=$ac_cv_prog_CC |
1fd5e000 | 1387 | if test -n "$CC"; then |
99fc5e10 CF |
1388 | echo "$as_me:$LINENO: result: $CC" >&5 |
1389 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1390 | else |
99fc5e10 CF |
1391 | echo "$as_me:$LINENO: result: no" >&5 |
1392 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
1393 | fi |
1394 | ||
99fc5e10 | 1395 | fi |
1fd5e000 | 1396 | if test -z "$ac_cv_prog_CC"; then |
99fc5e10 | 1397 | ac_ct_CC=$CC |
1fd5e000 CF |
1398 | # Extract the first word of "gcc", so it can be a program name with args. |
1399 | set dummy gcc; ac_word=$2 | |
99fc5e10 CF |
1400 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1402 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1404 | else | |
1405 | if test -n "$ac_ct_CC"; then | |
1406 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1407 | else | |
1408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1409 | for as_dir in $PATH | |
1410 | do | |
1411 | IFS=$as_save_IFS | |
1412 | test -z "$as_dir" && as_dir=. | |
1413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1415 | ac_cv_prog_ac_ct_CC="gcc" | |
1416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1417 | break 2 | |
1418 | fi | |
1419 | done | |
1420 | done | |
1421 | ||
1422 | test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC="gcc" | |
1423 | fi | |
1424 | fi | |
1425 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1426 | if test -n "$ac_ct_CC"; then | |
1427 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1428 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1429 | else | |
1430 | echo "$as_me:$LINENO: result: no" >&5 | |
1431 | echo "${ECHO_T}no" >&6 | |
1432 | fi | |
1433 | ||
1434 | CC=$ac_ct_CC | |
1435 | else | |
1436 | CC="$ac_cv_prog_CC" | |
1437 | fi | |
1438 | ||
1439 | : ${CC:=gcc} | |
1440 | ac_ext=c | |
1441 | ac_cpp='$CPP $CPPFLAGS' | |
1442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1445 | if test -n "$ac_tool_prefix"; then | |
1446 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1447 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1450 | if test "${ac_cv_prog_CC+set}" = set; then | |
1451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 CF |
1452 | else |
1453 | if test -n "$CC"; then | |
1454 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1455 | else | |
99fc5e10 CF |
1456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1457 | for as_dir in $PATH | |
1458 | do | |
1459 | IFS=$as_save_IFS | |
1460 | test -z "$as_dir" && as_dir=. | |
1461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1463 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1465 | break 2 | |
1466 | fi | |
1467 | done | |
1468 | done | |
1469 | ||
1470 | fi | |
1471 | fi | |
1472 | CC=$ac_cv_prog_CC | |
1473 | if test -n "$CC"; then | |
1474 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1475 | echo "${ECHO_T}$CC" >&6 | |
1476 | else | |
1477 | echo "$as_me:$LINENO: result: no" >&5 | |
1478 | echo "${ECHO_T}no" >&6 | |
1479 | fi | |
1480 | ||
1481 | fi | |
1482 | if test -z "$ac_cv_prog_CC"; then | |
1483 | ac_ct_CC=$CC | |
1484 | # Extract the first word of "gcc", so it can be a program name with args. | |
1485 | set dummy gcc; ac_word=$2 | |
1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1488 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1490 | else | |
1491 | if test -n "$ac_ct_CC"; then | |
1492 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1493 | else | |
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1495 | for as_dir in $PATH | |
1496 | do | |
1497 | IFS=$as_save_IFS | |
1498 | test -z "$as_dir" && as_dir=. | |
1499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1501 | ac_cv_prog_ac_ct_CC="gcc" | |
1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1503 | break 2 | |
1504 | fi | |
1505 | done | |
1506 | done | |
1507 | ||
1508 | fi | |
1509 | fi | |
1510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1511 | if test -n "$ac_ct_CC"; then | |
1512 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1513 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1514 | else | |
1515 | echo "$as_me:$LINENO: result: no" >&5 | |
1516 | echo "${ECHO_T}no" >&6 | |
1fd5e000 | 1517 | fi |
99fc5e10 CF |
1518 | |
1519 | CC=$ac_ct_CC | |
1520 | else | |
1521 | CC="$ac_cv_prog_CC" | |
1fd5e000 | 1522 | fi |
99fc5e10 CF |
1523 | |
1524 | if test -z "$CC"; then | |
1525 | if test -n "$ac_tool_prefix"; then | |
1526 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1527 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1530 | if test "${ac_cv_prog_CC+set}" = set; then | |
1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1532 | else | |
1533 | if test -n "$CC"; then | |
1534 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1535 | else | |
1536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1537 | for as_dir in $PATH | |
1538 | do | |
1539 | IFS=$as_save_IFS | |
1540 | test -z "$as_dir" && as_dir=. | |
1541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1543 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1545 | break 2 | |
1546 | fi | |
1547 | done | |
1548 | done | |
1549 | ||
1550 | fi | |
1551 | fi | |
1552 | CC=$ac_cv_prog_CC | |
1fd5e000 | 1553 | if test -n "$CC"; then |
99fc5e10 CF |
1554 | echo "$as_me:$LINENO: result: $CC" >&5 |
1555 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1556 | else |
99fc5e10 CF |
1557 | echo "$as_me:$LINENO: result: no" >&5 |
1558 | echo "${ECHO_T}no" >&6 | |
1559 | fi | |
1560 | ||
1fd5e000 | 1561 | fi |
99fc5e10 CF |
1562 | if test -z "$ac_cv_prog_CC"; then |
1563 | ac_ct_CC=$CC | |
1564 | # Extract the first word of "cc", so it can be a program name with args. | |
1565 | set dummy cc; ac_word=$2 | |
1566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1568 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1570 | else | |
1571 | if test -n "$ac_ct_CC"; then | |
1572 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1573 | else | |
1574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1575 | for as_dir in $PATH | |
1576 | do | |
1577 | IFS=$as_save_IFS | |
1578 | test -z "$as_dir" && as_dir=. | |
1579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1581 | ac_cv_prog_ac_ct_CC="cc" | |
1582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1583 | break 2 | |
1584 | fi | |
1585 | done | |
1586 | done | |
1fd5e000 | 1587 | |
99fc5e10 CF |
1588 | fi |
1589 | fi | |
1590 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1591 | if test -n "$ac_ct_CC"; then | |
1592 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1593 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1fd5e000 | 1594 | else |
99fc5e10 CF |
1595 | echo "$as_me:$LINENO: result: no" >&5 |
1596 | echo "${ECHO_T}no" >&6 | |
1fd5e000 | 1597 | fi |
99fc5e10 CF |
1598 | |
1599 | CC=$ac_ct_CC | |
1600 | else | |
1601 | CC="$ac_cv_prog_CC" | |
1fd5e000 CF |
1602 | fi |
1603 | ||
99fc5e10 | 1604 | fi |
1fd5e000 CF |
1605 | if test -z "$CC"; then |
1606 | # Extract the first word of "cc", so it can be a program name with args. | |
1607 | set dummy cc; ac_word=$2 | |
99fc5e10 CF |
1608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1610 | if test "${ac_cv_prog_CC+set}" = set; then | |
1611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 CF |
1612 | else |
1613 | if test -n "$CC"; then | |
1614 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1615 | else | |
1fd5e000 | 1616 | ac_prog_rejected=no |
99fc5e10 CF |
1617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1618 | for as_dir in $PATH | |
1619 | do | |
1620 | IFS=$as_save_IFS | |
1621 | test -z "$as_dir" && as_dir=. | |
1622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1624 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1625 | ac_prog_rejected=yes | |
1626 | continue | |
1627 | fi | |
1628 | ac_cv_prog_CC="cc" | |
1629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1630 | break 2 | |
1631 | fi | |
1632 | done | |
1633 | done | |
1634 | ||
1fd5e000 CF |
1635 | if test $ac_prog_rejected = yes; then |
1636 | # We found a bogon in the path, so make sure we never use it. | |
1637 | set dummy $ac_cv_prog_CC | |
1638 | shift | |
99fc5e10 | 1639 | if test $# != 0; then |
1fd5e000 CF |
1640 | # We chose a different compiler from the bogus one. |
1641 | # However, it has the same basename, so the bogon will be chosen | |
1642 | # first if we set CC to just the basename; use the full file name. | |
1643 | shift | |
99fc5e10 | 1644 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1fd5e000 CF |
1645 | fi |
1646 | fi | |
1647 | fi | |
1648 | fi | |
99fc5e10 | 1649 | CC=$ac_cv_prog_CC |
1fd5e000 | 1650 | if test -n "$CC"; then |
99fc5e10 CF |
1651 | echo "$as_me:$LINENO: result: $CC" >&5 |
1652 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1653 | else |
99fc5e10 CF |
1654 | echo "$as_me:$LINENO: result: no" >&5 |
1655 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
1656 | fi |
1657 | ||
1fd5e000 | 1658 | fi |
99fc5e10 CF |
1659 | if test -z "$CC"; then |
1660 | if test -n "$ac_tool_prefix"; then | |
1661 | for ac_prog in cl | |
1662 | do | |
1663 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1664 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1667 | if test "${ac_cv_prog_CC+set}" = set; then | |
1668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1669 | else | |
1670 | if test -n "$CC"; then | |
1671 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1672 | else | |
1673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1674 | for as_dir in $PATH | |
1675 | do | |
1676 | IFS=$as_save_IFS | |
1677 | test -z "$as_dir" && as_dir=. | |
1678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1680 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1682 | break 2 | |
1683 | fi | |
1684 | done | |
1685 | done | |
1fd5e000 | 1686 | |
99fc5e10 CF |
1687 | fi |
1688 | fi | |
1689 | CC=$ac_cv_prog_CC | |
1690 | if test -n "$CC"; then | |
1691 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1692 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1693 | else |
99fc5e10 CF |
1694 | echo "$as_me:$LINENO: result: no" >&5 |
1695 | echo "${ECHO_T}no" >&6 | |
1696 | fi | |
1697 | ||
1698 | test -n "$CC" && break | |
1699 | done | |
1700 | fi | |
1701 | if test -z "$CC"; then | |
1702 | ac_ct_CC=$CC | |
1703 | for ac_prog in cl | |
1704 | do | |
1705 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1706 | set dummy $ac_prog; ac_word=$2 | |
1707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1709 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 | 1711 | else |
99fc5e10 CF |
1712 | if test -n "$ac_ct_CC"; then |
1713 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1714 | else | |
1715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1716 | for as_dir in $PATH | |
1717 | do | |
1718 | IFS=$as_save_IFS | |
1719 | test -z "$as_dir" && as_dir=. | |
1720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1721 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1722 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1724 | break 2 | |
1725 | fi | |
1726 | done | |
1727 | done | |
1728 | ||
1729 | fi | |
1730 | fi | |
1731 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1732 | if test -n "$ac_ct_CC"; then | |
1733 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1734 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1735 | else | |
1736 | echo "$as_me:$LINENO: result: no" >&5 | |
1737 | echo "${ECHO_T}no" >&6 | |
1fd5e000 | 1738 | fi |
1fd5e000 | 1739 | |
99fc5e10 CF |
1740 | test -n "$ac_ct_CC" && break |
1741 | done | |
1742 | ||
1743 | CC=$ac_ct_CC | |
1744 | fi | |
1745 | ||
1746 | fi | |
1747 | ||
1748 | ||
1749 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1750 | See \`config.log' for more details." >&5 | |
1751 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1752 | See \`config.log' for more details." >&2;} | |
1753 | { (exit 1); exit 1; }; } | |
1754 | ||
1755 | # Provide some information about the compiler. | |
1756 | echo "$as_me:$LINENO:" \ | |
1757 | "checking for C compiler version" >&5 | |
1758 | ac_compiler=`set X $ac_compile; echo $2` | |
1759 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1760 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1761 | ac_status=$? | |
1762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1763 | (exit $ac_status); } | |
1764 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1765 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1766 | ac_status=$? | |
1767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1768 | (exit $ac_status); } | |
1769 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1770 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1771 | ac_status=$? | |
1772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1773 | (exit $ac_status); } | |
1774 | ||
1775 | cat >conftest.$ac_ext <<_ACEOF | |
1776 | /* confdefs.h. */ | |
1777 | _ACEOF | |
1778 | cat confdefs.h >>conftest.$ac_ext | |
1779 | cat >>conftest.$ac_ext <<_ACEOF | |
1780 | /* end confdefs.h. */ | |
1781 | ||
1782 | int | |
1783 | main () | |
1784 | { | |
1785 | ||
1786 | ; | |
1787 | return 0; | |
1788 | } | |
1789 | _ACEOF | |
1790 | ac_clean_files_save=$ac_clean_files | |
1791 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1792 | # Try to create an executable without -o first, disregard a.out. | |
1793 | # It will help us diagnose broken compilers, and finding out an intuition | |
1794 | # of exeext. | |
1795 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1796 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1797 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1798 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1799 | (eval $ac_link_default) 2>&5 | |
1800 | ac_status=$? | |
1801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1802 | (exit $ac_status); }; then | |
1803 | # Find the output, starting from the most likely. This scheme is | |
1804 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1805 | # resort. | |
1806 | ||
1807 | # Be careful to initialize this variable, since it used to be cached. | |
1808 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1809 | ac_cv_exeext= | |
1810 | # b.out is created by i960 compilers. | |
1811 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1812 | do | |
1813 | test -f "$ac_file" || continue | |
1814 | case $ac_file in | |
1815 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1816 | ;; | |
1817 | conftest.$ac_ext ) | |
1818 | # This is the source file. | |
1819 | ;; | |
1820 | [ab].out ) | |
1821 | # We found the default executable, but exeext='' is most | |
1822 | # certainly right. | |
1823 | break;; | |
1824 | *.* ) | |
1825 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1826 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1827 | # but it would be cool to find out if it's true. Does anybody | |
1828 | # maintain Libtool? --akim. | |
1829 | export ac_cv_exeext | |
1830 | break;; | |
1831 | * ) | |
1832 | break;; | |
1833 | esac | |
1834 | done | |
1835 | else | |
1836 | echo "$as_me: failed program was:" >&5 | |
1837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1838 | ||
1839 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1840 | See \`config.log' for more details." >&5 | |
1841 | echo "$as_me: error: C compiler cannot create executables | |
1842 | See \`config.log' for more details." >&2;} | |
1843 | { (exit 77); exit 77; }; } | |
1fd5e000 CF |
1844 | fi |
1845 | ||
99fc5e10 CF |
1846 | ac_exeext=$ac_cv_exeext |
1847 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1848 | echo "${ECHO_T}$ac_file" >&6 | |
1849 | ||
1850 | # Check the compiler produces executables we can run. If not, either | |
1851 | # the compiler is broken, or we cross compile. | |
1852 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1853 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1854 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1855 | # If not cross compiling, check that we can run a simple program. | |
1856 | if test "$cross_compiling" != yes; then | |
1857 | if { ac_try='./$ac_file' | |
1858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1859 | (eval $ac_try) 2>&5 | |
1860 | ac_status=$? | |
1861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1862 | (exit $ac_status); }; }; then | |
1863 | cross_compiling=no | |
1864 | else | |
1865 | if test "$cross_compiling" = maybe; then | |
1866 | cross_compiling=yes | |
1867 | else | |
1868 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1869 | If you meant to cross compile, use \`--host'. | |
1870 | See \`config.log' for more details." >&5 | |
1871 | echo "$as_me: error: cannot run C compiled programs. | |
1872 | If you meant to cross compile, use \`--host'. | |
1873 | See \`config.log' for more details." >&2;} | |
1874 | { (exit 1); exit 1; }; } | |
1875 | fi | |
1876 | fi | |
1877 | fi | |
1878 | echo "$as_me:$LINENO: result: yes" >&5 | |
1879 | echo "${ECHO_T}yes" >&6 | |
1880 | ||
1881 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1882 | ac_clean_files=$ac_clean_files_save | |
1883 | # Check the compiler produces executables we can run. If not, either | |
1884 | # the compiler is broken, or we cross compile. | |
1885 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1886 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1887 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1888 | echo "${ECHO_T}$cross_compiling" >&6 | |
1889 | ||
1890 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1891 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1893 | (eval $ac_link) 2>&5 | |
1894 | ac_status=$? | |
1895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1896 | (exit $ac_status); }; then | |
1897 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1898 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1899 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1900 | # `rm'. | |
1901 | for ac_file in conftest.exe conftest conftest.*; do | |
1902 | test -f "$ac_file" || continue | |
1903 | case $ac_file in | |
1904 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1905 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1906 | export ac_cv_exeext | |
1907 | break;; | |
1908 | * ) break;; | |
1909 | esac | |
1910 | done | |
1911 | else | |
1912 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1913 | See \`config.log' for more details." >&5 | |
1914 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1915 | See \`config.log' for more details." >&2;} | |
1916 | { (exit 1); exit 1; }; } | |
1917 | fi | |
1918 | ||
1919 | rm -f conftest$ac_cv_exeext | |
1920 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1921 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1922 | ||
1923 | rm -f conftest.$ac_ext | |
1924 | EXEEXT=$ac_cv_exeext | |
1925 | ac_exeext=$EXEEXT | |
1926 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1927 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1928 | if test "${ac_cv_objext+set}" = set; then | |
1929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1930 | else | |
1931 | cat >conftest.$ac_ext <<_ACEOF | |
1932 | /* confdefs.h. */ | |
1933 | _ACEOF | |
1934 | cat confdefs.h >>conftest.$ac_ext | |
1935 | cat >>conftest.$ac_ext <<_ACEOF | |
1936 | /* end confdefs.h. */ | |
1937 | ||
1938 | int | |
1939 | main () | |
1940 | { | |
1941 | ||
1942 | ; | |
1943 | return 0; | |
1944 | } | |
1945 | _ACEOF | |
1946 | rm -f conftest.o conftest.obj | |
1947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1948 | (eval $ac_compile) 2>&5 | |
1949 | ac_status=$? | |
1950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1951 | (exit $ac_status); }; then | |
1952 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1953 | case $ac_file in | |
1954 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1955 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1956 | break;; | |
1957 | esac | |
1958 | done | |
1959 | else | |
1960 | echo "$as_me: failed program was:" >&5 | |
1961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1962 | ||
1963 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1964 | See \`config.log' for more details." >&5 | |
1965 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1966 | See \`config.log' for more details." >&2;} | |
1967 | { (exit 1); exit 1; }; } | |
1968 | fi | |
1969 | ||
1970 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1971 | fi | |
1972 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1973 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1974 | OBJEXT=$ac_cv_objext | |
1975 | ac_objext=$OBJEXT | |
1976 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1977 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1978 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1980 | else | |
1981 | cat >conftest.$ac_ext <<_ACEOF | |
1982 | /* confdefs.h. */ | |
1983 | _ACEOF | |
1984 | cat confdefs.h >>conftest.$ac_ext | |
1985 | cat >>conftest.$ac_ext <<_ACEOF | |
1986 | /* end confdefs.h. */ | |
1987 | ||
1988 | int | |
1989 | main () | |
1990 | { | |
1991 | #ifndef __GNUC__ | |
1992 | choke me | |
1993 | #endif | |
1994 | ||
1995 | ; | |
1996 | return 0; | |
1997 | } | |
1998 | _ACEOF | |
1999 | rm -f conftest.$ac_objext | |
2000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2001 | (eval $ac_compile) 2>conftest.er1 | |
2002 | ac_status=$? | |
2003 | grep -v '^ *+' conftest.er1 >conftest.err | |
2004 | rm -f conftest.er1 | |
2005 | cat conftest.err >&5 | |
2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2007 | (exit $ac_status); } && | |
2008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2010 | (eval $ac_try) 2>&5 | |
2011 | ac_status=$? | |
2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2013 | (exit $ac_status); }; } && | |
2014 | { ac_try='test -s conftest.$ac_objext' | |
2015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2016 | (eval $ac_try) 2>&5 | |
2017 | ac_status=$? | |
2018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2019 | (exit $ac_status); }; }; then | |
2020 | ac_compiler_gnu=yes | |
2021 | else | |
2022 | echo "$as_me: failed program was:" >&5 | |
2023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2024 | ||
2025 | ac_compiler_gnu=no | |
2026 | fi | |
2027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2028 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2029 | ||
2030 | fi | |
2031 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2032 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2033 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2034 | ac_test_CFLAGS=${CFLAGS+set} | |
2035 | ac_save_CFLAGS=$CFLAGS | |
2036 | CFLAGS="-g" | |
2037 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2038 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2039 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2041 | else | |
2042 | cat >conftest.$ac_ext <<_ACEOF | |
2043 | /* confdefs.h. */ | |
2044 | _ACEOF | |
2045 | cat confdefs.h >>conftest.$ac_ext | |
2046 | cat >>conftest.$ac_ext <<_ACEOF | |
2047 | /* end confdefs.h. */ | |
2048 | ||
2049 | int | |
2050 | main () | |
2051 | { | |
2052 | ||
2053 | ; | |
2054 | return 0; | |
2055 | } | |
2056 | _ACEOF | |
2057 | rm -f conftest.$ac_objext | |
2058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2059 | (eval $ac_compile) 2>conftest.er1 | |
2060 | ac_status=$? | |
2061 | grep -v '^ *+' conftest.er1 >conftest.err | |
2062 | rm -f conftest.er1 | |
2063 | cat conftest.err >&5 | |
2064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2065 | (exit $ac_status); } && | |
2066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2068 | (eval $ac_try) 2>&5 | |
2069 | ac_status=$? | |
2070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2071 | (exit $ac_status); }; } && | |
2072 | { ac_try='test -s conftest.$ac_objext' | |
2073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2074 | (eval $ac_try) 2>&5 | |
2075 | ac_status=$? | |
2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2077 | (exit $ac_status); }; }; then | |
2078 | ac_cv_prog_cc_g=yes | |
2079 | else | |
2080 | echo "$as_me: failed program was:" >&5 | |
2081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2082 | ||
2083 | ac_cv_prog_cc_g=no | |
2084 | fi | |
2085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2086 | fi | |
2087 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2088 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2089 | if test "$ac_test_CFLAGS" = set; then | |
2090 | CFLAGS=$ac_save_CFLAGS | |
2091 | elif test $ac_cv_prog_cc_g = yes; then | |
2092 | if test "$GCC" = yes; then | |
1fd5e000 CF |
2093 | CFLAGS="-g -O2" |
2094 | else | |
99fc5e10 | 2095 | CFLAGS="-g" |
1fd5e000 | 2096 | fi |
99fc5e10 CF |
2097 | else |
2098 | if test "$GCC" = yes; then | |
2099 | CFLAGS="-O2" | |
2100 | else | |
2101 | CFLAGS= | |
1fd5e000 | 2102 | fi |
99fc5e10 CF |
2103 | fi |
2104 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2105 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2106 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2108 | else | |
2109 | ac_cv_prog_cc_stdc=no | |
2110 | ac_save_CC=$CC | |
2111 | cat >conftest.$ac_ext <<_ACEOF | |
2112 | /* confdefs.h. */ | |
2113 | _ACEOF | |
2114 | cat confdefs.h >>conftest.$ac_ext | |
2115 | cat >>conftest.$ac_ext <<_ACEOF | |
2116 | /* end confdefs.h. */ | |
2117 | #include <stdarg.h> | |
2118 | #include <stdio.h> | |
2119 | #include <sys/types.h> | |
2120 | #include <sys/stat.h> | |
2121 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2122 | struct buf { int x; }; | |
2123 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2124 | static char *e (p, i) | |
2125 | char **p; | |
2126 | int i; | |
2127 | { | |
2128 | return p[i]; | |
2129 | } | |
2130 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2131 | { | |
2132 | char *s; | |
2133 | va_list v; | |
2134 | va_start (v,p); | |
2135 | s = g (p, va_arg (v,int)); | |
2136 | va_end (v); | |
2137 | return s; | |
2138 | } | |
2139 | ||
2140 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2141 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2142 | These don't provoke an error unfortunately, instead are silently treated | |
2143 | as 'x'. The following induces an error, until -std1 is added to get | |
2144 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2145 | array size at least. It's necessary to write '\x00'==0 to get something | |
2146 | that's true only with -std1. */ | |
2147 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2148 | ||
2149 | int test (int i, double x); | |
2150 | struct s1 {int (*f) (int a);}; | |
2151 | struct s2 {int (*f) (double a);}; | |
2152 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2153 | int argc; | |
2154 | char **argv; | |
2155 | int | |
2156 | main () | |
2157 | { | |
2158 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2159 | ; | |
2160 | return 0; | |
2161 | } | |
2162 | _ACEOF | |
2163 | # Don't try gcc -ansi; that turns off useful extensions and | |
2164 | # breaks some systems' header files. | |
2165 | # AIX -qlanglvl=ansi | |
2166 | # Ultrix and OSF/1 -std1 | |
2167 | # HP-UX 10.20 and later -Ae | |
2168 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2169 | # SVR4 -Xc -D__EXTENSIONS__ | |
2170 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2171 | do | |
2172 | CC="$ac_save_CC $ac_arg" | |
2173 | rm -f conftest.$ac_objext | |
2174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2175 | (eval $ac_compile) 2>conftest.er1 | |
2176 | ac_status=$? | |
2177 | grep -v '^ *+' conftest.er1 >conftest.err | |
2178 | rm -f conftest.er1 | |
2179 | cat conftest.err >&5 | |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2181 | (exit $ac_status); } && | |
2182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2184 | (eval $ac_try) 2>&5 | |
2185 | ac_status=$? | |
2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2187 | (exit $ac_status); }; } && | |
2188 | { ac_try='test -s conftest.$ac_objext' | |
2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2190 | (eval $ac_try) 2>&5 | |
2191 | ac_status=$? | |
2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2193 | (exit $ac_status); }; }; then | |
2194 | ac_cv_prog_cc_stdc=$ac_arg | |
2195 | break | |
1fd5e000 | 2196 | else |
99fc5e10 CF |
2197 | echo "$as_me: failed program was:" >&5 |
2198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2199 | ||
1fd5e000 | 2200 | fi |
99fc5e10 CF |
2201 | rm -f conftest.err conftest.$ac_objext |
2202 | done | |
2203 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2204 | CC=$ac_save_CC | |
2205 | ||
2206 | fi | |
2207 | ||
2208 | case "x$ac_cv_prog_cc_stdc" in | |
2209 | x|xno) | |
2210 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2211 | echo "${ECHO_T}none needed" >&6 ;; | |
2212 | *) | |
2213 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2214 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2215 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2216 | esac | |
2217 | ||
2218 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2219 | # in C++ we need to declare it. In case someone uses the same compiler | |
2220 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2221 | # the declaration of exit, since it's the most demanding environment. | |
2222 | cat >conftest.$ac_ext <<_ACEOF | |
2223 | #ifndef __cplusplus | |
2224 | choke me | |
2225 | #endif | |
2226 | _ACEOF | |
2227 | rm -f conftest.$ac_objext | |
2228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2229 | (eval $ac_compile) 2>conftest.er1 | |
2230 | ac_status=$? | |
2231 | grep -v '^ *+' conftest.er1 >conftest.err | |
2232 | rm -f conftest.er1 | |
2233 | cat conftest.err >&5 | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); } && | |
2236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2238 | (eval $ac_try) 2>&5 | |
2239 | ac_status=$? | |
2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2241 | (exit $ac_status); }; } && | |
2242 | { ac_try='test -s conftest.$ac_objext' | |
2243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2244 | (eval $ac_try) 2>&5 | |
2245 | ac_status=$? | |
2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2247 | (exit $ac_status); }; }; then | |
2248 | for ac_declaration in \ | |
2249 | '' \ | |
2250 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2251 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2252 | 'extern "C" void exit (int) throw ();' \ | |
2253 | 'extern "C" void exit (int);' \ | |
2254 | 'void exit (int);' | |
2255 | do | |
2256 | cat >conftest.$ac_ext <<_ACEOF | |
2257 | /* confdefs.h. */ | |
2258 | _ACEOF | |
2259 | cat confdefs.h >>conftest.$ac_ext | |
2260 | cat >>conftest.$ac_ext <<_ACEOF | |
2261 | /* end confdefs.h. */ | |
2262 | $ac_declaration | |
2263 | #include <stdlib.h> | |
2264 | int | |
2265 | main () | |
2266 | { | |
2267 | exit (42); | |
2268 | ; | |
2269 | return 0; | |
2270 | } | |
2271 | _ACEOF | |
2272 | rm -f conftest.$ac_objext | |
2273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2274 | (eval $ac_compile) 2>conftest.er1 | |
2275 | ac_status=$? | |
2276 | grep -v '^ *+' conftest.er1 >conftest.err | |
2277 | rm -f conftest.er1 | |
2278 | cat conftest.err >&5 | |
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2280 | (exit $ac_status); } && | |
2281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2283 | (eval $ac_try) 2>&5 | |
2284 | ac_status=$? | |
2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2286 | (exit $ac_status); }; } && | |
2287 | { ac_try='test -s conftest.$ac_objext' | |
2288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2289 | (eval $ac_try) 2>&5 | |
2290 | ac_status=$? | |
2291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2292 | (exit $ac_status); }; }; then | |
2293 | : | |
2294 | else | |
2295 | echo "$as_me: failed program was:" >&5 | |
2296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2297 | ||
2298 | continue | |
2299 | fi | |
2300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2301 | cat >conftest.$ac_ext <<_ACEOF | |
2302 | /* confdefs.h. */ | |
2303 | _ACEOF | |
2304 | cat confdefs.h >>conftest.$ac_ext | |
2305 | cat >>conftest.$ac_ext <<_ACEOF | |
2306 | /* end confdefs.h. */ | |
2307 | $ac_declaration | |
2308 | int | |
2309 | main () | |
2310 | { | |
2311 | exit (42); | |
2312 | ; | |
2313 | return 0; | |
2314 | } | |
2315 | _ACEOF | |
2316 | rm -f conftest.$ac_objext | |
2317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2318 | (eval $ac_compile) 2>conftest.er1 | |
2319 | ac_status=$? | |
2320 | grep -v '^ *+' conftest.er1 >conftest.err | |
2321 | rm -f conftest.er1 | |
2322 | cat conftest.err >&5 | |
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2324 | (exit $ac_status); } && | |
2325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2327 | (eval $ac_try) 2>&5 | |
2328 | ac_status=$? | |
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2330 | (exit $ac_status); }; } && | |
2331 | { ac_try='test -s conftest.$ac_objext' | |
2332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2333 | (eval $ac_try) 2>&5 | |
2334 | ac_status=$? | |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | (exit $ac_status); }; }; then | |
2337 | break | |
2338 | else | |
2339 | echo "$as_me: failed program was:" >&5 | |
2340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2341 | ||
2342 | fi | |
2343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2344 | done | |
2345 | rm -f conftest* | |
2346 | if test -n "$ac_declaration"; then | |
2347 | echo '#ifdef __cplusplus' >>confdefs.h | |
2348 | echo $ac_declaration >>confdefs.h | |
2349 | echo '#endif' >>confdefs.h | |
2350 | fi | |
2351 | ||
2352 | else | |
2353 | echo "$as_me: failed program was:" >&5 | |
2354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2355 | ||
2356 | fi | |
2357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2358 | ac_ext=c | |
2359 | ac_cpp='$CPP $CPPFLAGS' | |
2360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2363 | ||
2364 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 | |
2365 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
2366 | { (exit 1); exit 1; }; } | |
1fd5e000 CF |
2367 | |
2368 | ||
2369 | ||
2370 | ||
99fc5e10 CF |
2371 | ac_config_files="$ac_config_files Makefile" |
2372 | cat >confcache <<\_ACEOF | |
1fd5e000 CF |
2373 | # This file is a shell script that caches the results of configure |
2374 | # tests run on this system so they can be shared between configure | |
99fc5e10 CF |
2375 | # scripts and configure runs, see configure's option --config-cache. |
2376 | # It is not useful on other systems. If it contains results you don't | |
2377 | # want to keep, you may remove or edit it. | |
1fd5e000 | 2378 | # |
99fc5e10 CF |
2379 | # config.status only pays attention to the cache file if you give it |
2380 | # the --recheck option to rerun configure. | |
1fd5e000 | 2381 | # |
99fc5e10 CF |
2382 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
2383 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2384 | # following values. | |
2385 | ||
2386 | _ACEOF | |
2387 | ||
1fd5e000 CF |
2388 | # The following way of writing the cache mishandles newlines in values, |
2389 | # but we know of no workaround that is simple, portable, and efficient. | |
2390 | # So, don't put newlines in cache variables' values. | |
2391 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2392 | # and sets the high bit in the cache file unless we assign to the vars. | |
99fc5e10 CF |
2393 | { |
2394 | (set) 2>&1 | | |
2395 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2396 | *ac_space=\ *) | |
2397 | # `set' does not quote correctly, so add quotes (double-quote | |
2398 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
2399 | sed -n \ | |
2400 | "s/'/'\\\\''/g; | |
2401 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2402 | ;; | |
2403 | *) | |
2404 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2405 | sed -n \ | |
2406 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
2407 | ;; | |
2408 | esac; | |
2409 | } | | |
2410 | sed ' | |
2411 | t clear | |
2412 | : clear | |
2413 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
2414 | t end | |
2415 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
2416 | : end' >>confcache | |
2417 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
1fd5e000 | 2418 | if test -w $cache_file; then |
99fc5e10 CF |
2419 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
2420 | cat confcache >$cache_file | |
1fd5e000 CF |
2421 | else |
2422 | echo "not updating unwritable cache $cache_file" | |
2423 | fi | |
2424 | fi | |
2425 | rm -f confcache | |
2426 | ||
1fd5e000 CF |
2427 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
2428 | # Let make expand exec_prefix. | |
2429 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2430 | ||
99fc5e10 CF |
2431 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
2432 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
2433 | # trailing colons and then remove the whole line if VPATH becomes empty | |
2434 | # (actually we leave an empty line to preserve line numbers). | |
1fd5e000 | 2435 | if test "x$srcdir" = x.; then |
99fc5e10 CF |
2436 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
2437 | s/:*\$(srcdir):*/:/; | |
2438 | s/:*\${srcdir}:*/:/; | |
2439 | s/:*@srcdir@:*/:/; | |
2440 | s/^\([^=]*=[ ]*\):*/\1/; | |
2441 | s/:*$//; | |
2442 | s/^[^=]*=[ ]*$//; | |
2443 | }' | |
1fd5e000 CF |
2444 | fi |
2445 | ||
1fd5e000 CF |
2446 | # Transform confdefs.h into DEFS. |
2447 | # Protect against shell expansion while executing Makefile rules. | |
2448 | # Protect against Makefile macro expansion. | |
99fc5e10 CF |
2449 | # |
2450 | # If the first sed substitution is executed (which looks for macros that | |
2451 | # take arguments), then we branch to the quote section. Otherwise, | |
2452 | # look for a macro that doesn't take arguments. | |
2453 | cat >confdef2opt.sed <<\_ACEOF | |
2454 | t clear | |
2455 | : clear | |
2456 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
2457 | t quote | |
2458 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
2459 | t quote | |
2460 | d | |
2461 | : quote | |
2462 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
2463 | s,\[,\\&,g | |
2464 | s,\],\\&,g | |
2465 | s,\$,$$,g | |
2466 | p | |
2467 | _ACEOF | |
2468 | # We use echo to avoid assuming a particular line-breaking character. | |
2469 | # The extra dot is to prevent the shell from consuming trailing | |
2470 | # line-breaks from the sub-command output. A line-break within | |
2471 | # single-quotes doesn't work because, if this script is created in a | |
2472 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
2473 | # would break. | |
2474 | ac_LF_and_DOT=`echo; echo .` | |
2475 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
2476 | rm -f confdef2opt.sed | |
2477 | ||
2478 | ||
2479 | ac_libobjs= | |
2480 | ac_ltlibobjs= | |
2481 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
2482 | # 1. Remove the extension, and $U if already installed. | |
2483 | ac_i=`echo "$ac_i" | | |
2484 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
2485 | # 2. Add them. | |
2486 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
2487 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
2488 | done | |
2489 | LIBOBJS=$ac_libobjs | |
1fd5e000 | 2490 | |
99fc5e10 CF |
2491 | LTLIBOBJS=$ac_ltlibobjs |
2492 | ||
2493 | ||
2494 | ||
2495 | : ${CONFIG_STATUS=./config.status} | |
2496 | ac_clean_files_save=$ac_clean_files | |
2497 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
2498 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
2499 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
2500 | cat >$CONFIG_STATUS <<_ACEOF | |
2501 | #! $SHELL | |
2502 | # Generated by $as_me. | |
1fd5e000 | 2503 | # Run this file to recreate the current configuration. |
1fd5e000 | 2504 | # Compiler output produced by configure, useful for debugging |
99fc5e10 CF |
2505 | # configure, is in config.log if it exists. |
2506 | ||
2507 | debug=false | |
2508 | ac_cs_recheck=false | |
2509 | ac_cs_silent=false | |
2510 | SHELL=\${CONFIG_SHELL-$SHELL} | |
2511 | _ACEOF | |
2512 | ||
2513 | cat >>$CONFIG_STATUS <<\_ACEOF | |
2514 | ## --------------------- ## | |
2515 | ## M4sh Initialization. ## | |
2516 | ## --------------------- ## | |
2517 | ||
2518 | # Be Bourne compatible | |
2519 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
2520 | emulate sh | |
2521 | NULLCMD=: | |
2522 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
2523 | # is contrary to our usage. Disable this feature. | |
2524 | alias -g '${1+"$@"}'='"$@"' | |
2525 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
2526 | set -o posix | |
2527 | fi | |
2528 | DUALCASE=1; export DUALCASE # for MKS sh | |
1fd5e000 | 2529 | |
99fc5e10 CF |
2530 | # Support unset when possible. |
2531 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
2532 | as_unset=unset | |
2533 | else | |
2534 | as_unset=false | |
2535 | fi | |
2536 | ||
2537 | ||
2538 | # Work around bugs in pre-3.0 UWIN ksh. | |
2539 | $as_unset ENV MAIL MAILPATH | |
2540 | PS1='$ ' | |
2541 | PS2='> ' | |
2542 | PS4='+ ' | |
2543 | ||
2544 | # NLS nuisances. | |
2545 | for as_var in \ | |
2546 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
2547 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
2548 | LC_TELEPHONE LC_TIME | |
1fd5e000 | 2549 | do |
99fc5e10 CF |
2550 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
2551 | eval $as_var=C; export $as_var | |
2552 | else | |
2553 | $as_unset $as_var | |
2554 | fi | |
1fd5e000 CF |
2555 | done |
2556 | ||
99fc5e10 CF |
2557 | # Required to use basename. |
2558 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
2559 | as_expr=expr | |
2560 | else | |
2561 | as_expr=false | |
2562 | fi | |
1fd5e000 | 2563 | |
99fc5e10 CF |
2564 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
2565 | as_basename=basename | |
2566 | else | |
2567 | as_basename=false | |
2568 | fi | |
1fd5e000 | 2569 | |
1fd5e000 | 2570 | |
99fc5e10 CF |
2571 | # Name of the executable. |
2572 | as_me=`$as_basename "$0" || | |
2573 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
2574 | X"$0" : 'X\(//\)$' \| \ | |
2575 | X"$0" : 'X\(/\)$' \| \ | |
2576 | . : '\(.\)' 2>/dev/null || | |
2577 | echo X/"$0" | | |
2578 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
2579 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
2580 | /^X\/\(\/\).*/{ s//\1/; q; } | |
2581 | s/.*/./; q'` | |
2582 | ||
2583 | ||
2584 | # PATH needs CR, and LINENO needs CR and PATH. | |
2585 | # Avoid depending upon Character Ranges. | |
2586 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
2587 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
2588 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
2589 | as_cr_digits='0123456789' | |
2590 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
2591 | ||
2592 | # The user is always right. | |
2593 | if test "${PATH_SEPARATOR+set}" != set; then | |
2594 | echo "#! /bin/sh" >conf$$.sh | |
2595 | echo "exit 0" >>conf$$.sh | |
2596 | chmod +x conf$$.sh | |
2597 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
2598 | PATH_SEPARATOR=';' | |
1fd5e000 | 2599 | else |
99fc5e10 | 2600 | PATH_SEPARATOR=: |
1fd5e000 | 2601 | fi |
99fc5e10 CF |
2602 | rm -f conf$$.sh |
2603 | fi | |
2604 | ||
2605 | ||
2606 | as_lineno_1=$LINENO | |
2607 | as_lineno_2=$LINENO | |
2608 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
2609 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
2610 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
2611 | # Find who we are. Look in the path if we contain no path at all | |
2612 | # relative or not. | |
2613 | case $0 in | |
2614 | *[\\/]* ) as_myself=$0 ;; | |
2615 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2616 | for as_dir in $PATH | |
2617 | do | |
2618 | IFS=$as_save_IFS | |
2619 | test -z "$as_dir" && as_dir=. | |
2620 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
2621 | done | |
2622 | ||
2623 | ;; | |
2624 | esac | |
2625 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
2626 | # in which case we are not to be found in the path. | |
2627 | if test "x$as_myself" = x; then | |
2628 | as_myself=$0 | |
2629 | fi | |
2630 | if test ! -f "$as_myself"; then | |
2631 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
2632 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
2633 | { (exit 1); exit 1; }; } | |
2634 | fi | |
2635 | case $CONFIG_SHELL in | |
2636 | '') | |
2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2638 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
2639 | do | |
2640 | IFS=$as_save_IFS | |
2641 | test -z "$as_dir" && as_dir=. | |
2642 | for as_base in sh bash ksh sh5; do | |
2643 | case $as_dir in | |
2644 | /*) | |
2645 | if ("$as_dir/$as_base" -c ' | |
2646 | as_lineno_1=$LINENO | |
2647 | as_lineno_2=$LINENO | |
2648 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
2649 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
2650 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
2651 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
2652 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
2653 | CONFIG_SHELL=$as_dir/$as_base | |
2654 | export CONFIG_SHELL | |
2655 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
2656 | fi;; | |
2657 | esac | |
2658 | done | |
2659 | done | |
2660 | ;; | |
2661 | esac | |
2662 | ||
2663 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
2664 | # uniformly replaced by the line number. The first 'sed' inserts a | |
2665 | # line-number line before each line; the second 'sed' does the real | |
2666 | # work. The second script uses 'N' to pair each line-number line | |
2667 | # with the numbered line, and appends trailing '-' during | |
2668 | # substitution so that $LINENO is not a special case at line end. | |
2669 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
2670 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
2671 | sed '=' <$as_myself | | |
2672 | sed ' | |
2673 | N | |
2674 | s,$,-, | |
2675 | : loop | |
2676 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
2677 | t loop | |
2678 | s,-$,, | |
2679 | s,^['$as_cr_digits']*\n,, | |
2680 | ' >$as_me.lineno && | |
2681 | chmod +x $as_me.lineno || | |
2682 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
2683 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
2684 | { (exit 1); exit 1; }; } | |
2685 | ||
2686 | # Don't try to exec as it changes $[0], causing all sort of problems | |
2687 | # (the dirname of $[0] is not the place where we might find the | |
2688 | # original and so on. Autoconf is especially sensible to this). | |
2689 | . ./$as_me.lineno | |
2690 | # Exit status is that of the last command. | |
2691 | exit | |
2692 | } | |
2693 | ||
2694 | ||
2695 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
2696 | *c*,-n*) ECHO_N= ECHO_C=' | |
2697 | ' ECHO_T=' ' ;; | |
2698 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
2699 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
2700 | esac | |
2701 | ||
2702 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
2703 | as_expr=expr | |
2704 | else | |
2705 | as_expr=false | |
2706 | fi | |
2707 | ||
2708 | rm -f conf$$ conf$$.exe conf$$.file | |
2709 | echo >conf$$.file | |
2710 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2711 | # We could just check for DJGPP; but this test a) works b) is more generic | |
2712 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
2713 | if test -f conf$$.exe; then | |
2714 | # Don't use ln at all; we don't have any links | |
2715 | as_ln_s='cp -p' | |
1fd5e000 | 2716 | else |
99fc5e10 | 2717 | as_ln_s='ln -s' |
1fd5e000 | 2718 | fi |
99fc5e10 CF |
2719 | elif ln conf$$.file conf$$ 2>/dev/null; then |
2720 | as_ln_s=ln | |
2721 | else | |
2722 | as_ln_s='cp -p' | |
2723 | fi | |
2724 | rm -f conf$$ conf$$.exe conf$$.file | |
2725 | ||
2726 | if mkdir -p . 2>/dev/null; then | |
2727 | as_mkdir_p=: | |
2728 | else | |
2729 | test -d ./-p && rmdir ./-p | |
2730 | as_mkdir_p=false | |
2731 | fi | |
2732 | ||
2733 | as_executable_p="test -f" | |
2734 | ||
2735 | # Sed expression to map a string onto a valid CPP name. | |
2736 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
2737 | ||
2738 | # Sed expression to map a string onto a valid variable name. | |
2739 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
2740 | ||
2741 | ||
2742 | # IFS | |
2743 | # We need space, tab and new line, in precisely that order. | |
2744 | as_nl=' | |
2745 | ' | |
2746 | IFS=" $as_nl" | |
2747 | ||
2748 | # CDPATH. | |
2749 | $as_unset CDPATH | |
2750 | ||
2751 | exec 6>&1 | |
2752 | ||
2753 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
2754 | # report actual input values of CONFIG_FILES etc. instead of their | |
2755 | # values after options handling. Logging --version etc. is OK. | |
2756 | exec 5>>config.log | |
2757 | { | |
2758 | echo | |
2759 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
2760 | ## Running $as_me. ## | |
2761 | _ASBOX | |
2762 | } >&5 | |
2763 | cat >&5 <<_CSEOF | |
2764 | ||
2765 | This file was extended by $as_me, which was | |
2766 | generated by GNU Autoconf 2.59. Invocation command line was | |
2767 | ||
2768 | CONFIG_FILES = $CONFIG_FILES | |
2769 | CONFIG_HEADERS = $CONFIG_HEADERS | |
2770 | CONFIG_LINKS = $CONFIG_LINKS | |
2771 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
2772 | $ $0 $@ | |
2773 | ||
2774 | _CSEOF | |
2775 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
2776 | echo >&5 | |
2777 | _ACEOF | |
2778 | ||
2779 | # Files that config.status was made for. | |
2780 | if test -n "$ac_config_files"; then | |
2781 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
2782 | fi | |
2783 | ||
2784 | if test -n "$ac_config_headers"; then | |
2785 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
2786 | fi | |
2787 | ||
2788 | if test -n "$ac_config_links"; then | |
2789 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
2790 | fi | |
2791 | ||
2792 | if test -n "$ac_config_commands"; then | |
2793 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
2794 | fi | |
2795 | ||
2796 | cat >>$CONFIG_STATUS <<\_ACEOF | |
2797 | ||
2798 | ac_cs_usage="\ | |
2799 | \`$as_me' instantiates files from templates according to the | |
2800 | current configuration. | |
2801 | ||
2802 | Usage: $0 [OPTIONS] [FILE]... | |
2803 | ||
2804 | -h, --help print this help, then exit | |
2805 | -V, --version print version number, then exit | |
2806 | -q, --quiet do not print progress messages | |
2807 | -d, --debug don't remove temporary files | |
2808 | --recheck update $as_me by reconfiguring in the same conditions | |
2809 | --file=FILE[:TEMPLATE] | |
2810 | instantiate the configuration file FILE | |
2811 | ||
2812 | Configuration files: | |
2813 | $config_files | |
2814 | ||
2815 | Report bugs to <bug-autoconf@gnu.org>." | |
2816 | _ACEOF | |
2817 | ||
2818 | cat >>$CONFIG_STATUS <<_ACEOF | |
2819 | ac_cs_version="\\ | |
2820 | config.status | |
2821 | configured by $0, generated by GNU Autoconf 2.59, | |
2822 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
2823 | ||
2824 | Copyright (C) 2003 Free Software Foundation, Inc. | |
2825 | This config.status script is free software; the Free Software Foundation | |
2826 | gives unlimited permission to copy, distribute and modify it." | |
2827 | srcdir=$srcdir | |
2828 | _ACEOF | |
2829 | ||
2830 | cat >>$CONFIG_STATUS <<\_ACEOF | |
2831 | # If no file are specified by the user, then we need to provide default | |
2832 | # value. By we need to know if files were specified by the user. | |
2833 | ac_need_defaults=: | |
2834 | while test $# != 0 | |
2835 | do | |
2836 | case $1 in | |
2837 | --*=*) | |
2838 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
2839 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
2840 | ac_shift=: | |
2841 | ;; | |
2842 | -*) | |
2843 | ac_option=$1 | |
2844 | ac_optarg=$2 | |
2845 | ac_shift=shift | |
2846 | ;; | |
2847 | *) # This is not an option, so the user has probably given explicit | |
2848 | # arguments. | |
2849 | ac_option=$1 | |
2850 | ac_need_defaults=false;; | |
2851 | esac | |
2852 | ||
2853 | case $ac_option in | |
2854 | # Handling of the options. | |
2855 | _ACEOF | |
2856 | cat >>$CONFIG_STATUS <<\_ACEOF | |
2857 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2858 | ac_cs_recheck=: ;; | |
2859 | --version | --vers* | -V ) | |
2860 | echo "$ac_cs_version"; exit 0 ;; | |
2861 | --he | --h) | |
2862 | # Conflict between --help and --header | |
2863 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
2864 | Try \`$0 --help' for more information." >&5 | |
2865 | echo "$as_me: error: ambiguous option: $1 | |
2866 | Try \`$0 --help' for more information." >&2;} | |
2867 | { (exit 1); exit 1; }; };; | |
2868 | --help | --hel | -h ) | |
2869 | echo "$ac_cs_usage"; exit 0 ;; | |
2870 | --debug | --d* | -d ) | |
2871 | debug=: ;; | |
2872 | --file | --fil | --fi | --f ) | |
2873 | $ac_shift | |
2874 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
2875 | ac_need_defaults=false;; | |
2876 | --header | --heade | --head | --hea ) | |
2877 | $ac_shift | |
2878 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
2879 | ac_need_defaults=false;; | |
2880 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2881 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
2882 | ac_cs_silent=: ;; | |
2883 | ||
2884 | # This is an error. | |
2885 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
2886 | Try \`$0 --help' for more information." >&5 | |
2887 | echo "$as_me: error: unrecognized option: $1 | |
2888 | Try \`$0 --help' for more information." >&2;} | |
2889 | { (exit 1); exit 1; }; } ;; | |
2890 | ||
2891 | *) ac_config_targets="$ac_config_targets $1" ;; | |
2892 | ||
2893 | esac | |
2894 | shift | |
1fd5e000 | 2895 | done |
99fc5e10 CF |
2896 | |
2897 | ac_configure_extra_args= | |
2898 | ||
2899 | if $ac_cs_silent; then | |
2900 | exec 6>/dev/null | |
2901 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
1fd5e000 | 2902 | fi |
1fd5e000 | 2903 | |
99fc5e10 CF |
2904 | _ACEOF |
2905 | cat >>$CONFIG_STATUS <<_ACEOF | |
2906 | if \$ac_cs_recheck; then | |
2907 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
2908 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
2909 | fi | |
1fd5e000 | 2910 | |
99fc5e10 CF |
2911 | _ACEOF |
2912 | ||
2913 | ||
2914 | ||
2915 | ||
2916 | ||
2917 | cat >>$CONFIG_STATUS <<\_ACEOF | |
2918 | for ac_config_target in $ac_config_targets | |
2919 | do | |
2920 | case "$ac_config_target" in | |
2921 | # Handling of arguments. | |
2922 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
2923 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
2924 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
2925 | { (exit 1); exit 1; }; };; | |
1fd5e000 | 2926 | esac |
99fc5e10 CF |
2927 | done |
2928 | ||
2929 | # If the user did not use the arguments to specify the items to instantiate, | |
2930 | # then the envvar interface is used. Set only those that are not. | |
2931 | # We use the long form for the default assignment because of an extremely | |
2932 | # bizarre bug on SunOS 4.1.3. | |
2933 | if $ac_need_defaults; then | |
2934 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
2935 | fi | |
1fd5e000 | 2936 | |
99fc5e10 CF |
2937 | # Have a temporary directory for convenience. Make it in the build tree |
2938 | # simply because there is no reason to put it here, and in addition, | |
2939 | # creating and moving files from /tmp can sometimes cause problems. | |
2940 | # Create a temporary directory, and hook for its removal unless debugging. | |
2941 | $debug || | |
2942 | { | |
2943 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
2944 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
2945 | } | |
2946 | ||
2947 | # Create a (secure) tmp directory for tmp files. | |
2948 | ||
2949 | { | |
2950 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
2951 | test -n "$tmp" && test -d "$tmp" | |
2952 | } || | |
2953 | { | |
2954 | tmp=./confstat$$-$RANDOM | |
2955 | (umask 077 && mkdir $tmp) | |
2956 | } || | |
2957 | { | |
2958 | echo "$me: cannot create a temporary directory in ." >&2 | |
2959 | { (exit 1); exit 1; } | |
2960 | } | |
2961 | ||
2962 | _ACEOF | |
2963 | ||
2964 | cat >>$CONFIG_STATUS <<_ACEOF | |
1fd5e000 | 2965 | |
99fc5e10 CF |
2966 | # |
2967 | # CONFIG_FILES section. | |
2968 | # | |
2969 | ||
2970 | # No need to generate the scripts if there are no CONFIG_FILES. | |
2971 | # This happens for instance when ./config.status config.h | |
2972 | if test -n "\$CONFIG_FILES"; then | |
2973 | # Protect against being on the right side of a sed subst in config.status. | |
2974 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
2975 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
2976 | s,@SHELL@,$SHELL,;t t | |
2977 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
2978 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
2979 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
2980 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
2981 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
2982 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
2983 | s,@exec_prefix@,$exec_prefix,;t t | |
2984 | s,@prefix@,$prefix,;t t | |
2985 | s,@program_transform_name@,$program_transform_name,;t t | |
2986 | s,@bindir@,$bindir,;t t | |
2987 | s,@sbindir@,$sbindir,;t t | |
2988 | s,@libexecdir@,$libexecdir,;t t | |
2989 | s,@datadir@,$datadir,;t t | |
2990 | s,@sysconfdir@,$sysconfdir,;t t | |
2991 | s,@sharedstatedir@,$sharedstatedir,;t t | |
2992 | s,@localstatedir@,$localstatedir,;t t | |
2993 | s,@libdir@,$libdir,;t t | |
2994 | s,@includedir@,$includedir,;t t | |
2995 | s,@oldincludedir@,$oldincludedir,;t t | |
2996 | s,@infodir@,$infodir,;t t | |
2997 | s,@mandir@,$mandir,;t t | |
2998 | s,@build_alias@,$build_alias,;t t | |
2999 | s,@host_alias@,$host_alias,;t t | |
3000 | s,@target_alias@,$target_alias,;t t | |
3001 | s,@DEFS@,$DEFS,;t t | |
3002 | s,@ECHO_C@,$ECHO_C,;t t | |
3003 | s,@ECHO_N@,$ECHO_N,;t t | |
3004 | s,@ECHO_T@,$ECHO_T,;t t | |
3005 | s,@LIBS@,$LIBS,;t t | |
3006 | s,@build@,$build,;t t | |
3007 | s,@build_cpu@,$build_cpu,;t t | |
3008 | s,@build_vendor@,$build_vendor,;t t | |
3009 | s,@build_os@,$build_os,;t t | |
3010 | s,@host@,$host,;t t | |
3011 | s,@host_cpu@,$host_cpu,;t t | |
3012 | s,@host_vendor@,$host_vendor,;t t | |
3013 | s,@host_os@,$host_os,;t t | |
3014 | s,@target@,$target,;t t | |
3015 | s,@target_cpu@,$target_cpu,;t t | |
3016 | s,@target_vendor@,$target_vendor,;t t | |
3017 | s,@target_os@,$target_os,;t t | |
3018 | s,@CC@,$CC,;t t | |
3019 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
3020 | s,@CFLAGS@,$CFLAGS,;t t | |
3021 | s,@LDFLAGS@,$LDFLAGS,;t t | |
3022 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
3023 | s,@EXEEXT@,$EXEEXT,;t t | |
3024 | s,@OBJEXT@,$OBJEXT,;t t | |
3025 | s,@build_exeext@,$build_exeext,;t t | |
3026 | s,@LIBOBJS@,$LIBOBJS,;t t | |
3027 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
3028 | CEOF | |
3029 | ||
3030 | _ACEOF | |
3031 | ||
3032 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3033 | # Split the substitutions into bite-sized pieces for seds with | |
3034 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3035 | ac_max_sed_lines=48 | |
3036 | ac_sed_frag=1 # Number of current file. | |
3037 | ac_beg=1 # First line for current file. | |
3038 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
3039 | ac_more_lines=: | |
3040 | ac_sed_cmds= | |
3041 | while $ac_more_lines; do | |
3042 | if test $ac_beg -gt 1; then | |
3043 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3044 | else | |
3045 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3046 | fi | |
3047 | if test ! -s $tmp/subs.frag; then | |
3048 | ac_more_lines=false | |
3049 | else | |
3050 | # The purpose of the label and of the branching condition is to | |
3051 | # speed up the sed processing (if there are no `@' at all, there | |
3052 | # is no need to browse any of the substitutions). | |
3053 | # These are the two extra sed commands mentioned above. | |
3054 | (echo ':t | |
3055 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
3056 | if test -z "$ac_sed_cmds"; then | |
3057 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
3058 | else | |
3059 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
3060 | fi | |
3061 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
3062 | ac_beg=$ac_end | |
3063 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
3064 | fi | |
3065 | done | |
3066 | if test -z "$ac_sed_cmds"; then | |
3067 | ac_sed_cmds=cat | |
1fd5e000 | 3068 | fi |
99fc5e10 | 3069 | fi # test -n "$CONFIG_FILES" |
1fd5e000 | 3070 | |
99fc5e10 CF |
3071 | _ACEOF |
3072 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3073 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
3074 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3075 | case $ac_file in | |
3076 | - | *:- | *:-:* ) # input from stdin | |
3077 | cat >$tmp/stdin | |
3078 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3079 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3080 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3081 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3082 | * ) ac_file_in=$ac_file.in ;; | |
1fd5e000 CF |
3083 | esac |
3084 | ||
99fc5e10 CF |
3085 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
3086 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
3087 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3088 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3089 | X"$ac_file" : 'X\(//\)$' \| \ | |
3090 | X"$ac_file" : 'X\(/\)' \| \ | |
3091 | . : '\(.\)' 2>/dev/null || | |
3092 | echo X"$ac_file" | | |
3093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3094 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3095 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3096 | /^X\(\/\).*/{ s//\1/; q; } | |
3097 | s/.*/./; q'` | |
3098 | { if $as_mkdir_p; then | |
3099 | mkdir -p "$ac_dir" | |
3100 | else | |
3101 | as_dir="$ac_dir" | |
3102 | as_dirs= | |
3103 | while test ! -d "$as_dir"; do | |
3104 | as_dirs="$as_dir $as_dirs" | |
3105 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
3106 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3107 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3108 | X"$as_dir" : 'X\(//\)$' \| \ | |
3109 | X"$as_dir" : 'X\(/\)' \| \ | |
3110 | . : '\(.\)' 2>/dev/null || | |
3111 | echo X"$as_dir" | | |
3112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3113 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3114 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3115 | /^X\(\/\).*/{ s//\1/; q; } | |
3116 | s/.*/./; q'` | |
3117 | done | |
3118 | test ! -n "$as_dirs" || mkdir $as_dirs | |
3119 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
3120 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
3121 | { (exit 1); exit 1; }; }; } | |
3122 | ||
3123 | ac_builddir=. | |
3124 | ||
3125 | if test "$ac_dir" != .; then | |
3126 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
3127 | # A "../" for each directory in $ac_dir_suffix. | |
3128 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
3129 | else | |
3130 | ac_dir_suffix= ac_top_builddir= | |
3131 | fi | |
1fd5e000 | 3132 | |
99fc5e10 CF |
3133 | case $srcdir in |
3134 | .) # No --srcdir option. We are building in place. | |
3135 | ac_srcdir=. | |
3136 | if test -z "$ac_top_builddir"; then | |
3137 | ac_top_srcdir=. | |
3138 | else | |
3139 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
3140 | fi ;; | |
3141 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
3142 | ac_srcdir=$srcdir$ac_dir_suffix; | |
3143 | ac_top_srcdir=$srcdir ;; | |
3144 | *) # Relative path. | |
3145 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
3146 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
3147 | esac | |
3148 | ||
3149 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
3150 | # the directories may not exist. | |
3151 | case `pwd` in | |
3152 | .) ac_abs_builddir="$ac_dir";; | |
3153 | *) | |
3154 | case "$ac_dir" in | |
3155 | .) ac_abs_builddir=`pwd`;; | |
3156 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
3157 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
3158 | esac;; | |
3159 | esac | |
3160 | case $ac_abs_builddir in | |
3161 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
3162 | *) | |
3163 | case ${ac_top_builddir}. in | |
3164 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
3165 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
3166 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
3167 | esac;; | |
3168 | esac | |
3169 | case $ac_abs_builddir in | |
3170 | .) ac_abs_srcdir=$ac_srcdir;; | |
3171 | *) | |
3172 | case $ac_srcdir in | |
3173 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
3174 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
3175 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
3176 | esac;; | |
3177 | esac | |
3178 | case $ac_abs_builddir in | |
3179 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
3180 | *) | |
3181 | case $ac_top_srcdir in | |
3182 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
3183 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
3184 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
3185 | esac;; | |
3186 | esac | |
1fd5e000 | 3187 | |
1fd5e000 | 3188 | |
1fd5e000 | 3189 | |
99fc5e10 CF |
3190 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
3191 | # use $as_me), people would be surprised to read: | |
3192 | # /* config.h. Generated by config.status. */ | |
3193 | if test x"$ac_file" = x-; then | |
3194 | configure_input= | |
3195 | else | |
3196 | configure_input="$ac_file. " | |
3197 | fi | |
3198 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
3199 | sed 's,.*/,,'` by configure." | |
3200 | ||
3201 | # First look for the input files in the build tree, otherwise in the | |
3202 | # src tree. | |
3203 | ac_file_inputs=`IFS=: | |
3204 | for f in $ac_file_in; do | |
3205 | case $f in | |
3206 | -) echo $tmp/stdin ;; | |
3207 | [\\/$]*) | |
3208 | # Absolute (can't be DOS-style, as IFS=:) | |
3209 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3210 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
3211 | { (exit 1); exit 1; }; } | |
3212 | echo "$f";; | |
3213 | *) # Relative | |
3214 | if test -f "$f"; then | |
3215 | # Build tree | |
3216 | echo "$f" | |
3217 | elif test -f "$srcdir/$f"; then | |
3218 | # Source tree | |
3219 | echo "$srcdir/$f" | |
3220 | else | |
3221 | # /dev/null tree | |
3222 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3223 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
3224 | { (exit 1); exit 1; }; } | |
3225 | fi;; | |
3226 | esac | |
3227 | done` || { (exit 1); exit 1; } | |
3228 | ||
3229 | if test x"$ac_file" != x-; then | |
3230 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
3231 | echo "$as_me: creating $ac_file" >&6;} | |
3232 | rm -f "$ac_file" | |
3233 | fi | |
3234 | _ACEOF | |
3235 | cat >>$CONFIG_STATUS <<_ACEOF | |
3236 | sed "$ac_vpsub | |
3237 | $extrasub | |
3238 | _ACEOF | |
3239 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3240 | :t | |
3241 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3242 | s,@configure_input@,$configure_input,;t t | |
3243 | s,@srcdir@,$ac_srcdir,;t t | |
3244 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
3245 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
3246 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
3247 | s,@builddir@,$ac_builddir,;t t | |
3248 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
3249 | s,@top_builddir@,$ac_top_builddir,;t t | |
3250 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
3251 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
3252 | rm -f $tmp/stdin | |
3253 | if test x"$ac_file" != x-; then | |
3254 | mv $tmp/out $ac_file | |
3255 | else | |
3256 | cat $tmp/out | |
3257 | rm -f $tmp/out | |
3258 | fi | |
3259 | ||
3260 | done | |
3261 | _ACEOF | |
1fd5e000 | 3262 | |
99fc5e10 CF |
3263 | cat >>$CONFIG_STATUS <<\_ACEOF |
3264 | ||
3265 | { (exit 0); exit 0; } | |
3266 | _ACEOF | |
1fd5e000 | 3267 | chmod +x $CONFIG_STATUS |
99fc5e10 CF |
3268 | ac_clean_files=$ac_clean_files_save |
3269 | ||
3270 | ||
3271 | # configure is writing to config.log, and then calls config.status. | |
3272 | # config.status does its own redirection, appending to config.log. | |
3273 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
3274 | # by configure, so config.status won't be able to write to it; its | |
3275 | # output is simply discarded. So we exec the FD to /dev/null, | |
3276 | # effectively closing config.log, so it can be properly (re)opened and | |
3277 | # appended to by config.status. When coming back to configure, we | |
3278 | # need to make the FD available again. | |
3279 | if test "$no_create" != yes; then | |
3280 | ac_cs_success=: | |
3281 | ac_config_status_args= | |
3282 | test "$silent" = yes && | |
3283 | ac_config_status_args="$ac_config_status_args --quiet" | |
3284 | exec 5>/dev/null | |
3285 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
3286 | exec 5>>config.log | |
3287 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3288 | # would make configure fail if this is the last instruction. | |
3289 | $ac_cs_success || { (exit 1); exit 1; } | |
3290 | fi | |
1fd5e000 | 3291 |