Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libxfce4util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
libxfce4util
Commits
58011815
Commit
58011815
authored
22 years ago
by
Benedikt Meurer
Browse files
Options
Downloads
Patches
Plain Diff
Updated BM_DEPEND_CHECK to make it possible to disable the test
(Old svn revision: 684)
parent
453612f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
m4/depends.m4
+15
-8
15 additions, 8 deletions
m4/depends.m4
with
15 additions
and
8 deletions
m4/depends.m4
+
15
−
8
View file @
58011815
...
...
@@ -10,17 +10,24 @@ AC_DEFUN([BM_DEPEND],
])
dnl
dnl BM_DEPEND_CHECK(var, pkg, version)
dnl BM_DEPEND_CHECK(var, pkg, version
, name, helpstring
)
dnl
AC_DEFUN([BM_DEPEND_CHECK],
[
AC_MSG_CHECKING([for $2 >= $3])
if $PKG_CONFIG --atleast-version=$3 $2 2> /dev/null; then
AC_MSG_RESULT([yes])
BM_DEPEND([$1], [$2], [$3])
AC_DEFINE([HAVE_$1], [1], [Define if you have $2 >= $3])
else
AC_MSG_RESULT([no])
AC_ARG_ENABLE([$4-check],
AC_HELP_STRING([--enable-$4-check], [Enable checking for $5 (default)])
AC_HELP_STRING([--disable-$4-check], [Disable checking for $5]),
[ac_cv_$1_check=$enableval], [ac_cv_$1_check=yes])
if test x"$ac_cv_$1_check" = x"yes"; then
AC_MSG_CHECKING([for $2 >= $3])
if $PKG_CONFIG --atleast-version=$3 $2 2> /dev/null; then
AC_MSG_RESULT([yes])
BM_DEPEND([$1], [$2], [$3])
AC_DEFINE([HAVE_$1], [1], [Define if you have $2 >= $3])
else
AC_MSG_RESULT([no])
fi
fi
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment