diff options
author | dsmith <dsmith> | 2008-01-24 20:24:03 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2008-01-24 20:24:03 +0000 |
commit | 7ae8037e595d8da298c83cdc059db6ac5b68d8dc (patch) | |
tree | d548cec6593861a461868232cd994dd36bbf49f4 /acsite.m4 | |
parent | 9921a199dd3d8bfce4cd2e4c95e17119903588ea (diff) | |
download | systemtap-steved-7ae8037e595d8da298c83cdc059db6ac5b68d8dc.tar.gz systemtap-steved-7ae8037e595d8da298c83cdc059db6ac5b68d8dc.tar.xz systemtap-steved-7ae8037e595d8da298c83cdc059db6ac5b68d8dc.zip |
2008-01-24 David Smith <dsmith@redhat.com>
PR 5661 (reverted).
* configure.ac: Removed elfutils version number check.
* configure: Regenerated.
* acsite.m4: Removed.
* systemtap.spec.in: Minimum elfutils version number is no longer
filled in by configure.
Diffstat (limited to 'acsite.m4')
-rw-r--r-- | acsite.m4 | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/acsite.m4 b/acsite.m4 deleted file mode 100644 index 27c727e1..00000000 --- a/acsite.m4 +++ /dev/null @@ -1,57 +0,0 @@ -dnl ######################################################################### -dnl Gets elfutils library version number. -dnl -dnl Result: sets ax_elfutils_get_version_ok to yes or no, -dnl sets ax_elfutils_get_version_VERSION to version. -dnl -dnl AX_ELFUTILS_GET_VERSION([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -AC_DEFUN([AX_ELFUTILS_GET_VERSION], [ - dnl # Used to indicate success or failure of this function. - ax_elfutils_get_version_ok=no - ax_elfutils_get_version_VERSION='' - - dnl # save and modify environment - ax_elfutils_get_version_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS" - - ax_elfutils_get_version_save_LIBS="$LIBS" - LIBS="$LIBS -ldw" - - # Compile and run a program that returns the value of the library - # function dwfl_version. - AC_RUN_IFELSE([ - AC_LANG_SOURCE([[ -#include <stdio.h> -#include <elfutils/libdwfl.h> - -int main(int argc,char **argv) -{ - const char *ver = dwfl_version(NULL); - if (ver != NULL) { - if (argc > 1) - printf("%s\n", ver); - return 0; - } - else - return 1; -} - ]]) - ],[ - # Program compiled and ran, so get version by adding argument. - ax_elfutils_get_version_VERSION=`./conftest$ac_exeext x` - ax_elfutils_get_version_ok=yes - ],[],[]) - - dnl # restore environment - CPPFLAGS="$ax_elfutils_get_version_save_CPPFLAGS" - LIBS="$ax_elfutils_get_version_save_LIBS" - - dnl # Finally, execute ACTION-IF-FOUND / ACTION-IF-NOT-FOUND. - if test "$ax_elfutils_get_version_ok" = "yes" ; then - AC_MSG_RESULT([$ax_elfutils_get_version_VERSION]) - m4_ifvaln([$1],[$1])dnl - else - AC_MSG_RESULT([no]) - m4_ifvaln([$2],[$2])dnl - fi -]) dnl AX_ELFUTILS_GET_VERSION |