-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathconfigure.ac
More file actions
26 lines (20 loc) · 877 Bytes
/
configure.ac
File metadata and controls
26 lines (20 loc) · 877 Bytes
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
AC_PREREQ([2.69])
AC_INIT([datetime-fortran], [1.7.1])
AC_CONFIG_SRCDIR([src/datetime_module.f90])
# foreign flag tells that we are not conforming to the GNU standards
# and hence can ommit NEWS, README, COPYING
AM_INIT_AUTOMAKE([foreign])
# for package configuration
PKG_PROG_PKG_CONFIG
PKG_INSTALLDIR
AC_PROG_FC([gfortran], [Fortran 90]) # we need a Fortran 90 compiler
# If we are using gfortran, but user hasn't set FCFLAGS for 'configure'
# then override autotool defaults
AS_IF([test x$FC = xgfortran -a x$ac_cv_env_FCFLAGS_set = x],
AC_SUBST([FCFLAGS], ["-Wall"])
[# Set some flags automatically if using gfortran])
AC_PROG_RANLIB # needed to create libraries
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
# Generate a PC file so that others can easily detect our libraries:
AC_CONFIG_FILES([datetime-fortran.pc:datetime-fortran.pc.in])
AC_OUTPUT