Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
ae92c39a
Commit
ae92c39a
authored
11 years ago
by
Marcus Comstedt
Browse files
Options
Downloads
Patches
Plain Diff
Image.WebP: Check that the library exists, not just the headers
parent
ed0c6a9e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/post_modules/_Image_WebP/configure.in
+7
-2
7 additions, 2 deletions
src/post_modules/_Image_WebP/configure.in
with
7 additions
and
2 deletions
src/post_modules/_Image_WebP/configure.in
+
7
−
2
View file @
ae92c39a
...
...
@@ -7,14 +7,19 @@ PIKE_FEATURE_NODEP(Image.WebP)
AC_CHECK_HEADERS(webp/encode.h)
if test $ac_cv_header_webp_encode_h = yes ; then
AC_DEFINE(HAVE_LIBWEBP,[],[Define when the -lwebp library is available])
have_libwebp=false
AC_CHECK_LIB([webp], [WebPDecodeRGB], [
LIBS="${LIBS-} -lwebp"
have_libwebp=true
])
AC_CHECK_LIB([webpdecoder], [WebPDecodeRGBA], [
LIBS="${LIBS-} -lwebpmux -lwebpdecoder -lwebpdemux"
have_libwebp=true
])
PIKE_FEATURE_OK(Image.WebP)
if $have_libwebp; then
AC_DEFINE(HAVE_LIBWEBP,[],[Define when the -lwebp library is available])
PIKE_FEATURE_OK(Image.WebP)
fi
fi
AC_OUTPUT(Makefile,echo FOO >stamp-h )
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