game/configure.ac
Warwick 7d40aa29c6 Moved away from plain make to autotools
I'm really glad I know a bit about how to use them now with pkg-config (so
much nicer than cmake or that python like thing in my opinion)
2021-02-05 12:38:03 +00:00

26 lines
768 B
Text

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([Game], [0.0.1], [wytau@sdf.org])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
PKG_CHECK_MODULES([sdl2], sdl2, [], AC_MSG_ERROR([Failed to find sdl2]))
PKG_CHECK_MODULES([glew], glew, [], AC_MSG_ERROR([Failed to find glew]))
PKG_CHECK_MODULES([opengl], gl, [], AC_MSG_ERROR([Failed to find OpenGL]))
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT