2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Dyninst 6.0.
5 # Report bugs to <bugs@dyninst.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Dyninst'
271 PACKAGE_TARNAME='dyninst'
272 PACKAGE_VERSION='6.0'
273 PACKAGE_STRING='Dyninst 6.0'
274 PACKAGE_BUGREPORT='bugs@dyninst.org'
276 ac_default_prefix=`pwd`/..
277 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT _ICC_ _PGC_ _PGCXX_ _CC_ _CXX_ USE_TCL83 TCLTK_INC_DIR TCLTK_LIB_DIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBELF_INC_DIR LIBELF_LIB_DIR LIBELF_STATIC LIBELF_DYNAMIC LIBDWARF_INC_DIR LIBDWARF_LIB_DIR LIBDWARF_STATIC LIBDWARF_DYNAMIC LIBXML2_INC_DIR LIBXML2_LIB_DIR LIBIBERTY_LIB_DIR LIBIBERTY_STATIC LIBIBERTY_DYNAMIC LIBUNWIND_INC_DIR LIBUNWIND_LIB_DIR LIBFLEX_LIB_DIR NASM STACKPROT MMTIMER LIBOBJS LTLIBOBJS'
280 # Initialize some variables set by options.
282 ac_init_version=false
283 # The variables have the same names as the options, with
284 # dashes changed to underlines.
292 program_transform_name=s,x,x,
300 # Installation directory options.
301 # These are left unexpanded so users can "make install exec_prefix=/foo"
302 # and all the variables that are supposed to be based on exec_prefix
303 # by default will actually change.
304 # Use braces instead of parens because sh, perl, etc. also accept them.
305 bindir='${exec_prefix}/bin'
306 sbindir='${exec_prefix}/sbin'
307 libexecdir='${exec_prefix}/libexec'
308 datadir='${prefix}/share'
309 sysconfdir='${prefix}/etc'
310 sharedstatedir='${prefix}/com'
311 localstatedir='${prefix}/var'
312 libdir='${exec_prefix}/lib'
313 includedir='${prefix}/include'
314 oldincludedir='/usr/include'
315 infodir='${prefix}/info'
316 mandir='${prefix}/man'
321 # If the previous option needs an argument, assign it.
322 if test -n "$ac_prev"; then
323 eval "$ac_prev=\$ac_option"
328 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
330 # Accept the important Cygnus configure options, so we can diagnose typos.
334 -bindir | --bindir | --bindi | --bind | --bin | --bi)
336 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
339 -build | --build | --buil | --bui | --bu)
340 ac_prev=build_alias ;;
341 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
342 build_alias=$ac_optarg ;;
344 -cache-file | --cache-file | --cache-fil | --cache-fi \
345 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
346 ac_prev=cache_file ;;
347 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
348 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
349 cache_file=$ac_optarg ;;
352 cache_file=config.cache ;;
354 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
356 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
358 datadir=$ac_optarg ;;
360 -disable-* | --disable-*)
361 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
362 # Reject names that are not valid shell variable names.
363 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
365 { (exit 1); exit 1; }; }
366 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
367 eval "enable_$ac_feature=no" ;;
369 -enable-* | --enable-*)
370 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
371 # Reject names that are not valid shell variable names.
372 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
373 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
374 { (exit 1); exit 1; }; }
375 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
377 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
380 eval "enable_$ac_feature='$ac_optarg'" ;;
382 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
383 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
384 | --exec | --exe | --ex)
385 ac_prev=exec_prefix ;;
386 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
387 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
388 | --exec=* | --exe=* | --ex=*)
389 exec_prefix=$ac_optarg ;;
391 -gas | --gas | --ga | --g)
392 # Obsolete; use --with-gas.
395 -help | --help | --hel | --he | -h)
397 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
398 ac_init_help=recursive ;;
399 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
400 ac_init_help=short ;;
402 -host | --host | --hos | --ho)
403 ac_prev=host_alias ;;
404 -host=* | --host=* | --hos=* | --ho=*)
405 host_alias=$ac_optarg ;;
407 -includedir | --includedir | --includedi | --included | --include \
408 | --includ | --inclu | --incl | --inc)
409 ac_prev=includedir ;;
410 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
411 | --includ=* | --inclu=* | --incl=* | --inc=*)
412 includedir=$ac_optarg ;;
414 -infodir | --infodir | --infodi | --infod | --info | --inf)
416 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
417 infodir=$ac_optarg ;;
419 -libdir | --libdir | --libdi | --libd)
421 -libdir=* | --libdir=* | --libdi=* | --libd=*)
424 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
425 | --libexe | --libex | --libe)
426 ac_prev=libexecdir ;;
427 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
428 | --libexe=* | --libex=* | --libe=*)
429 libexecdir=$ac_optarg ;;
431 -localstatedir | --localstatedir | --localstatedi | --localstated \
432 | --localstate | --localstat | --localsta | --localst \
433 | --locals | --local | --loca | --loc | --lo)
434 ac_prev=localstatedir ;;
435 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
436 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
437 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
438 localstatedir=$ac_optarg ;;
440 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
442 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
446 # Obsolete; use --without-fp.
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c | -n)
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
457 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
458 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
459 | --oldin | --oldi | --old | --ol | --o)
460 ac_prev=oldincludedir ;;
461 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
462 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
463 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
464 oldincludedir=$ac_optarg ;;
466 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
468 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
471 -program-prefix | --program-prefix | --program-prefi | --program-pref \
472 | --program-pre | --program-pr | --program-p)
473 ac_prev=program_prefix ;;
474 -program-prefix=* | --program-prefix=* | --program-prefi=* \
475 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
476 program_prefix=$ac_optarg ;;
478 -program-suffix | --program-suffix | --program-suffi | --program-suff \
479 | --program-suf | --program-su | --program-s)
480 ac_prev=program_suffix ;;
481 -program-suffix=* | --program-suffix=* | --program-suffi=* \
482 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
483 program_suffix=$ac_optarg ;;
485 -program-transform-name | --program-transform-name \
486 | --program-transform-nam | --program-transform-na \
487 | --program-transform-n | --program-transform- \
488 | --program-transform | --program-transfor \
489 | --program-transfo | --program-transf \
490 | --program-trans | --program-tran \
491 | --progr-tra | --program-tr | --program-t)
492 ac_prev=program_transform_name ;;
493 -program-transform-name=* | --program-transform-name=* \
494 | --program-transform-nam=* | --program-transform-na=* \
495 | --program-transform-n=* | --program-transform-=* \
496 | --program-transform=* | --program-transfor=* \
497 | --program-transfo=* | --program-transf=* \
498 | --program-trans=* | --program-tran=* \
499 | --progr-tra=* | --program-tr=* | --program-t=*)
500 program_transform_name=$ac_optarg ;;
502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
503 | -silent | --silent | --silen | --sile | --sil)
506 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
508 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
510 sbindir=$ac_optarg ;;
512 -sharedstatedir | --sharedstatedir | --sharedstatedi \
513 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
514 | --sharedst | --shareds | --shared | --share | --shar \
516 ac_prev=sharedstatedir ;;
517 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
518 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
519 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
521 sharedstatedir=$ac_optarg ;;
523 -site | --site | --sit)
525 -site=* | --site=* | --sit=*)
528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
533 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
534 | --syscon | --sysco | --sysc | --sys | --sy)
535 ac_prev=sysconfdir ;;
536 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
537 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
538 sysconfdir=$ac_optarg ;;
540 -target | --target | --targe | --targ | --tar | --ta | --t)
541 ac_prev=target_alias ;;
542 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
543 target_alias=$ac_optarg ;;
545 -v | -verbose | --verbose | --verbos | --verbo | --verb)
548 -version | --version | --versio | --versi | --vers | -V)
552 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid package name: $ac_package" >&2
556 { (exit 1); exit 1; }; }
557 ac_package=`echo $ac_package| sed 's/-/_/g'`
559 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 eval "with_$ac_package='$ac_optarg'" ;;
564 -without-* | --without-*)
565 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid package name: $ac_package" >&2
569 { (exit 1); exit 1; }; }
570 ac_package=`echo $ac_package | sed 's/-/_/g'`
571 eval "with_$ac_package=no" ;;
574 # Obsolete; use --with-x.
577 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
578 | --x-incl | --x-inc | --x-in | --x-i)
579 ac_prev=x_includes ;;
580 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
581 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
582 x_includes=$ac_optarg ;;
584 -x-libraries | --x-libraries | --x-librarie | --x-librari \
585 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
586 ac_prev=x_libraries ;;
587 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
588 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
589 x_libraries=$ac_optarg ;;
591 -*) { echo "$as_me: error: unrecognized option: $ac_option
592 Try \`$0 --help' for more information." >&2
593 { (exit 1); exit 1; }; }
597 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
601 { (exit 1); exit 1; }; }
602 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
603 eval "$ac_envvar='$ac_optarg'"
607 # FIXME: should be removed in autoconf 3.0.
608 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
609 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
610 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
611 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
617 if test -n "$ac_prev"; then
618 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
619 { echo "$as_me: error: missing argument to $ac_option" >&2
620 { (exit 1); exit 1; }; }
623 # Be sure to have absolute paths.
624 for ac_var in exec_prefix prefix
626 eval ac_val=$`echo $ac_var`
628 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
629 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
630 { (exit 1); exit 1; }; };;
634 # Be sure to have absolute paths.
635 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
636 localstatedir libdir includedir oldincludedir infodir mandir
638 eval ac_val=$`echo $ac_var`
640 [\\/$]* | ?:[\\/]* ) ;;
641 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
642 { (exit 1); exit 1; }; };;
646 # There might be people who depend on the old broken behavior: `$host'
647 # used to hold the argument of --host etc.
648 # FIXME: To remove some day.
653 # FIXME: To remove some day.
654 if test "x$host_alias" != x; then
655 if test "x$build_alias" = x; then
656 cross_compiling=maybe
657 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
658 If a cross compiler is detected then cross compile mode will be used." >&2
659 elif test "x$build_alias" != "x$host_alias"; then
665 test -n "$host_alias" && ac_tool_prefix=$host_alias-
667 test "$silent" = yes && exec 6>/dev/null
670 # Find the source files, if location was not specified.
671 if test -z "$srcdir"; then
672 ac_srcdir_defaulted=yes
673 # Try the directory containing this script, then its parent.
674 ac_confdir=`(dirname "$0") 2>/dev/null ||
675 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
676 X"$0" : 'X\(//\)[^/]' \| \
677 X"$0" : 'X\(//\)$' \| \
678 X"$0" : 'X\(/\)' \| \
679 . : '\(.\)' 2>/dev/null ||
681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
683 /^X\(\/\/\)$/{ s//\1/; q; }
684 /^X\(\/\).*/{ s//\1/; q; }
687 if test ! -r $srcdir/$ac_unique_file; then
691 ac_srcdir_defaulted=no
693 if test ! -r $srcdir/$ac_unique_file; then
694 if test "$ac_srcdir_defaulted" = yes; then
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
696 { (exit 1); exit 1; }; }
698 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
699 { (exit 1); exit 1; }; }
702 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
703 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
704 { (exit 1); exit 1; }; }
705 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
706 ac_env_build_alias_set=${build_alias+set}
707 ac_env_build_alias_value=$build_alias
708 ac_cv_env_build_alias_set=${build_alias+set}
709 ac_cv_env_build_alias_value=$build_alias
710 ac_env_host_alias_set=${host_alias+set}
711 ac_env_host_alias_value=$host_alias
712 ac_cv_env_host_alias_set=${host_alias+set}
713 ac_cv_env_host_alias_value=$host_alias
714 ac_env_target_alias_set=${target_alias+set}
715 ac_env_target_alias_value=$target_alias
716 ac_cv_env_target_alias_set=${target_alias+set}
717 ac_cv_env_target_alias_value=$target_alias
718 ac_env_CXX_set=${CXX+set}
719 ac_env_CXX_value=$CXX
720 ac_cv_env_CXX_set=${CXX+set}
721 ac_cv_env_CXX_value=$CXX
722 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
723 ac_env_CXXFLAGS_value=$CXXFLAGS
724 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
725 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
726 ac_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_env_LDFLAGS_value=$LDFLAGS
728 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729 ac_cv_env_LDFLAGS_value=$LDFLAGS
730 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_env_CPPFLAGS_value=$CPPFLAGS
732 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
736 # Report the --help message.
738 if test "$ac_init_help" = "long"; then
739 # Omit some internal or obsolete options to make the list less imposing.
740 # This message is too long to be a string in the A/UX 3.1 sh.
742 \`configure' configures Dyninst 6.0 to adapt to many kinds of systems.
744 Usage: $0 [OPTION]... [VAR=VALUE]...
746 To assign environment variables (e.g., CC, CFLAGS...), specify them as
747 VAR=VALUE. See below for descriptions of some of the useful variables.
749 Defaults for the options are specified in brackets.
752 -h, --help display this help and exit
753 --help=short display options specific to this package
754 --help=recursive display the short help of all the included packages
755 -V, --version display version information and exit
756 -q, --quiet, --silent do not print \`checking...' messages
757 --cache-file=FILE cache test results in FILE [disabled]
758 -C, --config-cache alias for \`--cache-file=config.cache'
759 -n, --no-create do not create output files
760 --srcdir=DIR find the sources in DIR [configure dir or \`..']
765 Installation directories:
766 --prefix=PREFIX install architecture-independent files in PREFIX
768 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
771 By default, \`make install' will install all the files in
772 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
773 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
774 for instance \`--prefix=\$HOME'.
776 For better control, use the options below.
778 Fine tuning of the installation directories:
779 --bindir=DIR user executables [EPREFIX/bin]
780 --sbindir=DIR system admin executables [EPREFIX/sbin]
781 --libexecdir=DIR program executables [EPREFIX/libexec]
782 --datadir=DIR read-only architecture-independent data [PREFIX/share]
783 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
784 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
785 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
786 --libdir=DIR object code libraries [EPREFIX/lib]
787 --includedir=DIR C header files [PREFIX/include]
788 --oldincludedir=DIR C header files for non-gcc [/usr/include]
789 --infodir=DIR info documentation [PREFIX/info]
790 --mandir=DIR man documentation [PREFIX/man]
796 --build=BUILD configure for building on BUILD [guessed]
797 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 if test -n "$ac_init_help"; then
802 case $ac_init_help in
803 short | recursive ) echo "Configuration of Dyninst 6.0:";;
808 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
809 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
810 --with-package-base Base directory to look for packages
811 --with-tcl83 Use Tcl/Tk 8.3
812 --with-tcltk-incdir TCL/TK include directory
813 --with-tcltk-libdir TCL/TK library directory
814 --with-libelf-incdir LIBELF include directory
815 --with-libelf-libdir LIBELF library directory
816 --with-libdwarf-incdir LIBDWARF include directory
817 --with-libdwarf-libdir LIBDWARF library directory
818 --with-libxml2-incdir LIBXML2 include directory
819 --with-libxml2-libdir LIBXML2 library directory
820 --with-libiberty-libdir LIBIBERTY library directory
821 --with-libunwind-incdir LIBUNWIND include directory
822 --with-libunwind-libdir LIBUNWIND library directory
823 --with-libflex-libdir Absolute path to flex library
825 Some influential environment variables:
826 CXX C++ compiler command
827 CXXFLAGS C++ compiler flags
828 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
829 nonstandard directory <lib dir>
830 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
831 headers in a nonstandard directory <include dir>
833 Use these variables to override the choices made by `configure' or to help
834 it to find libraries and programs with nonstandard names/locations.
836 Report bugs to <bugs@dyninst.org>.
840 if test "$ac_init_help" = "recursive"; then
841 # If there are subdirs, report their specific --help.
843 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
844 test -d $ac_dir || continue
847 if test "$ac_dir" != .; then
848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
849 # A "../" for each directory in $ac_dir_suffix.
850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
852 ac_dir_suffix= ac_top_builddir=
856 .) # No --srcdir option. We are building in place.
858 if test -z "$ac_top_builddir"; then
861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
863 [\\/]* | ?:[\\/]* ) # Absolute path.
864 ac_srcdir=$srcdir$ac_dir_suffix;
865 ac_top_srcdir=$srcdir ;;
867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
871 # Do not use `cd foo && pwd` to compute absolute paths, because
872 # the directories may not exist.
874 .) ac_abs_builddir="$ac_dir";;
877 .) ac_abs_builddir=`pwd`;;
878 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
879 *) ac_abs_builddir=`pwd`/"$ac_dir";;
882 case $ac_abs_builddir in
883 .) ac_abs_top_builddir=${ac_top_builddir}.;;
885 case ${ac_top_builddir}. in
886 .) ac_abs_top_builddir=$ac_abs_builddir;;
887 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
888 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
891 case $ac_abs_builddir in
892 .) ac_abs_srcdir=$ac_srcdir;;
895 .) ac_abs_srcdir=$ac_abs_builddir;;
896 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
897 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
900 case $ac_abs_builddir in
901 .) ac_abs_top_srcdir=$ac_top_srcdir;;
903 case $ac_top_srcdir in
904 .) ac_abs_top_srcdir=$ac_abs_builddir;;
905 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
906 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f $ac_srcdir/configure.gnu; then
914 $SHELL $ac_srcdir/configure.gnu --help=recursive
915 elif test -f $ac_srcdir/configure; then
917 $SHELL $ac_srcdir/configure --help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.in; then
923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
932 Dyninst configure 6.0
933 generated by GNU Autoconf 2.59
935 Copyright (C) 2003 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by Dyninst $as_me 6.0, which was
947 generated by GNU Autoconf 2.59. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 test -z "$as_dir" && as_dir=.
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Strip out --silent because we don't want to record it for future runs.
1000 # Also quote any args containing shell meta-characters.
1001 # Make two passes to allow for proper duplicate-argument suppression.
1006 ac_must_keep_next=false
1012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023 if test $ac_must_keep_next = true; then
1024 ac_must_keep_next=false # Got value, back to normal.
1027 *=* | --config-cache | -C | -disable-* | --disable-* \
1028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030 | -with-* | --with-* | -without-* | --without-* | --x)
1031 case "$ac_configure_args0 " in
1032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 -* ) ac_must_keep_next=true ;;
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1045 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log. We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054 # Save into config.log some information that might help in debugging.
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1064 # The following way of writing the cache mishandles newlines in values,
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1082 ## ----------------- ##
1083 ## Output variables. ##
1084 ## ----------------- ##
1087 for ac_var in $ac_subst_vars
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1094 if test -n "$ac_subst_files"; then
1101 for ac_var in $ac_subst_files
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1109 if test -s confdefs.h; then
1116 sed "/^$/d" confdefs.h | sort
1119 test "$ac_signal" != 0 &&
1120 echo "$as_me: caught signal $ac_signal"
1121 echo "$as_me: exit $exit_status"
1123 rm -f core *.core &&
1124 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 for ac_signal in 1 2 13 15; do
1128 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1133 rm -rf conftest* confdefs.h
1134 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 # Predefined preprocessor variables.
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 # Let the site file select an alternate cache file if it wants to.
1165 # Prefer explicitly selected file to automatically selected ones.
1166 if test -z "$CONFIG_SITE"; then
1167 if test "x$prefix" != xNONE; then
1168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173 for ac_site_file in $CONFIG_SITE; do
1174 if test -r "$ac_site_file"; then
1175 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176 echo "$as_me: loading site script $ac_site_file" >&6;}
1177 sed 's/^/| /' "$ac_site_file" >&5
1182 if test -r "$cache_file"; then
1183 # Some versions of bash will fail to source /dev/null (special
1184 # files actually), so we avoid doing that.
1185 if test -f "$cache_file"; then
1186 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187 echo "$as_me: loading cache $cache_file" >&6;}
1189 [\\/]* | ?:[\\/]* ) . $cache_file;;
1190 *) . ./$cache_file;;
1194 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195 echo "$as_me: creating cache $cache_file" >&6;}
1199 # Check that the precious variables saved in the cache have kept the same
1201 ac_cache_corrupted=false
1202 for ac_var in `(set) 2>&1 |
1203 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205 eval ac_new_set=\$ac_env_${ac_var}_set
1206 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207 eval ac_new_val="\$ac_env_${ac_var}_value"
1208 case $ac_old_set,$ac_new_set in
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1215 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1219 if test "x$ac_old_val" != "x$ac_new_val"; then
1220 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1221 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1222 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1223 echo "$as_me: former value: $ac_old_val" >&2;}
1224 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1225 echo "$as_me: current value: $ac_new_val" >&2;}
1226 ac_cache_corrupted=:
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1246 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247 { (exit 1); exit 1; }; }
1251 ac_cpp='$CPP $CPPFLAGS'
1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286 for ac_dir in autodyninst $srcdir/autodyninst; do
1287 if test -f $ac_dir/install-sh; then
1289 ac_install_sh="$ac_aux_dir/install-sh -c"
1291 elif test -f $ac_dir/install.sh; then
1293 ac_install_sh="$ac_aux_dir/install.sh -c"
1295 elif test -f $ac_dir/shtool; then
1297 ac_install_sh="$ac_aux_dir/shtool install -c"
1301 if test -z "$ac_aux_dir"; then
1302 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&5
1303 echo "$as_me: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&2;}
1304 { (exit 1); exit 1; }; }
1306 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1307 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1308 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1311 [\\/]* | ?:[\\/]* ) ac_macro_dir=autodyninst ;;
1312 *) ac_macro_dir=$srcdir/autodyninst ;;
1314 if test -d "$ac_macro_dir"; then :
1316 { { echo "$as_me:$LINENO: error: cannot find macro directory \`autodyninst'" >&5
1317 echo "$as_me: error: cannot find macro directory \`autodyninst'" >&2;}
1318 { (exit 1); exit 1; }; }
1323 ac_cpp='$CXXCPP $CPPFLAGS'
1324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1327 if test -n "$ac_tool_prefix"; then
1328 for ac_prog in $CCC g++
1330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1332 echo "$as_me:$LINENO: checking for $ac_word" >&5
1333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1334 if test "${ac_cv_prog_CXX+set}" = set; then
1335 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 if test -n "$CXX"; then
1338 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1344 test -z "$as_dir" && as_dir=.
1345 for ac_exec_ext in '' $ac_executable_extensions; do
1346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1357 if test -n "$CXX"; then
1358 echo "$as_me:$LINENO: result: $CXX" >&5
1359 echo "${ECHO_T}$CXX" >&6
1361 echo "$as_me:$LINENO: result: no" >&5
1362 echo "${ECHO_T}no" >&6
1365 test -n "$CXX" && break
1368 if test -z "$CXX"; then
1370 for ac_prog in $CCC g++
1372 # Extract the first word of "$ac_prog", so it can be a program name with args.
1373 set dummy $ac_prog; ac_word=$2
1374 echo "$as_me:$LINENO: checking for $ac_word" >&5
1375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 if test -n "$ac_ct_CXX"; then
1380 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_prog_ac_ct_CXX="$ac_prog"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1399 if test -n "$ac_ct_CXX"; then
1400 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1401 echo "${ECHO_T}$ac_ct_CXX" >&6
1403 echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1407 test -n "$ac_ct_CXX" && break
1409 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1415 # Provide some information about the compiler.
1416 echo "$as_me:$LINENO:" \
1417 "checking for C++ compiler version" >&5
1418 ac_compiler=`set X $ac_compile; echo $2`
1419 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1420 (eval $ac_compiler --version </dev/null >&5) 2>&5
1422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1423 (exit $ac_status); }
1424 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1425 (eval $ac_compiler -v </dev/null >&5) 2>&5
1427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1428 (exit $ac_status); }
1429 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1430 (eval $ac_compiler -V </dev/null >&5) 2>&5
1432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1433 (exit $ac_status); }
1435 cat >conftest.$ac_ext <<_ACEOF
1438 cat confdefs.h >>conftest.$ac_ext
1439 cat >>conftest.$ac_ext <<_ACEOF
1440 /* end confdefs.h. */
1450 ac_clean_files_save=$ac_clean_files
1451 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1452 # Try to create an executable without -o first, disregard a.out.
1453 # It will help us diagnose broken compilers, and finding out an intuition
1455 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1456 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1457 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1458 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1459 (eval $ac_link_default) 2>&5
1461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1462 (exit $ac_status); }; then
1463 # Find the output, starting from the most likely. This scheme is
1464 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1467 # Be careful to initialize this variable, since it used to be cached.
1468 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1470 # b.out is created by i960 compilers.
1471 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1473 test -f "$ac_file" || continue
1475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1478 # This is the source file.
1481 # We found the default executable, but exeext='' is most
1485 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1486 # FIXME: I believe we export ac_cv_exeext for Libtool,
1487 # but it would be cool to find out if it's true. Does anybody
1488 # maintain Libtool? --akim.
1496 echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1499 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1500 See \`config.log' for more details." >&5
1501 echo "$as_me: error: C++ compiler cannot create executables
1502 See \`config.log' for more details." >&2;}
1503 { (exit 77); exit 77; }; }
1506 ac_exeext=$ac_cv_exeext
1507 echo "$as_me:$LINENO: result: $ac_file" >&5
1508 echo "${ECHO_T}$ac_file" >&6
1510 # Check the compiler produces executables we can run. If not, either
1511 # the compiler is broken, or we cross compile.
1512 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1513 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1514 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1515 # If not cross compiling, check that we can run a simple program.
1516 if test "$cross_compiling" != yes; then
1517 if { ac_try='./$ac_file'
1518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1522 (exit $ac_status); }; }; then
1525 if test "$cross_compiling" = maybe; then
1528 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1529 If you meant to cross compile, use \`--host'.
1530 See \`config.log' for more details." >&5
1531 echo "$as_me: error: cannot run C++ compiled programs.
1532 If you meant to cross compile, use \`--host'.
1533 See \`config.log' for more details." >&2;}
1534 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: yes" >&5
1539 echo "${ECHO_T}yes" >&6
1541 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1542 ac_clean_files=$ac_clean_files_save
1543 # Check the compiler produces executables we can run. If not, either
1544 # the compiler is broken, or we cross compile.
1545 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1546 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1547 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1548 echo "${ECHO_T}$cross_compiling" >&6
1550 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1551 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1553 (eval $ac_link) 2>&5
1555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1556 (exit $ac_status); }; then
1557 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1558 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1559 # work properly (i.e., refer to `conftest.exe'), while it won't with
1561 for ac_file in conftest.exe conftest conftest.*; do
1562 test -f "$ac_file" || continue
1564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1565 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1572 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1573 See \`config.log' for more details." >&5
1574 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1575 See \`config.log' for more details." >&2;}
1576 { (exit 1); exit 1; }; }
1579 rm -f conftest$ac_cv_exeext
1580 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1581 echo "${ECHO_T}$ac_cv_exeext" >&6
1583 rm -f conftest.$ac_ext
1584 EXEEXT=$ac_cv_exeext
1586 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1587 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1588 if test "${ac_cv_objext+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 cat >conftest.$ac_ext <<_ACEOF
1594 cat confdefs.h >>conftest.$ac_ext
1595 cat >>conftest.$ac_ext <<_ACEOF
1596 /* end confdefs.h. */
1606 rm -f conftest.o conftest.obj
1607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1608 (eval $ac_compile) 2>&5
1610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611 (exit $ac_status); }; then
1612 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1615 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1620 echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1623 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1624 See \`config.log' for more details." >&5
1625 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1626 See \`config.log' for more details." >&2;}
1627 { (exit 1); exit 1; }; }
1630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1632 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1633 echo "${ECHO_T}$ac_cv_objext" >&6
1634 OBJEXT=$ac_cv_objext
1636 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1637 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1638 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 cat >conftest.$ac_ext <<_ACEOF
1644 cat confdefs.h >>conftest.$ac_ext
1645 cat >>conftest.$ac_ext <<_ACEOF
1646 /* end confdefs.h. */
1659 rm -f conftest.$ac_objext
1660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1661 (eval $ac_compile) 2>conftest.er1
1663 grep -v '^ *+' conftest.er1 >conftest.err
1665 cat conftest.err >&5
1666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667 (exit $ac_status); } &&
1668 { ac_try='test -z "$ac_cxx_werror_flag"
1669 || test ! -s conftest.err'
1670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674 (exit $ac_status); }; } &&
1675 { ac_try='test -s conftest.$ac_objext'
1676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680 (exit $ac_status); }; }; then
1683 echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1689 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1692 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1693 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1694 GXX=`test $ac_compiler_gnu = yes && echo yes`
1695 ac_test_CXXFLAGS=${CXXFLAGS+set}
1696 ac_save_CXXFLAGS=$CXXFLAGS
1698 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1699 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1700 if test "${ac_cv_prog_cxx_g+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 cat >conftest.$ac_ext <<_ACEOF
1706 cat confdefs.h >>conftest.$ac_ext
1707 cat >>conftest.$ac_ext <<_ACEOF
1708 /* end confdefs.h. */
1718 rm -f conftest.$ac_objext
1719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1720 (eval $ac_compile) 2>conftest.er1
1722 grep -v '^ *+' conftest.er1 >conftest.err
1724 cat conftest.err >&5
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); } &&
1727 { ac_try='test -z "$ac_cxx_werror_flag"
1728 || test ! -s conftest.err'
1729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); }; } &&
1734 { ac_try='test -s conftest.$ac_objext'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1740 ac_cv_prog_cxx_g=yes
1742 echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1749 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1750 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1751 if test "$ac_test_CXXFLAGS" = set; then
1752 CXXFLAGS=$ac_save_CXXFLAGS
1753 elif test $ac_cv_prog_cxx_g = yes; then
1754 if test "$GXX" = yes; then
1760 if test "$GXX" = yes; then
1766 for ac_declaration in \
1768 'extern "C" void std::exit (int) throw (); using std::exit;' \
1769 'extern "C" void std::exit (int); using std::exit;' \
1770 'extern "C" void exit (int) throw ();' \
1771 'extern "C" void exit (int);' \
1774 cat >conftest.$ac_ext <<_ACEOF
1777 cat confdefs.h >>conftest.$ac_ext
1778 cat >>conftest.$ac_ext <<_ACEOF
1779 /* end confdefs.h. */
1790 rm -f conftest.$ac_objext
1791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1792 (eval $ac_compile) 2>conftest.er1
1794 grep -v '^ *+' conftest.er1 >conftest.err
1796 cat conftest.err >&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); } &&
1799 { ac_try='test -z "$ac_cxx_werror_flag"
1800 || test ! -s conftest.err'
1801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; } &&
1806 { ac_try='test -s conftest.$ac_objext'
1807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }; }; then
1814 echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1820 cat >conftest.$ac_ext <<_ACEOF
1823 cat confdefs.h >>conftest.$ac_ext
1824 cat >>conftest.$ac_ext <<_ACEOF
1825 /* end confdefs.h. */
1835 rm -f conftest.$ac_objext
1836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1837 (eval $ac_compile) 2>conftest.er1
1839 grep -v '^ *+' conftest.er1 >conftest.err
1841 cat conftest.err >&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); } &&
1844 { ac_try='test -z "$ac_cxx_werror_flag"
1845 || test ! -s conftest.err'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; } &&
1851 { ac_try='test -s conftest.$ac_objext'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1859 echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1866 if test -n "$ac_declaration"; then
1867 echo '#ifdef __cplusplus' >>confdefs.h
1868 echo $ac_declaration >>confdefs.h
1869 echo '#endif' >>confdefs.h
1873 ac_cpp='$CPP $CPPFLAGS'
1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 # Extract the first word of "icc", so it can be a program name with args.
1879 set dummy icc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_path__ICC_+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 ac_cv_path__ICC_="$_ICC_" # Let the user override the test with a path.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_path__ICC_="$as_dir/$ac_word$ac_exec_ext"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 _ICC_=$ac_cv_path__ICC_
1909 if test -n "$_ICC_"; then
1910 echo "$as_me:$LINENO: result: $_ICC_" >&5
1911 echo "${ECHO_T}$_ICC_" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 # Extract the first word of "pgcc", so it can be a program name with args.
1918 set dummy pgcc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog__PGC_+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 if test -n "$_PGC_"; then
1925 ac_cv_prog__PGC_="$_PGC_" # Let the user override the test.
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog__PGC_="pgcc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 _PGC_=$ac_cv_prog__PGC_
1944 if test -n "$_PGC_"; then
1945 echo "$as_me:$LINENO: result: $_PGC_" >&5
1946 echo "${ECHO_T}$_PGC_" >&6
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1952 # Extract the first word of "pgCC", so it can be a program name with args.
1953 set dummy pgCC; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog__PGCXX_+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$_PGCXX_"; then
1960 ac_cv_prog__PGCXX_="$_PGCXX_" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog__PGCXX_="pgCC"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 _PGCXX_=$ac_cv_prog__PGCXX_
1979 if test -n "$_PGCXX_"; then
1980 echo "$as_me:$LINENO: result: $_PGCXX_" >&5
1981 echo "${ECHO_T}$_PGCXX_" >&6
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1987 # Extract the first word of "cc", so it can be a program name with args.
1988 set dummy cc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_path__CC_+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 ac_cv_path__CC_="$_CC_" # Let the user override the test with a path.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_path__CC_="$as_dir/$ac_word$ac_exec_ext"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 _CC_=$ac_cv_path__CC_
2018 if test -n "$_CC_"; then
2019 echo "$as_me:$LINENO: result: $_CC_" >&5
2020 echo "${ECHO_T}$_CC_" >&6
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2026 # Extract the first word of "CC", so it can be a program name with args.
2027 set dummy CC; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_path__CXX_+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 ac_cv_path__CXX_="$_CXX_" # Let the user override the test with a path.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_path__CXX_="$as_dir/$ac_word$ac_exec_ext"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 _CXX_=$ac_cv_path__CXX_
2057 if test -n "$_CXX_"; then
2058 echo "$as_me:$LINENO: result: $_CXX_" >&5
2059 echo "${ECHO_T}$_CXX_" >&6
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2066 ac_cpp='$CXXCPP $CPPFLAGS'
2067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2077 # Check whether --with-package-base or --without-package-base was given.
2078 if test "${with_package_base+set}" = set; then
2079 withval="$with_package_base"
2080 PACKAGE_BASE="${withval}";
2081 TCLTK_INC_DIR="${PACKAGE_BASE}/tcl8.4.5/include";
2082 TCLTK_LIB_DIR="${PACKAGE_BASE}/tcl8.4.5/lib";
2083 LIBELF_INC_DIR="${PACKAGE_BASE}/libelf/include";
2084 LIBELF_LIB_DIR="${PACKAGE_BASE}/libelf/lib";
2085 LIBDWARF_INC_DIR="${PACKAGE_BASE}/libdwarf/include";
2086 LIBDWARF_LIB_DIR="${PACKAGE_BASE}/libdwarf/lib";
2087 LIBXML2_INC_DIR="${PACKAGE_BASE}/libxml2/include/libxml2"
2088 LIBXML2_LIB_DIR="${PACKAGE_BASE}/libxml2/lib";
2089 LIBUNWIND_INC_DIR="${PACKAGE_BASE}/libunwind/include";
2090 LIBUNWIND_LIB_DIR="${PACKAGE_BASE}/libunwind/lib";
2091 LIBFLEX_LIB_DIR="${PACKAGE_BASE}/libflex/lib";
2095 # We fall back on these defaults if both --with-package-base and
2096 # specific --with-<package> arguments are not provided.
2097 TCLTK_INC_DIR="/usr/include";
2098 TCLTK_LIB_DIR="/usr/lib";
2099 LIBELF_INC_DIR="/usr/include";
2100 LIBELF_LIB_DIR="/usr/lib";
2101 LIBDWARF_INC_DIR="/usr/include";
2102 LIBDWARF_LIB_DIR="/usr/lib";
2103 LIBXML2_INC_DIR="/usr/include/libxml2"
2104 LIBXML2_LIB_DIR="/usr/lib";
2105 LIBUNWIND_INC_DIR="/usr/include";
2106 LIBUNWIND_LIB_DIR="/usr/lib";
2107 LIBFLEX_LIB_DIR="/usr/lib";
2110 # 3/15/09: We don't include libiberty in the cs.wisc.edu package-base.
2111 # Why? Putting these here for now...
2112 LIBIBERTY_LIB_DIR="/usr/lib";
2116 # Check whether --with-tcl83 or --without-tcl83 was given.
2117 if test "${with_tcl83+set}" = set; then
2118 withval="$with_tcl83"
2119 TCL_VERSION="tcl8.3"; USE_TCL83="${withval}";
2121 TCL_VERSION="tcl8.4"; USE_TCL83="false";
2124 # Check whether --with-tcltk-incdir or --without-tcltk-incdir was given.
2125 if test "${with_tcltk_incdir+set}" = set; then
2126 withval="$with_tcltk_incdir"
2127 TCLTK_INC_DIR="${withval}";
2130 # Check whether --with-tcltk-libdir or --without-tcltk-libdir was given.
2131 if test "${with_tcltk_libdir+set}" = set; then
2132 withval="$with_tcltk_libdir"
2133 TCLTK_LIB_DIR="${withval}";
2137 CXXFLAGS_HOLD=$CXXFLAGS
2138 if test "$TCLTK_INC_DIR" != "" ; then
2139 echo "$as_me:$LINENO: checking for tcl.h in $TCLTK_INC_DIR" >&5
2140 echo $ECHO_N "checking for tcl.h in $TCLTK_INC_DIR... $ECHO_C" >&6
2141 CXXFLAGS="$CXXFLAGS -I$TCLTK_INC_DIR"
2143 echo "$as_me:$LINENO: checking for tcl.h" >&5
2144 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
2146 cat >conftest.$ac_ext <<_ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2165 grep -v '^ *+' conftest.er1 >conftest.err
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_cxx_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2184 cat >>confdefs.h <<\_ACEOF
2185 #define cap_have_tcl 1
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 echo "$as_me:$LINENO: result: tcl.h not found in $TCLTK_INC_DIR" >&5
2193 echo "${ECHO_T}tcl.h not found in $TCLTK_INC_DIR" >&6
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 CXXFLAGS=$CXXFLAGS_HOLD
2199 if test "$TCLTK_LIB_DIR" = "" ; then
2201 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2202 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2203 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2204 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 ac_check_lib_save_LIBS=$LIBS
2208 LIBS="-l$TCL_VERSION $LIBS"
2209 cat >conftest.$ac_ext <<_ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2216 /* Override any gcc2 internal prototype to avoid an error. */
2220 /* We use char because int might match the return type of a gcc2
2221 builtin and then its argument prototype would still apply. */
2231 rm -f conftest.$ac_objext conftest$ac_exeext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2233 (eval $ac_link) 2>conftest.er1
2235 grep -v '^ *+' conftest.er1 >conftest.err
2237 cat conftest.err >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -z "$ac_cxx_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try='test -s conftest$ac_exeext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 eval "$as_ac_Lib=yes"
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2258 eval "$as_ac_Lib=no"
2260 rm -f conftest.err conftest.$ac_objext \
2261 conftest$ac_exeext conftest.$ac_ext
2262 LIBS=$ac_check_lib_save_LIBS
2264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2265 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2266 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2267 cat >>confdefs.h <<_ACEOF
2268 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2271 LIBS="-l$TCL_VERSION $LIBS"
2274 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION." >&5
2275 echo "${ECHO_T}Can't find lib$TCL_VERSION." >&6
2280 if test "" != "" ; then
2281 LIBS="-L$TCLTK_LIB_DIR -L"
2283 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2284 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2285 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2286 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 ac_check_lib_save_LIBS=$LIBS
2290 LIBS="-l$TCL_VERSION $LIBS"
2291 cat >conftest.$ac_ext <<_ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2298 /* Override any gcc2 internal prototype to avoid an error. */
2302 /* We use char because int might match the return type of a gcc2
2303 builtin and then its argument prototype would still apply. */
2313 rm -f conftest.$ac_objext conftest$ac_exeext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315 (eval $ac_link) 2>conftest.er1
2317 grep -v '^ *+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_cxx_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest$ac_exeext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 eval "$as_ac_Lib=yes"
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 eval "$as_ac_Lib=no"
2342 rm -f conftest.err conftest.$ac_objext \
2343 conftest$ac_exeext conftest.$ac_ext
2344 LIBS=$ac_check_lib_save_LIBS
2346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2347 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2348 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2349 cat >>confdefs.h <<_ACEOF
2350 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2353 LIBS="-l$TCL_VERSION $LIBS"
2356 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2357 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2361 LIBS="-L$TCLTK_LIB_DIR"
2363 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2364 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2365 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2366 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 ac_check_lib_save_LIBS=$LIBS
2370 LIBS="-l$TCL_VERSION $LIBS"
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2378 /* Override any gcc2 internal prototype to avoid an error. */
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_cxx_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 eval "$as_ac_Lib=yes"
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2420 eval "$as_ac_Lib=no"
2422 rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424 LIBS=$ac_check_lib_save_LIBS
2426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2427 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2428 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2429 cat >>confdefs.h <<_ACEOF
2430 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2433 LIBS="-l$TCL_VERSION $LIBS"
2436 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2437 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2448 # Make sure we can run config.sub.
2449 $ac_config_sub sun4 >/dev/null 2>&1 ||
2450 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2451 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2452 { (exit 1); exit 1; }; }
2454 echo "$as_me:$LINENO: checking build system type" >&5
2455 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2456 if test "${ac_cv_build+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 ac_cv_build_alias=$build_alias
2460 test -z "$ac_cv_build_alias" &&
2461 ac_cv_build_alias=`$ac_config_guess`
2462 test -z "$ac_cv_build_alias" &&
2463 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2464 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2465 { (exit 1); exit 1; }; }
2466 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2468 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2469 { (exit 1); exit 1; }; }
2472 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2473 echo "${ECHO_T}$ac_cv_build" >&6
2475 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2476 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2477 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2480 echo "$as_me:$LINENO: checking host system type" >&5
2481 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2482 if test "${ac_cv_host+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 ac_cv_host_alias=$host_alias
2486 test -z "$ac_cv_host_alias" &&
2487 ac_cv_host_alias=$ac_cv_build_alias
2488 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2490 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2491 { (exit 1); exit 1; }; }
2494 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2495 echo "${ECHO_T}$ac_cv_host" >&6
2497 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2498 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2499 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2503 if test "`echo $host_os | cut -b-3`" = "aix" ; then
2504 { echo "$as_me:$LINENO: AIX system, skipping libelf..." >&5
2505 echo "$as_me: AIX system, skipping libelf..." >&6;}
2509 # Check whether --with-libelf-incdir or --without-libelf-incdir was given.
2510 if test "${with_libelf_incdir+set}" = set; then
2511 withval="$with_libelf_incdir"
2512 LIBELF_INC_DIR="${withval}";
2515 # Check whether --with-libelf-libdir or --without-libelf-libdir was given.
2516 if test "${with_libelf_libdir+set}" = set; then
2517 withval="$with_libelf_libdir"
2518 LIBELF_LIB_DIR="${withval}";
2521 CXXFLAGS_HOLD=$CXXFLAGS
2522 if test "$LIBELF_INC_DIR" != "" ; then
2523 echo "$as_me:$LINENO: checking for libelf.h in $LIBELF_INC_DIR" >&5
2524 echo $ECHO_N "checking for libelf.h in $LIBELF_INC_DIR... $ECHO_C" >&6
2525 CXXFLAGS="$CXXFLAGS -I$LIBELF_INC_DIR"
2527 echo "$as_me:$LINENO: checking for libelf.h" >&5
2528 echo $ECHO_N "checking for libelf.h... $ECHO_C" >&6
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_cxx_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 echo "$as_me:$LINENO: result: yes" >&5
2568 echo "${ECHO_T}yes" >&6
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2573 { { echo "$as_me:$LINENO: error: libelf.h not found in $LIBELF_INC_DIR" >&5
2574 echo "$as_me: error: libelf.h not found in $LIBELF_INC_DIR" >&2;}
2575 { (exit 1); exit 1; }; }
2577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 CXXFLAGS=$CXXFLAGS_HOLD
2581 if test "$LIBELF_LIB_DIR" = "" ; then
2583 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
2584 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
2585 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 ac_check_lib_save_LIBS=$LIBS
2590 cat >conftest.$ac_ext <<_ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2597 /* Override any gcc2 internal prototype to avoid an error. */
2601 /* We use char because int might match the return type of a gcc2
2602 builtin and then its argument prototype would still apply. */
2612 rm -f conftest.$ac_objext conftest$ac_exeext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2614 (eval $ac_link) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_cxx_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest$ac_exeext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 ac_cv_lib_elf_elf_memory=yes
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2639 ac_cv_lib_elf_elf_memory=no
2641 rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643 LIBS=$ac_check_lib_save_LIBS
2645 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
2646 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
2647 if test $ac_cv_lib_elf_elf_memory = yes; then
2648 cat >>confdefs.h <<_ACEOF
2649 #define HAVE_LIBELF 1
2655 { { echo "$as_me:$LINENO: error: Can't find libelf." >&5
2656 echo "$as_me: error: Can't find libelf." >&2;}
2657 { (exit 1); exit 1; }; }
2662 if test "" != "" ; then
2663 LIBS="-L$LIBELF_LIB_DIR -L"
2665 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
2666 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
2667 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 ac_check_lib_save_LIBS=$LIBS
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2679 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2696 (eval $ac_link) 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_cxx_werror_flag"
2704 || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest$ac_exeext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 ac_cv_lib_elf_elf_memory=yes
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2721 ac_cv_lib_elf_elf_memory=no
2723 rm -f conftest.err conftest.$ac_objext \
2724 conftest$ac_exeext conftest.$ac_ext
2725 LIBS=$ac_check_lib_save_LIBS
2727 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
2728 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
2729 if test $ac_cv_lib_elf_elf_memory = yes; then
2730 cat >>confdefs.h <<_ACEOF
2731 #define HAVE_LIBELF 1
2737 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
2738 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
2739 { (exit 1); exit 1; }; }
2743 LIBS="-L$LIBELF_LIB_DIR"
2745 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
2746 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
2747 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 ac_check_lib_save_LIBS=$LIBS
2752 cat >conftest.$ac_ext <<_ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2759 /* Override any gcc2 internal prototype to avoid an error. */
2763 /* We use char because int might match the return type of a gcc2
2764 builtin and then its argument prototype would still apply. */
2774 rm -f conftest.$ac_objext conftest$ac_exeext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2776 (eval $ac_link) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_cxx_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest$ac_exeext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2796 ac_cv_lib_elf_elf_memory=yes
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 ac_cv_lib_elf_elf_memory=no
2803 rm -f conftest.err conftest.$ac_objext \
2804 conftest$ac_exeext conftest.$ac_ext
2805 LIBS=$ac_check_lib_save_LIBS
2807 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
2808 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
2809 if test $ac_cv_lib_elf_elf_memory = yes; then
2810 cat >>confdefs.h <<_ACEOF
2811 #define HAVE_LIBELF 1
2817 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
2818 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
2819 { (exit 1); exit 1; }; }
2827 LIB_TYPE_DYNAMIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.so' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
2828 if test "$LIB_TYPE_DYNAMIC" = "true"; then
2831 LIB_TYPE_STATIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.a' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
2834 LIBELF_STATIC="$LIB_TYPE_STATIC"
2835 LIBELF_DYNAMIC="$LIB_TYPE_DYNAMIC"
2842 if test "`echo $host_os | cut -b-3`" = "aix" ; then
2843 { echo "$as_me:$LINENO: AIX system, skipping libdwarf..." >&5
2844 echo "$as_me: AIX system, skipping libdwarf..." >&6;}
2848 # Check whether --with-libdwarf-incdir or --without-libdwarf-incdir was given.
2849 if test "${with_libdwarf_incdir+set}" = set; then
2850 withval="$with_libdwarf_incdir"
2851 LIBDWARF_INC_DIR="${withval}";
2854 # Check whether --with-libdwarf-libdir or --without-libdwarf-libdir was given.
2855 if test "${with_libdwarf_libdir+set}" = set; then
2856 withval="$with_libdwarf_libdir"
2857 LIBDWARF_LIB_DIR="${withval}";
2860 CXXFLAGS_HOLD=$CXXFLAGS
2861 if test "$LIBDWARF_INC_DIR" != "" ; then
2862 echo "$as_me:$LINENO: checking for libdwarf.h in $LIBDWARF_INC_DIR" >&5
2863 echo $ECHO_N "checking for libdwarf.h in $LIBDWARF_INC_DIR... $ECHO_C" >&6
2864 CXXFLAGS="$CXXFLAGS -I$LIBDWARF_INC_DIR"
2866 echo "$as_me:$LINENO: checking for libdwarf.h" >&5
2867 echo $ECHO_N "checking for libdwarf.h... $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 #include "libdwarf.h"
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_cxx_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 { { echo "$as_me:$LINENO: error: libdwarf.h not found in $LIBDWARF_INC_DIR" >&5
2913 echo "$as_me: error: libdwarf.h not found in $LIBDWARF_INC_DIR" >&2;}
2914 { (exit 1); exit 1; }; }
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 CXXFLAGS=$CXXFLAGS_HOLD
2920 if test "$LIBDWARF_LIB_DIR" = "" ; then
2922 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
2923 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
2924 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 ac_check_lib_save_LIBS=$LIBS
2928 LIBS="-ldwarf $LIBS"
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2936 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2942 char dwarf_add_arange ();
2946 dwarf_add_arange ();
2951 rm -f conftest.$ac_objext conftest$ac_exeext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2953 (eval $ac_link) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest$ac_exeext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 ac_cv_lib_dwarf_dwarf_add_arange=yes
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 ac_cv_lib_dwarf_dwarf_add_arange=no
2980 rm -f conftest.err conftest.$ac_objext \
2981 conftest$ac_exeext conftest.$ac_ext
2982 LIBS=$ac_check_lib_save_LIBS
2984 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_add_arange" >&5
2985 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_add_arange" >&6
2986 if test $ac_cv_lib_dwarf_dwarf_add_arange = yes; then
2987 cat >>confdefs.h <<_ACEOF
2988 #define HAVE_LIBDWARF 1
2991 LIBS="-ldwarf $LIBS"
2994 { { echo "$as_me:$LINENO: error: Can't find libdwarf." >&5
2995 echo "$as_me: error: Can't find libdwarf." >&2;}
2996 { (exit 1); exit 1; }; }
3001 if test "$LIBDWARF_LIB_DIR" != "" ; then
3002 LIBS="-L$LIBDWARF_LIB_DIR -L$LIBDWARF_LIB_DIR"
3004 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
3005 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
3006 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 ac_check_lib_save_LIBS=$LIBS
3010 LIBS="-ldwarf -lelf $LIBS"
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3024 char dwarf_add_arange ();
3028 dwarf_add_arange ();
3033 rm -f conftest.$ac_objext conftest$ac_exeext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035 (eval $ac_link) 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_cxx_werror_flag"
3043 || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest$ac_exeext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_lib_dwarf_dwarf_add_arange=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 ac_cv_lib_dwarf_dwarf_add_arange=no
3062 rm -f conftest.err conftest.$ac_objext \
3063 conftest$ac_exeext conftest.$ac_ext
3064 LIBS=$ac_check_lib_save_LIBS
3066 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_add_arange" >&5
3067 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_add_arange" >&6
3068 if test $ac_cv_lib_dwarf_dwarf_add_arange = yes; then
3069 cat >>confdefs.h <<_ACEOF
3070 #define HAVE_LIBDWARF 1
3073 LIBS="-ldwarf $LIBS"
3076 { { echo "$as_me:$LINENO: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&5
3077 echo "$as_me: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&2;}
3078 { (exit 1); exit 1; }; }
3082 LIBS="-L$LIBDWARF_LIB_DIR"
3084 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
3085 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
3086 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 ac_check_lib_save_LIBS=$LIBS
3090 LIBS="-ldwarf $LIBS"
3091 cat >conftest.$ac_ext <<_ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3098 /* Override any gcc2 internal prototype to avoid an error. */
3102 /* We use char because int might match the return type of a gcc2
3103 builtin and then its argument prototype would still apply. */
3104 char dwarf_add_arange ();
3108 dwarf_add_arange ();
3113 rm -f conftest.$ac_objext conftest$ac_exeext
3114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3115 (eval $ac_link) 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_cxx_werror_flag"
3123 || test ! -s conftest.err'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest$ac_exeext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 ac_cv_lib_dwarf_dwarf_add_arange=yes
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_cv_lib_dwarf_dwarf_add_arange=no
3142 rm -f conftest.err conftest.$ac_objext \
3143 conftest$ac_exeext conftest.$ac_ext
3144 LIBS=$ac_check_lib_save_LIBS
3146 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_add_arange" >&5
3147 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_add_arange" >&6
3148 if test $ac_cv_lib_dwarf_dwarf_add_arange = yes; then
3149 cat >>confdefs.h <<_ACEOF
3150 #define HAVE_LIBDWARF 1
3153 LIBS="-ldwarf $LIBS"
3156 { { echo "$as_me:$LINENO: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&5
3157 echo "$as_me: error: Can't find libdwarf in $LIBDWARF_LIB_DIR" >&2;}
3158 { (exit 1); exit 1; }; }
3166 LIB_TYPE_DYNAMIC=`ls -H -1 $LIBDWARF_LIB_DIR | grep dwarf | grep '\.so' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3167 if test "$LIB_TYPE_DYNAMIC" = "true"; then
3170 LIB_TYPE_STATIC=`ls -H -1 $LIBDWARF_LIB_DIR | grep dwarf | grep '\.a' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3173 LIBDWARF_STATIC="$LIB_TYPE_STATIC"
3174 LIBDWARF_DYNAMIC="$LIB_TYPE_DYNAMIC"
3185 # Check whether --with-libxml2-incdir or --without-libxml2-incdir was given.
3186 if test "${with_libxml2_incdir+set}" = set; then
3187 withval="$with_libxml2_incdir"
3188 LIBXML2_INC_DIR="${withval}";
3191 # Check whether --with-libxml2-libdir or --without-libxml2-libdir was given.
3192 if test "${with_libxml2_libdir+set}" = set; then
3193 withval="$with_libxml2_libdir"
3194 LIBXML2_LIB_DIR="${withval}";
3197 CXXFLAGS_HOLD=$CXXFLAGS
3198 if test "$LIBXML2_INC_DIR" != "" ; then
3199 echo "$as_me:$LINENO: checking for libxml/xmlschemas.h in $LIBXML2_INC_DIR" >&5
3200 echo $ECHO_N "checking for libxml/xmlschemas.h in $LIBXML2_INC_DIR... $ECHO_C" >&6
3201 CXXFLAGS="$CXXFLAGS -I$LIBXML2_INC_DIR"
3203 echo "$as_me:$LINENO: checking for libxml/xmlschemas.h" >&5
3204 echo $ECHO_N "checking for libxml/xmlschemas.h... $ECHO_C" >&6
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include "libxml/xmlschemas.h"
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_cxx_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3244 cat >>confdefs.h <<\_ACEOF
3245 #define cap_have_libxml 1
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 echo "$as_me:$LINENO: result: libxml/xmlschemas.h not found in $LIBXML2_INC_DIR" >&5
3253 echo "${ECHO_T}libxml/xmlschemas.h not found in $LIBXML2_INC_DIR" >&6
3255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3256 CXXFLAGS=$CXXFLAGS_HOLD
3259 if test "$LIBXML2_LIB_DIR" = "" ; then
3261 echo "$as_me:$LINENO: checking for xmlAddID in -lxml2" >&5
3262 echo $ECHO_N "checking for xmlAddID in -lxml2... $ECHO_C" >&6
3263 if test "${ac_cv_lib_xml2_xmlAddID+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 ac_check_lib_save_LIBS=$LIBS
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3275 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3290 rm -f conftest.$ac_objext conftest$ac_exeext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3292 (eval $ac_link) 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_cxx_werror_flag"
3300 || test ! -s conftest.err'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 ac_cv_lib_xml2_xmlAddID=yes
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 ac_cv_lib_xml2_xmlAddID=no
3319 rm -f conftest.err conftest.$ac_objext \
3320 conftest$ac_exeext conftest.$ac_ext
3321 LIBS=$ac_check_lib_save_LIBS
3323 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlAddID" >&5
3324 echo "${ECHO_T}$ac_cv_lib_xml2_xmlAddID" >&6
3325 if test $ac_cv_lib_xml2_xmlAddID = yes; then
3326 cat >>confdefs.h <<_ACEOF
3327 #define HAVE_LIBXML2 1
3333 echo "$as_me:$LINENO: result: Can't find libxml2." >&5
3334 echo "${ECHO_T}Can't find libxml2." >&6
3339 if test "" != "" ; then
3340 LIBS="-L$LIBXML2_LIB_DIR -L"
3342 echo "$as_me:$LINENO: checking for xmlAddID in -lxml2" >&5
3343 echo $ECHO_N "checking for xmlAddID in -lxml2... $ECHO_C" >&6
3344 if test "${ac_cv_lib_xml2_xmlAddID+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_check_lib_save_LIBS=$LIBS
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3356 /* Override any gcc2 internal prototype to avoid an error. */
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_cxx_werror_flag"
3381 || test ! -s conftest.err'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; } &&
3387 { ac_try='test -s conftest$ac_exeext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 ac_cv_lib_xml2_xmlAddID=yes
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 ac_cv_lib_xml2_xmlAddID=no
3400 rm -f conftest.err conftest.$ac_objext \
3401 conftest$ac_exeext conftest.$ac_ext
3402 LIBS=$ac_check_lib_save_LIBS
3404 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlAddID" >&5
3405 echo "${ECHO_T}$ac_cv_lib_xml2_xmlAddID" >&6
3406 if test $ac_cv_lib_xml2_xmlAddID = yes; then
3407 cat >>confdefs.h <<_ACEOF
3408 #define HAVE_LIBXML2 1
3414 echo "$as_me:$LINENO: result: Can't find libxml2 in $LIBXML2_LIB_DIR" >&5
3415 echo "${ECHO_T}Can't find libxml2 in $LIBXML2_LIB_DIR" >&6
3419 LIBS="-L$LIBXML2_LIB_DIR"
3421 echo "$as_me:$LINENO: checking for xmlAddID in -lxml2" >&5
3422 echo $ECHO_N "checking for xmlAddID in -lxml2... $ECHO_C" >&6
3423 if test "${ac_cv_lib_xml2_xmlAddID+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 ac_check_lib_save_LIBS=$LIBS
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3435 /* Override any gcc2 internal prototype to avoid an error. */
3439 /* We use char because int might match the return type of a gcc2
3440 builtin and then its argument prototype would still apply. */
3450 rm -f conftest.$ac_objext conftest$ac_exeext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3452 (eval $ac_link) 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -z "$ac_cxx_werror_flag"
3460 || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest$ac_exeext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_lib_xml2_xmlAddID=yes
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 ac_cv_lib_xml2_xmlAddID=no
3479 rm -f conftest.err conftest.$ac_objext \
3480 conftest$ac_exeext conftest.$ac_ext
3481 LIBS=$ac_check_lib_save_LIBS
3483 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlAddID" >&5
3484 echo "${ECHO_T}$ac_cv_lib_xml2_xmlAddID" >&6
3485 if test $ac_cv_lib_xml2_xmlAddID = yes; then
3486 cat >>confdefs.h <<_ACEOF
3487 #define HAVE_LIBXML2 1
3493 echo "$as_me:$LINENO: result: Can't find libxml2 in $LIBXML2_LIB_DIR" >&5
3494 echo "${ECHO_T}Can't find libxml2 in $LIBXML2_LIB_DIR" >&6
3504 if test "`echo $host_os | cut -b-3`" = "aix" ; then
3505 { echo "$as_me:$LINENO: AIX system, skipping libiberty..." >&5
3506 echo "$as_me: AIX system, skipping libiberty..." >&6;}
3509 # Check whether --with-libiberty-libdir or --without-libiberty-libdir was given.
3510 if test "${with_libiberty_libdir+set}" = set; then
3511 withval="$with_libiberty_libdir"
3512 LIBIBERTY_LIB_DIR="${withval}";
3515 LIBS="-L$LIBIBERTY_LIB_DIR"
3517 echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5
3518 echo $ECHO_N "checking for cplus_demangle in -liberty... $ECHO_C" >&6
3519 if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 ac_check_lib_save_LIBS=$LIBS
3523 LIBS="-liberty $LIBS"
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3531 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3537 char cplus_demangle ();
3546 rm -f conftest.$ac_objext conftest$ac_exeext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3548 (eval $ac_link) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_cxx_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest$ac_exeext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 ac_cv_lib_iberty_cplus_demangle=yes
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ac_cv_lib_iberty_cplus_demangle=no
3575 rm -f conftest.err conftest.$ac_objext \
3576 conftest$ac_exeext conftest.$ac_ext
3577 LIBS=$ac_check_lib_save_LIBS
3579 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5
3580 echo "${ECHO_T}$ac_cv_lib_iberty_cplus_demangle" >&6
3581 if test $ac_cv_lib_iberty_cplus_demangle = yes; then
3582 cat >>confdefs.h <<_ACEOF
3583 #define HAVE_LIBIBERTY 1
3586 LIBS="-liberty $LIBS"
3589 as_ac_File=`echo "ac_cv_file_$LIBIBERTY_LIB_DIR/libiberty.a" | $as_tr_sh`
3590 echo "$as_me:$LINENO: checking for $LIBIBERTY_LIB_DIR/libiberty.a" >&5
3591 echo $ECHO_N "checking for $LIBIBERTY_LIB_DIR/libiberty.a... $ECHO_C" >&6
3592 if eval "test \"\${$as_ac_File+set}\" = set"; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 test "$cross_compiling" = yes &&
3596 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3597 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3598 { (exit 1); exit 1; }; }
3599 if test -r "$LIBIBERTY_LIB_DIR/libiberty.a"; then
3600 eval "$as_ac_File=yes"
3602 eval "$as_ac_File=no"
3605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
3606 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
3607 if test `eval echo '${'$as_ac_File'}'` = yes; then
3610 { { echo "$as_me:$LINENO: error: Can't find libiberty in $LIBIBERTY_LIB_DIR" >&5
3611 echo "$as_me: error: Can't find libiberty in $LIBIBERTY_LIB_DIR" >&2;}
3612 { (exit 1); exit 1; }; }
3620 LIB_TYPE_DYNAMIC=`ls -H -1 $LIBIBERTY_LIB_DIR | grep iberty | grep '\.so' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3621 if test "$LIB_TYPE_DYNAMIC" = "true"; then
3624 LIB_TYPE_STATIC=`ls -H -1 $LIBIBERTY_LIB_DIR | grep iberty | grep '\.a' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3627 LIBIBERTY_STATIC="$LIB_TYPE_STATIC"
3628 LIBIBERTY_DYNAMIC="$LIB_TYPE_DYNAMIC"
3633 if test "$host_cpu" != "ia-64" ; then
3634 { echo "$as_me:$LINENO: Not IA-64, skipping libunwind..." >&5
3635 echo "$as_me: Not IA-64, skipping libunwind..." >&6;}
3638 # Check whether --with-libunwind-incdir or --without-libunwind-incdir was given.
3639 if test "${with_libunwind_incdir+set}" = set; then
3640 withval="$with_libunwind_incdir"
3641 LIBUNWIND_INC_DIR="${withval}";
3644 # Check whether --with-libunwind-libdir or --without-libunwind-libdir was given.
3645 if test "${with_libunwind_libdir+set}" = set; then
3646 withval="$with_libunwind_libdir"
3647 LIBUNWIND_LIB_DIR="${withval}";
3651 CXXFLAGS_HOLD=$CXXFLAGS
3652 if test "${LIBUNWIND_INC_DIR}" != "" ; then
3653 echo "$as_me:$LINENO: checking for libunwind.h in ${LIBUNWIND_INC_DIR}" >&5
3654 echo $ECHO_N "checking for libunwind.h in ${LIBUNWIND_INC_DIR}... $ECHO_C" >&6
3655 CXXFLAGS="$CXXFLAGS -I${LIBUNWIND_INC_DIR}"
3657 echo "$as_me:$LINENO: checking for libunwind.h" >&5
3658 echo $ECHO_N "checking for libunwind.h... $ECHO_C" >&6
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include "libunwind.h"
3675 rm -f conftest.$ac_objext
3676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_cxx_werror_flag"
3685 || test ! -s conftest.err'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 echo "$as_me:$LINENO: result: yes" >&5
3698 echo "${ECHO_T}yes" >&6
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 { { echo "$as_me:$LINENO: error: libunwind.h not found in ${LIBUNWIND_INC_DIR}" >&5
3704 echo "$as_me: error: libunwind.h not found in ${LIBUNWIND_INC_DIR}" >&2;}
3705 { (exit 1); exit 1; }; }
3707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708 CXXFLAGS=$CXXFLAGS_HOLD
3716 # Check whether --with-libflex-libdir or --without-libflex-libdir was given.
3717 if test "${with_libflex_libdir+set}" = set; then
3718 withval="$with_libflex_libdir"
3719 LIBFLEX_LIB_DIR="${withval}";
3721 # 3/15/09: We are not checking for libflex sources and they are not in cs.wisc.edu package-base.
3722 # What's the story here? Not needed?
3724 if test "${LIBFLEX_LIB_DIR}" = "" ; then
3726 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3727 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3728 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 ac_check_lib_save_LIBS=$LIBS
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3740 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>conftest.er1
3759 grep -v '^ *+' conftest.er1 >conftest.err
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_cxx_werror_flag"
3765 || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; } &&
3771 { ac_try='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_lib_fl_yywrap=yes
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 ac_cv_lib_fl_yywrap=no
3784 rm -f conftest.err conftest.$ac_objext \
3785 conftest$ac_exeext conftest.$ac_ext
3786 LIBS=$ac_check_lib_save_LIBS
3788 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3789 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3790 if test $ac_cv_lib_fl_yywrap = yes; then
3791 cat >>confdefs.h <<_ACEOF
3792 #define HAVE_LIBFL 1
3798 echo "$as_me:$LINENO: result: Can't find libfl." >&5
3799 echo "${ECHO_T}Can't find libfl." >&6
3804 if test "" != "" ; then
3805 LIBS="-L${LIBFLEX_LIB_DIR} -L"
3807 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3808 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3809 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 ac_check_lib_save_LIBS=$LIBS
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3821 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3836 rm -f conftest.$ac_objext conftest$ac_exeext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838 (eval $ac_link) 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_cxx_werror_flag"
3846 || test ! -s conftest.err'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; } &&
3852 { ac_try='test -s conftest$ac_exeext'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; }; then
3858 ac_cv_lib_fl_yywrap=yes
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 ac_cv_lib_fl_yywrap=no
3865 rm -f conftest.err conftest.$ac_objext \
3866 conftest$ac_exeext conftest.$ac_ext
3867 LIBS=$ac_check_lib_save_LIBS
3869 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3870 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3871 if test $ac_cv_lib_fl_yywrap = yes; then
3872 cat >>confdefs.h <<_ACEOF
3873 #define HAVE_LIBFL 1
3879 echo "$as_me:$LINENO: result: Can't find libfl in ${LIBFLEX_LIB_DIR}" >&5
3880 echo "${ECHO_T}Can't find libfl in ${LIBFLEX_LIB_DIR}" >&6
3884 LIBS="-L${LIBFLEX_LIB_DIR}"
3886 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3887 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3888 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 ac_check_lib_save_LIBS=$LIBS
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3900 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3915 rm -f conftest.$ac_objext conftest$ac_exeext
3916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3917 (eval $ac_link) 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } &&
3924 { ac_try='test -z "$ac_cxx_werror_flag"
3925 || test ! -s conftest.err'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; } &&
3931 { ac_try='test -s conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_lib_fl_yywrap=yes
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 ac_cv_lib_fl_yywrap=no
3944 rm -f conftest.err conftest.$ac_objext \
3945 conftest$ac_exeext conftest.$ac_ext
3946 LIBS=$ac_check_lib_save_LIBS
3948 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3949 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3950 if test $ac_cv_lib_fl_yywrap = yes; then
3951 cat >>confdefs.h <<_ACEOF
3952 #define HAVE_LIBFL 1
3958 echo "$as_me:$LINENO: result: Can't find libfl in ${LIBFLEX_LIB_DIR}" >&5
3959 echo "${ECHO_T}Can't find libfl in ${LIBFLEX_LIB_DIR}" >&6
3967 # Extract the first word of "nasm", so it can be a program name with args.
3968 set dummy nasm; ac_word=$2
3969 echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_path_NASM+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 as_dummy=""${PACKAGE_BASE}/nasm/bin:$PATH""
3981 for as_dir in $as_dummy
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM=""""
3998 NASM=$ac_cv_path_NASM
4000 if test -n "$NASM"; then
4001 echo "$as_me:$LINENO: result: $NASM" >&5
4002 echo "${ECHO_T}$NASM" >&6
4004 echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4010 echo "$as_me:$LINENO: checking for -fno-stack-protector" >&5
4011 echo $ECHO_N "checking for -fno-stack-protector... $ECHO_C" >&6
4012 SAVED_CXXFLAGS=$CXXFLAGS
4013 CXXFLAGS="-fno-stack-protector"
4014 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_cxx_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 echo "$as_me:$LINENO: result: yes" >&5
4052 echo "${ECHO_T}yes" >&6; STACKPROT="DISABLE_STACK_PROT=1"
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6; STACKPROT=""
4060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4062 CXXFLAGS=$SAVED_CXXFLAGS
4064 echo "$as_me:$LINENO: checking whether to use MM timer" >&5
4065 echo $ECHO_N "checking whether to use MM timer... $ECHO_C" >&6
4067 ia64-*-*-*) MMTIMER=true ;;
4070 echo "$as_me:$LINENO: result: ${MMTIMER}" >&5
4071 echo "${ECHO_T}${MMTIMER}" >&6
4075 ac_config_files="$ac_config_files make.config.local:autodyninst/make.config.local.in"
4077 cat >confcache <<\_ACEOF
4078 # This file is a shell script that caches the results of configure
4079 # tests run on this system so they can be shared between configure
4080 # scripts and configure runs, see configure's option --config-cache.
4081 # It is not useful on other systems. If it contains results you don't
4082 # want to keep, you may remove or edit it.
4084 # config.status only pays attention to the cache file if you give it
4085 # the --recheck option to rerun configure.
4087 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4088 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4093 # The following way of writing the cache mishandles newlines in values,
4094 # but we know of no workaround that is simple, portable, and efficient.
4095 # So, don't put newlines in cache variables' values.
4096 # Ultrix sh set writes to stderr and can't be redirected directly,
4097 # and sets the high bit in the cache file unless we assign to the vars.
4100 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4102 # `set' does not quote correctly, so add quotes (double-quote
4103 # substitution turns \\\\ into \\, and sed turns \\ into \).
4106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4109 # `set' quotes correctly as required by POSIX, so do not add quotes.
4111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4118 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4120 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4122 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4123 if test -w $cache_file; then
4124 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4125 cat confcache >$cache_file
4127 echo "not updating unwritable cache $cache_file"
4132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4133 # Let make expand exec_prefix.
4134 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4136 # VPATH may cause trouble with some makes, so we remove $(srcdir),