X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=m4%2Fax_lib_elfutils.m4;fp=m4%2Fax_lib_elfutils.m4;h=0000000000000000000000000000000000000000;hp=5cefc748bf14a06a545533ebe2bd15f919c003a5;hb=b04abc0d33636acfb49feaf77284915eb500a885;hpb=23f88ce2911775fcbaaef422fa31cbcfcb79d920 diff --git a/m4/ax_lib_elfutils.m4 b/m4/ax_lib_elfutils.m4 deleted file mode 100644 index 5cefc748..00000000 --- a/m4/ax_lib_elfutils.m4 +++ /dev/null @@ -1,58 +0,0 @@ -# ax_lib_elfutils.m4 -- Check elfutils version -# -# Copyright (C) 2016 - Jérémie Galarneau -# -# Permission is hereby granted, free of charge, to any person -# obtaining a copy of this software and associated documentation files -# (the "Software"), to deal in the Software without restriction, -# including without limitation the rights to use, copy, modify, merge, -# publish, distribute, sublicense, and/or sell copies of the Software, -# and to permit persons to whom the Software is furnished to do so, -# subject to the following conditions: The above copyright notice and -# this permission notice shall be included in all copies or substantial -# portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Check the currently installed version of elfutils by using the -# `_ELFUTILS_PREREQ` macro defined in . -# -# The cache variable for this test is `bt_cv_lib_elfutils`. -# -# AX_LIB_ELFUTILS(MAJOR_VERSION, MINOR_VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) -# --------------------------------------------------------------------------- -AC_DEFUN([AX_LIB_ELFUTILS], [ - m4_pushdef([major_version], [$1]) - m4_pushdef([minor_version], [$2]) - m4_pushdef([true_action], m4_default([$3], [:])) - m4_pushdef([false_action], m4_default( - [$4], [AC_MSG_ERROR(elfutils >= major_version.minor_version is required)] - )) - - AC_CACHE_CHECK( - [for elfutils version >= major_version.minor_version], - [bt_cv_lib_elfutils], [ - AC_RUN_IFELSE([AC_LANG_SOURCE([ - #include - #include - - int main(void) { - return _ELFUTILS_PREREQ(major_version, minor_version) ? EXIT_SUCCESS : EXIT_FAILURE; - } - ])], [bt_cv_lib_elfutils=yes], [bt_cv_lib_elfutils=no]) - ] - ) - - AS_IF([test "x$bt_cv_lib_elfutils" = "xyes"], [true_action], [false_action]) - - m4_popdef([false_action]) - m4_popdef([true_action]) - m4_popdef([minor_version]) - m4_popdef([major_version]) -])