# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(SBLIM Service Provider, 0.0.1, vcrhonek@redhat.com, cmpi-service) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE 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 Arguments AC_ARG_VAR([PROVIDERDIR],[the directory where the CMPI providers will be installed.]) AC_ARG_VAR([CIMSERVER],[the target CIM server (pegasus|sfcb|openwbem|sniacimom).]) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_LIBTOOL # Check for required CMPI header files (defined in acinclude.m4) CHECK_CMPI # Check for required libraries (defined in acinclude.m4) CHECK_PROVIDERDIR # Check for CIM Server (defined in acinclude.m4) CHECK_CIMSERVER # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([fcntl.h langinfo.h limits.h malloc.h stdlib.h string.h sys/time.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. 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_FUNC_MALLOC AC_FUNC_STAT AC_CHECK_FUNCS([gethostname strcasecmp strchr strdup strstr]) AC_CONFIG_FILES([Makefile]) # Extend CPPFLAGS CPPFLAGS="$CPPFLAGS -D$HW" # Display configuration options echo "-------------------------------------------------------" echo "Configuration for $PACKAGE complete." echo "" echo "The following configuration options have been selected:" echo "CIMSERVER: " $CIMSERVER echo "PROVIDERDIR: " $PROVIDERDIR echo "SYSLOG:" $SYSLOG echo "CPPFLAGS:" $CPPFLAGS echo "-------------------------------------------------------" AC_OUTPUT echo "You may now run make"