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 d10v"
277 ac_subdirs_all="$ac_subdirs_all frv"
278 ac_subdirs_all="$ac_subdirs_all h8300"
279 ac_subdirs_all="$ac_subdirs_all m32r"
280 ac_subdirs_all="$ac_subdirs_all m68hc11"
281 ac_subdirs_all="$ac_subdirs_all mcore"
282 ac_subdirs_all="$ac_subdirs_all mips"
283 ac_subdirs_all="$ac_subdirs_all mn10300"
284 ac_subdirs_all="$ac_subdirs_all sh"
285 ac_subdirs_all="$ac_subdirs_all ppc"
286 ac_subdirs_all="$ac_subdirs_all v850"
287 ac_subdirs_all="$ac_subdirs_all erc32"
288 ac_subdirs_all="$ac_subdirs_all testsuite"
289 ac_subdirs_all="$ac_subdirs_all common"
290 ac_subdirs_all="$ac_subdirs_all igen"
291 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os HDEFINES CC_FOR_BUILD subdirs LIBOBJS LTLIBOBJS'
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"
2472 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2473 if test -f $ac_dir/install-sh; then
2475 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 elif test -f $ac_dir/install.sh; then
2479 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 elif test -f $ac_dir/shtool; then
2483 ac_install_sh="$ac_aux_dir/shtool install -c"
2487 if test -z "$ac_aux_dir"; then
2488 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2489 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2490 { (exit 1); exit 1; }; }
2492 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2493 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2494 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2496 # Make sure we can run config.sub.
2497 $ac_config_sub sun4 >/dev/null 2>&1 ||
2498 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2499 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2500 { (exit 1); exit 1; }; }
2502 echo "$as_me:$LINENO: checking build system type" >&5
2503 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2504 if test "${ac_cv_build+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 ac_cv_build_alias=$build_alias
2508 test -z "$ac_cv_build_alias" &&
2509 ac_cv_build_alias=`$ac_config_guess`
2510 test -z "$ac_cv_build_alias" &&
2511 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2513 { (exit 1); exit 1; }; }
2514 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2516 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2517 { (exit 1); exit 1; }; }
2520 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2521 echo "${ECHO_T}$ac_cv_build" >&6
2523 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2524 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2525 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2528 echo "$as_me:$LINENO: checking host system type" >&5
2529 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2530 if test "${ac_cv_host+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 ac_cv_host_alias=$host_alias
2534 test -z "$ac_cv_host_alias" &&
2535 ac_cv_host_alias=$ac_cv_build_alias
2536 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2538 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2539 { (exit 1); exit 1; }; }
2542 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2543 echo "${ECHO_T}$ac_cv_host" >&6
2545 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2546 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2547 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2550 echo "$as_me:$LINENO: checking target system type" >&5
2551 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2552 if test "${ac_cv_target+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 ac_cv_target_alias=$target_alias
2556 test "x$ac_cv_target_alias" = "x" &&
2557 ac_cv_target_alias=$ac_cv_host_alias
2558 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2560 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2561 { (exit 1); exit 1; }; }
2564 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2565 echo "${ECHO_T}$ac_cv_target" >&6
2566 target=$ac_cv_target
2567 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2568 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2569 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2572 # The aliases save the names the user supplied, while $host etc.
2573 # will get canonicalized.
2574 test -n "$target_alias" &&
2575 test "$program_prefix$program_suffix$program_transform_name" = \
2577 program_prefix=${target_alias}-
2578 test "$program_prefix" != NONE &&
2579 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2580 # Use a double $ so make ignores it.
2581 test "$program_suffix" != NONE &&
2582 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2583 # Double any \ or $. echo might interpret backslashes.
2584 # By default was `s,x,x', remove it if useless.
2585 cat <<\_ACEOF >conftest.sed
2586 s/[\\$]/&&/g;s/;s,x,x,$//
2588 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2599 echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 if test -n "$CC"; then
2625 echo "$as_me:$LINENO: result: $CC" >&5
2626 echo "${ECHO_T}$CC" >&6
2628 echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2633 if test -z "$ac_cv_prog_CC"; then
2635 # Extract the first word of "gcc", so it can be a program name with args.
2636 set dummy gcc; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_ac_ct_CC="gcc"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2662 if test -n "$ac_ct_CC"; then
2663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2664 echo "${ECHO_T}$ac_ct_CC" >&6
2666 echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2675 if test -z "$CC"; then
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}cc; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_CC+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_CC="${ac_tool_prefix}cc"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 if test -n "$CC"; then
2705 echo "$as_me:$LINENO: result: $CC" >&5
2706 echo "${ECHO_T}$CC" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2713 if test -z "$ac_cv_prog_CC"; then
2715 # Extract the first word of "cc", so it can be a program name with args.
2716 set dummy cc; ac_word=$2
2717 echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_ac_ct_CC="cc"
2733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742 if test -n "$ac_ct_CC"; then
2743 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744 echo "${ECHO_T}$ac_ct_CC" >&6
2746 echo "$as_me:$LINENO: result: no" >&5
2747 echo "${ECHO_T}no" >&6
2756 if test -z "$CC"; then
2757 # Extract the first word of "cc", so it can be a program name with args.
2758 set dummy cc; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2776 ac_prog_rejected=yes
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2801 if test -n "$CC"; then
2802 echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816 echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2818 if test "${ac_cv_prog_CC+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CC"; then
2842 echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2849 test -n "$CC" && break
2852 if test -z "$CC"; then
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 echo "$as_me:$LINENO: checking for $ac_word" >&5
2859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 if test -n "$ac_ct_CC"; then
2864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_ac_ct_CC="$ac_prog"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2885 echo "${ECHO_T}$ac_ct_CC" >&6
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2891 test -n "$ac_ct_CC" && break
2900 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: no acceptable C compiler found in \$PATH
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2906 # Provide some information about the compiler.
2907 echo "$as_me:$LINENO:" \
2908 "checking for C compiler version" >&5
2909 ac_compiler=`set X $ac_compile; echo $2`
2910 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2911 (eval $ac_compiler --version </dev/null >&5) 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2916 (eval $ac_compiler -v </dev/null >&5) 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }
2920 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2921 (eval $ac_compiler -V </dev/null >&5) 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2926 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2982 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2983 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2984 GCC=`test $ac_compiler_gnu = yes && echo yes`
2985 ac_test_CFLAGS=${CFLAGS+set}
2986 ac_save_CFLAGS=$CFLAGS
2988 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2989 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2990 if test "${ac_cv_prog_cc_g+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_c_werror_flag"
3018 || test ! -s conftest.err'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3039 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3040 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3041 if test "$ac_test_CFLAGS" = set; then
3042 CFLAGS=$ac_save_CFLAGS
3043 elif test $ac_cv_prog_cc_g = yes; then
3044 if test "$GCC" = yes; then
3050 if test "$GCC" = yes; then
3056 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3057 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3058 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 ac_cv_prog_cc_stdc=no
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3071 #include <sys/types.h>
3072 #include <sys/stat.h>
3073 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3074 struct buf { int x; };
3075 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3076 static char *e (p, i)
3082 static char *f (char * (*g) (char **, int), char **p, ...)
3087 s = g (p, va_arg (v,int));
3092 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3093 function prototypes and stuff, but not '\xHH' hex character constants.
3094 These don't provoke an error unfortunately, instead are silently treated
3095 as 'x'. The following induces an error, until -std1 is added to get
3096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3097 array size at least. It's necessary to write '\x00'==0 to get something
3098 that's true only with -std1. */
3099 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3101 int test (int i, double x);
3102 struct s1 {int (*f) (int a);};
3103 struct s2 {int (*f) (double a);};
3104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3115 # Don't try gcc -ansi; that turns off useful extensions and
3116 # breaks some systems' header files.
3117 # AIX -qlanglvl=ansi
3118 # Ultrix and OSF/1 -std1
3119 # HP-UX 10.20 and later -Ae
3120 # HP-UX older versions -Aa -D_HPUX_SOURCE
3121 # SVR4 -Xc -D__EXTENSIONS__
3122 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3124 CC="$ac_save_CC $ac_arg"
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_c_werror_flag"
3135 || test ! -s conftest.err'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cc_stdc=$ac_arg
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f conftest.err conftest.$ac_objext
3156 rm -f conftest.$ac_ext conftest.$ac_objext
3161 case "x$ac_cv_prog_cc_stdc" in
3163 echo "$as_me:$LINENO: result: none needed" >&5
3164 echo "${ECHO_T}none needed" >&6 ;;
3166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3168 CC="$CC $ac_cv_prog_cc_stdc" ;;
3171 # Some people use a C++ compiler to compile C. Since we use `exit',
3172 # in C++ we need to declare it. In case someone uses the same compiler
3173 # for both compiling C and C++ we need to have the C++ compiler decide
3174 # the declaration of exit, since it's the most demanding environment.
3175 cat >conftest.$ac_ext <<_ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -z "$ac_c_werror_flag"
3190 || test ! -s conftest.err'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 for ac_declaration in \
3204 'extern "C" void std::exit (int) throw (); using std::exit;' \
3205 'extern "C" void std::exit (int); using std::exit;' \
3206 'extern "C" void exit (int) throw ();' \
3207 'extern "C" void exit (int);' \
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 if test -n "$ac_declaration"; then
3303 echo '#ifdef __cplusplus' >>confdefs.h
3304 echo $ac_declaration >>confdefs.h
3305 echo '#endif' >>confdefs.h
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3327 echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_RANLIB+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$RANLIB"; then
3333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 RANLIB=$ac_cv_prog_RANLIB
3352 if test -n "$RANLIB"; then
3353 echo "$as_me:$LINENO: result: $RANLIB" >&5
3354 echo "${ECHO_T}$RANLIB" >&6
3356 echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3361 if test -z "$ac_cv_prog_RANLIB"; then
3362 ac_ct_RANLIB=$RANLIB
3363 # Extract the first word of "ranlib", so it can be a program name with args.
3364 set dummy ranlib; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if test -n "$ac_ct_RANLIB"; then
3371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_RANLIB="ranlib"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3390 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3391 if test -n "$ac_ct_RANLIB"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3393 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3399 RANLIB=$ac_ct_RANLIB
3401 RANLIB="$ac_cv_prog_RANLIB"
3405 # Put a plausible default for CC_FOR_BUILD in Makefile.
3406 if test "x$cross_compiling" = "xno"; then
3407 CC_FOR_BUILD='$(CC)'
3413 # If a cpu ever has more than one simulator to choose from, use
3414 # --enable-sim=... to choose.
3415 # Check whether --enable-sim or --disable-sim was given.
3416 if test "${enable_sim+set}" = set; then
3417 enableval="$enable_sim"
3418 case "${enableval}" in
3420 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for --enable-sim option" >&5
3421 echo "$as_me: error: bad value ${enableval} given for --enable-sim option" >&2;}
3422 { (exit 1); exit 1; }; } ;;
3426 # WHEN ADDING ENTRIES TO THIS MATRIX:
3428 # Make sure that the left side always has two dashes. Otherwise you
3429 # can get spurious matches. Even for unambiguous cases, do this as a
3430 # convention, else the table becomes a real mess to understand and
3433 if test "${enable_sim}" != no; then
3438 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
3441 subdirs="$subdirs arm"
3449 subdirs="$subdirs d10v"
3455 subdirs="$subdirs frv"
3463 subdirs="$subdirs h8300"
3471 subdirs="$subdirs m32r"
3476 m68hc11-*-*|m6811-*-*)
3479 subdirs="$subdirs m68hc11"
3487 subdirs="$subdirs mcore"
3495 subdirs="$subdirs mips"
3503 subdirs="$subdirs mn10300"
3510 subdirs="$subdirs sh"
3518 subdirs="$subdirs ppc"
3525 subdirs="$subdirs v850"
3532 subdirs="$subdirs erc32"
3536 if test "$testsuite" = yes; then
3539 subdirs="$subdirs testsuite"
3542 if test "$common" = yes; then
3545 subdirs="$subdirs common"
3548 if test "$igen" = yes; then
3551 subdirs="$subdirs igen"
3556 ac_config_files="$ac_config_files Makefile"
3557 cat >confcache <<\_ACEOF
3558 # This file is a shell script that caches the results of configure
3559 # tests run on this system so they can be shared between configure
3560 # scripts and configure runs, see configure's option --config-cache.
3561 # It is not useful on other systems. If it contains results you don't
3562 # want to keep, you may remove or edit it.
3564 # config.status only pays attention to the cache file if you give it
3565 # the --recheck option to rerun configure.
3567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3573 # The following way of writing the cache mishandles newlines in values,
3574 # but we know of no workaround that is simple, portable, and efficient.
3575 # So, don't put newlines in cache variables' values.
3576 # Ultrix sh set writes to stderr and can't be redirected directly,
3577 # and sets the high bit in the cache file unless we assign to the vars.
3580 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3582 # `set' does not quote correctly, so add quotes (double-quote
3583 # substitution turns \\\\ into \\, and sed turns \\ into \).
3586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3589 # `set' quotes correctly as required by POSIX, so do not add quotes.
3591 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3600 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3602 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3603 if test -w $cache_file; then
3604 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3605 cat confcache >$cache_file
3607 echo "not updating unwritable cache $cache_file"
3612 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3613 # Let make expand exec_prefix.
3614 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3618 # trailing colons and then remove the whole line if VPATH becomes empty
3619 # (actually we leave an empty line to preserve line numbers).
3620 if test "x$srcdir" = x.; then
3621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3622 s/:*\$(srcdir):*/:/;
3623 s/:*\${srcdir}:*/:/;
3625 s/^\([^=]*=[ ]*\):*/\1/;
3631 # Transform confdefs.h into DEFS.
3632 # Protect against shell expansion while executing Makefile rules.
3633 # Protect against Makefile macro expansion.
3635 # If the first sed substitution is executed (which looks for macros that
3636 # take arguments), then we branch to the quote section. Otherwise,
3637 # look for a macro that doesn't take arguments.
3638 cat >confdef2opt.sed <<\_ACEOF
3641 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3643 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3647 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3653 # We use echo to avoid assuming a particular line-breaking character.
3654 # The extra dot is to prevent the shell from consuming trailing
3655 # line-breaks from the sub-command output. A line-break within
3656 # single-quotes doesn't work because, if this script is created in a
3657 # platform that uses two characters for line-breaks (e.g., DOS), tr
3659 ac_LF_and_DOT=`echo; echo .`
3660 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3661 rm -f confdef2opt.sed
3666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3667 # 1. Remove the extension, and $U if already installed.
3668 ac_i=`echo "$ac_i" |
3669 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3671 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3672 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3676 LTLIBOBJS=$ac_ltlibobjs
3680 : ${CONFIG_STATUS=./config.status}
3681 ac_clean_files_save=$ac_clean_files
3682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3683 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3684 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3685 cat >$CONFIG_STATUS <<_ACEOF
3687 # Generated by $as_me.
3688 # Run this file to recreate the current configuration.
3689 # Compiler output produced by configure, useful for debugging
3690 # configure, is in config.log if it exists.
3695 SHELL=\${CONFIG_SHELL-$SHELL}
3698 cat >>$CONFIG_STATUS <<\_ACEOF
3699 ## --------------------- ##
3700 ## M4sh Initialization. ##
3701 ## --------------------- ##
3703 # Be Bourne compatible
3704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3707 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3708 # is contrary to our usage. Disable this feature.
3709 alias -g '${1+"$@"}'='"$@"'
3710 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3713 DUALCASE=1; export DUALCASE # for MKS sh
3715 # Support unset when possible.
3716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3723 # Work around bugs in pre-3.0 UWIN ksh.
3724 $as_unset ENV MAIL MAILPATH
3731 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3732 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3733 LC_TELEPHONE LC_TIME
3735 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3736 eval $as_var=C; export $as_var
3742 # Required to use basename.
3743 if expr a : '\(a\)' >/dev/null 2>&1; then
3749 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3750 as_basename=basename
3756 # Name of the executable.
3757 as_me=`$as_basename "$0" ||
3758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3759 X"$0" : 'X\(//\)$' \| \
3760 X"$0" : 'X\(/\)$' \| \
3761 . : '\(.\)' 2>/dev/null ||
3763 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3764 /^X\/\(\/\/\)$/{ s//\1/; q; }
3765 /^X\/\(\/\).*/{ s//\1/; q; }
3769 # PATH needs CR, and LINENO needs CR and PATH.
3770 # Avoid depending upon Character Ranges.
3771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3774 as_cr_digits='0123456789'
3775 as_cr_alnum=$as_cr_Letters$as_cr_digits
3777 # The user is always right.
3778 if test "${PATH_SEPARATOR+set}" != set; then
3779 echo "#! /bin/sh" >conf$$.sh
3780 echo "exit 0" >>conf$$.sh
3782 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3794 test "x$as_lineno_1" != "x$as_lineno_2" &&
3795 test "x$as_lineno_3" = "x$as_lineno_2" || {
3796 # Find who we are. Look in the path if we contain no path at all
3799 *[\\/]* ) as_myself=$0 ;;
3800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3810 # We did not find ourselves, most probably we were run as `sh COMMAND'
3811 # in which case we are not to be found in the path.
3812 if test "x$as_myself" = x; then
3815 if test ! -f "$as_myself"; then
3816 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3817 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3818 { (exit 1); exit 1; }; }
3820 case $CONFIG_SHELL in
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3826 test -z "$as_dir" && as_dir=.
3827 for as_base in sh bash ksh sh5; do
3830 if ("$as_dir/$as_base" -c '
3833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3834 test "x$as_lineno_1" != "x$as_lineno_2" &&
3835 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3836 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3837 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3838 CONFIG_SHELL=$as_dir/$as_base
3840 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3849 # uniformly replaced by the line number. The first 'sed' inserts a
3850 # line-number line before each line; the second 'sed' does the real
3851 # work. The second script uses 'N' to pair each line-number line
3852 # with the numbered line, and appends trailing '-' during
3853 # substitution so that $LINENO is not a special case at line end.
3854 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3855 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3856 sed '=' <$as_myself |
3861 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3864 s,^['$as_cr_digits']*\n,,
3866 chmod +x $as_me.lineno ||
3867 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3868 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3869 { (exit 1); exit 1; }; }
3871 # Don't try to exec as it changes $[0], causing all sort of problems
3872 # (the dirname of $[0] is not the place where we might find the
3873 # original and so on. Autoconf is especially sensible to this).
3875 # Exit status is that of the last command.
3880 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3881 *c*,-n*) ECHO_N= ECHO_C='
3883 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3884 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3887 if expr a : '\(a\)' >/dev/null 2>&1; then
3893 rm -f conf$$ conf$$.exe conf$$.file
3895 if ln -s conf$$.file conf$$ 2>/dev/null; then
3896 # We could just check for DJGPP; but this test a) works b) is more generic
3897 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3898 if test -f conf$$.exe; then
3899 # Don't use ln at all; we don't have any links
3904 elif ln conf$$.file conf$$ 2>/dev/null; then
3909 rm -f conf$$ conf$$.exe conf$$.file
3911 if mkdir -p . 2>/dev/null; then
3914 test -d ./-p && rmdir ./-p
3918 as_executable_p="test -f"
3920 # Sed expression to map a string onto a valid CPP name.
3921 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3923 # Sed expression to map a string onto a valid variable name.
3924 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3928 # We need space, tab and new line, in precisely that order.
3938 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3939 # report actual input values of CONFIG_FILES etc. instead of their
3940 # values after options handling. Logging --version etc. is OK.
3944 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3945 ## Running $as_me. ##
3950 This file was extended by $as_me, which was
3951 generated by GNU Autoconf 2.59. Invocation command line was
3953 CONFIG_FILES = $CONFIG_FILES
3954 CONFIG_HEADERS = $CONFIG_HEADERS
3955 CONFIG_LINKS = $CONFIG_LINKS
3956 CONFIG_COMMANDS = $CONFIG_COMMANDS
3960 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3964 # Files that config.status was made for.
3965 if test -n "$ac_config_files"; then
3966 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3969 if test -n "$ac_config_headers"; then
3970 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3973 if test -n "$ac_config_links"; then
3974 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3977 if test -n "$ac_config_commands"; then
3978 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3981 cat >>$CONFIG_STATUS <<\_ACEOF
3984 \`$as_me' instantiates files from templates according to the
3985 current configuration.
3987 Usage: $0 [OPTIONS] [FILE]...
3989 -h, --help print this help, then exit
3990 -V, --version print version number, then exit
3991 -q, --quiet do not print progress messages
3992 -d, --debug don't remove temporary files
3993 --recheck update $as_me by reconfiguring in the same conditions
3994 --file=FILE[:TEMPLATE]
3995 instantiate the configuration file FILE
3997 Configuration files:
4000 Report bugs to <bug-autoconf@gnu.org>."
4003 cat >>$CONFIG_STATUS <<_ACEOF
4006 configured by $0, generated by GNU Autoconf 2.59,
4007 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4009 Copyright (C) 2003 Free Software Foundation, Inc.
4010 This config.status script is free software; the Free Software Foundation
4011 gives unlimited permission to copy, distribute and modify it."
4016 cat >>$CONFIG_STATUS <<\_ACEOF
4017 # If no file are specified by the user, then we need to provide default
4018 # value. By we need to know if files were specified by the user.
4024 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4025 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4033 *) # This is not an option, so the user has probably given explicit
4036 ac_need_defaults=false;;
4040 # Handling of the options.
4042 cat >>$CONFIG_STATUS <<\_ACEOF
4043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4045 --version | --vers* | -V )
4046 echo "$ac_cs_version"; exit 0 ;;
4048 # Conflict between --help and --header
4049 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4050 Try \`$0 --help' for more information." >&5
4051 echo "$as_me: error: ambiguous option: $1
4052 Try \`$0 --help' for more information." >&2;}
4053 { (exit 1); exit 1; }; };;
4054 --help | --hel | -h )
4055 echo "$ac_cs_usage"; exit 0 ;;
4056 --debug | --d* | -d )
4058 --file | --fil | --fi | --f )
4060 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4061 ac_need_defaults=false;;
4062 --header | --heade | --head | --hea )
4064 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4065 ac_need_defaults=false;;
4066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4071 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4072 Try \`$0 --help' for more information." >&5
4073 echo "$as_me: error: unrecognized option: $1
4074 Try \`$0 --help' for more information." >&2;}
4075 { (exit 1); exit 1; }; } ;;
4077 *) ac_config_targets="$ac_config_targets $1" ;;
4083 ac_configure_extra_args=
4085 if $ac_cs_silent; then
4087 ac_configure_extra_args="$ac_configure_extra_args --silent"
4091 cat >>$CONFIG_STATUS <<_ACEOF
4092 if \$ac_cs_recheck; then
4093 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4094 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4103 cat >>$CONFIG_STATUS <<\_ACEOF
4104 for ac_config_target in $ac_config_targets
4106 case "$ac_config_target" in
4107 # Handling of arguments.
4108 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4109 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4110 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4111 { (exit 1); exit 1; }; };;
4115 # If the user did not use the arguments to specify the items to instantiate,
4116 # then the envvar interface is used. Set only those that are not.
4117 # We use the long form for the default assignment because of an extremely
4118 # bizarre bug on SunOS 4.1.3.
4119 if $ac_need_defaults; then
4120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4123 # Have a temporary directory for convenience. Make it in the build tree
4124 # simply because there is no reason to put it here, and in addition,
4125 # creating and moving files from /tmp can sometimes cause problems.
4126 # Create a temporary directory, and hook for its removal unless debugging.
4129 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4130 trap '{ (exit 1); exit 1; }' 1 2 13 15
4133 # Create a (secure) tmp directory for tmp files.
4136 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4137 test -n "$tmp" && test -d "$tmp"
4140 tmp=./confstat$$-$RANDOM
4141 (umask 077 && mkdir $tmp)
4144 echo "$me: cannot create a temporary directory in ." >&2
4145 { (exit 1); exit 1; }
4150 cat >>$CONFIG_STATUS <<_ACEOF
4153 # CONFIG_FILES section.
4156 # No need to generate the scripts if there are no CONFIG_FILES.
4157 # This happens for instance when ./config.status config.h
4158 if test -n "\$CONFIG_FILES"; then
4159 # Protect against being on the right side of a sed subst in config.status.
4160 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4161 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4162 s,@SHELL@,$SHELL,;t t
4163 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4164 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4165 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4166 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4167 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4168 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4169 s,@exec_prefix@,$exec_prefix,;t t
4170 s,@prefix@,$prefix,;t t
4171 s,@program_transform_name@,$program_transform_name,;t t
4172 s,@bindir@,$bindir,;t t
4173 s,@sbindir@,$sbindir,;t t
4174 s,@libexecdir@,$libexecdir,;t t
4175 s,@datadir@,$datadir,;t t
4176 s,@sysconfdir@,$sysconfdir,;t t
4177 s,@sharedstatedir@,$sharedstatedir,;t t
4178 s,@localstatedir@,$localstatedir,;t t
4179 s,@libdir@,$libdir,;t t
4180 s,@includedir@,$includedir,;t t
4181 s,@oldincludedir@,$oldincludedir,;t t
4182 s,@infodir@,$infodir,;t t
4183 s,@mandir@,$mandir,;t t
4184 s,@build_alias@,$build_alias,;t t
4185 s,@host_alias@,$host_alias,;t t
4186 s,@target_alias@,$target_alias,;t t
4188 s,@ECHO_C@,$ECHO_C,;t t
4189 s,@ECHO_N@,$ECHO_N,;t t
4190 s,@ECHO_T@,$ECHO_T,;t t
4193 s,@CFLAGS@,$CFLAGS,;t t
4194 s,@LDFLAGS@,$LDFLAGS,;t t
4195 s,@CPPFLAGS@,$CPPFLAGS,;t t
4196 s,@ac_ct_CC@,$ac_ct_CC,;t t
4197 s,@EXEEXT@,$EXEEXT,;t t
4198 s,@OBJEXT@,$OBJEXT,;t t
4199 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4200 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4201 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4203 s,@ac_ct_AR@,$ac_ct_AR,;t t
4204 s,@RANLIB@,$RANLIB,;t t
4205 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4206 s,@build@,$build,;t t
4207 s,@build_cpu@,$build_cpu,;t t
4208 s,@build_vendor@,$build_vendor,;t t
4209 s,@build_os@,$build_os,;t t
4211 s,@host_cpu@,$host_cpu,;t t
4212 s,@host_vendor@,$host_vendor,;t t
4213 s,@host_os@,$host_os,;t t
4214 s,@target@,$target,;t t
4215 s,@target_cpu@,$target_cpu,;t t
4216 s,@target_vendor@,$target_vendor,;t t
4217 s,@target_os@,$target_os,;t t
4218 s,@HDEFINES@,$HDEFINES,;t t
4219 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4220 s,@subdirs@,$subdirs,;t t
4221 s,@LIBOBJS@,$LIBOBJS,;t t
4222 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4227 cat >>$CONFIG_STATUS <<\_ACEOF
4228 # Split the substitutions into bite-sized pieces for seds with
4229 # small command number limits, like on Digital OSF/1 and HP-UX.
4231 ac_sed_frag=1 # Number of current file.
4232 ac_beg=1 # First line for current file.
4233 ac_end=$ac_max_sed_lines # Line after last line for current file.
4236 while $ac_more_lines; do
4237 if test $ac_beg -gt 1; then
4238 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4240 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4242 if test ! -s $tmp/subs.frag; then
4245 # The purpose of the label and of the branching condition is to
4246 # speed up the sed processing (if there are no `@' at all, there
4247 # is no need to browse any of the substitutions).
4248 # These are the two extra sed commands mentioned above.
4250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4251 if test -z "$ac_sed_cmds"; then
4252 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4254 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4256 ac_sed_frag=`expr $ac_sed_frag + 1`
4258 ac_end=`expr $ac_end + $ac_max_sed_lines`
4261 if test -z "$ac_sed_cmds"; then
4264 fi # test -n "$CONFIG_FILES"
4267 cat >>$CONFIG_STATUS <<\_ACEOF
4268 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4271 - | *:- | *:-:* ) # input from stdin
4273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4277 * ) ac_file_in=$ac_file.in ;;
4280 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4281 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4283 X"$ac_file" : 'X\(//\)[^/]' \| \
4284 X"$ac_file" : 'X\(//\)$' \| \
4285 X"$ac_file" : 'X\(/\)' \| \
4286 . : '\(.\)' 2>/dev/null ||
4288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4290 /^X\(\/\/\)$/{ s//\1/; q; }
4291 /^X\(\/\).*/{ s//\1/; q; }
4293 { if $as_mkdir_p; then
4298 while test ! -d "$as_dir"; do
4299 as_dirs="$as_dir $as_dirs"
4300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4302 X"$as_dir" : 'X\(//\)[^/]' \| \
4303 X"$as_dir" : 'X\(//\)$' \| \
4304 X"$as_dir" : 'X\(/\)' \| \
4305 . : '\(.\)' 2>/dev/null ||
4307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4309 /^X\(\/\/\)$/{ s//\1/; q; }
4310 /^X\(\/\).*/{ s//\1/; q; }
4313 test ! -n "$as_dirs" || mkdir $as_dirs
4314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4315 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4316 { (exit 1); exit 1; }; }; }
4320 if test "$ac_dir" != .; then
4321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4322 # A "../" for each directory in $ac_dir_suffix.
4323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4325 ac_dir_suffix= ac_top_builddir=
4329 .) # No --srcdir option. We are building in place.
4331 if test -z "$ac_top_builddir"; then
4334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4336 [\\/]* | ?:[\\/]* ) # Absolute path.
4337 ac_srcdir=$srcdir$ac_dir_suffix;
4338 ac_top_srcdir=$srcdir ;;
4340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4344 # Do not use `cd foo && pwd` to compute absolute paths, because
4345 # the directories may not exist.
4347 .) ac_abs_builddir="$ac_dir";;
4350 .) ac_abs_builddir=`pwd`;;
4351 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4352 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4355 case $ac_abs_builddir in
4356 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4358 case ${ac_top_builddir}. in
4359 .) ac_abs_top_builddir=$ac_abs_builddir;;
4360 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4361 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4364 case $ac_abs_builddir in
4365 .) ac_abs_srcdir=$ac_srcdir;;
4368 .) ac_abs_srcdir=$ac_abs_builddir;;
4369 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4370 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4373 case $ac_abs_builddir in
4374 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4376 case $ac_top_srcdir in
4377 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4378 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4379 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4385 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4386 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4389 if test x"$ac_file" != x-; then
4390 { echo "$as_me:$LINENO: creating $ac_file" >&5
4391 echo "$as_me: creating $ac_file" >&6;}
4394 # Let's still pretend it is `configure' which instantiates (i.e., don't
4395 # use $as_me), people would be surprised to read:
4396 # /* config.h. Generated by config.status. */
4397 if test x"$ac_file" = x-; then
4400 configure_input="$ac_file. "
4402 configure_input=$configure_input"Generated from `echo $ac_file_in |
4403 sed 's,.*/,,'` by configure."
4405 # First look for the input files in the build tree, otherwise in the
4407 ac_file_inputs=`IFS=:
4408 for f in $ac_file_in; do
4410 -) echo $tmp/stdin ;;
4412 # Absolute (can't be DOS-style, as IFS=:)
4413 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4414 echo "$as_me: error: cannot find input file: $f" >&2;}
4415 { (exit 1); exit 1; }; }
4418 if test -f "$f"; then
4421 elif test -f "$srcdir/$f"; then
4426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4427 echo "$as_me: error: cannot find input file: $f" >&2;}
4428 { (exit 1); exit 1; }; }
4431 done` || { (exit 1); exit 1; }
4433 cat >>$CONFIG_STATUS <<_ACEOF
4437 cat >>$CONFIG_STATUS <<\_ACEOF
4439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4440 s,@configure_input@,$configure_input,;t t
4441 s,@srcdir@,$ac_srcdir,;t t
4442 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4443 s,@top_srcdir@,$ac_top_srcdir,;t t
4444 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4445 s,@builddir@,$ac_builddir,;t t
4446 s,@abs_builddir@,$ac_abs_builddir,;t t
4447 s,@top_builddir@,$ac_top_builddir,;t t
4448 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4449 s,@INSTALL@,$ac_INSTALL,;t t
4450 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4452 if test x"$ac_file" != x-; then
4453 mv $tmp/out $ac_file
4462 cat >>$CONFIG_STATUS <<\_ACEOF
4464 { (exit 0); exit 0; }
4466 chmod +x $CONFIG_STATUS
4467 ac_clean_files=$ac_clean_files_save
4470 # configure is writing to config.log, and then calls config.status.
4471 # config.status does its own redirection, appending to config.log.
4472 # Unfortunately, on DOS this fails, as config.log is still kept open
4473 # by configure, so config.status won't be able to write to it; its
4474 # output is simply discarded. So we exec the FD to /dev/null,
4475 # effectively closing config.log, so it can be properly (re)opened and
4476 # appended to by config.status. When coming back to configure, we
4477 # need to make the FD available again.
4478 if test "$no_create" != yes; then
4480 ac_config_status_args=
4481 test "$silent" = yes &&
4482 ac_config_status_args="$ac_config_status_args --quiet"
4484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4487 # would make configure fail if this is the last instruction.
4488 $ac_cs_success || { (exit 1); exit 1; }
4492 # CONFIG_SUBDIRS section.
4494 if test "$no_recursion" != yes; then
4496 # Remove --cache-file and --srcdir arguments so they do not pile up.
4497 ac_sub_configure_args=
4499 for ac_arg in $ac_configure_args; do
4500 if test -n "$ac_prev"; then
4505 -cache-file | --cache-file | --cache-fil | --cache-fi \
4506 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4507 ac_prev=cache_file ;;
4508 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4509 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4512 --config-cache | -C)
4514 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4516 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4522 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4526 # Always prepend --prefix to ensure using the same prefix
4527 # in subdir configurations.
4528 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4531 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4533 # Do not complain, so a configure script can configure whichever
4534 # parts of a large source tree are present.
4535 test -d $srcdir/$ac_dir || continue
4537 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4538 echo "$as_me: configuring in $ac_dir" >&6;}
4539 { if $as_mkdir_p; then
4544 while test ! -d "$as_dir"; do
4545 as_dirs="$as_dir $as_dirs"
4546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4548 X"$as_dir" : 'X\(//\)[^/]' \| \
4549 X"$as_dir" : 'X\(//\)$' \| \
4550 X"$as_dir" : 'X\(/\)' \| \
4551 . : '\(.\)' 2>/dev/null ||
4553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4555 /^X\(\/\/\)$/{ s//\1/; q; }
4556 /^X\(\/\).*/{ s//\1/; q; }
4559 test ! -n "$as_dirs" || mkdir $as_dirs
4560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4562 { (exit 1); exit 1; }; }; }
4566 if test "$ac_dir" != .; then
4567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4568 # A "../" for each directory in $ac_dir_suffix.
4569 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4571 ac_dir_suffix= ac_top_builddir=
4575 .) # No --srcdir option. We are building in place.
4577 if test -z "$ac_top_builddir"; then
4580 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4582 [\\/]* | ?:[\\/]* ) # Absolute path.
4583 ac_srcdir=$srcdir$ac_dir_suffix;
4584 ac_top_srcdir=$srcdir ;;
4586 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4587 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4590 # Do not use `cd foo && pwd` to compute absolute paths, because
4591 # the directories may not exist.
4593 .) ac_abs_builddir="$ac_dir";;
4596 .) ac_abs_builddir=`pwd`;;
4597 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4598 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4601 case $ac_abs_builddir in
4602 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4604 case ${ac_top_builddir}. in
4605 .) ac_abs_top_builddir=$ac_abs_builddir;;
4606 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4607 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4610 case $ac_abs_builddir in
4611 .) ac_abs_srcdir=$ac_srcdir;;
4614 .) ac_abs_srcdir=$ac_abs_builddir;;
4615 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4616 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4619 case $ac_abs_builddir in
4620 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4622 case $ac_top_srcdir in
4623 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4624 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4625 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4632 # Check for guested configure; otherwise get Cygnus style configure.
4633 if test -f $ac_srcdir/configure.gnu; then
4634 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4635 elif test -f $ac_srcdir/configure; then
4636 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4637 elif test -f $ac_srcdir/configure.in; then
4638 ac_sub_configure=$ac_configure
4640 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4641 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4645 # The recursion is here.
4646 if test -n "$ac_sub_configure"; then
4647 # Make the cache file name correct relative to the subdirectory.
4649 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4651 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
4654 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4655 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4656 # The eval makes quoting arguments work.
4657 eval $ac_sub_configure $ac_sub_configure_args \
4658 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4659 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4660 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4661 { (exit 1); exit 1; }; }