-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.in
122 lines (93 loc) · 3 KB
/
configure.in
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
dnl
dnl
dnl configure.in:
dnl
dnl
dnl $Id:$
dnl
dnl $Log:$
dnl
dnl
dnl
AC_PREREQ(2.13)
AC_INIT(src/xcdbus.c)
AC_PROG_CC
AC_SYS_LARGEFILE
LIBXCDBUS_MAJOR_VERSION=`cat $srcdir/version-major`
LIBXCDBUS_MINOR_VERSION=`cat $srcdir/version-minor`
LIBXCDBUS_MICRO_VERSION=`cat $srcdir/version-micro`
LIBXCDBUS_INTERFACE_VERSION_MIN=$LIBXCDBUS_MINOR_VERSION
LIBXCDBUS_INTERFACE_VERSION_MAX=$LIBXCDBUS_MINOR_VERSION
LIBXCDBUS_INTERFACE_REVISION=1
LIBXCDBUS_VERSION=$LIBXCDBUS_MAJOR_VERSION.$LIBXCDBUS_MINOR_VERSION.$LIBXCDBUS_MICRO_VERSION
AC_SUBST(LIBXCDBUS_MAJOR_VERSION)
AC_SUBST(LIBXCDBUS_MINOR_VERSION)
AC_SUBST(LIBXCDBUS_MICRO_VERSION)
AC_SUBST(LIBXCDBUS_VERSION)
AC_SUBST(LIBXCDBUS_INTERFACE_VERSION_MIN)
AC_SUBST(LIBXCDBUS_INTERFACE_VERSION_MAX)
AC_SUBST(LIBXCDBUS_INTERFACE_REVISION)
LT_RELEASE=$LIBXCDBUS_MAJOR_VERSION.$LIBXCDBUS_MINOR_VERSION
LT_CURRENT=$LIBXCDBUS_INTERFACE_VERSION_MAX
LT_REVISION=$LIBXCDBUS_MICRO_VERSION
LT_AGE=`expr $LIBXCDBUS_INTERFACE_VERSION_MAX - $LIBXCDBUS_INTERFACE_VERSION_MIN`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
VERSION=$LIBXCDBUS_VERSION
PACKAGE=libxcdbus
AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
AM_PROG_LIBTOOL
AM_PROG_CC_C_O
AM_CONFIG_HEADER(src/config.h)
AC_CHECK_PROG(MD5SUM,md5sum,md5sum)
AC_CHECK_PROG(GREP,grep,grep)
AC_CHECK_PROG(SED,sed,sed)
AC_PROG_AWK
dnl AC_DEFINE_UNQUOTED(LIBXCDBUS_MAJOR_VERSION, $LIBXCDBUS_MAJOR_VERSION)
dnl AC_DEFINE_UNQUOTED(LIBXCDBUS_MINOR_VERSION, $LIBXCDBUS_MINOR_VERSION)
dnl AC_DEFINE_UNQUOTED(LIBXCDBUS_MICRO_VERSION, $LIBXCDBUS_MICRO_VERSION)
AC_CHECK_HEADERS(fcntl.h malloc.h sys/ioctl.h unistd.h)
AC_CHECK_HEADERS(sys/scsi/impl/uscsi.h scsi/sg.h stdint.h)
AC_CHECK_HEADERS(sys/int_types.h string.h strings.h)
AC_CHECK_HEADERS(dirent.h sys/stat.h)
AC_C_INLINE
AC_C_CONST
AC_HEADER_TIME
AC_STRUCT_TM
AC_CHECK_FUNCS(select strdup strstr)
PKG_CHECK_MODULES([DBUS],[dbus-1])
PKG_CHECK_MODULES([DBUS_GLIB],[dbus-glib-1])
I2_TM_H=$ac_cv_struct_tm
I2_HAVE_STDINT_H=0
I2_HAVE_SYS_INT_TYPES_H=0
if test "$ac_cv_header_sys_int_types_h" = "yes"; then
I2_HAVE_SYS_INT_TYPES_H=1
fi
if test "$ac_cv_header_stdint_h" = "yes"; then
I2_HAVE_STDINT_H=1
fi
I2_HAVE_UNISTD_H=0
if test "$ac_cv_header_unistd_h" = "yes"; then
I2_HAVE_UNISTD_H=1
fi
AC_SUBST(I2_TM_H)
AC_SUBST(I2_HAVE_STDINT_H)
AC_SUBST(I2_HAVE_SYS_INT_TYPES_H)
AC_SUBST(I2_HAVE_UNISTD_H)
AC_SEARCH_LIBS([event_init], [ev event],
AC_DEFINE([HAVE_LIBEVENT], [1],
[Define if you have libev or libevent]))
AC_ARG_WITH(idldir,AC_HELP_STRING([--with-idldir=PATH],[Path to dbus idl desription files]),
IDLDIR=$with_idldir,IDLDIR=/usr/share/idl)
AC_ARG_WITH(rpcgen-templates,AC_HELP_STRING([--with-rpcgen-templates=PATH],[Path to xc-rpcgen template files]),
RPCGEN_TEMPLATES=$with_rpcgen_templates,RPCGEN_TEMPLATES=)
AC_SUBST(IDLDIR)
AC_SUBST(RPCGEN_TEMPLATES)
AC_CHECK_PROG(XC_RPCGEN,xc-rpcgen,xc-rpcgen)
AC_OUTPUT([Makefile
src/Makefile
src/xcdbus-head.h
libxcdbus.pc.src
libxcdbus-config.src],[chmod +x libxcdbus-config.src])