source: trunk/third/libole2/configure.ac @ 17442

Revision 17442, 2.6 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17441, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.13)
3AC_INIT(libole2/ms-ole.c)
4
5dnl Set release number
6dnl This is derived from "Versioning" chapter of info libtool documentation.
7PACKAGE=libole2
8dnl     4a) Increment when removing or changing interfaces.
9LIBOLE2_MAJOR_VERSION=0
10dnl     4a) 5) Increment when adding interfaces.
11dnl     6) Set to zero when removing or changing interfaces.
12LIBOLE2_MINOR_VERSION=2
13dnl     3) Increment when interfaces not changed at all,
14dnl               only bug fixes or internal changes made.
15dnl     4b) Set to zero when adding, removing or changing interfaces.
16LIBOLE2_MICRO_VERSION=4
17dnl
18dnl     Set this too (I don't know how to do it automatically =) ):
19MAJOR_VERSION_PLUS_MINOR_VERSION=2
20dnl
21VERSION=$LIBOLE2_MAJOR_VERSION.$LIBOLE2_MINOR_VERSION.$LIBOLE2_MICRO_VERSION
22dnl Version info for libraries = CURRENT:REVISION:AGE
23VERSION_INFO=$MAJOR_VERSION_PLUS_MINOR_VERSION:$LIBOLE2_MICRO_VERSION:$LIBOLE2_MINOR_VERSION
24AC_SUBST(VERSION_INFO)
25AC_SUBST(LIBOLE2_MAJOR_VERSION)
26AC_SUBST(LIBOLE2_MINOR_VERSION)
27AC_SUBST(LIBOLE2_MICRO_VERSION)
28dnl AC_DEFINE_UNQUOTED(VERSION_INFO,"${VERSION_INFO}",Define rev version)
29
30dnl Start automake
31AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
32AM_CONFIG_HEADER(config.h)
33AM_MAINTAINER_MODE
34
35dnl Checks for programs.
36AC_PROG_CC
37AC_PROG_MAKE_SET
38AM_PROG_LIBTOOL
39
40dnl Checks for libraries.
41AM_PATH_GLIB(1.2.0,,,)
42
43dnl Checks for header files.
44dnl AC_CHECK_HEADERS(fcntl.h malloc.h unistd.h)
45
46dnl Checks for typedefs, structures, and compiler characteristics.
47dnl AC_C_CONST
48dnl AC_TYPE_OFF_T
49dnl AC_TYPE_SIZE_T
50dnl AC_TYPE_MODE_T
51
52dnl Checks for library functions.
53dnl AC_HEADER_STDC
54AC_FUNC_MMAP
55
56
57# gtk-doc stuff
58# borrowed from gdk-pixbuf
59
60AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
61AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
62AC_SUBST(HAVE_GTK_DOC)
63
64dnl Let people disable the gtk-doc stuff.
65AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc        Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
66
67if test x$enable_gtk_doc = xauto ; then
68  if test x$GTKDOC = xtrue ; then
69    enable_gtk_doc=yes
70  else
71    enable_gtk_doc=no
72  fi
73fi
74
75dnl NOTE: We need to use a separate automake conditional for this
76dnl       to make this work with the tarballs.
77AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
78
79LIBOLE2_DIR=`(cd $srcdir; pwd)`
80AC_SUBST(LIBOLE2_DIR)
81
82AM_CONDITIONAL(LIBOLE2_PUBLIC_LIBRARY, true)
83AC_OUTPUT(Makefile libole2/Makefile libole2-config libole2/libole2.h \
84        doc/Makefile test/Makefile libole2Conf.sh libole2/version.c  \
85        libole2.spec)
86
87AC_MSG_RESULT([Configured $PACKAGE $VERSION])
Note: See TracBrowser for help on using the repository browser.