From a30d711f12d65b32db027ade5c30d1507ffd97f1 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Wed, 1 Jun 2016 01:08:43 +0200 Subject: add autofoo stuff --- configure.ac | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..23012e9 --- /dev/null +++ b/configure.ac @@ -0,0 +1,34 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT([libbrandt], [0.1], [teichm@net.in.tum.de]) + +AM_INIT_AUTOMAKE([1.15]) + +AC_CONFIG_SRCDIR([smc.c]) +#AC_CONFIG_HEADERS([config.h]) + +# Checks for programs. +AC_PROG_CC_C99 +#AX_APPEND_COMPILE_FLAGS([-std=c99]) + +# Checks for libraries. +AC_SEARCH_LIBS([pari_init], [pari], [], [AC_MSG_ERROR([unable to find the pari_init() function from libpari])]) + +# Checks for header files. +AC_CHECK_HEADER(pari/pari.h, [], [AC_MSG_ERROR([unable to find the pari.h header file from libpari])], []) + +# Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_SIZE_T +AC_TYPE_UINT16_T + +# Checks for library functions. + +# fix std +CC=$(echo "${CC}" | sed 's/-std=gnu99/-std=c99/') +CPP=$(echo "${CC}" | sed 's/-std=gnu99/-std=c99/') + +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT -- cgit v1.2.3