File: configure.ac

package info (click to toggle)
lcmaps-plugins-verify-proxy 1.5.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,012 kB
  • sloc: sh: 11,278; ansic: 3,775; makefile: 113
file content (99 lines) | stat: -rw-r--r-- 2,800 bytes parent folder | download | duplicates (3)
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
#
#       Copyright (c) 2004 on behalf of the EU EGEE Project:
#       The European Organization for Nuclear Research (CERN),
#       Istituto Nazionale di Fisica Nucleare (INFN), Italy
#       Datamat Spa, Italy
#       Centre National de la Recherche Scientifique (CNRS), France
#       CS Systeme d'Information (CSSI), France
#       Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
#       Universiteit van Amsterdam (UvA), Netherlands
#       University of Helsinki (UH.HIP), Finland
#       University of Bergen (UiB), Norway
#       Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
#
#   See ChangeLog
#
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([LCMAPS plugins verify proxy], [1.5.10])
AC_CONFIG_MACRO_DIR([project])
AM_INIT_AUTOMAKE([1.6.3 subdir-objects foreign])
AC_CONFIG_SRCDIR([src/lcmaps_verify_proxy_config.h.in])

# Notices.
AC_COPYRIGHT([Copyright (c) 2004 The EU EGEE Project
See LICENCE file for details
])
AC_REVISION([$Revision: 1.25 $])

#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

# Checks for libraries.
AC_CHECK_LIB([crypto], [X509_free])

# Check LCMAPS location
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

# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_CHECK_FUNCS([setenv strdup strerror strncasecmp strtol])

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'])
])

# Defines to be added for cpp (will change)
ADD_THESE_DEFINES="-DENABLE_LCMAPS_LOGGING"
AC_SUBST(ADD_THESE_DEFINES)

# Find proper shared library extension
eval SHREXT=$shrext_cmds
AC_SUBST(SHREXT)

# Configuration items
AC_CONFIG_HEADERS([src/lcmaps_verify_proxy_config.h])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([src/verify-proxy/Makefile])
AC_CONFIG_FILES([doc/Makefile])
AC_CONFIG_FILES([doc/lcmaps_verify_proxy.mod.8])
AC_CONFIG_FILES([doc/verify-proxy-tool.1])

AC_OUTPUT