-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
50 lines (35 loc) · 1.19 KB
/
configure.ac
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
41
42
43
44
45
46
47
48
49
50
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([fpt-dds],[m4_esyscmd_s([git describe --always --abbrev=4 --dirty])],[alexis.paz@gmail.com])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(src/)
# AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_INIT_AUTOMAKE()
# Avoid make to rebuild configure
AM_MAINTAINER_MODE
# To build libraries
AC_PROG_RANLIB
# Set AR
AM_PROG_AR
# Set FCFLAGS and FC
: ${FCFLAGS=""} # Override default (i.e. "-g -O2")
AC_PROG_FC
# Debug options
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],[Turn on debugging]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value "${enableval}" for --enable-debug]) ;;
esac],enable_debug=no)
# Usefull variables to use inside the Makefile.am files
AM_CONDITIONAL([COMPILER_IS_IFORT], [test x"$FC" = xifort])
AM_CONDITIONAL([COMPILER_IS_GFORTRAN], [test x"$FC" = xgfortran])
AM_CONDITIONAL([DEBUG], [test "x$enable_debug" = "xyes"])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
# A precompiler variable
# AC_DEFINE([MYDEFINE],[SOMEVALUE],[Description: Make #define MYDEFINE SOMEVALUE])
AC_OUTPUT