1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
From: Boyuan Yang <byang@debian.org>
Date: Sun, 24 Apr 2022 10:47:08 -0400
Subject: convert to autotools
---
Makefile.am | 14 ++++++++++++++
configure.ac | 28 ++++++++++++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 Makefile.am
create mode 100644 configure.ac
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..54dfbe0
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,14 @@
+bin_PROGRAMS = grabc
+
+grabc_SOURCES = grabc.c
+
+grabc_CFLAGS = $(X_CFLAGS)
+grabc_LDADD = $(X_LIBS)
+
+EXTRA_DIST = \
+ grabc.pod
+
+man_MANS = grabc.1
+
+grabc.1: grabc.pod
+ pod2man --date="2018-04-16" < $< > $@
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..fa65967
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,28 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
+AC_INIT([grabc], [1.0.2], [https://github.com/muquit/grabc/issues])
+AC_CONFIG_SRCDIR([grabc.c])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([foreign])
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+AC_CHECK_LIB([X11], [XOpenDisplay])
+
+# Checks for header files.
+AC_PATH_XTRA
+AC_CHECK_HEADERS([unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+AC_CHECK_FUNCS([strtol])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
|