Skip to content

Commit

Permalink
transform to autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
mellowcandle committed Apr 20, 2019
1 parent 3edf220 commit 7b0050f
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,14 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf

# Autotools stuff
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
build-aux/
config.status
configure
pre-inst-env

2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ before_install:
- sudo apt-get -qq update

script:
- "./bootstrap.sh"
- "./configure"
- "make"

Empty file added AUTHORS
Empty file.
Empty file added ChangeLog
Empty file.
13 changes: 0 additions & 13 deletions Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin_PROGRAMS=bitwise
bitwise_SOURCES=main.c misc.c interactive.c
Empty file added NEWS
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

autoreconf --verbose --install --force
33 changes: 33 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([bitwise], [0.1], [rfried.dev@gmail.com])
AC_CONFIG_SRCDIR([misc.c])
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lform':
AC_CHECK_LIB([form], [form_driver])
# FIXME: Replace `main' with a function in `-lncurses':
AC_CHECK_LIB([ncurses], [newwin])

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h curses.h form.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_UINT64_T

# Checks for library functions.
AC_FUNC_STRCOLL
AC_CHECK_FUNCS([memchr memmove memset stpcpy strchr strcspn strdup strerror strpbrk strrchr strspn strstr])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

0 comments on commit 7b0050f

Please sign in to comment.