~ubuntu-branches/ubuntu/trusty/opendrim-lmp-physicalasset/trusty

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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Process this file with autoconf to produce a configure script.

################################################################################
# Linux Management Providers (LMP), Physical Asset provider package
# Copyright (C) 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com>
# 
# This program is being developed under the "OpenDRIM" project.
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#################################################################################

#################################################################################
# To contributors, please leave your contact information in this section
# AND comment your changes in the source code.
# 
# Modified by <Author(s)>, <Affiliation>, <Year>
################################################################################

AC_PREREQ(2.59)
AC_COPYRIGHT([[###############################################################################
Note: This Copyright statement covers the OpenDRIM original parts of this file.
It does NOT concern the parts generated by autoconf.
Linux Management Providers (LMP), PhysicalAsset provider package
Copyright (C) 2007 Guillaume BOTTEX <guillaumebottex@etri.re.kr>

This program is being developed under the "OpenDRIM" project.
The "OpenDRIM" project web page: http://opendrim.sourceforge.net
The "OpenDRIM" project mailing list: opendrim@googlegroups.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
###############################################################################]])

AC_INIT(PhysicalAsset provider package, -, -)
SHOW_COPYRIGHT
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([foreign])

AC_CANONICAL_HOST
case $host_cpu in
     i*86) HW=INTEL;;
     s390*) HW=S390;;
     ppc*) HW=PPC;;
     x86_64) HW=X86_64;;
     ia64) HW=IA64;;
     **) HW=GENERIC;;
esac

# Configuration
AC_ARG_VAR([CIMSERVER],[the target CIM server (pegasus|sfcb|openwbem).])
AC_ARG_VAR([CIMNAMESPACE],[the target CIM namespace (default: root/cimv2)])
AC_ARG_VAR([INTEROPNAMESPACE],[the target interoperability namespace (default: Interop (pegasus and sfcb) or root/Interop (openwbem))])
AC_ARG_VAR([PROVIDERDIR],[the directory where the CMPI providers will be installed.])
AC_ARG_VAR([COMMONLIBDIR],[the directory where the package common libraries will be installed.])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL

# Check for CIM server (defined in acinclude.m4)
CHECK_CIMSERVER

# Check for CIM namespace (defined in acinclude.m4)
CHECK_CIMNAMESPACE

# Check for interoperability namespace (defined in acinclude.m4)
CHECK_INTEROPNAMESPACE

# Check for OpenDRIM Common library (defined in acinclude.m4)
CHECK_OPENDRIMCOMMONLIBRARY

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([pthread.h])

# Check for CMPI headers (defined in acinclude.m4)
CHECK_CMPIHEADERS

# Check for OpenDRIM Common headers (defined in acinclude.m4)
CHECK_OPENDRIMCOMMONHEADERS

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM

AC_CONFIG_FILES([Makefile Common/Makefile OpenDRIM_PhysicalComponent/Makefile OpenDRIM_ConnectedTo/Makefile OpenDRIM_PhysicalFrame/Makefile OpenDRIM_ComputerSystemPackage/Makefile OpenDRIM_Realizes/Makefile OpenDRIM_PhysicalPackageCapacity/Makefile OpenDRIM_ConfigurationCapacity/Makefile OpenDRIM_PhysicalPackage/Makefile OpenDRIM_PhysicalMemory/Makefile OpenDRIM_PhysicalAssetCapabilities/Makefile OpenDRIM_PhysicalElementInConnector/Makefile OpenDRIM_SystemPackaging/Makefile OpenDRIM_Chip/Makefile OpenDRIM_PhysicalAssetCapabilitiesToPhysicalElement/Makefile OpenDRIM_PhysicalAssetRegisteredProfile/Makefile OpenDRIM_Chassis/Makefile OpenDRIM_PhysicalAssetConformsToProfile/Makefile OpenDRIM_PhysicalElementPackage/Makefile OpenDRIM_PhysicalConnector/Makefile OpenDRIM_Rack/Makefile OpenDRIM_Card/Makefile OpenDRIM_Slot/Makefile test/Makefile])

CFLAGS="$CFLAGS -D$HW -DCMPI_PLATFORM_LINUX_GENERIC_GNU -I../Common -I$OPENDRIMCOMMONINCLUDE -I$OPENDRIMCOMMONINCLUDE/cmpi"
CPPFLAGS="$CPPFLAGS -D$HW -DCMPI_PLATFORM_LINUX_GENERIC_GNU -I../Common -I$OPENDRIMCOMMONINCLUDE -I$OPENDRIMCOMMONINCLUDE/cmpi"

echo "-------------------------------------------------------"
echo "CIMSERVER: " $CIMSERVER
echo "PROVIDERDIR: " $PROVIDERDIR
echo "COMMONLIBDIR: " $COMMONLIBDIR
echo "CFLAGS : " $CFLAGS
echo "CXXFLAGS : " $CXXFLAGS
echo "CPPFLAGS:" $CPPFLAGS
echo "-------------------------------------------------------"

AC_OUTPUT

echo "You may now run make"