autoreconf -ifv && ./configure
:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDL... yes
./configure: line 4399: syntax error near unexpected token `('
./configure: line 4399: ` arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;'
configure.ac
:
AC_INIT([qwe], [0.0.1])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(foreign subdir-objects)
AC_CANONICAL_HOST
AC_PROG_CC
dnl Check for SDL
SDL_VERSION=2.0
AM_PATH_SDL2($SDL_VERSION,:,AC_MSG_ERROR([*** No SDL $SDL_VERSION found, please install it ***]))
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
AC_SUBST(ARCH_STR, host_cpu)
AC_CONFIG_FILES([
Makefile
])
#qwe/Makefile
AC_OUTPUT
Makefile.am
:
#SUBDIRS = qwe
m4/sdl2.m4 downloaded from https://hg.libsdl.org/SDL/raw-file/53b03749a7ff/sdl2.m4
Debian 9 testing
automake (GNU automake) 1.15.1
autoconf (GNU Autoconf) 2.69