Skip to content

Commit

Permalink
added autotools scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tux-mind committed Oct 18, 2015
1 parent 6889d93 commit 64dc09f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin_PROGRAMS = fusemounts
fusemounts_SOURCES = bridge.c bridge.h creator.c creator.h finder.c finder.h main.c
32 changes: 32 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([fusemounts], [1.0], [https://github.com/tux-mind/fusemounts/issues])
AC_CONFIG_SRCDIR([finder.h])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB([m], [pow])

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h], [], \
[AC_MSG_ERROR([missing required headers])])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([pow strchr strdup strstr strtoul], [], \
[AC_MSG_ERROR([missing required headers])])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

0 comments on commit 64dc09f

Please sign in to comment.