2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Dyninst 6.1.
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.1'
273 PACKAGE_STRING='Dyninst 6.1'
274 PACKAGE_BUGREPORT='bugs@dyninst.org'
276 ac_default_prefix=`pwd`/..
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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_ _ICPC_ _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 CXXCPP EGREP LIBELF_INC_DIR LIBELF_LIB_DIR LIBELF_STATIC LIBELF_DYNAMIC BUILD_XLC LIBDWARF_INC_DIR LIBDWARF_LIB_DIR LIBDWARF_STATIC LIBDWARF_DYNAMIC LIBDWARF_HAS_SET_FRAME LIBXML2_INC_DIR LIBXML2_LIB_DIR LIBIBERTY_LIB_DIR LIBIBERTY_STATIC LIBIBERTY_DYNAMIC LIBUNWIND_INC_DIR LIBUNWIND_LIB_DIR LIBFLEX_LIB_DIR NASM STACKPROT BUILD32 MMTIMER TESTSUITE LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures Dyninst 6.1 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of Dyninst 6.1:";;
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-testsuite Disable the Dyninst test suite (default is no)
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-package-base Base directory to look for packages
857 --with-tcl83 Use Tcl/Tk 8.3
858 --with-tcltk-incdir TCL/TK include directory
859 --with-tcltk-libdir TCL/TK library directory
860 --with-libelf-incdir LIBELF include directory
861 --with-libelf-libdir LIBELF library directory
862 --with-libdwarf-incdir LIBDWARF include directory
863 --with-libdwarf-libdir LIBDWARF library directory
864 --with-libxml2-incdir LIBXML2 include directory
865 --with-libxml2-libdir LIBXML2 library directory
866 --with-libiberty-libdir LIBIBERTY library directory
867 --with-libunwind-incdir LIBUNWIND include directory
868 --with-libunwind-libdir LIBUNWIND library directory
869 --with-libflex-libdir Absolute path to flex library
871 Some influential environment variables:
872 CXX C++ compiler command
873 CXXFLAGS C++ compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 CXXCPP C++ preprocessor
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
883 Report bugs to <bugs@dyninst.org>.
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 ac_dir_suffix= ac_top_builddir=
903 .) # No --srcdir option. We are building in place.
905 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 # Do not use `cd foo && pwd` to compute absolute paths, because
919 # the directories may not exist.
921 .) ac_abs_builddir="$ac_dir";;
924 .) ac_abs_builddir=`pwd`;;
925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 case ${ac_top_builddir}. in
933 .) ac_abs_top_builddir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
942 .) ac_abs_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 case $ac_top_srcdir in
951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 # Check for guested configure; otherwise get Cygnus style configure.
959 if test -f $ac_srcdir/configure.gnu; then
961 $SHELL $ac_srcdir/configure.gnu --help=recursive
962 elif test -f $ac_srcdir/configure; then
964 $SHELL $ac_srcdir/configure --help=recursive
965 elif test -f $ac_srcdir/configure.ac ||
966 test -f $ac_srcdir/configure.in; then
970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
979 Dyninst configure 6.1
980 generated by GNU Autoconf 2.59
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by Dyninst $as_me 6.1, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_must_keep_next=false
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 -* ) ac_must_keep_next=true ;;
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1111 # The following way of writing the cache mishandles newlines in values,
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1141 if test -n "$ac_subst_files"; then
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -s confdefs.h; then
1163 sed "/^$/d" confdefs.h | sort
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1246 # Check that the precious variables saved in the cache have kept the same
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 for ac_dir in autodyninst $srcdir/autodyninst; do
1334 if test -f $ac_dir/install-sh; then
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 elif test -f $ac_dir/install.sh; then
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 elif test -f $ac_dir/shtool; then
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in autodyninst $srcdir/autodyninst" >&2;}
1351 { (exit 1); exit 1; }; }
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 [\\/]* | ?:[\\/]* ) ac_macro_dir=autodyninst ;;
1359 *) ac_macro_dir=$srcdir/autodyninst ;;
1361 if test -d "$ac_macro_dir"; then :
1363 { { echo "$as_me:$LINENO: error: cannot find macro directory \`autodyninst'" >&5
1364 echo "$as_me: error: cannot find macro directory \`autodyninst'" >&2;}
1365 { (exit 1); exit 1; }; }
1370 ac_cpp='$CXXCPP $CPPFLAGS'
1371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1374 if test -n "$ac_tool_prefix"; then
1375 for ac_prog in $CCC g++
1377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1379 echo "$as_me:$LINENO: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_CXX+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 if test -n "$CXX"; then
1385 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391 test -z "$as_dir" && as_dir=.
1392 for ac_exec_ext in '' $ac_executable_extensions; do
1393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1394 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1404 if test -n "$CXX"; then
1405 echo "$as_me:$LINENO: result: $CXX" >&5
1406 echo "${ECHO_T}$CXX" >&6
1408 echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1412 test -n "$CXX" && break
1415 if test -z "$CXX"; then
1417 for ac_prog in $CCC g++
1419 # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 if test -n "$ac_ct_CXX"; then
1427 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 ac_cv_prog_ac_ct_CXX="$ac_prog"
1437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1446 if test -n "$ac_ct_CXX"; then
1447 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1448 echo "${ECHO_T}$ac_ct_CXX" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1454 test -n "$ac_ct_CXX" && break
1456 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1462 # Provide some information about the compiler.
1463 echo "$as_me:$LINENO:" \
1464 "checking for C++ compiler version" >&5
1465 ac_compiler=`set X $ac_compile; echo $2`
1466 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1467 (eval $ac_compiler --version </dev/null >&5) 2>&5
1469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1470 (exit $ac_status); }
1471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1472 (eval $ac_compiler -v </dev/null >&5) 2>&5
1474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1475 (exit $ac_status); }
1476 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1477 (eval $ac_compiler -V </dev/null >&5) 2>&5
1479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1480 (exit $ac_status); }
1482 cat >conftest.$ac_ext <<_ACEOF
1485 cat confdefs.h >>conftest.$ac_ext
1486 cat >>conftest.$ac_ext <<_ACEOF
1487 /* end confdefs.h. */
1497 ac_clean_files_save=$ac_clean_files
1498 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1499 # Try to create an executable without -o first, disregard a.out.
1500 # It will help us diagnose broken compilers, and finding out an intuition
1502 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1503 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1504 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1505 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1506 (eval $ac_link_default) 2>&5
1508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1509 (exit $ac_status); }; then
1510 # Find the output, starting from the most likely. This scheme is
1511 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1514 # Be careful to initialize this variable, since it used to be cached.
1515 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1517 # b.out is created by i960 compilers.
1518 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1520 test -f "$ac_file" || continue
1522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1525 # This is the source file.
1528 # We found the default executable, but exeext='' is most
1532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1533 # FIXME: I believe we export ac_cv_exeext for Libtool,
1534 # but it would be cool to find out if it's true. Does anybody
1535 # maintain Libtool? --akim.
1543 echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1547 See \`config.log' for more details." >&5
1548 echo "$as_me: error: C++ compiler cannot create executables
1549 See \`config.log' for more details." >&2;}
1550 { (exit 77); exit 77; }; }
1553 ac_exeext=$ac_cv_exeext
1554 echo "$as_me:$LINENO: result: $ac_file" >&5
1555 echo "${ECHO_T}$ac_file" >&6
1557 # Check the compiler produces executables we can run. If not, either
1558 # the compiler is broken, or we cross compile.
1559 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1560 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1561 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1562 # If not cross compiling, check that we can run a simple program.
1563 if test "$cross_compiling" != yes; then
1564 if { ac_try='./$ac_file'
1565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1569 (exit $ac_status); }; }; then
1572 if test "$cross_compiling" = maybe; then
1575 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1576 If you meant to cross compile, use \`--host'.
1577 See \`config.log' for more details." >&5
1578 echo "$as_me: error: cannot run C++ compiled programs.
1579 If you meant to cross compile, use \`--host'.
1580 See \`config.log' for more details." >&2;}
1581 { (exit 1); exit 1; }; }
1585 echo "$as_me:$LINENO: result: yes" >&5
1586 echo "${ECHO_T}yes" >&6
1588 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1589 ac_clean_files=$ac_clean_files_save
1590 # Check the compiler produces executables we can run. If not, either
1591 # the compiler is broken, or we cross compile.
1592 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1593 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1594 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1595 echo "${ECHO_T}$cross_compiling" >&6
1597 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1598 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1600 (eval $ac_link) 2>&5
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1605 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1606 # work properly (i.e., refer to `conftest.exe'), while it won't with
1608 for ac_file in conftest.exe conftest conftest.*; do
1609 test -f "$ac_file" || continue
1611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1619 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1620 See \`config.log' for more details." >&5
1621 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1622 See \`config.log' for more details." >&2;}
1623 { (exit 1); exit 1; }; }
1626 rm -f conftest$ac_cv_exeext
1627 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1628 echo "${ECHO_T}$ac_cv_exeext" >&6
1630 rm -f conftest.$ac_ext
1631 EXEEXT=$ac_cv_exeext
1633 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1634 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1635 if test "${ac_cv_objext+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 cat >conftest.$ac_ext <<_ACEOF
1641 cat confdefs.h >>conftest.$ac_ext
1642 cat >>conftest.$ac_ext <<_ACEOF
1643 /* end confdefs.h. */
1653 rm -f conftest.o conftest.obj
1654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1655 (eval $ac_compile) 2>&5
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }; then
1659 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1662 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1667 echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1671 See \`config.log' for more details." >&5
1672 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1673 See \`config.log' for more details." >&2;}
1674 { (exit 1); exit 1; }; }
1677 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1679 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1680 echo "${ECHO_T}$ac_cv_objext" >&6
1681 OBJEXT=$ac_cv_objext
1683 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1684 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1685 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 cat >conftest.$ac_ext <<_ACEOF
1691 cat confdefs.h >>conftest.$ac_ext
1692 cat >>conftest.$ac_ext <<_ACEOF
1693 /* end confdefs.h. */
1706 rm -f conftest.$ac_objext
1707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1708 (eval $ac_compile) 2>conftest.er1
1710 grep -v '^ *+' conftest.er1 >conftest.err
1712 cat conftest.err >&5
1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714 (exit $ac_status); } &&
1715 { ac_try='test -z "$ac_cxx_werror_flag"
1716 || test ! -s conftest.err'
1717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }; } &&
1722 { ac_try='test -s conftest.$ac_objext'
1723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }; }; then
1730 echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1736 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1739 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1740 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1741 GXX=`test $ac_compiler_gnu = yes && echo yes`
1742 ac_test_CXXFLAGS=${CXXFLAGS+set}
1743 ac_save_CXXFLAGS=$CXXFLAGS
1745 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1746 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1747 if test "${ac_cv_prog_cxx_g+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 cat >conftest.$ac_ext <<_ACEOF
1753 cat confdefs.h >>conftest.$ac_ext
1754 cat >>conftest.$ac_ext <<_ACEOF
1755 /* end confdefs.h. */
1765 rm -f conftest.$ac_objext
1766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1767 (eval $ac_compile) 2>conftest.er1
1769 grep -v '^ *+' conftest.er1 >conftest.err
1771 cat conftest.err >&5
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); } &&
1774 { ac_try='test -z "$ac_cxx_werror_flag"
1775 || test ! -s conftest.err'
1776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }; } &&
1781 { ac_try='test -s conftest.$ac_objext'
1782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1787 ac_cv_prog_cxx_g=yes
1789 echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1796 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1797 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1798 if test "$ac_test_CXXFLAGS" = set; then
1799 CXXFLAGS=$ac_save_CXXFLAGS
1800 elif test $ac_cv_prog_cxx_g = yes; then
1801 if test "$GXX" = yes; then
1807 if test "$GXX" = yes; then
1813 for ac_declaration in \
1815 'extern "C" void std::exit (int) throw (); using std::exit;' \
1816 'extern "C" void std::exit (int); using std::exit;' \
1817 'extern "C" void exit (int) throw ();' \
1818 'extern "C" void exit (int);' \
1821 cat >conftest.$ac_ext <<_ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h. */
1837 rm -f conftest.$ac_objext
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>conftest.er1
1841 grep -v '^ *+' conftest.er1 >conftest.err
1843 cat conftest.err >&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); } &&
1846 { ac_try='test -z "$ac_cxx_werror_flag"
1847 || test ! -s conftest.err'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; } &&
1853 { ac_try='test -s conftest.$ac_objext'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1861 echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1867 cat >conftest.$ac_ext <<_ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h. */
1882 rm -f conftest.$ac_objext
1883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>conftest.er1
1886 grep -v '^ *+' conftest.er1 >conftest.err
1888 cat conftest.err >&5
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); } &&
1891 { ac_try='test -z "$ac_cxx_werror_flag"
1892 || test ! -s conftest.err'
1893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; } &&
1898 { ac_try='test -s conftest.$ac_objext'
1899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; }; then
1906 echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1913 if test -n "$ac_declaration"; then
1914 echo '#ifdef __cplusplus' >>confdefs.h
1915 echo $ac_declaration >>confdefs.h
1916 echo '#endif' >>confdefs.h
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925 # Extract the first word of "icc", so it can be a program name with args.
1926 set dummy icc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_path__ICC_+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_cv_path__ICC_="$_ICC_" # Let the user override the test with a path.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_path__ICC_="$as_dir/$ac_word$ac_exec_ext"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 _ICC_=$ac_cv_path__ICC_
1956 if test -n "$_ICC_"; then
1957 echo "$as_me:$LINENO: result: $_ICC_" >&5
1958 echo "${ECHO_T}$_ICC_" >&6
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1964 # Extract the first word of "icpc", so it can be a program name with args.
1965 set dummy icpc; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_path__ICPC_+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 ac_cv_path__ICPC_="$_ICPC_" # Let the user override the test with a path.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_path__ICPC_="$as_dir/$ac_word$ac_exec_ext"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 _ICPC_=$ac_cv_path__ICPC_
1995 if test -n "$_ICPC_"; then
1996 echo "$as_me:$LINENO: result: $_ICPC_" >&5
1997 echo "${ECHO_T}$_ICPC_" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2003 # Extract the first word of "pgcc", so it can be a program name with args.
2004 set dummy pgcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_path__PGC_+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 ac_cv_path__PGC_="$_PGC_" # Let the user override the test with a path.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_path__PGC_="$as_dir/$ac_word$ac_exec_ext"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 _PGC_=$ac_cv_path__PGC_
2034 if test -n "$_PGC_"; then
2035 echo "$as_me:$LINENO: result: $_PGC_" >&5
2036 echo "${ECHO_T}$_PGC_" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 # Extract the first word of "pgCC", so it can be a program name with args.
2043 set dummy pgCC; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_path__PGCXX_+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 ac_cv_path__PGCXX_="$_PGCXX_" # Let the user override the test with a path.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_path__PGCXX_="$as_dir/$ac_word$ac_exec_ext"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 _PGCXX_=$ac_cv_path__PGCXX_
2073 if test -n "$_PGCXX_"; then
2074 echo "$as_me:$LINENO: result: $_PGCXX_" >&5
2075 echo "${ECHO_T}$_PGCXX_" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 # Extract the first word of "cc", so it can be a program name with args.
2082 set dummy cc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_path__CC_+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 ac_cv_path__CC_="$_CC_" # Let the user override the test with a path.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_path__CC_="$as_dir/$ac_word$ac_exec_ext"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 _CC_=$ac_cv_path__CC_
2112 if test -n "$_CC_"; then
2113 echo "$as_me:$LINENO: result: $_CC_" >&5
2114 echo "${ECHO_T}$_CC_" >&6
2116 echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2120 # Extract the first word of "CC", so it can be a program name with args.
2121 set dummy CC; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_path__CXX_+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 ac_cv_path__CXX_="$_CXX_" # Let the user override the test with a path.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_path__CXX_="$as_dir/$ac_word$ac_exec_ext"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 _CXX_=$ac_cv_path__CXX_
2151 if test -n "$_CXX_"; then
2152 echo "$as_me:$LINENO: result: $_CXX_" >&5
2153 echo "${ECHO_T}$_CXX_" >&6
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 ac_cpp='$CXXCPP $CPPFLAGS'
2161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2171 # Check whether --with-package-base or --without-package-base was given.
2172 if test "${with_package_base+set}" = set; then
2173 withval="$with_package_base"
2174 PACKAGE_BASE="${withval}";
2175 TCLTK_INC_DIR="${PACKAGE_BASE}/tcl8.4.5/include";
2176 TCLTK_LIB_DIR="${PACKAGE_BASE}/tcl8.4.5/lib";
2177 LIBELF_INC_DIR="${PACKAGE_BASE}/libelf/include";
2178 LIBELF_LIB_DIR="${PACKAGE_BASE}/libelf/lib";
2179 LIBDWARF_INC_DIR="${PACKAGE_BASE}/libdwarf/include";
2180 LIBDWARF_LIB_DIR="${PACKAGE_BASE}/libdwarf/lib";
2181 LIBXML2_INC_DIR="${PACKAGE_BASE}/libxml2/include/libxml2"
2182 LIBXML2_LIB_DIR="${PACKAGE_BASE}/libxml2/lib";
2183 LIBUNWIND_INC_DIR="${PACKAGE_BASE}/libunwind/include";
2184 LIBUNWIND_LIB_DIR="${PACKAGE_BASE}/libunwind/lib";
2185 LIBFLEX_LIB_DIR="${PACKAGE_BASE}/libflex/lib";
2189 # We fall back on these defaults if both --with-package-base and
2190 # specific --with-<package> arguments are not provided.
2191 TCLTK_INC_DIR="/usr/include";
2192 TCLTK_LIB_DIR="/usr/lib";
2193 LIBELF_INC_DIR="/usr/include";
2194 LIBELF_LIB_DIR="/usr/lib";
2195 LIBDWARF_INC_DIR="/usr/include";
2196 LIBDWARF_LIB_DIR="/usr/lib";
2197 LIBXML2_INC_DIR="/usr/include/libxml2"
2198 LIBXML2_LIB_DIR="/usr/lib";
2199 LIBUNWIND_INC_DIR="/usr/include";
2200 LIBUNWIND_LIB_DIR="/usr/lib";
2201 LIBFLEX_LIB_DIR="/usr/lib";
2204 # 3/15/09: We don't include libiberty in the cs.wisc.edu package-base.
2205 # Why? Putting these here for now...
2206 LIBIBERTY_LIB_DIR="/usr/lib";
2210 # Check whether --with-tcl83 or --without-tcl83 was given.
2211 if test "${with_tcl83+set}" = set; then
2212 withval="$with_tcl83"
2213 TCL_VERSION="tcl8.3"; USE_TCL83="${withval}";
2215 TCL_VERSION="tcl8.4"; USE_TCL83="false";
2218 # Check whether --with-tcltk-incdir or --without-tcltk-incdir was given.
2219 if test "${with_tcltk_incdir+set}" = set; then
2220 withval="$with_tcltk_incdir"
2221 TCLTK_INC_DIR="${withval}";
2224 # Check whether --with-tcltk-libdir or --without-tcltk-libdir was given.
2225 if test "${with_tcltk_libdir+set}" = set; then
2226 withval="$with_tcltk_libdir"
2227 TCLTK_LIB_DIR="${withval}";
2231 CXXFLAGS_HOLD=$CXXFLAGS
2232 if test "$TCLTK_INC_DIR" != "" ; then
2233 echo "$as_me:$LINENO: checking for tcl.h in $TCLTK_INC_DIR" >&5
2234 echo $ECHO_N "checking for tcl.h in $TCLTK_INC_DIR... $ECHO_C" >&6
2235 CXXFLAGS="$CXXFLAGS -I$TCLTK_INC_DIR"
2237 echo "$as_me:$LINENO: checking for tcl.h" >&5
2238 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
2240 cat >conftest.$ac_ext <<_ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h. */
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_cxx_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2278 cat >>confdefs.h <<\_ACEOF
2279 #define cap_have_tcl 1
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 echo "$as_me:$LINENO: result: tcl.h not found in $TCLTK_INC_DIR" >&5
2287 echo "${ECHO_T}tcl.h not found in $TCLTK_INC_DIR" >&6
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 CXXFLAGS=$CXXFLAGS_HOLD
2293 if test "$TCLTK_LIB_DIR" = "" ; then
2295 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2296 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2297 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2298 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 ac_check_lib_save_LIBS=$LIBS
2302 LIBS="-l$TCL_VERSION $LIBS"
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2310 /* Override any gcc2 internal prototype to avoid an error. */
2314 /* We use char because int might match the return type of a gcc2
2315 builtin and then its argument prototype would still apply. */
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2327 (eval $ac_link) 2>conftest.er1
2329 grep -v '^ *+' conftest.er1 >conftest.err
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_cxx_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest$ac_exeext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 eval "$as_ac_Lib=yes"
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 eval "$as_ac_Lib=no"
2354 rm -f conftest.err conftest.$ac_objext \
2355 conftest$ac_exeext conftest.$ac_ext
2356 LIBS=$ac_check_lib_save_LIBS
2358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2359 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2360 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2361 cat >>confdefs.h <<_ACEOF
2362 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2365 LIBS="-l$TCL_VERSION $LIBS"
2368 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION." >&5
2369 echo "${ECHO_T}Can't find lib$TCL_VERSION." >&6
2374 if test "" != "" ; then
2375 LIBS="-L$TCLTK_LIB_DIR -L"
2377 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2378 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2379 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2380 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 ac_check_lib_save_LIBS=$LIBS
2384 LIBS="-l$TCL_VERSION $LIBS"
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2392 /* Override any gcc2 internal prototype to avoid an error. */
2396 /* We use char because int might match the return type of a gcc2
2397 builtin and then its argument prototype would still apply. */
2407 rm -f conftest.$ac_objext conftest$ac_exeext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2409 (eval $ac_link) 2>conftest.er1
2411 grep -v '^ *+' conftest.er1 >conftest.err
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_cxx_werror_flag"
2417 || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest$ac_exeext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 eval "$as_ac_Lib=yes"
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 eval "$as_ac_Lib=no"
2436 rm -f conftest.err conftest.$ac_objext \
2437 conftest$ac_exeext conftest.$ac_ext
2438 LIBS=$ac_check_lib_save_LIBS
2440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2441 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2442 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2443 cat >>confdefs.h <<_ACEOF
2444 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2447 LIBS="-l$TCL_VERSION $LIBS"
2450 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2451 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2455 LIBS="-L$TCLTK_LIB_DIR"
2457 as_ac_Lib=`echo "ac_cv_lib_$TCL_VERSION''_Tcl_Eval" | $as_tr_sh`
2458 echo "$as_me:$LINENO: checking for Tcl_Eval in -l$TCL_VERSION" >&5
2459 echo $ECHO_N "checking for Tcl_Eval in -l$TCL_VERSION... $ECHO_C" >&6
2460 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 ac_check_lib_save_LIBS=$LIBS
2464 LIBS="-l$TCL_VERSION $LIBS"
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2472 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2487 rm -f conftest.$ac_objext conftest$ac_exeext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489 (eval $ac_link) 2>conftest.er1
2491 grep -v '^ *+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_cxx_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try='test -s conftest$ac_exeext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 eval "$as_ac_Lib=yes"
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 eval "$as_ac_Lib=no"
2516 rm -f conftest.err conftest.$ac_objext \
2517 conftest$ac_exeext conftest.$ac_ext
2518 LIBS=$ac_check_lib_save_LIBS
2520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2521 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2522 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2523 cat >>confdefs.h <<_ACEOF
2524 #define `echo "HAVE_LIB$TCL_VERSION" | $as_tr_cpp` 1
2527 LIBS="-l$TCL_VERSION $LIBS"
2530 echo "$as_me:$LINENO: result: Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&5
2531 echo "${ECHO_T}Can't find lib$TCL_VERSION in $TCLTK_LIB_DIR" >&6
2542 # Make sure we can run config.sub.
2543 $ac_config_sub sun4 >/dev/null 2>&1 ||
2544 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2545 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2546 { (exit 1); exit 1; }; }
2548 echo "$as_me:$LINENO: checking build system type" >&5
2549 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2550 if test "${ac_cv_build+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 ac_cv_build_alias=$build_alias
2554 test -z "$ac_cv_build_alias" &&
2555 ac_cv_build_alias=`$ac_config_guess`
2556 test -z "$ac_cv_build_alias" &&
2557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2558 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2559 { (exit 1); exit 1; }; }
2560 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2562 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2563 { (exit 1); exit 1; }; }
2566 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2567 echo "${ECHO_T}$ac_cv_build" >&6
2569 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2570 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2571 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2574 echo "$as_me:$LINENO: checking host system type" >&5
2575 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2576 if test "${ac_cv_host+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 ac_cv_host_alias=$host_alias
2580 test -z "$ac_cv_host_alias" &&
2581 ac_cv_host_alias=$ac_cv_build_alias
2582 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2584 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2585 { (exit 1); exit 1; }; }
2588 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2589 echo "${ECHO_T}$ac_cv_host" >&6
2591 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2592 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2593 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2597 if test "`echo $host_os | cut -b-3`" = "aix" ; then
2598 { echo "$as_me:$LINENO: AIX system, skipping libelf..." >&5
2599 echo "$as_me: AIX system, skipping libelf..." >&6;}
2603 # Check whether --with-libelf-incdir or --without-libelf-incdir was given.
2604 if test "${with_libelf_incdir+set}" = set; then
2605 withval="$with_libelf_incdir"
2606 LIBELF_INC_DIR="${withval}";
2609 # Check whether --with-libelf-libdir or --without-libelf-libdir was given.
2610 if test "${with_libelf_libdir+set}" = set; then
2611 withval="$with_libelf_libdir"
2612 LIBELF_LIB_DIR="${withval}";
2615 CXXFLAGS_HOLD=$CXXFLAGS;
2616 CXXFLAGS="$CXXFLAGS -I$LIBELF_INC_DIR";
2617 CPPFLAGS_HOLD=$CPPFLAGS;
2618 CPPFLAGS="$CPPFLAGS -I$LIBELF_INC_DIR";
2621 ac_cpp='$CXXCPP $CPPFLAGS'
2622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2625 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2626 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2627 if test -z "$CXXCPP"; then
2628 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 # Double quotes because CXXCPP needs to be expanded
2632 for CXXCPP in "$CXX -E" "/lib/cpp"
2635 for ac_cxx_preproc_warn_flag in '' yes
2637 # Use a header file that comes with gcc, so configuring glibc
2638 # with a fresh cross-compiler works.
2639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2640 # <limits.h> exists even on freestanding compilers.
2641 # On the NeXT, cc -E runs the code through the compiler's parser,
2642 # not just through cpp. "Syntax error" is here to catch this case.
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2650 # include <limits.h>
2652 # include <assert.h>
2656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } >/dev/null; then
2664 if test -s conftest.err; then
2665 ac_cpp_err=$ac_cxx_preproc_warn_flag
2666 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2673 if test -z "$ac_cpp_err"; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 # Broken: fails on valid input.
2682 rm -f conftest.err conftest.$ac_ext
2684 # OK, works on sane cases. Now check whether non-existent headers
2685 # can be detected and how.
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692 #include <ac_nonexistent.h>
2694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } >/dev/null; then
2702 if test -s conftest.err; then
2703 ac_cpp_err=$ac_cxx_preproc_warn_flag
2704 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2711 if test -z "$ac_cpp_err"; then
2712 # Broken: success on invalid input.
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 # Passes both tests.
2722 rm -f conftest.err conftest.$ac_ext
2725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2726 rm -f conftest.err conftest.$ac_ext
2727 if $ac_preproc_ok; then
2732 ac_cv_prog_CXXCPP=$CXXCPP
2735 CXXCPP=$ac_cv_prog_CXXCPP
2737 ac_cv_prog_CXXCPP=$CXXCPP
2739 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2740 echo "${ECHO_T}$CXXCPP" >&6
2742 for ac_cxx_preproc_warn_flag in '' yes
2744 # Use a header file that comes with gcc, so configuring glibc
2745 # with a fresh cross-compiler works.
2746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2747 # <limits.h> exists even on freestanding compilers.
2748 # On the NeXT, cc -E runs the code through the compiler's parser,
2749 # not just through cpp. "Syntax error" is here to catch this case.
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2757 # include <limits.h>
2759 # include <assert.h>
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev/null; then
2771 if test -s conftest.err; then
2772 ac_cpp_err=$ac_cxx_preproc_warn_flag
2773 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2780 if test -z "$ac_cpp_err"; then
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 # Broken: fails on valid input.
2789 rm -f conftest.err conftest.$ac_ext
2791 # OK, works on sane cases. Now check whether non-existent headers
2792 # can be detected and how.
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799 #include <ac_nonexistent.h>
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev/null; then
2809 if test -s conftest.err; then
2810 ac_cpp_err=$ac_cxx_preproc_warn_flag
2811 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2818 if test -z "$ac_cpp_err"; then
2819 # Broken: success on invalid input.
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 # Passes both tests.
2829 rm -f conftest.err conftest.$ac_ext
2832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2833 rm -f conftest.err conftest.$ac_ext
2834 if $ac_preproc_ok; then
2837 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2840 See \`config.log' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2845 ac_cpp='$CXXCPP $CPPFLAGS'
2846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2851 echo "$as_me:$LINENO: checking for egrep" >&5
2852 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2853 if test "${ac_cv_prog_egrep+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2857 then ac_cv_prog_egrep='grep -E'
2858 else ac_cv_prog_egrep='egrep'
2861 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2862 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2863 EGREP=$ac_cv_prog_egrep
2866 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2867 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2868 if test "${ac_cv_header_stdc+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_cxx_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_header_stdc=yes
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 ac_cv_header_stdc=no
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 if test $ac_cv_header_stdc = yes; then
2922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2933 $EGREP "memchr" >/dev/null 2>&1; then
2936 ac_cv_header_stdc=no
2942 if test $ac_cv_header_stdc = yes; then
2943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2954 $EGREP "free" >/dev/null 2>&1; then
2957 ac_cv_header_stdc=no
2963 if test $ac_cv_header_stdc = yes; then
2964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2965 if test "$cross_compiling" = yes; then
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2975 #if ((' ' & 0x0FF) == 0x020)
2976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2979 # define ISLOWER(c) \
2980 (('a' <= (c) && (c) <= 'i') \
2981 || ('j' <= (c) && (c) <= 'r') \
2982 || ('s' <= (c) && (c) <= 'z'))
2983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2991 for (i = 0; i < 256; i++)
2992 if (XOR (islower (i), ISLOWER (i))
2993 || toupper (i) != TOUPPER (i))
2998 rm -f conftest$ac_exeext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3000 (eval $ac_link) 2>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3011 echo "$as_me: program exited with status $ac_status" >&5
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3016 ac_cv_header_stdc=no
3018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3022 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3023 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3024 if test $ac_cv_header_stdc = yes; then
3026 cat >>confdefs.h <<\_ACEOF
3027 #define STDC_HEADERS 1
3032 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3043 inttypes.h stdint.h unistd.h
3045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3046 echo "$as_me:$LINENO: checking for $ac_header" >&5
3047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 $ac_includes_default
3059 #include <$ac_header>
3061 rm -f conftest.$ac_objext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3063 (eval $ac_compile) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag"
3071 || test ! -s conftest.err'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 eval "$as_ac_Header=yes"
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 eval "$as_ac_Header=no"
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3095 cat >>confdefs.h <<_ACEOF
3096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3104 as_ac_Header=`echo "ac_cv_header_$LIBELF_INC_DIR/libelf.h" | $as_tr_sh`
3105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3106 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf.h" >&5
3107 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf.h... $ECHO_C" >&6
3108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3114 # Is the header compilable?
3115 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf.h usability" >&5
3116 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf.h usability... $ECHO_C" >&6
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123 $ac_includes_default
3124 #include <$LIBELF_INC_DIR/libelf.h>
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_header_compiler=yes
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 ac_header_compiler=no
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3157 echo "${ECHO_T}$ac_header_compiler" >&6
3159 # Is the header present?
3160 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf.h presence" >&5
3161 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf.h presence... $ECHO_C" >&6
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <$LIBELF_INC_DIR/libelf.h>
3170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } >/dev/null; then
3178 if test -s conftest.err; then
3179 ac_cpp_err=$ac_cxx_preproc_warn_flag
3180 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3187 if test -z "$ac_cpp_err"; then
3188 ac_header_preproc=yes
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_header_preproc=no
3195 rm -f conftest.err conftest.$ac_ext
3196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3197 echo "${ECHO_T}$ac_header_preproc" >&6
3199 # So? What about this header?
3200 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3202 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3203 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3204 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the compiler's result" >&5
3205 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the compiler's result" >&2;}
3206 ac_header_preproc=yes
3209 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: present but cannot be compiled" >&5
3210 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: present but cannot be compiled" >&2;}
3211 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: check for missing prerequisite headers?" >&5
3212 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: check for missing prerequisite headers?" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: see the Autoconf documentation" >&5
3214 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: see the Autoconf documentation" >&2;}
3215 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: section \"Present But Cannot Be Compiled\"" >&5
3216 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3217 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the preprocessor's result" >&5
3218 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: proceeding with the preprocessor's result" >&2;}
3219 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf.h: in the future, the compiler will take precedence" >&5
3220 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf.h: in the future, the compiler will take precedence" >&2;}
3223 ## ------------------------------- ##
3224 ## Report this to bugs@dyninst.org ##
3225 ## ------------------------------- ##
3228 sed "s/^/$as_me: WARNING: /" >&2
3231 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf.h" >&5
3232 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf.h... $ECHO_C" >&6
3233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 eval "$as_ac_Header=\$ac_header_preproc"
3238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3243 { echo "$as_me:$LINENO: ELF include directory: $LIBELF_INC_DIR" >&5
3244 echo "$as_me: ELF include directory: $LIBELF_INC_DIR" >&6;}
3246 CXXFLAGS="$CXXFLAGS -I$LIBELF_INC_DIR/libelf";
3247 CPPFLAGS="$CPPFLAGS -I$LIBELF_INC_DIR/libelf";
3248 as_ac_Header=`echo "ac_cv_header_$LIBELF_INC_DIR/libelf/libelf.h" | $as_tr_sh`
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf/libelf.h" >&5
3251 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf/libelf.h... $ECHO_C" >&6
3252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3258 # Is the header compilable?
3259 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf/libelf.h usability" >&5
3260 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf/libelf.h usability... $ECHO_C" >&6
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 $ac_includes_default
3268 #include <$LIBELF_INC_DIR/libelf/libelf.h>
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_cxx_werror_flag"
3280 || test ! -s conftest.err'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_header_compiler=yes
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_header_compiler=no
3299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301 echo "${ECHO_T}$ac_header_compiler" >&6
3303 # Is the header present?
3304 echo "$as_me:$LINENO: checking $LIBELF_INC_DIR/libelf/libelf.h presence" >&5
3305 echo $ECHO_N "checking $LIBELF_INC_DIR/libelf/libelf.h presence... $ECHO_C" >&6
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <$LIBELF_INC_DIR/libelf/libelf.h>
3314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3317 grep -v '^ *+' conftest.er1 >conftest.err
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } >/dev/null; then
3322 if test -s conftest.err; then
3323 ac_cpp_err=$ac_cxx_preproc_warn_flag
3324 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3331 if test -z "$ac_cpp_err"; then
3332 ac_header_preproc=yes
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 ac_header_preproc=no
3339 rm -f conftest.err conftest.$ac_ext
3340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3341 echo "${ECHO_T}$ac_header_preproc" >&6
3343 # So? What about this header?
3344 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3346 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3347 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3348 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the compiler's result" >&5
3349 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the compiler's result" >&2;}
3350 ac_header_preproc=yes
3353 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: present but cannot be compiled" >&5
3354 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: present but cannot be compiled" >&2;}
3355 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: check for missing prerequisite headers?" >&5
3356 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: check for missing prerequisite headers?" >&2;}
3357 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: see the Autoconf documentation" >&5
3358 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: see the Autoconf documentation" >&2;}
3359 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: section \"Present But Cannot Be Compiled\"" >&5
3360 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3361 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the preprocessor's result" >&5
3362 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: proceeding with the preprocessor's result" >&2;}
3363 { echo "$as_me:$LINENO: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: in the future, the compiler will take precedence" >&5
3364 echo "$as_me: WARNING: $LIBELF_INC_DIR/libelf/libelf.h: in the future, the compiler will take precedence" >&2;}
3367 ## ------------------------------- ##
3368 ## Report this to bugs@dyninst.org ##
3369 ## ------------------------------- ##
3372 sed "s/^/$as_me: WARNING: /" >&2
3375 echo "$as_me:$LINENO: checking for $LIBELF_INC_DIR/libelf/libelf.h" >&5
3376 echo $ECHO_N "checking for $LIBELF_INC_DIR/libelf/libelf.h... $ECHO_C" >&6
3377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 eval "$as_ac_Header=\$ac_header_preproc"
3382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3387 LIBELF_INC_DIR+="/libelf";{ echo "$as_me:$LINENO: ELF include directory: $LIBELF_INC_DIR" >&5
3388 echo "$as_me: ELF include directory: $LIBELF_INC_DIR" >&6;}
3390 { { echo "$as_me:$LINENO: error: couldn't find libelf.h" >&5
3391 echo "$as_me: error: couldn't find libelf.h" >&2;}
3392 { (exit 1); exit 1; }; }
3399 CXXFLAGS=$CXXFLAGS_HOLD;
3400 CPPFLAGS=$CPPFLAGS_HOLD;
3402 if test "$LIBELF_LIB_DIR" = "" ; then
3404 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3405 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3406 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 ac_check_lib_save_LIBS=$LIBS
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3418 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3433 rm -f conftest.$ac_objext conftest$ac_exeext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435 (eval $ac_link) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_cxx_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest$ac_exeext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_lib_elf_elf_memory=yes
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_cv_lib_elf_elf_memory=no
3462 rm -f conftest.err conftest.$ac_objext \
3463 conftest$ac_exeext conftest.$ac_ext
3464 LIBS=$ac_check_lib_save_LIBS
3466 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3467 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3468 if test $ac_cv_lib_elf_elf_memory = yes; then
3469 cat >>confdefs.h <<_ACEOF
3470 #define HAVE_LIBELF 1
3476 { { echo "$as_me:$LINENO: error: Can't find libelf." >&5
3477 echo "$as_me: error: Can't find libelf." >&2;}
3478 { (exit 1); exit 1; }; }
3483 if test "" != "" ; then
3484 LIBS="-L$LIBELF_LIB_DIR -L"
3486 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3487 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3488 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 ac_check_lib_save_LIBS=$LIBS
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3500 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517 (eval $ac_link) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest$ac_exeext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_lib_elf_elf_memory=yes
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_cv_lib_elf_elf_memory=no
3544 rm -f conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext conftest.$ac_ext
3546 LIBS=$ac_check_lib_save_LIBS
3548 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3549 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3550 if test $ac_cv_lib_elf_elf_memory = yes; then
3551 cat >>confdefs.h <<_ACEOF
3552 #define HAVE_LIBELF 1
3558 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
3559 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
3560 { (exit 1); exit 1; }; }
3564 LIBS="-L$LIBELF_LIB_DIR"
3566 echo "$as_me:$LINENO: checking for elf_memory in -lelf" >&5
3567 echo $ECHO_N "checking for elf_memory in -lelf... $ECHO_C" >&6
3568 if test "${ac_cv_lib_elf_elf_memory+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 ac_check_lib_save_LIBS=$LIBS
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 /* Override any gcc2 internal prototype to avoid an error. */
3584 /* We use char because int might match the return type of a gcc2
3585 builtin and then its argument prototype would still apply. */
3595 rm -f conftest.$ac_objext conftest$ac_exeext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3597 (eval $ac_link) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_cxx_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest$ac_exeext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_lib_elf_elf_memory=yes
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 ac_cv_lib_elf_elf_memory=no
3624 rm -f conftest.err conftest.$ac_objext \
3625 conftest$ac_exeext conftest.$ac_ext
3626 LIBS=$ac_check_lib_save_LIBS
3628 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_memory" >&5
3629 echo "${ECHO_T}$ac_cv_lib_elf_elf_memory" >&6
3630 if test $ac_cv_lib_elf_elf_memory = yes; then
3631 cat >>confdefs.h <<_ACEOF
3632 #define HAVE_LIBELF 1
3638 { { echo "$as_me:$LINENO: error: Can't find libelf in $LIBELF_LIB_DIR" >&5
3639 echo "$as_me: error: Can't find libelf in $LIBELF_LIB_DIR" >&2;}
3640 { (exit 1); exit 1; }; }
3648 LIB_TYPE_DYNAMIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.so' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3649 if test "$LIB_TYPE_DYNAMIC" = "true"; then
3652 LIB_TYPE_STATIC=`ls -H -1 $LIBELF_LIB_DIR | grep elf | grep '\.a' | wc | awk '{if($'2' > 0){print "true"} else {print ""}}'`
3655 LIBELF_STATIC="$LIB_TYPE_STATIC"
3656 LIBELF_DYNAMIC="$LIB_TYPE_DYNAMIC"
3663 if test "`echo $host_os | cut -b-3`" = "aix" ; then
3664 if test "`basename $CXX`" = "xlC" ; then
3670 if test "`echo $host_os | cut -b-3`" = "aix" ; then
3671 { echo "$as_me:$LINENO: AIX system, skipping libdwarf..." >&5
3672 echo "$as_me: AIX system, skipping libdwarf..." >&6;}
3676 # Check whether --with-libdwarf-incdir or --without-libdwarf-incdir was given.
3677 if test "${with_libdwarf_incdir+set}" = set; then
3678 withval="$with_libdwarf_incdir"
3679 LIBDWARF_INC_DIR="${withval}";
3682 # Check whether --with-libdwarf-libdir or --without-libdwarf-libdir was given.
3683 if test "${with_libdwarf_libdir+set}" = set; then
3684 withval="$with_libdwarf_libdir"
3685 LIBDWARF_LIB_DIR="${withval}";
3688 CXXFLAGS_HOLD=$CXXFLAGS;
3689 CXXFLAGS="$CXXFLAGS -I$LIBDWARF_INC_DIR";
3690 CPPFLAGS_HOLD=$CPPFLAGS;
3691 CPPFLAGS="$CPPFLAGS -I$LIBDWARF_INC_DIR";
3693 as_ac_Header=`echo "ac_cv_header_$LIBDWARF_INC_DIR/libdwarf.h" | $as_tr_sh`
3694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf.h" >&5
3696 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf.h... $ECHO_C" >&6
3697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3703 # Is the header compilable?
3704 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf.h usability" >&5
3705 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf.h usability... $ECHO_C" >&6
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 $ac_includes_default
3713 #include <$LIBDWARF_INC_DIR/libdwarf.h>
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_cxx_werror_flag"
3725 || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_header_compiler=yes
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_header_compiler=no
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3746 echo "${ECHO_T}$ac_header_compiler" >&6
3748 # Is the header present?
3749 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf.h presence" >&5
3750 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf.h presence... $ECHO_C" >&6
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <$LIBDWARF_INC_DIR/libdwarf.h>
3759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3762 grep -v '^ *+' conftest.er1 >conftest.err
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } >/dev/null; then
3767 if test -s conftest.err; then
3768 ac_cpp_err=$ac_cxx_preproc_warn_flag
3769 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3776 if test -z "$ac_cpp_err"; then
3777 ac_header_preproc=yes
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 ac_header_preproc=no
3784 rm -f conftest.err conftest.$ac_ext
3785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3786 echo "${ECHO_T}$ac_header_preproc" >&6
3788 # So? What about this header?
3789 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3791 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3792 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the compiler's result" >&5
3794 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the compiler's result" >&2;}
3795 ac_header_preproc=yes
3798 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: present but cannot be compiled" >&5
3799 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: present but cannot be compiled" >&2;}
3800 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: check for missing prerequisite headers?" >&5
3801 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: check for missing prerequisite headers?" >&2;}
3802 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: see the Autoconf documentation" >&5
3803 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: see the Autoconf documentation" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&5
3805 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the preprocessor's result" >&5
3807 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: proceeding with the preprocessor's result" >&2;}
3808 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: in the future, the compiler will take precedence" >&5
3809 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf.h: in the future, the compiler will take precedence" >&2;}
3812 ## ------------------------------- ##
3813 ## Report this to bugs@dyninst.org ##
3814 ## ------------------------------- ##
3817 sed "s/^/$as_me: WARNING: /" >&2
3820 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf.h" >&5
3821 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf.h... $ECHO_C" >&6
3822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 eval "$as_ac_Header=\$ac_header_preproc"
3827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3832 { echo "$as_me:$LINENO: DWARF include directory: $LIBDWARF_INC_DIR" >&5
3833 echo "$as_me: DWARF include directory: $LIBDWARF_INC_DIR" >&6;}
3835 CXXFLAGS="$CXXFLAGS -I$LIBDWARF_INC_DIR/libdwarf";
3836 CPPFLAGS="$CPPFLAGS -I$LIBDWARF_INC_DIR/libdwarf";
3837 as_ac_Header=`echo "ac_cv_header_$LIBDWARF_INC_DIR/libdwarf/libdwarf.h" | $as_tr_sh`
3838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3839 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h" >&5
3840 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h... $ECHO_C" >&6
3841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3847 # Is the header compilable?
3848 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h usability" >&5
3849 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h usability... $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 $ac_includes_default
3857 #include <$LIBDWARF_INC_DIR/libdwarf/libdwarf.h>
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1 >conftest.err
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_cxx_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_header_compiler=yes
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_header_compiler=no
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3890 echo "${ECHO_T}$ac_header_compiler" >&6
3892 # Is the header present?
3893 echo "$as_me:$LINENO: checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h presence" >&5
3894 echo $ECHO_N "checking $LIBDWARF_INC_DIR/libdwarf/libdwarf.h presence... $ECHO_C" >&6
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 #include <$LIBDWARF_INC_DIR/libdwarf/libdwarf.h>
3903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } >/dev/null; then
3911 if test -s conftest.err; then
3912 ac_cpp_err=$ac_cxx_preproc_warn_flag
3913 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3920 if test -z "$ac_cpp_err"; then
3921 ac_header_preproc=yes
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_header_preproc=no
3928 rm -f conftest.err conftest.$ac_ext
3929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3930 echo "${ECHO_T}$ac_header_preproc" >&6
3932 # So? What about this header?
3933 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3935 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3936 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the compiler's result" >&5
3938 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the compiler's result" >&2;}
3939 ac_header_preproc=yes
3942 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: present but cannot be compiled" >&5
3943 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: present but cannot be compiled" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: check for missing prerequisite headers?" >&5
3945 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: check for missing prerequisite headers?" >&2;}
3946 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: see the Autoconf documentation" >&5
3947 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: see the Autoconf documentation" >&2;}
3948 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&5
3949 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the preprocessor's result" >&5
3951 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: proceeding with the preprocessor's result" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: in the future, the compiler will take precedence" >&5
3953 echo "$as_me: WARNING: $LIBDWARF_INC_DIR/libdwarf/libdwarf.h: in the future, the compiler will take precedence" >&2;}
3956 ## ------------------------------- ##
3957 ## Report this to bugs@dyninst.org ##
3958 ## ------------------------------- ##
3961 sed "s/^/$as_me: WARNING: /" >&2
3964 echo "$as_me:$LINENO: checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h" >&5
3965 echo $ECHO_N "checking for $LIBDWARF_INC_DIR/libdwarf/libdwarf.h... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 eval "$as_ac_Header=\$ac_header_preproc"
3971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3976 LIBDWARF_INC_DIR+="/libdwarf";{ echo "$as_me:$LINENO: DWARF include directory: $LIBDWARF_INC_DIR" >&5
3977 echo "$as_me: DWARF include directory: $LIBDWARF_INC_DIR" >&6;}
3979 { { echo "$as_me:$LINENO: error: couldn't find libdwarf.h" >&5
3980 echo "$as_me: error: couldn't find libdwarf.h" >&2;}
3981 { (exit 1); exit 1; }; }
3988 CXXFLAGS=$CXXFLAGS_HOLD;
3989 CPPFLAGS=$CPPFLAGS_HOLD;
3992 if test "$LIBDWARF_LIB_DIR" = "" ; then
3994 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
3995 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
3996 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_check_lib_save_LIBS=$LIBS
4000 LIBS="-ldwarf $LIBS"
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4008 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4014 char dwarf_add_arange ();
4018 dwarf_add_arange ();
4023 rm -f conftest.$ac_objext conftest$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_cxx_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest$ac_exeext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_lib_dwarf_dwarf_add_arange=yes
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_cv_lib_dwarf_dwarf_add_arange=no
4052 rm -f conftest.err conftest.$ac_objext \
4053 conftest$ac_exeext conftest.$ac_ext
4054 LIBS=$ac_check_lib_save_LIBS
4056 echo "$as_me:$LINENO: result: $ac_cv_lib_dwarf_dwarf_add_arange" >&5
4057 echo "${ECHO_T}$ac_cv_lib_dwarf_dwarf_add_arange" >&6
4058 if test $ac_cv_lib_dwarf_dwarf_add_arange = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060 #define HAVE_LIBDWARF 1
4063 LIBS="-ldwarf $LIBS"
4066 { { echo "$as_me:$LINENO: error: Can't find libdwarf." >&5
4067 echo "$as_me: error: Can't find libdwarf." >&2;}
4068 { (exit 1); exit 1; }; }
4073 if test "$LIBELF_LIB_DIR" != "" ; then
4074 LIBS="-L$LIBDWARF_LIB_DIR -L$LIBELF_LIB_DIR"
4076 echo "$as_me:$LINENO: checking for dwarf_add_arange in -ldwarf" >&5
4077 echo $ECHO_N "checking for dwarf_add_arange in -ldwarf... $ECHO_C" >&6
4078 if test "${ac_cv_lib_dwarf_dwarf_add_arange+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 ac_check_lib_save_LIBS=$LIBS
4082 LIBS="-ldwarf -lelf $LIBS"
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4090 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4096 char dwarf_add_arange ();
4100 dwarf_add_arange ();
4105 rm -f conftest.$ac_objext conftest$ac_exeext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4107 (eval $ac_link) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err