mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-09 07:14:18 +01:00
Configure: Added explicit check for math library header
Compilation will not work if the header is missing, so make sure it is present and compilable first. This can highligh sooner if a user forgot to install the corresponding dev package. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
f68ec6c913
commit
95ee539d6d
@@ -22,7 +22,9 @@
|
|||||||
# Checks the needed library link flags needed to have math lib
|
# Checks the needed library link flags needed to have math lib
|
||||||
# Sets variable LIBM with the appropriates flags
|
# Sets variable LIBM with the appropriates flags
|
||||||
AC_DEFUN_ONCE([WM_CHECK_LIBM],
|
AC_DEFUN_ONCE([WM_CHECK_LIBM],
|
||||||
[AC_CHECK_FUNC(atan,
|
[AC_CHECK_HEADER([math.h], [],
|
||||||
|
[AC_MSG_ERROR([header for math library not found])])
|
||||||
|
AC_CHECK_FUNC(atan,
|
||||||
[LIBM=],
|
[LIBM=],
|
||||||
[AC_CHECK_LIB(m, [atan],
|
[AC_CHECK_LIB(m, [atan],
|
||||||
[LIBM=-lm],
|
[LIBM=-lm],
|
||||||
|
|||||||
Reference in New Issue
Block a user