## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-ACLOCAL_AMFLAGS = -I autostuff
+GNUMAKEFLAGS = --no-print-directory
SUBDIRS = asix-sigma sysclk-lwla
-#!/bin/sh
+#!/bin/sh -e
##
## This file is part of the sigrok-firmware project.
##
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-OS=`uname`
-
-if [ "x$OS" = "xDarwin" ]; then
- if [ -d /sw/share/aclocal ]; then
- # fink installs aclocal macros here
- ACLOCAL_DIR="-I /sw/share/aclocal"
- elif [ -d /opt/local/share/aclocal ]; then
- # Macports installs aclocal macros here
- ACLOCAL_DIR="-I /opt/local/share/aclocal"
- elif [ -d /usr/local/share/aclocal ]; then
- # Homebrew installs aclocal macros here
- ACLOCAL_DIR="-I /usr/local/share/aclocal"
- elif [ -d /usr/share/aclocal ]; then
- # Xcode installs aclocal macros here
- ACLOCAL_DIR="-I /usr/share/aclocal"
- fi
-fi
-
-echo "Generating build system..."
-mkdir -p autostuff
-aclocal ${ACLOCAL_DIR} || exit 1
-autoheader || exit 1
-automake --add-missing --copy || exit 1
-autoconf || exit 1
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+autoreconf --force --install --verbose "$srcdir"
AC_INIT([sigrok-firmware], [0.1.0], [sigrok-devel@lists.sourceforge.net],
[sigrok-firmware], [http://www.sigrok.org])
-AC_CONFIG_HEADER([config.h])
-AC_CONFIG_MACRO_DIR([autostuff])
AC_CONFIG_AUX_DIR([autostuff])
# We require at least automake 1.11 (needed for 'silent rules').
-AM_INIT_AUTOMAKE([1.11 -Wall -Werror check-news])
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+AM_INIT_AUTOMAKE([1.11 -Wall -Werror no-define nostdinc check-news])
+AM_SILENT_RULES([yes])
AC_PROG_INSTALL
-AC_PROG_LN_S
-
-AC_SUBST(FIRMWARE_DIR, "$datadir/sigrok-firmware")
-AC_SUBST(MAKEFLAGS, '--no-print-directory')
AC_CONFIG_FILES([Makefile
asix-sigma/Makefile
sysclk-lwla/Makefile
])
-
AC_OUTPUT
-