1
1

Added configure option '--with[out]-bfd' to control usage of BFD library to get symbol information for GNU, Intel, and Pathscale compiler instrumentation

This commit was SVN r21458.
Этот коммит содержится в:
Matthias Jurenz 2009-06-17 08:51:26 +00:00
родитель 8db7a9f9a7
Коммит d7aa9abc4e
2 изменённых файлов: 43 добавлений и 25 удалений

Просмотреть файл

@ -245,5 +245,8 @@
5.4.9 5.4.9
- install header files to 'PREFIX/include/vampirtrace' by default to - install header files to 'PREFIX/include/vampirtrace' by default to
avoid conflicts with the OpenMPI integrated version of VT avoid conflicts with the OpenMPI integrated version of VT
- added configure option '--with[out]-bfd' to control usage of BFD
library to get symbol information for GNU, Intel, and Pathscale
compiler instrumentation
- fixed faulty searching for matching filter directive - fixed faulty searching for matching filter directive

Просмотреть файл

@ -1,6 +1,8 @@
AC_DEFUN([ACVT_BFD], AC_DEFUN([ACVT_BFD],
[ [
bfd_error="no" bfd_error="no"
check_bfd="yes"
force_bfd="no"
have_bfd="no" have_bfd="no"
BFDDIR= BFDDIR=
@ -8,6 +10,10 @@ AC_DEFUN([ACVT_BFD],
BFDLIBDIR= BFDLIBDIR=
BFDLIB= BFDLIB=
AC_ARG_WITH(bfd,
AC_HELP_STRING([--with-bfd], [use BFD to get symbol information of an executable instrumented with GNU, Intel, or Pathscale compiler, default: yes]),
[AS_IF([test x"$withval" = "xyes"], [force_bfd="yes"], [check_bfd="no"])])
AC_ARG_WITH(bfd-dir, AC_ARG_WITH(bfd-dir,
AC_HELP_STRING([--with-bfd-dir=BFDDIR], [give the path for BFD, default: /usr]), AC_HELP_STRING([--with-bfd-dir=BFDDIR], [give the path for BFD, default: /usr]),
[BFDDIR="$withval/"]) [BFDDIR="$withval/"])
@ -28,6 +34,8 @@ AC_DEFUN([ACVT_BFD],
AC_HELP_STRING([--with-bfd-lib=BFDLIB], [use given bfd lib, default: -lbfd]), AC_HELP_STRING([--with-bfd-lib=BFDLIB], [use given bfd lib, default: -lbfd]),
[BFDLIB="$withval"]) [BFDLIB="$withval"])
AS_IF([test x"$check_bfd" = "xyes"],
[
sav_CPPFLAGS=$CPPFLAGS sav_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $BFDINCDIR" CPPFLAGS="$CPPFLAGS $BFDINCDIR"
AC_CHECK_HEADER([bfd.h], [], AC_CHECK_HEADER([bfd.h], [],
@ -53,7 +61,8 @@ AC_DEFUN([ACVT_BFD],
bfd_error="yes" bfd_error="yes"
]) ])
AS_IF([test x"$BFDLIB" != x -a "$bfd_error" = "no"], [have_bfd="yes"]) AS_IF([test "$bfd_error" = "no"], [have_bfd="yes"])
])
AC_SUBST(BFDINCDIR) AC_SUBST(BFDINCDIR)
AC_SUBST(BFDLIBDIR) AC_SUBST(BFDLIBDIR)
@ -213,9 +222,15 @@ AC_DEFUN([ACVT_COMPINST],
AS_IF([test x"$build_compinst_gnu" = "xyes" -o x"$build_compinst_intel" = "xyes" -o x"$build_compinst_pathscale" = "xyes"], AS_IF([test x"$build_compinst_gnu" = "xyes" -o x"$build_compinst_intel" = "xyes" -o x"$build_compinst_pathscale" = "xyes"],
[ [
ACVT_BFD ACVT_BFD
AS_IF([test x"$bfd_error" = "xno"], AS_IF([test x"$bfd_error" = "xyes"],
[ACVT_GNUDMGL], [
[AC_MSG_WARN([no usable BFD found; using nm-output file for addr./symbol mapping])]) AS_IF([test x"$force_bfd" = "xyes"], [exit 1])
AC_MSG_WARN([no usable BFD found; using nm-output file for addr./symbol mapping])
],
[
AS_IF([test x"$have_bfd" = "xyes"],
[ACVT_GNUDMGL])
])
]) ])
]) ])
]) ])