2016-06-01 01:08:43 +02:00
|
|
|
# -*- 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])
|
|
|
|
|
2016-06-19 22:37:31 +02:00
|
|
|
AC_CONFIG_SRCDIR([brandt.c])
|
2016-06-01 01:08:43 +02:00
|
|
|
#AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC_C99
|
2016-06-01 09:59:39 +02:00
|
|
|
LT_INIT([pic-only])
|
2016-06-01 01:08:43 +02:00
|
|
|
|
|
|
|
# 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/')
|
|
|
|
|
2016-06-12 00:26:05 +02:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
doc/Makefile
|
|
|
|
])
|
2016-06-01 01:08:43 +02:00
|
|
|
AC_OUTPUT
|