forked from CIFASIS/modelicacc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
40 lines (32 loc) · 1.09 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_LANG([C++])
AC_INIT([ModelicaCC], [0.1], [[email protected]])
AC_CONFIG_MACRO_DIR([macros])
m4_include([macros/ax_boost_base.m4])
m4_include([macros/ax_cxx_compile_stdcxx.m4])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AX_CXX_COMPILE_STDCXX(11,noext,optional)
AX_CXX_COMPILE_STDCXX(14,noext,optional)
# Checks for libraries.
AC_LANG([C++])
AC_CHECK_HEADERS([ginac/ginac.h],[],[AC_MSG_ERROR([ModelicaCC needs libginac.])],[])
# Checks for header files.
AX_BOOST_BASE(["1.58"],[], AC_MSG_ERROR([ModelicaCC needs boost library.]))
AC_FUNC_ALLOCA
AC_CHECK_HEADERS([malloc.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([bzero])
AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test -z "$DOXYGEN";
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT