2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_unique_file=""Makefile.config.in""
468 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC2000_ROOT USE_SPEC2000 SPEC95_ROOT USE_SPEC95 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO)
1035 --enable-spec95 Compile SPEC 95 benchmarks (default is NO)
1036 --enable-povray=ARG Use POV-Ray as a benchmark (srcs in DIR)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
1039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1123 $ac_configure --help
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1134 [LLVM] configure [1.1]
1135 generated by GNU Autoconf 2.57
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by [LLVM] $as_me [1.1], which was
1150 generated by GNU Autoconf 2.57. Invocation command line was
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h; then
1319 sed "/^$/d" confdefs.h | sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488 if test -f $ac_dir/install-sh; then
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 elif test -f $ac_dir/install.sh; then
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 elif test -f $ac_dir/shtool; then
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505 { (exit 1); exit 1; }; }
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 if test ${srcdir} != "."
1514 if test -f ${srcdir}/include/Config/config.h
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
1522 for i in `ls ${srcdir}/projects`
1524 if test ${i} != "CVS"
1526 if test -f ${srcdir}/projects/${i}/configure
1530 subdirs="$subdirs projects/${i}"
1536 ac_config_headers="$ac_config_headers include/Config/config.h"
1538 ac_config_commands="$ac_config_commands Makefile"
1541 ac_config_commands="$ac_config_commands Makefile.common"
1544 ac_config_commands="$ac_config_commands lib/Makefile"
1547 ac_config_commands="$ac_config_commands runtime/Makefile"
1550 ac_config_commands="$ac_config_commands test/Makefile"
1553 ac_config_commands="$ac_config_commands test/Makefile.tests"
1556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1574 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1577 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1580 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1583 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1607 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1610 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1676 ac_config_commands="$ac_config_commands tools/Makefile"
1679 ac_config_commands="$ac_config_commands utils/Makefile"
1682 ac_config_commands="$ac_config_commands projects/Makefile"
1686 # Find a good install program. We prefer a C program (faster),
1687 # so one script is as good as another. But avoid the broken or
1688 # incompatible versions:
1689 # SysV /etc/install, /usr/sbin/install
1690 # SunOS /usr/etc/install
1691 # IRIX /sbin/install
1693 # AmigaOS /C/install, which installs bootblocks on floppy discs
1694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697 # ./install, which can be erroneously created by make from ./install.sh.
1698 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700 if test -z "$INSTALL"; then
1701 if test "${ac_cv_path_install+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 # Account for people who put trailing slashes in PATH elements.
1711 ./ | .// | /cC/* | \
1712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1715 # OSF1 and SCO ODT 3.0 have their own names for install.
1716 # Don't use installbsd from OSF since it installs stuff as root
1718 for ac_prog in ginstall scoinst install; do
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721 if test $ac_prog = install &&
1722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # AIX install. It has an incompatible calling convention.
1725 elif test $ac_prog = install &&
1726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727 # program-specific install script used by HP pwplus--don't use.
1730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742 if test "${ac_cv_path_install+set}" = set; then
1743 INSTALL=$ac_cv_path_install
1745 # As a last resort, use the slow shell script. We don't cache a
1746 # path for INSTALL within a source directory, because that will
1747 # break other packages using the cache if that directory is
1748 # removed, or if the path is relative.
1749 INSTALL=$ac_install_sh
1752 echo "$as_me:$LINENO: result: $INSTALL" >&5
1753 echo "${ECHO_T}$INSTALL" >&6
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1764 # Make sure we can run config.sub.
1765 $ac_config_sub sun4 >/dev/null 2>&1 ||
1766 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768 { (exit 1); exit 1; }; }
1770 echo "$as_me:$LINENO: checking build system type" >&5
1771 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772 if test "${ac_cv_build+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 ac_cv_build_alias=$build_alias
1776 test -z "$ac_cv_build_alias" &&
1777 ac_cv_build_alias=`$ac_config_guess`
1778 test -z "$ac_cv_build_alias" &&
1779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781 { (exit 1); exit 1; }; }
1782 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785 { (exit 1); exit 1; }; }
1788 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789 echo "${ECHO_T}$ac_cv_build" >&6
1791 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1796 echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 ac_cv_host_alias=$host_alias
1802 test -z "$ac_cv_host_alias" &&
1803 ac_cv_host_alias=$ac_cv_build_alias
1804 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811 echo "${ECHO_T}$ac_cv_host" >&6
1813 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1818 echo "$as_me:$LINENO: checking target system type" >&5
1819 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820 if test "${ac_cv_target+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 ac_cv_target_alias=$target_alias
1824 test "x$ac_cv_target_alias" = "x" &&
1825 ac_cv_target_alias=$ac_cv_host_alias
1826 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829 { (exit 1); exit 1; }; }
1832 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833 echo "${ECHO_T}$ac_cv_target" >&6
1834 target=$ac_cv_target
1835 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1840 # The aliases save the names the user supplied, while $host etc.
1841 # will get canonicalized.
1842 test -n "$target_alias" &&
1843 test "$program_prefix$program_suffix$program_transform_name" = \
1845 program_prefix=${target_alias}-
1851 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1853 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1861 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1863 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1879 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1888 sparc*-*) ARCH=Sparc
1891 powerpc*-*) ARCH=PowerPC
1900 ac_cpp='$CXXCPP $CPPFLAGS'
1901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1904 if test -n "$ac_tool_prefix"; then
1905 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_CXX+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test -n "$CXX"; then
1915 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test -n "$CXX"; then
1935 echo "$as_me:$LINENO: result: $CXX" >&5
1936 echo "${ECHO_T}$CXX" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1942 test -n "$CXX" && break
1945 if test -z "$CXX"; then
1947 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1949 # Extract the first word of "$ac_prog", so it can be a program name with args.
1950 set dummy $ac_prog; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$ac_ct_CXX"; then
1957 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_ac_ct_CXX="$ac_prog"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1976 if test -n "$ac_ct_CXX"; then
1977 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1978 echo "${ECHO_T}$ac_ct_CXX" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1984 test -n "$ac_ct_CXX" && break
1986 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1992 # Provide some information about the compiler.
1993 echo "$as_me:$LINENO:" \
1994 "checking for C++ compiler version" >&5
1995 ac_compiler=`set X $ac_compile; echo $2`
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1997 (eval $ac_compiler --version </dev/null >&5) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }
2001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2002 (eval $ac_compiler -v </dev/null >&5) 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2007 (eval $ac_compiler -V </dev/null >&5) 2>&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2028 ac_clean_files_save=$ac_clean_files
2029 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2030 # Try to create an executable without -o first, disregard a.out.
2031 # It will help us diagnose broken compilers, and finding out an intuition
2033 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2034 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2035 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2037 (eval $ac_link_default) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # Find the output, starting from the most likely. This scheme is
2042 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045 # Be careful to initialize this variable, since it used to be cached.
2046 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048 # b.out is created by i960 compilers.
2049 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2051 test -f "$ac_file" || continue
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2056 # This is the source file.
2059 # We found the default executable, but exeext='' is most
2063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064 # FIXME: I believe we export ac_cv_exeext for Libtool,
2065 # but it would be cool to find out if it's true. Does anybody
2066 # maintain Libtool? --akim.
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: C++ compiler cannot create executables
2080 See \`config.log' for more details." >&2;}
2081 { (exit 77); exit 77; }; }
2084 ac_exeext=$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_file" >&5
2086 echo "${ECHO_T}$ac_file" >&6
2088 # Check the compiler produces executables we can run. If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2091 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2092 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2093 # If not cross compiling, check that we can run a simple program.
2094 if test "$cross_compiling" != yes; then
2095 if { ac_try='./$ac_file'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2103 if test "$cross_compiling" = maybe; then
2106 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot run C++ compiled programs.
2110 If you meant to cross compile, use \`--host'.
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2116 echo "$as_me:$LINENO: result: yes" >&5
2117 echo "${ECHO_T}yes" >&6
2119 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2120 ac_clean_files=$ac_clean_files_save
2121 # Check the compiler produces executables we can run. If not, either
2122 # the compiler is broken, or we cross compile.
2123 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2124 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2125 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2126 echo "${ECHO_T}$cross_compiling" >&6
2128 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2129 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131 (eval $ac_link) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2137 # work properly (i.e., refer to `conftest.exe'), while it won't with
2139 for ac_file in conftest.exe conftest conftest.*; do
2140 test -f "$ac_file" || continue
2142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2157 rm -f conftest$ac_cv_exeext
2158 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2159 echo "${ECHO_T}$ac_cv_exeext" >&6
2161 rm -f conftest.$ac_ext
2162 EXEEXT=$ac_cv_exeext
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2185 rm -f conftest.o conftest.obj
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2194 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2202 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2205 See \`config.log' for more details." >&2;}
2206 { (exit 1); exit 1; }; }
2209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2211 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2212 echo "${ECHO_T}$ac_cv_objext" >&6
2213 OBJEXT=$ac_cv_objext
2215 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2216 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2217 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 cat >conftest.$ac_ext <<_ACEOF
2221 #line $LINENO "configure"
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2239 rm -f conftest.$ac_objext
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2258 rm -f conftest.$ac_objext conftest.$ac_ext
2259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2262 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2263 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2264 GXX=`test $ac_compiler_gnu = yes && echo yes`
2265 ac_test_CXXFLAGS=${CXXFLAGS+set}
2266 ac_save_CXXFLAGS=$CXXFLAGS
2268 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2269 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2270 if test "${ac_cv_prog_cxx_g+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 ac_cv_prog_cxx_g=yes
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2312 if test "$ac_test_CXXFLAGS" = set; then
2313 CXXFLAGS=$ac_save_CXXFLAGS
2314 elif test $ac_cv_prog_cxx_g = yes; then
2315 if test "$GXX" = yes; then
2321 if test "$GXX" = yes; then
2327 for ac_declaration in \
2329 '#include <stdlib.h>' \
2330 'extern "C" void std::exit (int) throw (); using std::exit;' \
2331 'extern "C" void std::exit (int); using std::exit;' \
2332 'extern "C" void exit (int) throw ();' \
2333 'extern "C" void exit (int);' \
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line $LINENO "configure"
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2372 rm -f conftest.$ac_objext conftest.$ac_ext
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2410 if test -n "$ac_declaration"; then
2411 echo '#ifdef __cplusplus' >>confdefs.h
2412 echo $ac_declaration >>confdefs.h
2413 echo '#endif' >>confdefs.h
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 if test -n "$CC"; then
2458 echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$CC" && break
2468 if test -z "$CC"; then
2472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_ac_ct_CC="$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 test -n "$ac_ct_CC" && break
2514 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2520 # Provide some information about the compiler.
2521 echo "$as_me:$LINENO:" \
2522 "checking for C compiler version" >&5
2523 ac_compiler=`set X $ac_compile; echo $2`
2524 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525 (eval $ac_compiler --version </dev/null >&5) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530 (eval $ac_compiler -v </dev/null >&5) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2535 (eval $ac_compiler -V </dev/null >&5) 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2540 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2635 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2637 if test "$ac_test_CFLAGS" = set; then
2638 CFLAGS=$ac_save_CFLAGS
2639 elif test $ac_cv_prog_cc_g = yes; then
2640 if test "$GCC" = yes; then
2646 if test "$GCC" = yes; then
2652 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2653 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2654 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 ac_cv_prog_cc_stdc=no
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 #include <sys/types.h>
2669 #include <sys/stat.h>
2670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2671 struct buf { int x; };
2672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673 static char *e (p, i)
2679 static char *f (char * (*g) (char **, int), char **p, ...)
2684 s = g (p, va_arg (v,int));
2688 int test (int i, double x);
2689 struct s1 {int (*f) (int a);};
2690 struct s2 {int (*f) (double a);};
2691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2702 # Don't try gcc -ansi; that turns off useful extensions and
2703 # breaks some systems' header files.
2704 # AIX -qlanglvl=ansi
2705 # Ultrix and OSF/1 -std1
2706 # HP-UX 10.20 and later -Ae
2707 # HP-UX older versions -Aa -D_HPUX_SOURCE
2708 # SVR4 -Xc -D__EXTENSIONS__
2709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2711 CC="$ac_save_CC $ac_arg"
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 ac_cv_prog_cc_stdc=$ac_arg
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.$ac_objext
2733 rm -f conftest.$ac_ext conftest.$ac_objext
2738 case "x$ac_cv_prog_cc_stdc" in
2740 echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6 ;;
2743 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2745 CC="$CC $ac_cv_prog_cc_stdc" ;;
2748 # Some people use a C++ compiler to compile C. Since we use `exit',
2749 # in C++ we need to declare it. In case someone uses the same compiler
2750 # for both compiling C and C++ we need to have the C++ compiler decide
2751 # the declaration of exit, since it's the most demanding environment.
2752 cat >conftest.$ac_ext <<_ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 for ac_declaration in \
2771 '#include <stdlib.h>' \
2772 'extern "C" void std::exit (int) throw (); using std::exit;' \
2773 'extern "C" void std::exit (int); using std::exit;' \
2774 'extern "C" void exit (int) throw ();' \
2775 'extern "C" void exit (int);' \
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2814 rm -f conftest.$ac_objext conftest.$ac_ext
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2849 rm -f conftest.$ac_objext conftest.$ac_ext
2852 if test -n "$ac_declaration"; then
2853 echo '#ifdef __cplusplus' >>confdefs.h
2854 echo $ac_declaration >>confdefs.h
2855 echo '#endif' >>confdefs.h
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.$ac_objext conftest.$ac_ext
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 # Double quotes because CPP needs to be expanded
2886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 for ac_c_preproc_warn_flag in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2905 # include <limits.h>
2907 # include <assert.h>
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 grep -v '^ *+' conftest.er1 >conftest.err
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2927 if test -z "$ac_cpp_err"; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.$ac_ext
2938 # OK, works on sane cases. Now check whether non-existent headers
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Passes both tests.
2976 rm -f conftest.err conftest.$ac_ext
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2996 for ac_c_preproc_warn_flag in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3012 # include <limits.h>
3014 # include <assert.h>
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_c_preproc_warn_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 # Broken: fails on valid input.
3043 rm -f conftest.err conftest.$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Passes both tests.
3083 rm -f conftest.err conftest.$ac_ext
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095 { (exit 1); exit 1; }; }
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 if test "$GCC" != "yes"
3107 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3108 echo "$as_me: error: gcc required but not found" >&2;}
3109 { (exit 1); exit 1; }; }
3111 if test "$GXX" != "yes"
3113 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3114 echo "$as_me: error: g++ required but not found" >&2;}
3115 { (exit 1); exit 1; }; }
3118 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3119 if test "$gccmajor" -lt "3"
3121 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3122 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3123 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: checking for GNU make" >&5
3127 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3128 if test "${_cv_gnu_make_command+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 _cv_gnu_make_command='' ;
3132 for a in "$MAKE" make gmake gnumake ; do
3133 if test -z "$a" ; then continue ; fi ;
3134 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3135 _cv_gnu_make_command=$a ;
3141 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3142 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3143 if test "x$_cv_gnu_make_command" != "x" ; then
3147 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3148 echo "${ECHO_T}\"Not found\"" >&6;
3152 if test -z "$_cv_gnu_make_command"
3154 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3155 echo "$as_me: error: GNU Make required but not found" >&2;}
3156 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: checking " >&5
3161 echo $ECHO_N "checking ... $ECHO_C" >&6
3162 if test "${ac_cv_has_flex+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 for ac_prog in flex lex
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171 if test "${ac_cv_prog_LEX+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 if test -n "$LEX"; then
3175 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_LEX="$ac_prog"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test -n "$LEX"; then
3195 echo "$as_me:$LINENO: result: $LEX" >&5
3196 echo "${ECHO_T}$LEX" >&6
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3202 test -n "$LEX" && break
3204 test -n "$LEX" || LEX=":"
3206 if test -z "$LEXLIB"
3208 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3209 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3210 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_check_lib_save_LIBS=$LIBS
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3223 /* Override any gcc2 internal prototype to avoid an error. */
3227 /* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3238 rm -f conftest.$ac_objext conftest$ac_exeext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -s conftest$ac_exeext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_lib_fl_yywrap=yes
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 ac_cv_lib_fl_yywrap=no
3257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3258 LIBS=$ac_check_lib_save_LIBS
3260 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3261 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3262 if test $ac_cv_lib_fl_yywrap = yes; then
3265 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3266 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3267 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_check_lib_save_LIBS=$LIBS
3272 cat >conftest.$ac_ext <<_ACEOF
3273 #line $LINENO "configure"
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3280 /* Override any gcc2 internal prototype to avoid an error. */
3284 /* We use char because int might match the return type of a gcc2
3285 builtin and then its argument prototype would still apply. */
3295 rm -f conftest.$ac_objext conftest$ac_exeext
3296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3297 (eval $ac_link) 2>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -s conftest$ac_exeext'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
3307 ac_cv_lib_l_yywrap=yes
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 ac_cv_lib_l_yywrap=no
3314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315 LIBS=$ac_check_lib_save_LIBS
3317 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3318 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3319 if test $ac_cv_lib_l_yywrap = yes; then
3327 if test "x$LEX" != "x:"; then
3328 echo "$as_me:$LINENO: checking lex output file root" >&5
3329 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3330 if test "${ac_cv_prog_lex_root+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 # The minimal lex program is just a single line: %%. But some broken lexes
3334 # (Solaris, I think it was) want two %% lines, so accommodate them.
3335 cat >conftest.l <<_ACEOF
3339 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3340 (eval $LEX conftest.l) 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }
3344 if test -f lex.yy.c; then
3345 ac_cv_prog_lex_root=lex.yy
3346 elif test -f lexyy.c; then
3347 ac_cv_prog_lex_root=lexyy
3349 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3350 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3351 { (exit 1); exit 1; }; }
3354 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3355 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3357 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3359 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3360 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3361 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 # POSIX says lex can declare yytext either as a pointer or an array; the
3365 # default is implementation-dependent. Figure out which it is, since
3366 # not all implementations provide the %pointer and %array declarations.
3367 ac_cv_prog_lex_yytext_pointer=no
3368 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3370 LIBS="$LIBS $LEXLIB"
3371 cat >conftest.$ac_ext <<_ACEOF
3372 `cat $LEX_OUTPUT_ROOT.c`
3374 rm -f conftest.$ac_objext conftest$ac_exeext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376 (eval $ac_link) 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -s conftest$ac_exeext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_lex_yytext_pointer=yes
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3394 rm -f "${LEX_OUTPUT_ROOT}.c"
3397 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3401 cat >>confdefs.h <<\_ACEOF
3402 #define YYTEXT_POINTER 1
3410 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3411 echo "${ECHO_T}$ac_cv_has_flex" >&6
3412 if test "$LEX" != "flex"; then
3413 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3414 echo "$as_me: error: flex not found but required" >&2;}
3415 { (exit 1); exit 1; }; }
3418 echo "$as_me:$LINENO: checking " >&5
3419 echo $ECHO_N "checking ... $ECHO_C" >&6
3420 if test "${ac_cv_has_bison+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 for ac_prog in 'bison -y' byacc
3425 # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy $ac_prog; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_YACC+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test -n "$YACC"; then
3433 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_YACC="$ac_prog"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 YACC=$ac_cv_prog_YACC
3452 if test -n "$YACC"; then
3453 echo "$as_me:$LINENO: result: $YACC" >&5
3454 echo "${ECHO_T}$YACC" >&6
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3460 test -n "$YACC" && break
3462 test -n "$YACC" || YACC="yacc"
3466 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3467 echo "${ECHO_T}$ac_cv_has_bison" >&6
3468 if test "$YACC" != "bison -y"; then
3469 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3470 echo "$as_me: error: bison not found but required" >&2;}
3471 { (exit 1); exit 1; }; }
3477 # Check whether --enable-shared or --disable-shared was given.
3478 if test "${enable_shared+set}" = set; then
3479 enableval="$enable_shared"
3480 p=${PACKAGE-default}
3482 yes) enable_shared=yes ;;
3483 no) enable_shared=no ;;
3486 # Look at the argument we got. We use all the common list separators.
3487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3488 for pkg in $enableval; do
3490 if test "X$pkg" = "X$p"; then
3501 # Check whether --enable-static or --disable-static was given.
3502 if test "${enable_static+set}" = set; then
3503 enableval="$enable_static"
3504 p=${PACKAGE-default}
3506 yes) enable_static=yes ;;
3507 no) enable_static=no ;;
3510 # Look at the argument we got. We use all the common list separators.
3511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512 for pkg in $enableval; do
3514 if test "X$pkg" = "X$p"; then
3525 # Check whether --enable-fast-install or --disable-fast-install was given.
3526 if test "${enable_fast_install+set}" = set; then
3527 enableval="$enable_fast_install"
3528 p=${PACKAGE-default}
3530 yes) enable_fast_install=yes ;;
3531 no) enable_fast_install=no ;;
3533 enable_fast_install=no
3534 # Look at the argument we got. We use all the common list separators.
3535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3536 for pkg in $enableval; do
3538 if test "X$pkg" = "X$p"; then
3539 enable_fast_install=yes
3546 enable_fast_install=yes
3549 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3550 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3551 if test "${lt_cv_path_SED+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 # Loop through the user's path and test for sed and gsed.
3555 # Then use that list of sed's as ones to test for truncation.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for lt_ac_prog in sed gsed; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3564 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3571 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3572 # along with /bin/sed that truncates output.
3573 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3574 test ! -f $lt_ac_sed && break
3575 cat /dev/null > conftest.in
3577 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3578 # Check for GNU sed and select it if it is found.
3579 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3580 lt_cv_path_SED=$lt_ac_sed
3584 cat conftest.in conftest.in >conftest.tmp
3585 mv conftest.tmp conftest.in
3586 cp conftest.in conftest.nl
3588 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3589 cmp -s conftest.out conftest.nl || break
3590 # 10000 chars as input seems more than enough
3591 test $lt_ac_count -gt 10 && break
3592 lt_ac_count=`expr $lt_ac_count + 1`
3593 if test $lt_ac_count -gt $lt_ac_max; then
3594 lt_ac_max=$lt_ac_count
3595 lt_cv_path_SED=$lt_ac_sed
3603 echo "$as_me:$LINENO: result: $SED" >&5
3604 echo "${ECHO_T}$SED" >&6
3606 echo "$as_me:$LINENO: checking for egrep" >&5
3607 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3608 if test "${ac_cv_prog_egrep+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3612 then ac_cv_prog_egrep='grep -E'
3613 else ac_cv_prog_egrep='egrep'
3616 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3617 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3618 EGREP=$ac_cv_prog_egrep
3622 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then
3624 withval="$with_gnu_ld"
3625 test "$withval" = no || with_gnu_ld=yes
3630 if test "$GCC" = yes; then
3631 # Check if gcc -print-prog-name=ld gives a path.
3632 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3633 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3636 # gcc leaves a trailing carriage return which upsets mingw
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3642 # Accept absolute paths.
3644 re_direlt='/[^/][^/]*/\.\./'
3645 # Canonicalize the path of ld
3646 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3647 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3648 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3650 test -z "$LD" && LD="$ac_prog"
3653 # If it fails, then pretend we aren't using GCC.
3657 # If it is relative, then search for the first ld in PATH.
3661 elif test "$with_gnu_ld" = yes; then
3662 echo "$as_me:$LINENO: checking for GNU ld" >&5
3663 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3665 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3666 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3668 if test "${lt_cv_path_LD+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 if test -z "$LD"; then
3672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673 for ac_dir in $PATH; do
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677 lt_cv_path_LD="$ac_dir/$ac_prog"
3678 # Check to see if the program is GNU ld. I'd rather use --version,
3679 # but apparently some GNU ld's only accept -v.
3680 # Break only if it was the GNU/non-GNU ld that we prefer.
3681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3682 *GNU* | *'with BFD'*)
3683 test "$with_gnu_ld" != no && break
3686 test "$with_gnu_ld" != yes && break
3693 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3698 if test -n "$LD"; then
3699 echo "$as_me:$LINENO: result: $LD" >&5
3700 echo "${ECHO_T}$LD" >&6
3702 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3705 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3706 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3707 { (exit 1); exit 1; }; }
3708 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3709 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3710 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3714 case `"$LD" -v 2>&1 </dev/null` in
3715 *GNU* | *'with BFD'*)
3716 lt_cv_prog_gnu_ld=yes
3719 lt_cv_prog_gnu_ld=no
3723 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3724 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3725 with_gnu_ld=$lt_cv_prog_gnu_ld
3728 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3729 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3730 if test "${lt_cv_ld_reload_flag+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 lt_cv_ld_reload_flag='-r'
3735 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3736 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3737 reload_flag=$lt_cv_ld_reload_flag
3738 case $reload_flag in
3740 *) reload_flag=" $reload_flag" ;;
3742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3744 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3745 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3746 if test "${lt_cv_path_NM+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if test -n "$NM"; then
3750 # Let the user override the test.
3753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3754 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3756 test -z "$ac_dir" && ac_dir=.
3757 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3758 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3759 # Check to see if the nm accepts a BSD-compat flag.
3760 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3761 # nm: unknown option "B" ignored
3762 # Tru64's nm complains that /dev/null is an invalid object file
3763 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3764 */dev/null* | *'Invalid file or object type'*)
3765 lt_cv_path_NM="$tmp_nm -B"
3769 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3771 lt_cv_path_NM="$tmp_nm -p"
3775 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3776 continue # so that we can try to find one that supports BSD flags
3783 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3786 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3787 echo "${ECHO_T}$lt_cv_path_NM" >&6
3790 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3793 if test "$LN_S" = "ln -s"; then
3794 echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6
3797 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798 echo "${ECHO_T}no, using $LN_S" >&6
3801 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3802 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3803 if test "${lt_cv_deplibs_check_method+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 lt_cv_file_magic_cmd='$MAGIC_CMD'
3807 lt_cv_file_magic_test_file=
3808 lt_cv_deplibs_check_method='unknown'
3809 # Need to set the preceding variable on all platforms that support
3810 # interlibrary dependencies.
3811 # 'none' -- dependencies not supported.
3812 # `unknown' -- same as none, but documents that we really don't know.
3813 # 'pass_all' -- all dependencies passed with no checks.
3814 # 'test_compile' -- check by making test program.
3815 # 'file_magic [[regex]]' -- check by looking for files in library path
3816 # which responds to the $file_magic_cmd with a given extended regex.
3817 # If you have `file' or equivalent on your system and you're not sure
3818 # whether `pass_all' will *always* work, you probably want this one.
3822 lt_cv_deplibs_check_method=pass_all
3826 lt_cv_deplibs_check_method=pass_all
3830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3831 lt_cv_file_magic_cmd='/usr/bin/file -L'
3832 lt_cv_file_magic_test_file=/shlib/libc.so
3835 cygwin* | mingw* | pw32*)
3836 # win32_libid is a shell function defined in ltmain.sh
3837 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3838 lt_cv_file_magic_cmd='win32_libid'
3841 darwin* | rhapsody*)
3842 # this will be overwritten by pass_all, but leave it in just in case
3843 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3844 lt_cv_file_magic_cmd='/usr/bin/file -L'
3846 rhapsody* | darwin1.[012])
3847 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3850 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3853 lt_cv_deplibs_check_method=pass_all
3857 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3860 # Not sure whether the presence of OpenBSD here was a mistake.
3861 # Let's accept both of them until this is cleared up.
3862 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3863 lt_cv_file_magic_cmd=/usr/bin/file
3864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3868 lt_cv_deplibs_check_method=pass_all
3873 lt_cv_deplibs_check_method=pass_all
3876 hpux10.20* | hpux11*)
3877 lt_cv_file_magic_cmd=/usr/bin/file
3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3881 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3885 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3889 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3894 irix5* | irix6* | nonstopux*)
3896 irix5* | nonstopux*)
3897 # this will be overridden with pass_all, but let us keep it just in case
3898 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3902 *-32|*"-32 ") libmagic=32-bit;;
3903 *-n32|*"-n32 ") libmagic=N32;;
3904 *-64|*"-64 ") libmagic=64-bit;;
3905 *) libmagic=never-match;;
3907 # this will be overridden with pass_all, but let us keep it just in case
3908 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3911 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3912 lt_cv_deplibs_check_method=pass_all
3915 # This must be Linux ELF.
3918 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3919 lt_cv_deplibs_check_method=pass_all ;;
3921 # glibc up to 2.1.1 does not perform some relocations on ARM
3922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3924 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3928 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3937 lt_cv_file_magic_cmd=/usr/bin/file
3938 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3942 lt_cv_deplibs_check_method=unknown
3946 lt_cv_file_magic_cmd=/usr/bin/file
3947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3948 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3951 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3955 osf3* | osf4* | osf5*)
3956 # this will be overridden with pass_all, but let us keep it just in case
3957 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3958 lt_cv_file_magic_test_file=/shlib/libc.so
3959 lt_cv_deplibs_check_method=pass_all
3963 lt_cv_deplibs_check_method=pass_all
3967 lt_cv_deplibs_check_method=pass_all
3968 lt_cv_file_magic_test_file=/lib/libc.so
3971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3972 case $host_vendor in
3974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3978 lt_cv_deplibs_check_method=pass_all
3981 lt_cv_file_magic_cmd='/bin/file'
3982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3985 lt_cv_file_magic_cmd='/bin/file'
3986 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3987 lt_cv_file_magic_test_file=/lib/libc.so
3990 lt_cv_deplibs_check_method=pass_all
3995 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3996 lt_cv_deplibs_check_method=pass_all
4001 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4002 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6