1
# Copyright (C) 2008, IBM
3
# This program is free software; you can redistribute it and/or
4
# modify it under the terms of the GNU Library General Public License
5
# as published by the Free Software Foundation; either version 2
6
# of the License, or (at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU Library General Public License for more details.
13
# You should have received a copy of the GNU Library General Public
14
# Licence along with this program; if not, see <http://www.gnu.org/licenses/>.
17
# Process this file with autoconf to produce a configure script.
20
AC_INIT([libservicelog],[1.1.14],[hegdevasant@in.ibm.com])
21
AC_CONFIG_SRCDIR([src/servicelog.c])
22
AC_CONFIG_HEADER([src/config.h])
25
GENERIC_LIBRARY_NAME=libservicelog
26
GENERIC_PACKAGE_NAME=servicelog
27
GENERIC_MAJOR_VERSION=1
28
GENERIC_MINOR_VERSION=1
29
GENERIC_MICRO_VERSION=14
30
GENERIC_API_VERSION=$GENERIC_MAJOR_VERSION
31
AC_SUBST(GENERIC_API_VERSION)
33
AC_SUBST(GENERIC_LIBRARY_VERSION)
34
AC_SUBST(GENERIC_PACKAGE_NAME)
36
PACKAGE=$GENERIC_LIBRARY_NAME
37
AC_SUBST(GENERIC_LIBRARY_NAME)
39
GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
40
GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
41
AC_SUBST(GENERIC_RELEASE)
42
AC_SUBST(GENERIC_VERSION)
44
VERSION=$GENERIC_VERSION
46
# Checks for programs.
54
AC_SUBST(LIBTOOL_DEPS)
56
# Checks for libraries.
57
AC_CHECK_LIB([sqlite3], [sqlite3_open], [], [
58
echo "Error! libsqlite3 not found"
60
AC_CHECK_LIB([rtasevent], [parse_rtas_event], [], [
61
echo "Error! librtasevent not found"
63
AC_CHECK_LIB([rtas], [rtas_activate_firmware], [], [
64
echo "Error! librtas not found"
67
# Checks for header files.
69
AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h])
71
# Checks for typedefs, structures, and compiler characteristics.
75
# Checks for library functions.
80
AC_CHECK_FUNCS([memset strerror strtoull uname])
82
AC_CONFIG_FILES([Makefile src/Makefile libservicelog.spec src/servicelog-1.pc])