-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
96 lines (73 loc) · 2.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
dnl --------------------------------
dnl Initialization macros.
dnl --------------------------------
AC_PREREQ(2.61)
#AC_INIT([$PACKAGE], [$LIBRARY_VERSION], [https://bugs.launchpad.net/libgexf])
AC_INIT(libgexf/libgexf.h)
AC_CONFIG_SRCDIR([libgexf/libgexf.h])
AC_CONFIG_HEADER([config.h])
dnl -----------------------------------------------
dnl Package name and version number (user defined)
dnl -----------------------------------------------
LIBRARY_NAME=libgexf
PACKAGE=$LIBRARY_NAME
AC_SUBST(LIBRARY_NAME)
#API version (often = GENERIC_MAJOR_VERSION.GENERIC_MINOR_VERSION)
#GENERIC_API_VERSION=1.0
#AC_SUBST(GENERIC_API_VERSION)
#shared library versioning
#GENERIC_LIBRARY_VERSION=1:0:0
# | | |
# +------+ | +---+
# | | |
# current:revision:age
# | | |
# | | +- increment if interfaces have been added
# | | set to zero if interfaces have been removed
# or changed
# | +- increment if source code has changed
# | set to zero if current is incremented
# +- increment if interfaces have been added, removed or changed
LIBRARY_VERSION=0.1.3
AC_SUBST(LIBRARY_VERSION)
AM_INIT_AUTOMAKE($PACKAGE, $LIBRARY_VERSION, no-define)
dnl -----------------------------------------------
dnl Checks for programs.
dnl -----------------------------------------------
AC_PROG_CXX
AC_PROG_CC
dnl -----------------------------------------------
dnl Checks for libraries.
dnl -----------------------------------------------
dnl libxml2 support
AC_PATH_PROG(LIBXML2_CONFIG, xml2-config, no)
if test "x$LIBXML2_CONFIG" = "xno" ; then
AC_MSG_RESULT([*** libxml2 support is not available ***])
else
XML2_CXXFLAGS=`$LIBXML2_CONFIG --cflags`
XML2_LIBS=`$LIBXML2_CONFIG --libs`
have_libxml2="yes"
AC_DEFINE(HAVE_LIBXML2,1,[Define this for libxml2 support])
fi
AM_CONDITIONAL(HAVE_LIBXML2, test x"$have_libxml2" = "xyes")
AC_SUBST(XML2_CXXFLAGS)
AC_SUBST(XML2_LIBS)
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
# Checks for library functions.
AM_PROG_LIBTOOL
AM_SANITY_CHECK
AC_LANG_CPLUSPLUS
dnl -----------------------------------------------
dnl Generates Makefile's, configuration files and scripts
dnl -----------------------------------------------
AM_INIT_AUTOMAKE(libgexf, 0.1.2)
AC_OUTPUT(Makefile \
libgexf/Makefile
)