2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
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'"
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 ac_subdirs_all="$ac_subdirs_all arm"
276 ac_subdirs_all="$ac_subdirs_all cris"
277 ac_subdirs_all="$ac_subdirs_all d10v"
278 ac_subdirs_all="$ac_subdirs_all frv"
279 ac_subdirs_all="$ac_subdirs_all h8300"
280 ac_subdirs_all="$ac_subdirs_all m32r"
281 ac_subdirs_all="$ac_subdirs_all m68hc11"
282 ac_subdirs_all="$ac_subdirs_all mcore"
283 ac_subdirs_all="$ac_subdirs_all mips"
284 ac_subdirs_all="$ac_subdirs_all mn10300"
285 ac_subdirs_all="$ac_subdirs_all sh"
286 ac_subdirs_all="$ac_subdirs_all ppc"
287 ac_subdirs_all="$ac_subdirs_all v850"
288 ac_subdirs_all="$ac_subdirs_all testsuite"
289 ac_subdirs_all="$ac_subdirs_all common"
290 ac_subdirs_all="$ac_subdirs_all igen"
291 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os HDEFINES CC_FOR_BUILD subdirs LIBOBJS LTLIBOBJS'
294 # Initialize some variables set by options.
296 ac_init_version=false
297 # The variables have the same names as the options, with
298 # dashes changed to underlines.
306 program_transform_name=s,x,x,
314 # Installation directory options.
315 # These are left unexpanded so users can "make install exec_prefix=/foo"
316 # and all the variables that are supposed to be based on exec_prefix
317 # by default will actually change.
318 # Use braces instead of parens because sh, perl, etc. also accept them.
319 bindir='${exec_prefix}/bin'
320 sbindir='${exec_prefix}/sbin'
321 libexecdir='${exec_prefix}/libexec'
322 datadir='${prefix}/share'
323 sysconfdir='${prefix}/etc'
324 sharedstatedir='${prefix}/com'
325 localstatedir='${prefix}/var'
326 libdir='${exec_prefix}/lib'
327 includedir='${prefix}/include'
328 oldincludedir='/usr/include'
329 infodir='${prefix}/info'
330 mandir='${prefix}/man'
335 # If the previous option needs an argument, assign it.
336 if test -n "$ac_prev"; then
337 eval "$ac_prev=\$ac_option"
342 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
344 # Accept the important Cygnus configure options, so we can diagnose typos.
348 -bindir | --bindir | --bindi | --bind | --bin | --bi)
350 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
353 -build | --build | --buil | --bui | --bu)
354 ac_prev=build_alias ;;
355 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
356 build_alias=$ac_optarg ;;
358 -cache-file | --cache-file | --cache-fil | --cache-fi \
359 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
360 ac_prev=cache_file ;;
361 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
362 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
363 cache_file=$ac_optarg ;;
366 cache_file=config.cache ;;
368 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
370 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
372 datadir=$ac_optarg ;;
374 -disable-* | --disable-*)
375 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
376 # Reject names that are not valid shell variable names.
377 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
378 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
379 { (exit 1); exit 1; }; }
380 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
381 eval "enable_$ac_feature=no" ;;
383 -enable-* | --enable-*)
384 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
385 # Reject names that are not valid shell variable names.
386 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
387 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
388 { (exit 1); exit 1; }; }
389 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
391 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
394 eval "enable_$ac_feature='$ac_optarg'" ;;
396 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
397 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
398 | --exec | --exe | --ex)
399 ac_prev=exec_prefix ;;
400 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
401 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
402 | --exec=* | --exe=* | --ex=*)
403 exec_prefix=$ac_optarg ;;
405 -gas | --gas | --ga | --g)
406 # Obsolete; use --with-gas.
409 -help | --help | --hel | --he | -h)
411 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
412 ac_init_help=recursive ;;
413 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
414 ac_init_help=short ;;
416 -host | --host | --hos | --ho)
417 ac_prev=host_alias ;;
418 -host=* | --host=* | --hos=* | --ho=*)
419 host_alias=$ac_optarg ;;
421 -includedir | --includedir | --includedi | --included | --include \
422 | --includ | --inclu | --incl | --inc)
423 ac_prev=includedir ;;
424 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
425 | --includ=* | --inclu=* | --incl=* | --inc=*)
426 includedir=$ac_optarg ;;
428 -infodir | --infodir | --infodi | --infod | --info | --inf)
430 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
431 infodir=$ac_optarg ;;
433 -libdir | --libdir | --libdi | --libd)
435 -libdir=* | --libdir=* | --libdi=* | --libd=*)
438 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
439 | --libexe | --libex | --libe)
440 ac_prev=libexecdir ;;
441 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
442 | --libexe=* | --libex=* | --libe=*)
443 libexecdir=$ac_optarg ;;
445 -localstatedir | --localstatedir | --localstatedi | --localstated \
446 | --localstate | --localstat | --localsta | --localst \
447 | --locals | --local | --loca | --loc | --lo)
448 ac_prev=localstatedir ;;
449 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
450 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
451 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
452 localstatedir=$ac_optarg ;;
454 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
456 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
460 # Obsolete; use --without-fp.
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c | -n)
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
471 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
472 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
473 | --oldin | --oldi | --old | --ol | --o)
474 ac_prev=oldincludedir ;;
475 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
476 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
477 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
478 oldincludedir=$ac_optarg ;;
480 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
482 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
485 -program-prefix | --program-prefix | --program-prefi | --program-pref \
486 | --program-pre | --program-pr | --program-p)
487 ac_prev=program_prefix ;;
488 -program-prefix=* | --program-prefix=* | --program-prefi=* \
489 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
490 program_prefix=$ac_optarg ;;
492 -program-suffix | --program-suffix | --program-suffi | --program-suff \
493 | --program-suf | --program-su | --program-s)
494 ac_prev=program_suffix ;;
495 -program-suffix=* | --program-suffix=* | --program-suffi=* \
496 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
497 program_suffix=$ac_optarg ;;
499 -program-transform-name | --program-transform-name \
500 | --program-transform-nam | --program-transform-na \
501 | --program-transform-n | --program-transform- \
502 | --program-transform | --program-transfor \
503 | --program-transfo | --program-transf \
504 | --program-trans | --program-tran \
505 | --progr-tra | --program-tr | --program-t)
506 ac_prev=program_transform_name ;;
507 -program-transform-name=* | --program-transform-name=* \
508 | --program-transform-nam=* | --program-transform-na=* \
509 | --program-transform-n=* | --program-transform-=* \
510 | --program-transform=* | --program-transfor=* \
511 | --program-transfo=* | --program-transf=* \
512 | --program-trans=* | --program-tran=* \
513 | --progr-tra=* | --program-tr=* | --program-t=*)
514 program_transform_name=$ac_optarg ;;
516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
517 | -silent | --silent | --silen | --sile | --sil)
520 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
522 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
524 sbindir=$ac_optarg ;;
526 -sharedstatedir | --sharedstatedir | --sharedstatedi \
527 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
528 | --sharedst | --shareds | --shared | --share | --shar \
530 ac_prev=sharedstatedir ;;
531 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
532 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
533 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
535 sharedstatedir=$ac_optarg ;;
537 -site | --site | --sit)
539 -site=* | --site=* | --sit=*)
542 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
544 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
547 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
548 | --syscon | --sysco | --sysc | --sys | --sy)
549 ac_prev=sysconfdir ;;
550 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
551 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
552 sysconfdir=$ac_optarg ;;
554 -target | --target | --targe | --targ | --tar | --ta | --t)
555 ac_prev=target_alias ;;
556 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
557 target_alias=$ac_optarg ;;
559 -v | -verbose | --verbose | --verbos | --verbo | --verb)
562 -version | --version | --versio | --versi | --vers | -V)
566 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
567 # Reject names that are not valid shell variable names.
568 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569 { echo "$as_me: error: invalid package name: $ac_package" >&2
570 { (exit 1); exit 1; }; }
571 ac_package=`echo $ac_package| sed 's/-/_/g'`
573 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 eval "with_$ac_package='$ac_optarg'" ;;
578 -without-* | --without-*)
579 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
580 # Reject names that are not valid shell variable names.
581 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
582 { echo "$as_me: error: invalid package name: $ac_package" >&2
583 { (exit 1); exit 1; }; }
584 ac_package=`echo $ac_package | sed 's/-/_/g'`
585 eval "with_$ac_package=no" ;;
588 # Obsolete; use --with-x.
591 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
592 | --x-incl | --x-inc | --x-in | --x-i)
593 ac_prev=x_includes ;;
594 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
595 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
596 x_includes=$ac_optarg ;;
598 -x-libraries | --x-libraries | --x-librarie | --x-librari \
599 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
600 ac_prev=x_libraries ;;
601 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
602 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
603 x_libraries=$ac_optarg ;;
605 -*) { echo "$as_me: error: unrecognized option: $ac_option
606 Try \`$0 --help' for more information." >&2
607 { (exit 1); exit 1; }; }
611 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
612 # Reject names that are not valid shell variable names.
613 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
614 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
615 { (exit 1); exit 1; }; }
616 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
617 eval "$ac_envvar='$ac_optarg'"
621 # FIXME: should be removed in autoconf 3.0.
622 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
623 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
624 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
625 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
631 if test -n "$ac_prev"; then
632 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
633 { echo "$as_me: error: missing argument to $ac_option" >&2
634 { (exit 1); exit 1; }; }
637 # Be sure to have absolute paths.
638 for ac_var in exec_prefix prefix
640 eval ac_val=$`echo $ac_var`
642 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
643 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
644 { (exit 1); exit 1; }; };;
648 # Be sure to have absolute paths.
649 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
650 localstatedir libdir includedir oldincludedir infodir mandir
652 eval ac_val=$`echo $ac_var`
654 [\\/$]* | ?:[\\/]* ) ;;
655 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
656 { (exit 1); exit 1; }; };;
660 # There might be people who depend on the old broken behavior: `$host'
661 # used to hold the argument of --host etc.
662 # FIXME: To remove some day.
667 # FIXME: To remove some day.
668 if test "x$host_alias" != x; then
669 if test "x$build_alias" = x; then
670 cross_compiling=maybe
671 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
672 If a cross compiler is detected then cross compile mode will be used." >&2
673 elif test "x$build_alias" != "x$host_alias"; then
679 test -n "$host_alias" && ac_tool_prefix=$host_alias-
681 test "$silent" = yes && exec 6>/dev/null
684 # Find the source files, if location was not specified.
685 if test -z "$srcdir"; then
686 ac_srcdir_defaulted=yes
687 # Try the directory containing this script, then its parent.
688 ac_confdir=`(dirname "$0") 2>/dev/null ||
689 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
690 X"$0" : 'X\(//\)[^/]' \| \
691 X"$0" : 'X\(//\)$' \| \
692 X"$0" : 'X\(/\)' \| \
693 . : '\(.\)' 2>/dev/null ||
695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
697 /^X\(\/\/\)$/{ s//\1/; q; }
698 /^X\(\/\).*/{ s//\1/; q; }
701 if test ! -r $srcdir/$ac_unique_file; then
705 ac_srcdir_defaulted=no
707 if test ! -r $srcdir/$ac_unique_file; then
708 if test "$ac_srcdir_defaulted" = yes; then
709 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
710 { (exit 1); exit 1; }; }
712 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
713 { (exit 1); exit 1; }; }
716 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
717 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
718 { (exit 1); exit 1; }; }
719 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
720 ac_env_build_alias_set=${build_alias+set}
721 ac_env_build_alias_value=$build_alias
722 ac_cv_env_build_alias_set=${build_alias+set}
723 ac_cv_env_build_alias_value=$build_alias
724 ac_env_host_alias_set=${host_alias+set}
725 ac_env_host_alias_value=$host_alias
726 ac_cv_env_host_alias_set=${host_alias+set}
727 ac_cv_env_host_alias_value=$host_alias
728 ac_env_target_alias_set=${target_alias+set}
729 ac_env_target_alias_value=$target_alias
730 ac_cv_env_target_alias_set=${target_alias+set}
731 ac_cv_env_target_alias_value=$target_alias
732 ac_env_CC_set=${CC+set}
734 ac_cv_env_CC_set=${CC+set}
735 ac_cv_env_CC_value=$CC
736 ac_env_CFLAGS_set=${CFLAGS+set}
737 ac_env_CFLAGS_value=$CFLAGS
738 ac_cv_env_CFLAGS_set=${CFLAGS+set}
739 ac_cv_env_CFLAGS_value=$CFLAGS
740 ac_env_LDFLAGS_set=${LDFLAGS+set}
741 ac_env_LDFLAGS_value=$LDFLAGS
742 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
743 ac_cv_env_LDFLAGS_value=$LDFLAGS
744 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
745 ac_env_CPPFLAGS_value=$CPPFLAGS
746 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
747 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
750 # Report the --help message.
752 if test "$ac_init_help" = "long"; then
753 # Omit some internal or obsolete options to make the list less imposing.
754 # This message is too long to be a string in the A/UX 3.1 sh.
756 \`configure' configures this package to adapt to many kinds of systems.
758 Usage: $0 [OPTION]... [VAR=VALUE]...
760 To assign environment variables (e.g., CC, CFLAGS...), specify them as
761 VAR=VALUE. See below for descriptions of some of the useful variables.
763 Defaults for the options are specified in brackets.
766 -h, --help display this help and exit
767 --help=short display options specific to this package
768 --help=recursive display the short help of all the included packages
769 -V, --version display version information and exit
770 -q, --quiet, --silent do not print \`checking...' messages
771 --cache-file=FILE cache test results in FILE [disabled]
772 -C, --config-cache alias for \`--cache-file=config.cache'
773 -n, --no-create do not create output files
774 --srcdir=DIR find the sources in DIR [configure dir or \`..']
779 Installation directories:
780 --prefix=PREFIX install architecture-independent files in PREFIX
782 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
785 By default, \`make install' will install all the files in
786 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
787 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
788 for instance \`--prefix=\$HOME'.
790 For better control, use the options below.
792 Fine tuning of the installation directories:
793 --bindir=DIR user executables [EPREFIX/bin]
794 --sbindir=DIR system admin executables [EPREFIX/sbin]
795 --libexecdir=DIR program executables [EPREFIX/libexec]
796 --datadir=DIR read-only architecture-independent data [PREFIX/share]
797 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
798 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
799 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
800 --libdir=DIR object code libraries [EPREFIX/lib]
801 --includedir=DIR C header files [PREFIX/include]
802 --oldincludedir=DIR C header files for non-gcc [/usr/include]
803 --infodir=DIR info documentation [PREFIX/info]
804 --mandir=DIR man documentation [PREFIX/man]
810 --program-prefix=PREFIX prepend PREFIX to installed program names
811 --program-suffix=SUFFIX append SUFFIX to installed program names
812 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
815 --build=BUILD configure for building on BUILD [guessed]
816 --host=HOST cross-compile to build programs to run on HOST [BUILD]
817 --target=TARGET configure for building compilers for TARGET [HOST]
821 if test -n "$ac_init_help"; then
826 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
827 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
830 Some influential environment variables:
831 CC C compiler command
832 CFLAGS C compiler flags
833 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
834 nonstandard directory <lib dir>
835 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
836 headers in a nonstandard directory <include dir>
838 Use these variables to override the choices made by `configure' or to help
839 it to find libraries and programs with nonstandard names/locations.
844 if test "$ac_init_help" = "recursive"; then
845 # If there are subdirs, report their specific --help.
847 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
848 test -d $ac_dir || continue
851 if test "$ac_dir" != .; then
852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
853 # A "../" for each directory in $ac_dir_suffix.
854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
856 ac_dir_suffix= ac_top_builddir=
860 .) # No --srcdir option. We are building in place.
862 if test -z "$ac_top_builddir"; then
865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
867 [\\/]* | ?:[\\/]* ) # Absolute path.
868 ac_srcdir=$srcdir$ac_dir_suffix;
869 ac_top_srcdir=$srcdir ;;
871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
875 # Do not use `cd foo && pwd` to compute absolute paths, because
876 # the directories may not exist.
878 .) ac_abs_builddir="$ac_dir";;
881 .) ac_abs_builddir=`pwd`;;
882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
886 case $ac_abs_builddir in
887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
889 case ${ac_top_builddir}. in
890 .) ac_abs_top_builddir=$ac_abs_builddir;;
891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
895 case $ac_abs_builddir in
896 .) ac_abs_srcdir=$ac_srcdir;;
899 .) ac_abs_srcdir=$ac_abs_builddir;;
900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
904 case $ac_abs_builddir in
905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
907 case $ac_top_srcdir in
908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
937 Copyright (C) 2003 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.59. Invocation command line was
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 test -z "$as_dir" && as_dir=.
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1008 ac_must_keep_next=false
1014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1018 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025 if test $ac_must_keep_next = true; then
1026 ac_must_keep_next=false # Got value, back to normal.
1029 *=* | --config-cache | -C | -disable-* | --disable-* \
1030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032 | -with-* | --with-* | -without-* | --without-* | --x)
1033 case "$ac_configure_args0 " in
1034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1037 -* ) ac_must_keep_next=true ;;
1040 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1066 # The following way of writing the cache mishandles newlines in values,
1069 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1072 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1089 for ac_var in $ac_subst_vars
1091 eval ac_val=$`echo $ac_var`
1092 echo "$ac_var='"'"'$ac_val'"'"'"
1096 if test -n "$ac_subst_files"; then
1103 for ac_var in $ac_subst_files
1105 eval ac_val=$`echo $ac_var`
1106 echo "$ac_var='"'"'$ac_val'"'"'"
1111 if test -s confdefs.h; then
1118 sed "/^$/d" confdefs.h | sort
1121 test "$ac_signal" != 0 &&
1122 echo "$as_me: caught signal $ac_signal"
1123 echo "$as_me: exit $exit_status"
1125 rm -f core *.core &&
1126 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1129 for ac_signal in 1 2 13 15; do
1130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1139 # Predefined preprocessor variables.
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169 if test "x$prefix" != xNONE; then
1170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 for ac_site_file in $CONFIG_SITE; do
1176 if test -r "$ac_site_file"; then
1177 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179 sed 's/^/| /' "$ac_site_file" >&5
1184 if test -r "$cache_file"; then
1185 # Some versions of bash will fail to source /dev/null (special
1186 # files actually), so we avoid doing that.
1187 if test -f "$cache_file"; then
1188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1191 [\\/]* | ?:[\\/]* ) . $cache_file;;
1192 *) . ./$cache_file;;
1196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1201 # Check that the precious variables saved in the cache have kept the same
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207 eval ac_new_set=\$ac_env_${ac_var}_set
1208 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209 eval ac_new_val="\$ac_env_${ac_var}_value"
1210 case $ac_old_set,$ac_new_set in
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1221 if test "x$ac_old_val" != "x$ac_new_val"; then
1222 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1225 echo "$as_me: former value: $ac_old_val" >&2;}
1226 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1227 echo "$as_me: current value: $ac_new_val" >&2;}
1228 ac_cache_corrupted=:
1231 # Pass precious variables to config.status.
1232 if test "$ac_new_set" = set; then
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 *) ac_arg=$ac_var=$ac_new_val ;;
1238 case " $ac_configure_args " in
1239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1244 if $ac_cache_corrupted; then
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282 if test -n "$ac_tool_prefix"; then
1283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1285 echo "$as_me:$LINENO: checking for $ac_word" >&5
1286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1287 if test "${ac_cv_prog_CC+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 if test -n "$CC"; then
1291 ac_cv_prog_CC="$CC" # Let the user override the test.
1293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297 test -z "$as_dir" && as_dir=.
1298 for ac_exec_ext in '' $ac_executable_extensions; do
1299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1300 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1310 if test -n "$CC"; then
1311 echo "$as_me:$LINENO: result: $CC" >&5
1312 echo "${ECHO_T}$CC" >&6
1314 echo "$as_me:$LINENO: result: no" >&5
1315 echo "${ECHO_T}no" >&6
1319 if test -z "$ac_cv_prog_CC"; then
1321 # Extract the first word of "gcc", so it can be a program name with args.
1322 set dummy gcc; ac_word=$2
1323 echo "$as_me:$LINENO: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 if test -n "$ac_ct_CC"; then
1329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 test -z "$as_dir" && as_dir=.
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 ac_cv_prog_ac_ct_CC="gcc"
1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1348 if test -n "$ac_ct_CC"; then
1349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1350 echo "${ECHO_T}$ac_ct_CC" >&6
1352 echo "$as_me:$LINENO: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1361 if test -z "$CC"; then
1362 if test -n "$ac_tool_prefix"; then
1363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1364 set dummy ${ac_tool_prefix}cc; ac_word=$2
1365 echo "$as_me:$LINENO: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_prog_CC="${ac_tool_prefix}cc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390 if test -n "$CC"; then
1391 echo "$as_me:$LINENO: result: $CC" >&5
1392 echo "${ECHO_T}$CC" >&6
1394 echo "$as_me:$LINENO: result: no" >&5
1395 echo "${ECHO_T}no" >&6
1399 if test -z "$ac_cv_prog_CC"; then
1401 # Extract the first word of "cc", so it can be a program name with args.
1402 set dummy cc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 if test -n "$ac_ct_CC"; then
1409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_ac_ct_CC="cc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428 if test -n "$ac_ct_CC"; then
1429 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1430 echo "${ECHO_T}$ac_ct_CC" >&6
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1442 if test -z "$CC"; then
1443 # Extract the first word of "cc", so it can be a program name with args.
1444 set dummy cc; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 if test -n "$CC"; then
1451 ac_cv_prog_CC="$CC" # Let the user override the test.
1454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 test -z "$as_dir" && as_dir=.
1459 for ac_exec_ext in '' $ac_executable_extensions; do
1460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1461 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1462 ac_prog_rejected=yes
1466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 if test $ac_prog_rejected = yes; then
1473 # We found a bogon in the path, so make sure we never use it.
1474 set dummy $ac_cv_prog_CC
1476 if test $# != 0; then
1477 # We chose a different compiler from the bogus one.
1478 # However, it has the same basename, so the bogon will be chosen
1479 # first if we set CC to just the basename; use the full file name.
1481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1487 if test -n "$CC"; then
1488 echo "$as_me:$LINENO: result: $CC" >&5
1489 echo "${ECHO_T}$CC" >&6
1491 echo "$as_me:$LINENO: result: no" >&5
1492 echo "${ECHO_T}no" >&6
1496 if test -z "$CC"; then
1497 if test -n "$ac_tool_prefix"; then
1500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 if test -n "$CC"; then
1508 ac_cv_prog_CC="$CC" # Let the user override the test.
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1535 test -n "$CC" && break
1538 if test -z "$CC"; then
1542 # Extract the first word of "$ac_prog", so it can be a program name with args.
1543 set dummy $ac_prog; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC="$ac_prog"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569 if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571 echo "${ECHO_T}$ac_ct_CC" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1577 test -n "$ac_ct_CC" && break
1586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1587 See \`config.log' for more details." >&5
1588 echo "$as_me: error: no acceptable C compiler found in \$PATH
1589 See \`config.log' for more details." >&2;}
1590 { (exit 1); exit 1; }; }
1592 # Provide some information about the compiler.
1593 echo "$as_me:$LINENO:" \
1594 "checking for C compiler version" >&5
1595 ac_compiler=`set X $ac_compile; echo $2`
1596 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1597 (eval $ac_compiler --version </dev/null >&5) 2>&5
1599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1600 (exit $ac_status); }
1601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1602 (eval $ac_compiler -v </dev/null >&5) 2>&5
1604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1605 (exit $ac_status); }
1606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1607 (eval $ac_compiler -V </dev/null >&5) 2>&5
1609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1610 (exit $ac_status); }
1612 cat >conftest.$ac_ext <<_ACEOF
1615 cat confdefs.h >>conftest.$ac_ext
1616 cat >>conftest.$ac_ext <<_ACEOF
1617 /* end confdefs.h. */
1627 ac_clean_files_save=$ac_clean_files
1628 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1629 # Try to create an executable without -o first, disregard a.out.
1630 # It will help us diagnose broken compilers, and finding out an intuition
1632 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1633 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1634 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1635 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1636 (eval $ac_link_default) 2>&5
1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639 (exit $ac_status); }; then
1640 # Find the output, starting from the most likely. This scheme is
1641 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1644 # Be careful to initialize this variable, since it used to be cached.
1645 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1647 # b.out is created by i960 compilers.
1648 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1650 test -f "$ac_file" || continue
1652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1655 # This is the source file.
1658 # We found the default executable, but exeext='' is most
1662 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1663 # FIXME: I believe we export ac_cv_exeext for Libtool,
1664 # but it would be cool to find out if it's true. Does anybody
1665 # maintain Libtool? --akim.
1673 echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1677 See \`config.log' for more details." >&5
1678 echo "$as_me: error: C compiler cannot create executables
1679 See \`config.log' for more details." >&2;}
1680 { (exit 77); exit 77; }; }
1683 ac_exeext=$ac_cv_exeext
1684 echo "$as_me:$LINENO: result: $ac_file" >&5
1685 echo "${ECHO_T}$ac_file" >&6
1687 # Check the compiler produces executables we can run. If not, either
1688 # the compiler is broken, or we cross compile.
1689 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1692 # If not cross compiling, check that we can run a simple program.
1693 if test "$cross_compiling" != yes; then
1694 if { ac_try='./$ac_file'
1695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }; }; then
1702 if test "$cross_compiling" = maybe; then
1705 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1706 If you meant to cross compile, use \`--host'.
1707 See \`config.log' for more details." >&5
1708 echo "$as_me: error: cannot run C compiled programs.
1709 If you meant to cross compile, use \`--host'.
1710 See \`config.log' for more details." >&2;}
1711 { (exit 1); exit 1; }; }
1715 echo "$as_me:$LINENO: result: yes" >&5
1716 echo "${ECHO_T}yes" >&6
1718 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1719 ac_clean_files=$ac_clean_files_save
1720 # Check the compiler produces executables we can run. If not, either
1721 # the compiler is broken, or we cross compile.
1722 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1723 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1724 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1725 echo "${ECHO_T}$cross_compiling" >&6
1727 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1728 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1730 (eval $ac_link) 2>&5
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); }; then
1734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1736 # work properly (i.e., refer to `conftest.exe'), while it won't with
1738 for ac_file in conftest.exe conftest conftest.*; do
1739 test -f "$ac_file" || continue
1741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1750 See \`config.log' for more details." >&5
1751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1752 See \`config.log' for more details." >&2;}
1753 { (exit 1); exit 1; }; }
1756 rm -f conftest$ac_cv_exeext
1757 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1758 echo "${ECHO_T}$ac_cv_exeext" >&6
1760 rm -f conftest.$ac_ext
1761 EXEEXT=$ac_cv_exeext
1763 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1765 if test "${ac_cv_objext+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 cat >conftest.$ac_ext <<_ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1783 rm -f conftest.o conftest.obj
1784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1797 echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1800 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1803 See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1809 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1810 echo "${ECHO_T}$ac_cv_objext" >&6
1811 OBJEXT=$ac_cv_objext
1813 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 cat >conftest.$ac_ext <<_ACEOF
1821 cat confdefs.h >>conftest.$ac_ext
1822 cat >>conftest.$ac_ext <<_ACEOF
1823 /* end confdefs.h. */
1836 rm -f conftest.$ac_objext
1837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>conftest.er1
1840 grep -v '^ *+' conftest.er1 >conftest.err
1842 cat conftest.err >&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); } &&
1845 { ac_try='test -z "$ac_c_werror_flag"
1846 || test ! -s conftest.err'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; } &&
1852 { ac_try='test -s conftest.$ac_objext'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1860 echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1869 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1871 GCC=`test $ac_compiler_gnu = yes && echo yes`
1872 ac_test_CFLAGS=${CFLAGS+set}
1873 ac_save_CFLAGS=$CFLAGS
1875 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1877 if test "${ac_cv_prog_cc_g+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 cat >conftest.$ac_ext <<_ACEOF
1883 cat confdefs.h >>conftest.$ac_ext
1884 cat >>conftest.$ac_ext <<_ACEOF
1885 /* end confdefs.h. */
1895 rm -f conftest.$ac_objext
1896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1897 (eval $ac_compile) 2>conftest.er1
1899 grep -v '^ *+' conftest.er1 >conftest.err
1901 cat conftest.err >&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -z "$ac_c_werror_flag"
1905 || test ! -s conftest.err'
1906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }; } &&
1911 { ac_try='test -s conftest.$ac_objext'
1912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; }; then
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1926 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1927 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1928 if test "$ac_test_CFLAGS" = set; then
1929 CFLAGS=$ac_save_CFLAGS
1930 elif test $ac_cv_prog_cc_g = yes; then
1931 if test "$GCC" = yes; then
1937 if test "$GCC" = yes; then
1943 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1944 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1945 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 ac_cv_prog_cc_stdc=no
1950 cat >conftest.$ac_ext <<_ACEOF
1953 cat confdefs.h >>conftest.$ac_ext
1954 cat >>conftest.$ac_ext <<_ACEOF
1955 /* end confdefs.h. */
1958 #include <sys/types.h>
1959 #include <sys/stat.h>
1960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1961 struct buf { int x; };
1962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1963 static char *e (p, i)
1969 static char *f (char * (*g) (char **, int), char **p, ...)
1974 s = g (p, va_arg (v,int));
1979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1980 function prototypes and stuff, but not '\xHH' hex character constants.
1981 These don't provoke an error unfortunately, instead are silently treated
1982 as 'x'. The following induces an error, until -std1 is added to get
1983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1984 array size at least. It's necessary to write '\x00'==0 to get something
1985 that's true only with -std1. */
1986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1988 int test (int i, double x);
1989 struct s1 {int (*f) (int a);};
1990 struct s2 {int (*f) (double a);};
1991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2002 # Don't try gcc -ansi; that turns off useful extensions and
2003 # breaks some systems' header files.
2004 # AIX -qlanglvl=ansi
2005 # Ultrix and OSF/1 -std1
2006 # HP-UX 10.20 and later -Ae
2007 # HP-UX older versions -Aa -D_HPUX_SOURCE
2008 # SVR4 -Xc -D__EXTENSIONS__
2009 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2011 CC="$ac_save_CC $ac_arg"
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014 (eval $ac_compile) 2>conftest.er1
2016 grep -v '^ *+' conftest.er1 >conftest.err
2018 cat conftest.err >&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); } &&
2021 { ac_try='test -z "$ac_c_werror_flag"
2022 || test ! -s conftest.err'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; } &&
2028 { ac_try='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2034 ac_cv_prog_cc_stdc=$ac_arg
2037 echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2041 rm -f conftest.err conftest.$ac_objext
2043 rm -f conftest.$ac_ext conftest.$ac_objext
2048 case "x$ac_cv_prog_cc_stdc" in
2050 echo "$as_me:$LINENO: result: none needed" >&5
2051 echo "${ECHO_T}none needed" >&6 ;;
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2055 CC="$CC $ac_cv_prog_cc_stdc" ;;
2058 # Some people use a C++ compiler to compile C. Since we use `exit',
2059 # in C++ we need to declare it. In case someone uses the same compiler
2060 # for both compiling C and C++ we need to have the C++ compiler decide
2061 # the declaration of exit, since it's the most demanding environment.
2062 cat >conftest.$ac_ext <<_ACEOF
2067 rm -f conftest.$ac_objext
2068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>conftest.er1
2071 grep -v '^ *+' conftest.er1 >conftest.err
2073 cat conftest.err >&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -z "$ac_c_werror_flag"
2077 || test ! -s conftest.err'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; } &&
2083 { ac_try='test -s conftest.$ac_objext'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2089 for ac_declaration in \
2091 'extern "C" void std::exit (int) throw (); using std::exit;' \
2092 'extern "C" void std::exit (int); using std::exit;' \
2093 'extern "C" void exit (int) throw ();' \
2094 'extern "C" void exit (int);' \
2097 cat >conftest.$ac_ext <<_ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2113 rm -f conftest.$ac_objext
2114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>conftest.er1
2117 grep -v '^ *+' conftest.er1 >conftest.err
2119 cat conftest.err >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); } &&
2122 { ac_try='test -z "$ac_c_werror_flag"
2123 || test ! -s conftest.err'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; } &&
2129 { ac_try='test -s conftest.$ac_objext'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2162 grep -v '^ *+' conftest.er1 >conftest.err
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 if test -n "$ac_declaration"; then
2190 echo '#ifdef __cplusplus' >>confdefs.h
2191 echo $ac_declaration >>confdefs.h
2192 echo '#endif' >>confdefs.h
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2202 ac_cpp='$CPP $CPPFLAGS'
2203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2208 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2209 if test -f $ac_dir/install-sh; then
2211 ac_install_sh="$ac_aux_dir/install-sh -c"
2213 elif test -f $ac_dir/install.sh; then
2215 ac_install_sh="$ac_aux_dir/install.sh -c"
2217 elif test -f $ac_dir/shtool; then
2219 ac_install_sh="$ac_aux_dir/shtool install -c"
2223 if test -z "$ac_aux_dir"; then
2224 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2225 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2226 { (exit 1); exit 1; }; }
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2230 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2232 # Find a good install program. We prefer a C program (faster),
2233 # so one script is as good as another. But avoid the broken or
2234 # incompatible versions:
2235 # SysV /etc/install, /usr/sbin/install
2236 # SunOS /usr/etc/install
2237 # IRIX /sbin/install
2239 # AmigaOS /C/install, which installs bootblocks on floppy discs
2240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2243 # OS/2's system install, which has a completely different semantic
2244 # ./install, which can be erroneously created by make from ./install.sh.
2245 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2246 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2247 if test -z "$INSTALL"; then
2248 if test "${ac_cv_path_install+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 # Account for people who put trailing slashes in PATH elements.
2258 ./ | .// | /cC/* | \
2259 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2260 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2263 # OSF1 and SCO ODT 3.0 have their own names for install.
2264 # Don't use installbsd from OSF since it installs stuff as root
2266 for ac_prog in ginstall scoinst install; do
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2269 if test $ac_prog = install &&
2270 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271 # AIX install. It has an incompatible calling convention.
2273 elif test $ac_prog = install &&
2274 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # program-specific install script used by HP pwplus--don't use.
2278 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2290 if test "${ac_cv_path_install+set}" = set; then
2291 INSTALL=$ac_cv_path_install
2293 # As a last resort, use the slow shell script. We don't cache a
2294 # path for INSTALL within a source directory, because that will
2295 # break other packages using the cache if that directory is
2296 # removed, or if the path is relative.
2297 INSTALL=$ac_install_sh
2300 echo "$as_me:$LINENO: result: $INSTALL" >&5
2301 echo "${ECHO_T}$INSTALL" >&6
2303 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2304 # It thinks the first close brace ends the variable substitution.
2305 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}ar; ac_word=$2
2314 echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316 if test "${ac_cv_prog_AR+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 if test -n "$AR"; then
2320 ac_cv_prog_AR="$AR" # Let the user override the test.
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2329 ac_cv_prog_AR="${ac_tool_prefix}ar"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 if test -n "$AR"; then
2340 echo "$as_me:$LINENO: result: $AR" >&5
2341 echo "${ECHO_T}$AR" >&6
2343 echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6
2348 if test -z "$ac_cv_prog_AR"; then
2350 # Extract the first word of "ar", so it can be a program name with args.
2351 set dummy ar; ac_word=$2
2352 echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 if test -n "$ac_ct_AR"; then
2358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_ac_ct_AR="ar"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2377 if test -n "$ac_ct_AR"; then
2378 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2379 echo "${ECHO_T}$ac_ct_AR" >&6
2381 echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2393 echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2395 if test "${ac_cv_prog_RANLIB+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$RANLIB"; then
2399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 RANLIB=$ac_cv_prog_RANLIB
2418 if test -n "$RANLIB"; then
2419 echo "$as_me:$LINENO: result: $RANLIB" >&5
2420 echo "${ECHO_T}$RANLIB" >&6
2422 echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2427 if test -z "$ac_cv_prog_RANLIB"; then
2428 ac_ct_RANLIB=$RANLIB
2429 # Extract the first word of "ranlib", so it can be a program name with args.
2430 set dummy ranlib; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$ac_ct_RANLIB"; then
2437 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_ac_ct_RANLIB="ranlib"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2456 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2457 if test -n "$ac_ct_RANLIB"; then
2458 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2459 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 RANLIB=$ac_ct_RANLIB
2467 RANLIB="$ac_cv_prog_RANLIB"
2471 # Make sure we can run config.sub.
2472 $ac_config_sub sun4 >/dev/null 2>&1 ||
2473 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2474 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2475 { (exit 1); exit 1; }; }
2477 echo "$as_me:$LINENO: checking build system type" >&5
2478 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2479 if test "${ac_cv_build+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 ac_cv_build_alias=$build_alias
2483 test -z "$ac_cv_build_alias" &&
2484 ac_cv_build_alias=`$ac_config_guess`
2485 test -z "$ac_cv_build_alias" &&
2486 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2487 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2488 { (exit 1); exit 1; }; }
2489 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2491 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2492 { (exit 1); exit 1; }; }
2495 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2496 echo "${ECHO_T}$ac_cv_build" >&6
2498 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2499 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2500 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2503 echo "$as_me:$LINENO: checking host system type" >&5
2504 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2505 if test "${ac_cv_host+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 ac_cv_host_alias=$host_alias
2509 test -z "$ac_cv_host_alias" &&
2510 ac_cv_host_alias=$ac_cv_build_alias
2511 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2513 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2514 { (exit 1); exit 1; }; }
2517 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2518 echo "${ECHO_T}$ac_cv_host" >&6
2520 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2521 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2522 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2525 echo "$as_me:$LINENO: checking target system type" >&5
2526 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2527 if test "${ac_cv_target+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 ac_cv_target_alias=$target_alias
2531 test "x$ac_cv_target_alias" = "x" &&
2532 ac_cv_target_alias=$ac_cv_host_alias
2533 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2535 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2536 { (exit 1); exit 1; }; }
2539 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2540 echo "${ECHO_T}$ac_cv_target" >&6
2541 target=$ac_cv_target
2542 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2543 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2544 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2547 # The aliases save the names the user supplied, while $host etc.
2548 # will get canonicalized.
2549 test -n "$target_alias" &&
2550 test "$program_prefix$program_suffix$program_transform_name" = \
2552 program_prefix=${target_alias}-
2553 test "$program_prefix" != NONE &&
2554 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2555 # Use a double $ so make ignores it.
2556 test "$program_suffix" != NONE &&
2557 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2558 # Double any \ or $. echo might interpret backslashes.
2559 # By default was `s,x,x', remove it if useless.
2560 cat <<\_ACEOF >conftest.sed
2561 s/[\\$]/&&/g;s/;s,x,x,$//
2563 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2574 echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test -n "$CC"; then
2600 echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6
2603 echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6
2608 if test -z "$ac_cv_prog_CC"; then
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_ac_ct_CC="gcc"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639 echo "${ECHO_T}$ac_ct_CC" >&6
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2653 set dummy ${ac_tool_prefix}cc; ac_word=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_CC+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_CC="${ac_tool_prefix}cc"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test -n "$CC"; then
2680 echo "$as_me:$LINENO: result: $CC" >&5
2681 echo "${ECHO_T}$CC" >&6
2683 echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2688 if test -z "$ac_cv_prog_CC"; then
2690 # Extract the first word of "cc", so it can be a program name with args.
2691 set dummy cc; ac_word=$2
2692 echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 if test -n "$ac_ct_CC"; then
2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_ac_ct_CC="cc"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717 if test -n "$ac_ct_CC"; then
2718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2719 echo "${ECHO_T}$ac_ct_CC" >&6
2721 echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6
2731 if test -z "$CC"; then
2732 # Extract the first word of "cc", so it can be a program name with args.
2733 set dummy cc; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2751 ac_prog_rejected=yes
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 if test $ac_prog_rejected = yes; then
2762 # We found a bogon in the path, so make sure we never use it.
2763 set dummy $ac_cv_prog_CC
2765 if test $# != 0; then
2766 # We chose a different compiler from the bogus one.
2767 # However, it has the same basename, so the bogon will be chosen
2768 # first if we set CC to just the basename; use the full file name.
2770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2776 if test -n "$CC"; then
2777 echo "$as_me:$LINENO: result: $CC" >&5
2778 echo "${ECHO_T}$CC" >&6
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 if test -n "$CC"; then
2817 echo "$as_me:$LINENO: result: $CC" >&5
2818 echo "${ECHO_T}$CC" >&6
2820 echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2824 test -n "$CC" && break
2827 if test -z "$CC"; then
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$ac_ct_CC"; then
2839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_ac_ct_CC="$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2860 echo "${ECHO_T}$ac_ct_CC" >&6
2862 echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2866 test -n "$ac_ct_CC" && break
2875 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: no acceptable C compiler found in \$PATH
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO:" \
2883 "checking for C compiler version" >&5
2884 ac_compiler=`set X $ac_compile; echo $2`
2885 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2886 (eval $ac_compiler --version </dev/null >&5) 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }
2890 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2891 (eval $ac_compiler -v </dev/null >&5) 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2896 (eval $ac_compiler -V </dev/null >&5) 2>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2901 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2902 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2903 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2957 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2959 GCC=`test $ac_compiler_gnu = yes && echo yes`
2960 ac_test_CFLAGS=${CFLAGS+set}
2961 ac_save_CFLAGS=$CFLAGS
2963 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2965 if test "${ac_cv_prog_cc_g+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985 (eval $ac_compile) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -z "$ac_c_werror_flag"
2993 || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3014 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3015 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3016 if test "$ac_test_CFLAGS" = set; then
3017 CFLAGS=$ac_save_CFLAGS
3018 elif test $ac_cv_prog_cc_g = yes; then
3019 if test "$GCC" = yes; then
3025 if test "$GCC" = yes; then
3031 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3032 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3033 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 ac_cv_prog_cc_stdc=no
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3046 #include <sys/types.h>
3047 #include <sys/stat.h>
3048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3049 struct buf { int x; };
3050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3051 static char *e (p, i)
3057 static char *f (char * (*g) (char **, int), char **p, ...)
3062 s = g (p, va_arg (v,int));
3067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3068 function prototypes and stuff, but not '\xHH' hex character constants.
3069 These don't provoke an error unfortunately, instead are silently treated
3070 as 'x'. The following induces an error, until -std1 is added to get
3071 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3072 array size at least. It's necessary to write '\x00'==0 to get something
3073 that's true only with -std1. */
3074 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3076 int test (int i, double x);
3077 struct s1 {int (*f) (int a);};
3078 struct s2 {int (*f) (double a);};
3079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3090 # Don't try gcc -ansi; that turns off useful extensions and
3091 # breaks some systems' header files.
3092 # AIX -qlanglvl=ansi
3093 # Ultrix and OSF/1 -std1
3094 # HP-UX 10.20 and later -Ae
3095 # HP-UX older versions -Aa -D_HPUX_SOURCE
3096 # SVR4 -Xc -D__EXTENSIONS__
3097 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3099 CC="$ac_save_CC $ac_arg"
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag"
3110 || test ! -s conftest.err'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 ac_cv_prog_cc_stdc=$ac_arg
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3129 rm -f conftest.err conftest.$ac_objext
3131 rm -f conftest.$ac_ext conftest.$ac_objext
3136 case "x$ac_cv_prog_cc_stdc" in
3138 echo "$as_me:$LINENO: result: none needed" >&5
3139 echo "${ECHO_T}none needed" >&6 ;;
3141 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3142 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3143 CC="$CC $ac_cv_prog_cc_stdc" ;;
3146 # Some people use a C++ compiler to compile C. Since we use `exit',
3147 # in C++ we need to declare it. In case someone uses the same compiler
3148 # for both compiling C and C++ we need to have the C++ compiler decide
3149 # the declaration of exit, since it's the most demanding environment.
3150 cat >conftest.$ac_ext <<_ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 for ac_declaration in \
3179 'extern "C" void std::exit (int) throw (); using std::exit;' \
3180 'extern "C" void std::exit (int); using std::exit;' \
3181 'extern "C" void exit (int) throw ();' \
3182 'extern "C" void exit (int);' \
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 { ac_try='test -z "$ac_c_werror_flag"
3211 || test ! -s conftest.err'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -z "$ac_c_werror_flag"
3256 || test ! -s conftest.err'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; } &&
3262 { ac_try='test -s conftest.$ac_objext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277 if test -n "$ac_declaration"; then
3278 echo '#ifdef __cplusplus' >>confdefs.h
3279 echo $ac_declaration >>confdefs.h
3280 echo '#endif' >>confdefs.h
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3302 echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_RANLIB+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if test -n "$RANLIB"; then
3308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 RANLIB=$ac_cv_prog_RANLIB
3327 if test -n "$RANLIB"; then
3328 echo "$as_me:$LINENO: result: $RANLIB" >&5
3329 echo "${ECHO_T}$RANLIB" >&6
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3336 if test -z "$ac_cv_prog_RANLIB"; then
3337 ac_ct_RANLIB=$RANLIB
3338 # Extract the first word of "ranlib", so it can be a program name with args.
3339 set dummy ranlib; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 if test -n "$ac_ct_RANLIB"; then
3346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_ac_ct_RANLIB="ranlib"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3366 if test -n "$ac_ct_RANLIB"; then
3367 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3368 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 RANLIB=$ac_ct_RANLIB
3376 RANLIB="$ac_cv_prog_RANLIB"
3380 # Put a plausible default for CC_FOR_BUILD in Makefile.
3381 if test "x$cross_compiling" = "xno"; then
3382 CC_FOR_BUILD='$(CC)'
3388 # If a cpu ever has more than one simulator to choose from, use
3389 # --enable-sim=... to choose.
3390 # Check whether --enable-sim or --disable-sim was given.
3391 if test "${enable_sim+set}" = set; then
3392 enableval="$enable_sim"
3393 case "${enableval}" in
3395 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for --enable-sim option" >&5
3396 echo "$as_me: error: bad value ${enableval} given for --enable-sim option" >&2;}
3397 { (exit 1); exit 1; }; } ;;
3401 # WHEN ADDING ENTRIES TO THIS MATRIX:
3403 # Make sure that the left side always has two dashes. Otherwise you
3404 # can get spurious matches. Even for unambiguous cases, do this as a
3405 # convention, else the table becomes a real mess to understand and
3408 if test "${enable_sim}" != no; then
3413 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
3416 subdirs="$subdirs arm"
3421 cris-*-* | crisv32-*-*)
3424 subdirs="$subdirs cris"
3432 subdirs="$subdirs d10v"
3438 subdirs="$subdirs frv"
3446 subdirs="$subdirs h8300"
3454 subdirs="$subdirs m32r"
3459 m68hc11-*-*|m6811-*-*)
3462 subdirs="$subdirs m68hc11"
3470 subdirs="$subdirs mcore"
3478 subdirs="$subdirs mips"
3487 subdirs="$subdirs mn10300"
3495 subdirs="$subdirs sh"
3503 subdirs="$subdirs ppc"
3510 subdirs="$subdirs v850"
3515 if test "$testsuite" = yes; then
3518 subdirs="$subdirs testsuite"
3521 if test "$common" = yes; then
3524 subdirs="$subdirs common"
3527 if test "$igen" = yes; then
3530 subdirs="$subdirs igen"
3535 ac_config_files="$ac_config_files Makefile"
3536 cat >confcache <<\_ACEOF
3537 # This file is a shell script that caches the results of configure
3538 # tests run on this system so they can be shared between configure
3539 # scripts and configure runs, see configure's option --config-cache.
3540 # It is not useful on other systems. If it contains results you don't
3541 # want to keep, you may remove or edit it.
3543 # config.status only pays attention to the cache file if you give it
3544 # the --recheck option to rerun configure.
3546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3552 # The following way of writing the cache mishandles newlines in values,
3553 # but we know of no workaround that is simple, portable, and efficient.
3554 # So, don't put newlines in cache variables' values.
3555 # Ultrix sh set writes to stderr and can't be redirected directly,
3556 # and sets the high bit in the cache file unless we assign to the vars.
3559 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3561 # `set' does not quote correctly, so add quotes (double-quote
3562 # substitution turns \\\\ into \\, and sed turns \\ into \).
3565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3568 # `set' quotes correctly as required by POSIX, so do not add quotes.
3570 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3579 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3581 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3582 if test -w $cache_file; then
3583 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3584 cat confcache >$cache_file
3586 echo "not updating unwritable cache $cache_file"
3591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3592 # Let make expand exec_prefix.
3593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3597 # trailing colons and then remove the whole line if VPATH becomes empty
3598 # (actually we leave an empty line to preserve line numbers).
3599 if test "x$srcdir" = x.; then
3600 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3601 s/:*\$(srcdir):*/:/;
3602 s/:*\${srcdir}:*/:/;
3604 s/^\([^=]*=[ ]*\):*/\1/;
3610 # Transform confdefs.h into DEFS.
3611 # Protect against shell expansion while executing Makefile rules.
3612 # Protect against Makefile macro expansion.
3614 # If the first sed substitution is executed (which looks for macros that
3615 # take arguments), then we branch to the quote section. Otherwise,
3616 # look for a macro that doesn't take arguments.
3617 cat >confdef2opt.sed <<\_ACEOF
3620 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3622 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3626 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3632 # We use echo to avoid assuming a particular line-breaking character.
3633 # The extra dot is to prevent the shell from consuming trailing
3634 # line-breaks from the sub-command output. A line-break within
3635 # single-quotes doesn't work because, if this script is created in a
3636 # platform that uses two characters for line-breaks (e.g., DOS), tr
3638 ac_LF_and_DOT=`echo; echo .`
3639 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3640 rm -f confdef2opt.sed
3645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3646 # 1. Remove the extension, and $U if already installed.
3647 ac_i=`echo "$ac_i" |
3648 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3650 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3651 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3655 LTLIBOBJS=$ac_ltlibobjs
3659 : ${CONFIG_STATUS=./config.status}
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3662 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3663 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3664 cat >$CONFIG_STATUS <<_ACEOF
3666 # Generated by $as_me.
3667 # Run this file to recreate the current configuration.
3668 # Compiler output produced by configure, useful for debugging
3669 # configure, is in config.log if it exists.
3674 SHELL=\${CONFIG_SHELL-$SHELL}
3677 cat >>$CONFIG_STATUS <<\_ACEOF
3678 ## --------------------- ##
3679 ## M4sh Initialization. ##
3680 ## --------------------- ##
3682 # Be Bourne compatible
3683 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3686 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3687 # is contrary to our usage. Disable this feature.
3688 alias -g '${1+"$@"}'='"$@"'
3689 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3692 DUALCASE=1; export DUALCASE # for MKS sh
3694 # Support unset when possible.
3695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3702 # Work around bugs in pre-3.0 UWIN ksh.
3703 $as_unset ENV MAIL MAILPATH
3710 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3711 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3712 LC_TELEPHONE LC_TIME
3714 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3715 eval $as_var=C; export $as_var
3721 # Required to use basename.
3722 if expr a : '\(a\)' >/dev/null 2>&1; then
3728 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3729 as_basename=basename
3735 # Name of the executable.
3736 as_me=`$as_basename "$0" ||
3737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3738 X"$0" : 'X\(//\)$' \| \
3739 X"$0" : 'X\(/\)$' \| \
3740 . : '\(.\)' 2>/dev/null ||
3742 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3743 /^X\/\(\/\/\)$/{ s//\1/; q; }
3744 /^X\/\(\/\).*/{ s//\1/; q; }
3748 # PATH needs CR, and LINENO needs CR and PATH.
3749 # Avoid depending upon Character Ranges.
3750 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3751 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3752 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3753 as_cr_digits='0123456789'
3754 as_cr_alnum=$as_cr_Letters$as_cr_digits
3756 # The user is always right.
3757 if test "${PATH_SEPARATOR+set}" != set; then
3758 echo "#! /bin/sh" >conf$$.sh
3759 echo "exit 0" >>conf$$.sh
3761 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3772 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3773 test "x$as_lineno_1" != "x$as_lineno_2" &&
3774 test "x$as_lineno_3" = "x$as_lineno_2" || {
3775 # Find who we are. Look in the path if we contain no path at all
3778 *[\\/]* ) as_myself=$0 ;;
3779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3789 # We did not find ourselves, most probably we were run as `sh COMMAND'
3790 # in which case we are not to be found in the path.
3791 if test "x$as_myself" = x; then
3794 if test ! -f "$as_myself"; then
3795 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3796 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3797 { (exit 1); exit 1; }; }
3799 case $CONFIG_SHELL in
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3805 test -z "$as_dir" && as_dir=.
3806 for as_base in sh bash ksh sh5; do
3809 if ("$as_dir/$as_base" -c '
3812 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3813 test "x$as_lineno_1" != "x$as_lineno_2" &&
3814 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3815 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3816 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3817 CONFIG_SHELL=$as_dir/$as_base
3819 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3827 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3828 # uniformly replaced by the line number. The first 'sed' inserts a
3829 # line-number line before each line; the second 'sed' does the real
3830 # work. The second script uses 'N' to pair each line-number line
3831 # with the numbered line, and appends trailing '-' during
3832 # substitution so that $LINENO is not a special case at line end.
3833 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3834 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3835 sed '=' <$as_myself |
3840 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3843 s,^['$as_cr_digits']*\n,,
3845 chmod +x $as_me.lineno ||
3846 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3847 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3848 { (exit 1); exit 1; }; }
3850 # Don't try to exec as it changes $[0], causing all sort of problems
3851 # (the dirname of $[0] is not the place where we might find the
3852 # original and so on. Autoconf is especially sensible to this).
3854 # Exit status is that of the last command.
3859 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3860 *c*,-n*) ECHO_N= ECHO_C='
3862 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3863 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3866 if expr a : '\(a\)' >/dev/null 2>&1; then
3872 rm -f conf$$ conf$$.exe conf$$.file
3874 if ln -s conf$$.file conf$$ 2>/dev/null; then
3875 # We could just check for DJGPP; but this test a) works b) is more generic
3876 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3877 if test -f conf$$.exe; then
3878 # Don't use ln at all; we don't have any links
3883 elif ln conf$$.file conf$$ 2>/dev/null; then
3888 rm -f conf$$ conf$$.exe conf$$.file
3890 if mkdir -p . 2>/dev/null; then
3893 test -d ./-p && rmdir ./-p
3897 as_executable_p="test -f"
3899 # Sed expression to map a string onto a valid CPP name.
3900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3902 # Sed expression to map a string onto a valid variable name.
3903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3907 # We need space, tab and new line, in precisely that order.
3917 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3918 # report actual input values of CONFIG_FILES etc. instead of their
3919 # values after options handling. Logging --version etc. is OK.
3923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3924 ## Running $as_me. ##
3929 This file was extended by $as_me, which was
3930 generated by GNU Autoconf 2.59. Invocation command line was
3932 CONFIG_FILES = $CONFIG_FILES
3933 CONFIG_HEADERS = $CONFIG_HEADERS
3934 CONFIG_LINKS = $CONFIG_LINKS
3935 CONFIG_COMMANDS = $CONFIG_COMMANDS
3939 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3943 # Files that config.status was made for.
3944 if test -n "$ac_config_files"; then
3945 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3948 if test -n "$ac_config_headers"; then
3949 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3952 if test -n "$ac_config_links"; then
3953 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3956 if test -n "$ac_config_commands"; then
3957 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3960 cat >>$CONFIG_STATUS <<\_ACEOF
3963 \`$as_me' instantiates files from templates according to the
3964 current configuration.
3966 Usage: $0 [OPTIONS] [FILE]...
3968 -h, --help print this help, then exit
3969 -V, --version print version number, then exit
3970 -q, --quiet do not print progress messages
3971 -d, --debug don't remove temporary files
3972 --recheck update $as_me by reconfiguring in the same conditions
3973 --file=FILE[:TEMPLATE]
3974 instantiate the configuration file FILE
3976 Configuration files:
3979 Report bugs to <bug-autoconf@gnu.org>."
3982 cat >>$CONFIG_STATUS <<_ACEOF
3985 configured by $0, generated by GNU Autoconf 2.59,
3986 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3988 Copyright (C) 2003 Free Software Foundation, Inc.
3989 This config.status script is free software; the Free Software Foundation
3990 gives unlimited permission to copy, distribute and modify it."
3995 cat >>$CONFIG_STATUS <<\_ACEOF
3996 # If no file are specified by the user, then we need to provide default
3997 # value. By we need to know if files were specified by the user.
4003 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4004 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4012 *) # This is not an option, so the user has probably given explicit
4015 ac_need_defaults=false;;
4019 # Handling of the options.
4021 cat >>$CONFIG_STATUS <<\_ACEOF
4022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4024 --version | --vers* | -V )
4025 echo "$ac_cs_version"; exit 0 ;;
4027 # Conflict between --help and --header
4028 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4029 Try \`$0 --help' for more information." >&5
4030 echo "$as_me: error: ambiguous option: $1
4031 Try \`$0 --help' for more information." >&2;}
4032 { (exit 1); exit 1; }; };;
4033 --help | --hel | -h )
4034 echo "$ac_cs_usage"; exit 0 ;;
4035 --debug | --d* | -d )
4037 --file | --fil | --fi | --f )
4039 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4040 ac_need_defaults=false;;
4041 --header | --heade | --head | --hea )
4043 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4044 ac_need_defaults=false;;
4045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4050 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4051 Try \`$0 --help' for more information." >&5
4052 echo "$as_me: error: unrecognized option: $1
4053 Try \`$0 --help' for more information." >&2;}
4054 { (exit 1); exit 1; }; } ;;
4056 *) ac_config_targets="$ac_config_targets $1" ;;
4062 ac_configure_extra_args=
4064 if $ac_cs_silent; then
4066 ac_configure_extra_args="$ac_configure_extra_args --silent"
4070 cat >>$CONFIG_STATUS <<_ACEOF
4071 if \$ac_cs_recheck; then
4072 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4073 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4082 cat >>$CONFIG_STATUS <<\_ACEOF
4083 for ac_config_target in $ac_config_targets
4085 case "$ac_config_target" in
4086 # Handling of arguments.
4087 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4088 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4090 { (exit 1); exit 1; }; };;
4094 # If the user did not use the arguments to specify the items to instantiate,
4095 # then the envvar interface is used. Set only those that are not.
4096 # We use the long form for the default assignment because of an extremely
4097 # bizarre bug on SunOS 4.1.3.
4098 if $ac_need_defaults; then
4099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4102 # Have a temporary directory for convenience. Make it in the build tree
4103 # simply because there is no reason to put it here, and in addition,
4104 # creating and moving files from /tmp can sometimes cause problems.
4105 # Create a temporary directory, and hook for its removal unless debugging.
4108 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4109 trap '{ (exit 1); exit 1; }' 1 2 13 15
4112 # Create a (secure) tmp directory for tmp files.
4115 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4116 test -n "$tmp" && test -d "$tmp"
4119 tmp=./confstat$$-$RANDOM
4120 (umask 077 && mkdir $tmp)
4123 echo "$me: cannot create a temporary directory in ." >&2
4124 { (exit 1); exit 1; }
4129 cat >>$CONFIG_STATUS <<_ACEOF
4132 # CONFIG_FILES section.
4135 # No need to generate the scripts if there are no CONFIG_FILES.
4136 # This happens for instance when ./config.status config.h
4137 if test -n "\$CONFIG_FILES"; then
4138 # Protect against being on the right side of a sed subst in config.status.
4139 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4140 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4141 s,@SHELL@,$SHELL,;t t
4142 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4143 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4144 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4145 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4146 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4147 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4148 s,@exec_prefix@,$exec_prefix,;t t
4149 s,@prefix@,$prefix,;t t
4150 s,@program_transform_name@,$program_transform_name,;t t
4151 s,@bindir@,$bindir,;t t
4152 s,@sbindir@,$sbindir,;t t
4153 s,@libexecdir@,$libexecdir,;t t
4154 s,@datadir@,$datadir,;t t
4155 s,@sysconfdir@,$sysconfdir,;t t
4156 s,@sharedstatedir@,$sharedstatedir,;t t
4157 s,@localstatedir@,$localstatedir,;t t
4158 s,@libdir@,$libdir,;t t
4159 s,@includedir@,$includedir,;t t
4160 s,@oldincludedir@,$oldincludedir,;t t
4161 s,@infodir@,$infodir,;t t
4162 s,@mandir@,$mandir,;t t
4163 s,@build_alias@,$build_alias,;t t
4164 s,@host_alias@,$host_alias,;t t
4165 s,@target_alias@,$target_alias,;t t
4167 s,@ECHO_C@,$ECHO_C,;t t
4168 s,@ECHO_N@,$ECHO_N,;t t
4169 s,@ECHO_T@,$ECHO_T,;t t
4172 s,@CFLAGS@,$CFLAGS,;t t
4173 s,@LDFLAGS@,$LDFLAGS,;t t
4174 s,@CPPFLAGS@,$CPPFLAGS,;t t
4175 s,@ac_ct_CC@,$ac_ct_CC,;t t
4176 s,@EXEEXT@,$EXEEXT,;t t
4177 s,@OBJEXT@,$OBJEXT,;t t
4178 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4179 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4180 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4182 s,@ac_ct_AR@,$ac_ct_AR,;t t
4183 s,@RANLIB@,$RANLIB,;t t
4184 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4185 s,@build@,$build,;t t
4186 s,@build_cpu@,$build_cpu,;t t
4187 s,@build_vendor@,$build_vendor,;t t
4188 s,@build_os@,$build_os,;t t
4190 s,@host_cpu@,$host_cpu,;t t
4191 s,@host_vendor@,$host_vendor,;t t
4192 s,@host_os@,$host_os,;t t
4193 s,@target@,$target,;t t
4194 s,@target_cpu@,$target_cpu,;t t
4195 s,@target_vendor@,$target_vendor,;t t
4196 s,@target_os@,$target_os,;t t
4197 s,@HDEFINES@,$HDEFINES,;t t
4198 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4199 s,@subdirs@,$subdirs,;t t
4200 s,@LIBOBJS@,$LIBOBJS,;t t
4201 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4206 cat >>$CONFIG_STATUS <<\_ACEOF
4207 # Split the substitutions into bite-sized pieces for seds with
4208 # small command number limits, like on Digital OSF/1 and HP-UX.
4210 ac_sed_frag=1 # Number of current file.
4211 ac_beg=1 # First line for current file.
4212 ac_end=$ac_max_sed_lines # Line after last line for current file.
4215 while $ac_more_lines; do
4216 if test $ac_beg -gt 1; then
4217 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4219 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4221 if test ! -s $tmp/subs.frag; then
4224 # The purpose of the label and of the branching condition is to
4225 # speed up the sed processing (if there are no `@' at all, there
4226 # is no need to browse any of the substitutions).
4227 # These are the two extra sed commands mentioned above.
4229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4230 if test -z "$ac_sed_cmds"; then
4231 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4233 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4235 ac_sed_frag=`expr $ac_sed_frag + 1`
4237 ac_end=`expr $ac_end + $ac_max_sed_lines`
4240 if test -z "$ac_sed_cmds"; then
4243 fi # test -n "$CONFIG_FILES"
4246 cat >>$CONFIG_STATUS <<\_ACEOF
4247 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4250 - | *:- | *:-:* ) # input from stdin
4252 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4254 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4256 * ) ac_file_in=$ac_file.in ;;
4259 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4260 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4261 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4262 X"$ac_file" : 'X\(//\)[^/]' \| \
4263 X"$ac_file" : 'X\(//\)$' \| \
4264 X"$ac_file" : 'X\(/\)' \| \
4265 . : '\(.\)' 2>/dev/null ||
4267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4269 /^X\(\/\/\)$/{ s//\1/; q; }
4270 /^X\(\/\).*/{ s//\1/; q; }
4272 { if $as_mkdir_p; then
4277 while test ! -d "$as_dir"; do
4278 as_dirs="$as_dir $as_dirs"
4279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4281 X"$as_dir" : 'X\(//\)[^/]' \| \
4282 X"$as_dir" : 'X\(//\)$' \| \
4283 X"$as_dir" : 'X\(/\)' \| \
4284 . : '\(.\)' 2>/dev/null ||
4286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4288 /^X\(\/\/\)$/{ s//\1/; q; }
4289 /^X\(\/\).*/{ s//\1/; q; }
4292 test ! -n "$as_dirs" || mkdir $as_dirs
4293 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4294 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4295 { (exit 1); exit 1; }; }; }
4299 if test "$ac_dir" != .; then
4300 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4301 # A "../" for each directory in $ac_dir_suffix.
4302 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4304 ac_dir_suffix= ac_top_builddir=
4308 .) # No --srcdir option. We are building in place.
4310 if test -z "$ac_top_builddir"; then
4313 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4315 [\\/]* | ?:[\\/]* ) # Absolute path.
4316 ac_srcdir=$srcdir$ac_dir_suffix;
4317 ac_top_srcdir=$srcdir ;;
4319 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4320 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4323 # Do not use `cd foo && pwd` to compute absolute paths, because
4324 # the directories may not exist.
4326 .) ac_abs_builddir="$ac_dir";;
4329 .) ac_abs_builddir=`pwd`;;
4330 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4331 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4334 case $ac_abs_builddir in
4335 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4337 case ${ac_top_builddir}. in
4338 .) ac_abs_top_builddir=$ac_abs_builddir;;
4339 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4340 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4343 case $ac_abs_builddir in
4344 .) ac_abs_srcdir=$ac_srcdir;;
4347 .) ac_abs_srcdir=$ac_abs_builddir;;
4348 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4349 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4352 case $ac_abs_builddir in
4353 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4355 case $ac_top_srcdir in
4356 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4357 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4358 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4365 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4368 if test x"$ac_file" != x-; then
4369 { echo "$as_me:$LINENO: creating $ac_file" >&5
4370 echo "$as_me: creating $ac_file" >&6;}
4373 # Let's still pretend it is `configure' which instantiates (i.e., don't
4374 # use $as_me), people would be surprised to read:
4375 # /* config.h. Generated by config.status. */
4376 if test x"$ac_file" = x-; then
4379 configure_input="$ac_file. "
4381 configure_input=$configure_input"Generated from `echo $ac_file_in |
4382 sed 's,.*/,,'` by configure."
4384 # First look for the input files in the build tree, otherwise in the
4386 ac_file_inputs=`IFS=:
4387 for f in $ac_file_in; do
4389 -) echo $tmp/stdin ;;
4391 # Absolute (can't be DOS-style, as IFS=:)
4392 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4393 echo "$as_me: error: cannot find input file: $f" >&2;}
4394 { (exit 1); exit 1; }; }
4397 if test -f "$f"; then
4400 elif test -f "$srcdir/$f"; then
4405 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4406 echo "$as_me: error: cannot find input file: $f" >&2;}
4407 { (exit 1); exit 1; }; }
4410 done` || { (exit 1); exit 1; }
4412 cat >>$CONFIG_STATUS <<_ACEOF
4416 cat >>$CONFIG_STATUS <<\_ACEOF
4418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4419 s,@configure_input@,$configure_input,;t t
4420 s,@srcdir@,$ac_srcdir,;t t
4421 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4422 s,@top_srcdir@,$ac_top_srcdir,;t t
4423 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4424 s,@builddir@,$ac_builddir,;t t
4425 s,@abs_builddir@,$ac_abs_builddir,;t t
4426 s,@top_builddir@,$ac_top_builddir,;t t
4427 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4428 s,@INSTALL@,$ac_INSTALL,;t t
4429 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4431 if test x"$ac_file" != x-; then
4432 mv $tmp/out $ac_file
4441 cat >>$CONFIG_STATUS <<\_ACEOF
4443 { (exit 0); exit 0; }
4445 chmod +x $CONFIG_STATUS
4446 ac_clean_files=$ac_clean_files_save
4449 # configure is writing to config.log, and then calls config.status.
4450 # config.status does its own redirection, appending to config.log.
4451 # Unfortunately, on DOS this fails, as config.log is still kept open
4452 # by configure, so config.status won't be able to write to it; its
4453 # output is simply discarded. So we exec the FD to /dev/null,
4454 # effectively closing config.log, so it can be properly (re)opened and
4455 # appended to by config.status. When coming back to configure, we
4456 # need to make the FD available again.
4457 if test "$no_create" != yes; then
4459 ac_config_status_args=
4460 test "$silent" = yes &&
4461 ac_config_status_args="$ac_config_status_args --quiet"
4463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4466 # would make configure fail if this is the last instruction.
4467 $ac_cs_success || { (exit 1); exit 1; }
4471 # CONFIG_SUBDIRS section.
4473 if test "$no_recursion" != yes; then
4475 # Remove --cache-file and --srcdir arguments so they do not pile up.
4476 ac_sub_configure_args=
4478 for ac_arg in $ac_configure_args; do
4479 if test -n "$ac_prev"; then
4484 -cache-file | --cache-file | --cache-fil | --cache-fi \
4485 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4486 ac_prev=cache_file ;;
4487 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4488 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4491 --config-cache | -C)
4493 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4495 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4501 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4505 # Always prepend --prefix to ensure using the same prefix
4506 # in subdir configurations.
4507 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4510 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4512 # Do not complain, so a configure script can configure whichever
4513 # parts of a large source tree are present.
4514 test -d $srcdir/$ac_dir || continue
4516 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4517 echo "$as_me: configuring in $ac_dir" >&6;}
4518 { if $as_mkdir_p; then
4523 while test ! -d "$as_dir"; do
4524 as_dirs="$as_dir $as_dirs"
4525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4527 X"$as_dir" : 'X\(//\)[^/]' \| \
4528 X"$as_dir" : 'X\(//\)$' \| \
4529 X"$as_dir" : 'X\(/\)' \| \
4530 . : '\(.\)' 2>/dev/null ||
4532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4534 /^X\(\/\/\)$/{ s//\1/; q; }
4535 /^X\(\/\).*/{ s//\1/; q; }
4538 test ! -n "$as_dirs" || mkdir $as_dirs
4539 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4541 { (exit 1); exit 1; }; }; }
4545 if test "$ac_dir" != .; then
4546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4547 # A "../" for each directory in $ac_dir_suffix.
4548 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4550 ac_dir_suffix= ac_top_builddir=
4554 .) # No --srcdir option. We are building in place.
4556 if test -z "$ac_top_builddir"; then
4559 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4561 [\\/]* | ?:[\\/]* ) # Absolute path.
4562 ac_srcdir=$srcdir$ac_dir_suffix;
4563 ac_top_srcdir=$srcdir ;;
4565 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4566 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4569 # Do not use `cd foo && pwd` to compute absolute paths, because
4570 # the directories may not exist.
4572 .) ac_abs_builddir="$ac_dir";;
4575 .) ac_abs_builddir=`pwd`;;
4576 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4577 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4580 case $ac_abs_builddir in
4581 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4583 case ${ac_top_builddir}. in
4584 .) ac_abs_top_builddir=$ac_abs_builddir;;
4585 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4586 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4589 case $ac_abs_builddir in
4590 .) ac_abs_srcdir=$ac_srcdir;;
4593 .) ac_abs_srcdir=$ac_abs_builddir;;
4594 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4595 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4598 case $ac_abs_builddir in
4599 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4601 case $ac_top_srcdir in
4602 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4603 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4604 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4611 # Check for guested configure; otherwise get Cygnus style configure.
4612 if test -f $ac_srcdir/configure.gnu; then
4613 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4614 elif test -f $ac_srcdir/configure; then
4615 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4616 elif test -f $ac_srcdir/configure.in; then
4617 ac_sub_configure=$ac_configure
4619 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4620 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4624 # The recursion is here.
4625 if test -n "$ac_sub_configure"; then
4626 # Make the cache file name correct relative to the subdirectory.
4628 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4630 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
4633 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4634 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4635 # The eval makes quoting arguments work.
4636 eval $ac_sub_configure $ac_sub_configure_args \
4637 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4638 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4639 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4640 { (exit 1); exit 1; }; }