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