Add Autotools setup.

This commit is contained in:
Bård Skaflestad
2010-10-12 14:51:10 +02:00
parent ecc86b8c06
commit 5e45aa6a63
2 changed files with 34 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
#SUBDIRS = test
ACLOCAL_AMFLAGS = -I m4
preprocessdir = $(includedir)/dune/grid/preprocess
preprocess_HEADERS = facetopology.h preprocess.h sparsetable.h \
@@ -13,5 +15,4 @@ libpreprocess_la_SOURCES = facetopology.c uniquepoints.c \
preprocess.c sparsetable.c
include $(top_srcdir)/am/global-rules
## include $(top_srcdir)/am/global-rules

31
configure.ac Normal file
View File

@@ -0,0 +1,31 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_CONFIG_SRCDIR([mxgrdecl.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
LT_INIT
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LIBTOOL
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([float.h limits.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT