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
|
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT([LCMAPS plugins basic], [1.7.1])
AC_CONFIG_MACRO_DIR([project])
AM_INIT_AUTOMAKE([1.6.3 subdir-objects foreign])
AC_CONFIG_SRCDIR([src/lcmaps_plugins_basic_config.h.in])
# Notices.
AC_COPYRIGHT([Copyright (c) 2004 The EU EGEE Project
See LICENCE file for details
])
AC_REVISION([$Revision: 1.14 $])
#Environment.
WORKDIR=`pwd`
AC_SUBST(WORKDIR)
DISTBIN=$WORKDIR/../../dist
AC_SUBST(DISTBIN)
# Checks for programs.
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AC_PROG_INSTALL
# dlopen library
AC_CHECK_LIB([dl], [dlopen],
[
DL_LIBS=-ldl
AC_SUBST([DL_LIBS])
],
[
AC_MSG_ERROR([cannot find libdl])
])
# ldap header for lcmaps_ldap_enf.mod
AC_CHECK_HEADER([ldap.h],[],
[
AC_MSG_ERROR([cannot find ldap.h])
])
# Set lcmaps variables
AC_LCMAPS_INTERFACE([basic])
if test "x$have_lcmaps_basic_interface" = "xno" ; then
AC_MSG_FAILURE(["no LCMAPS basic interface found"])
fi
# Checks for LCMAPS plugin prototype using LCMAPS CFLAGS
SAVED_CPPFLAGS=$CPPFLAGS
CPPFLAGS=$LCMAPS_CFLAGS
AC_CHECK_HEADERS([lcmaps/lcmaps_plugin_prototypes.h])
CPPFLAGS=$SAVED_CPPFLAGS
AM_CONDITIONAL([NEED_PROTOTYPE],
[test x$ac_cv_header_lcmaps_lcmaps_plugin_prototypes_h != xyes])
# Checks for header files.
AC_CHECK_HEADERS([dirent.h dlfcn.h stdlib.h string.h unistd.h utime.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([malloc realloc setenv strchr strcspn strdup strerror strncasecmp strpbrk strspn strstr strtol utime])
dnl allow the setting of a different path for the plug-ins
dnl Makefiles should set the plugindir to $MODULEDIR.
AC_ARG_WITH([moduledir],
[AS_HELP_STRING([--with-moduledir=path],
[Specify the install location of the plug-ins])],
[
AC_SUBST([MODULEDIR], [$withval])
],
[
AC_SUBST([MODULEDIR], ['${libdir}/lcmaps'])
])
# Find proper shared library extension
eval SHREXT=$shrext_cmds
AC_SUBST(SHREXT)
# Configuration items
AC_CONFIG_HEADERS([src/lcmaps_plugins_basic_config.h])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([doc/Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_OUTPUT
|