Switch to a autotools build system and format

This commit is contained in:
2026-04-17 12:19:37 -05:00
parent 3657b8de60
commit ceffd1869a
17 changed files with 554 additions and 110 deletions

27
configure.ac Normal file
View File

@@ -0,0 +1,27 @@
AC_INIT([petri], [0.1.0])
AC_CONFIG_SRCDIR([petri.scm])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_PROG_AR
LT_INIT([shared disable-static])
AC_PROG_CC
AC_CONFIG_FILES([
Makefile
libpetri-guile/Makefile
])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
GUILE_PKG
GUILE_PROGS
GUILE_SITE_DIR
GUILE_FLAGS
AC_SUBST([GUILE_SITE])
AC_SUBST([GUILE_SITE_CCACHE])
AC_SUBST([GUILE_EXTENSION])
AC_OUTPUT