1 dnl Copyright © 2018-2019, 2021 Nick Bowler
3 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 dnl This is free software: you are free to do what the fuck you want to.
5 dnl There is NO WARRANTY, to the extent permitted by law.
7 AC_INIT([slotifier], [1.2], [nbowler@draconx.ca])
8 AC_CONFIG_HEADERS([config.h])
10 AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects dist-xz])
11 AM_SILENT_RULES([yes])
23 m4_include([lib/gnulib.mk])
25 dnl We provide our own makefile rules for gettext. Disable tracing of
26 dnl AM_GNU_GETTEXT to prevent autoreconf from running autopoint, and to
27 dnl prevent automake from growing gratuitous error conditions.
28 m4_traceoff([AM_GNU_GETTEXT])
29 AM_GNU_GETTEXT([external])
35 AS_IF([test x"$dx_cv_libgerbv_lib_found" = x"yes"],
36 [AC_CACHE_CHECK([if libgerbv supports G85 slots], [dx_cv_gerbv_supports_g85],
38 CFLAGS="$CFLAGS $LIBGERBV_CFLAGS"
39 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
42 ], [static int g85_supported@<:@
43 offsetof(gerbv_drill_stats_t, G85) >= 0 ? 1 : -1
44 @:>@;])], [dx_cv_gerbv_supports_g85=yes], [dx_cv_gerbv_supports_g85=no])
45 CFLAGS=$save_CFLAGS])])
47 AS_IF([test x"$dx_cv_gerbv_supports_g85" != x"yes"],
48 [AC_MSG_FAILURE([Your installation of libgerbv appears not to
49 support slots. An updated version of libgerbv is likely required.
50 The latest version may be found at <http://gerbv.geda-project.org/>.
51 m4_newline([DX_LIB_USERFLAG_BLURB([libgerbv])])
52 m4_newline([DX_LIB_PKGCONFIG_BLURB([libgerbv])])
55 AC_CONFIG_TESTDIR([.])
57 AM_CONDITIONAL([HAVE_AUTOTEST], [test x"$dx_cv_autotest_works" = x"yes"])
59 AC_CONFIG_FILES([Makefile])