-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
executable file
·53 lines (40 loc) · 1.04 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
51
52
53
# Initialize
AC_INIT([readgraphmllib], [1.0])
AM_PROG_AR
LT_INIT
AC_CONFIG_MACRO_DIR([m4])
# Generate the Makefile
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_LANG(C)
AC_PROG_FC(FC)
PKG_PROG_PKG_CONFIG([])
PKG_INSTALLDIR([])
# Generate config
AC_CONFIG_HEADERS([config.h])
AC_SUBST(CFLAGS)
AC_SUBST(AM_CFLAGS)
AC_SUBST(AM_CPPFLAGS)
AC_SUBST(AM_LDFLAGS)
# Generate Makefile from Makefile.in
AC_CONFIG_FILES([Makefile])
# Done
AC_OUTPUT
echo \
"-------------------------------------------------
${PACKAGE_NAME} Version ${PACKAGE_VERSION}
Prefix ........: ${prefix}
CC ............: ${CC}
FC ............: ${FC}
CPPFLAGS ......: ${CPPFLAGS}
CFLAGS ........: ${CFLAGS}
FCFLAGS........: ${FCFLAGS}
FC ............: ${FC}
FCLAGS ........: ${FCFLAGS}
LDFLAGS .......: ${LDFLAGS}
LIBS ..........: ${LIBS}
Now type 'make @<:@<target>@:>@'
where the optional <target> is:
all - build C library and Fortran binding
check - run unit tests
install - install the library
--------------------------------------------------"