More wireframing

This commit is contained in:
2024-09-08 01:04:41 +10:00
parent 0ccb7e5542
commit e0b84fad0c
17 changed files with 242 additions and 18 deletions
+20 -4
View File
@@ -1,6 +1,7 @@
AC_INIT([The Harriman-Peikoff Project], [0.00],
[latentprion@gmail.com], [harikoff],
[github.com/latentprion/harikoff])
AC_INIT([The Harriman-Peikoff Project],[0.00],[latentprion@gmail.com],[harikoff],[github.com/latentprion/harikoff])
AC_DEFUN([TEST_IS_NUMBER], [`echo $1 | grep -c '^[0-9]\+$'` -gt 0])
AC_DEFUN([TEST_NOT_NUMBER], [`echo $1 | grep -c '^[0-9]\+$'` -eq 0])
# Safety checks in case user overwritten --srcdir
AC_CONFIG_SRCDIR(core/main.cpp)
@@ -17,8 +18,23 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AC_PROG_CXX
AC_CONFIG_HEADERS([config.h])
# AC_CHECK_HEADERS([stdio.h])
# AC_MSG_ERROR([You must set the number of sensors with num_sensors], 1))
AS_IF([test "X$num_sensors" = "X"],
AC_MSG_ERROR([You must set num_sensors]))
AS_IF([test `echo $num_sensors | grep -c '^[0-9]\+$'` -gt 0],
AC_MSG_ERROR([num_sensors must be an integer]))
AS_IF([test $num_sensors -lt 1],
AC_MSG_ERROR([Harikoff needs at least 1 sensor]))
num_sensors_desc="Number of sensors harikoff has direct purview over"
AC_ARG_VAR([num_sensors],
AS_HELP_STRING([num_sensors=<n>],[$num_sensors_desc]))
AC_DEFINE_UNQUOTED([CONFIG_NUM_SENSORS], [$num_sensors], [$num_sensors_desc])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile core/Makefile])
AC_OUTPUT