diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0747857..1bd45c3 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,11 @@ AC_INIT([calculer], [1.0.0]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([-Wall -Werror, foreign]) +AC_CONFIG_MACRO_DIRS([m4]) +AM_PROG_AR AC_PROG_CC +LT_INIT AH_TEMPLATE([USE_READLINE], [do we use GNU Readline ?]) AC_DEFUN([LINENOISE_URL], [https://github.com/antirez/linenoise.git]) @@ -23,11 +26,21 @@ AC_CHECK_LIB([readline], use_readline=false )], [AC_DEFINE([USE_READLINE], [0]) - use_readline=true] + use_readline=false] ) AM_CONDITIONAL([USE_READLINE_COND], [test x$use_readline = xtrue]) +AC_CHECK_LIB([raylib], + [InitWindow], + [], + [cat << EOF +Error: the Raylib library was not found, you may install it either using +your usual package manager or from source : +https://www.raylib.com/ +EOF] +) + AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], [enable debugging, only useful for development])], |