##
-## This file is part of the sigrok project.
+## This file is part of the sigrok-gtk project.
##
## Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
##
AC_CONFIG_AUX_DIR([autostuff])
# We require at least automake 1.11 (needed for 'silent rules').
-AM_INIT_AUTOMAKE([1.11 -Wall -Werror foreign std-options])
+AM_INIT_AUTOMAKE([1.11 -Wall -Werror std-options check-news])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AH_TOP([#ifndef SIGROK_GTK_CONFIG_H
#define SIGROK_GTK_CONFIG_H /* To stop multiple inclusions. */])
AH_BOTTOM([#endif /* SIGROK_GTK_CONFIG_H */])
-CFLAGS="-g -Wall -Wextra"
+# Enable more compiler warnings via -Wall and -Wextra.
+CFLAGS="$CFLAGS -Wall -Wextra"
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
+# Needed for per-target flags or subdir-objects with C sources.
+AM_PROG_CC_C_O
+
# Initialize libtool.
LT_INIT
[CFLAGS="$CFLAGS $gtk_CFLAGS";
LIBS="$LIBS $gtk_LIBS"])
-PKG_CHECK_MODULES([libsigrok], [libsigrok >= 0.1.0],
+PKG_CHECK_MODULES([libsigrok], [libsigrok >= 0.2.0],
[CFLAGS="$CFLAGS $libsigrok_CFLAGS";
LIBS="$LIBS $libsigrok_LIBS"])