mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
link libWINGs against libm if necessary
libWINGs is using mathematical functions (atan, sqrt, etc.). Check whether we need to lik against libm to use these and link libWINGs against it if necessary.
This commit is contained in:
committed by
Carlos R. Mafra
parent
3f27b998a7
commit
c238d8417f
@@ -19,7 +19,7 @@ lib_LTLIBRARIES = libWUtil.la libWINGs.la
|
||||
|
||||
|
||||
LDADD= libWUtil.la libWINGs.la $(top_builddir)/wrlib/libwraster.la @INTLIBS@
|
||||
libWINGs_la_LIBADD = libWUtil.la $(top_builddir)/wrlib/libwraster.la @XFTLIBS@ @FCLIBS@
|
||||
libWINGs_la_LIBADD = libWUtil.la $(top_builddir)/wrlib/libwraster.la @XFTLIBS@ @FCLIBS@ @LIBM@
|
||||
|
||||
EXTRA_DIST = BUGS make-rgb Examples Extras Tests
|
||||
|
||||
|
||||
11
configure.ac
11
configure.ac
@@ -481,6 +481,17 @@ if test "$shape" = yes; then
|
||||
fi
|
||||
|
||||
|
||||
dnl
|
||||
dnl libWINGS uses math functions, check whether usage requires linking
|
||||
dnl against libm
|
||||
dnl
|
||||
AC_CHECK_FUNC(atan,[mathneedslibm=no;LIBM=],[mathneedslibm=dunno])
|
||||
if test "x$mathneedslibm" = "xdunno" ; then
|
||||
AC_CHECK_LIB(m, atan, [LIBM=-lm])
|
||||
fi
|
||||
AC_SUBST(LIBM)
|
||||
|
||||
|
||||
dnl
|
||||
dnl libWINGS uses FcPatternDel from libfontconfig
|
||||
dnl
|
||||
|
||||
Reference in New Issue
Block a user