summaryrefslogtreecommitdiff
path: root/camlibs/st2205
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2021-08-06 23:32:52 +0200
committerHans Ulrich Niedermann <github@n-dimensional.de>2021-08-07 11:55:59 +0200
commit94efe00f0170f81dea85d6a0fe89b12111e98d19 (patch)
tree6cefe70b8b3ca68483c10b772cda94e5f5c8c60f /camlibs/st2205
parent5c8c0538714b170ad83b2095dcf42838d663a3d3 (diff)
downloadlibgphoto2-94efe00f0170f81dea85d6a0fe89b12111e98d19.tar.gz
Use AC_SEARCH_LIBS to find where mmap(2) is defined
Use AC_SEARCH_LIBS to find whether mmap(2) in the standard library, or whether using mmap(2) requires linking against libmman. This avoids conditionally calling/expanding AM_CONDITIONAL which autoreconf (rightly) complains about. This also uses proper m4 quoting in all m4 macro arguments.
Diffstat (limited to 'camlibs/st2205')
-rw-r--r--camlibs/st2205/Makefile-files6
1 files changed, 3 insertions, 3 deletions
diff --git a/camlibs/st2205/Makefile-files b/camlibs/st2205/Makefile-files
index fb0ab8c3a..8a85bfb02 100644
--- a/camlibs/st2205/Makefile-files
+++ b/camlibs/st2205/Makefile-files
@@ -11,6 +11,6 @@ st2205_la_DEPENDENCIES = $(camlib_dependencies)
st2205_la_LIBADD = $(camlib_libadd) @LIBGD_LIBS@ $(LTLIBICONV)
st2205_la_CFLAGS = @LIBGD_CFLAGS@
-if HAVE_MMAN_LIB
-st2205_la_LIBADD += -lmman
-endif
+# On systems such as mingw/Windows, mmap(2) is not part of the
+# standard library and needs an explicit library to link against.
+st2205_la_LIBADD += $(MMAP_LIBS)