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