/usr/local/CPAN/Authen-ACE4/Makefile.PL
# Makefile for Authen-ACE4
#
# Copyright C 2001-2002 Open System Consultants
# Author: Mike McCauley (mikem@open.com.au)
# $Id: Makefile.PL,v 1.2 2004/06/16 01:04:01 mikem Exp mikem $
# On Unix, Set your ACE/Agent version number here. Version 4 has bugs and is deprecated
#$sd_version = 4;
#$sd_version = 5;
$sd_version = 6;
# Adjust these paths to suit your system
if ($^O eq 'MSWin32')
{
# Windows. Assumes the SDK has been installed in C:\ACEAgentSDK
$libs = ['-L"C:\Program Files\Microsoft Visual Studio\VC98\Lib" -LC:\ACEAgentSDK\lib\nt_i386 -laceclnt'];
$inc = '-IC:\ACEAgentSDK\inc',
$define = "-DSD_VERSION=$sd_version",
}
else
{
# Unix. Make sure the paths here match the location where
# you copied the ACEAgentSDK files.
# Something like this for V 4.1
# Note, on Solaris the ACE agent client libs that are supplied
# with ACE/Server 4.1 hang in AceCloseAuth. You need
# a patched version of the libraries from SecurID.
if ($sd_version == 4)
{
$acedir = '/opt/ace/ace4';
$libs = ["-L$acedir/examples/multithread -laceclnt -lpthread"];
$inc = "-I$acedir/examples/multithread -I$acedir/examples";
}
elsif ($sd_version == 5)
{
# For V 5.0:
$acedir = '/opt/ace/ACEAgentSDK';
$libs = ["-L$acedir/lib/sol -laceclnt -lpthread"];
$inc = "-I$acedir/inc -I$acedir";
}
else
{
# For V 6.0:
$acedir = '/opt/ace/ACEAgentSDK';
$libs = ["-L$acedir/lib/sol -laceclnt -lpthread"];
$libs = ["-L$acedir/lib/lnx -laceclnt"] if `uname` =~ /Linux/;
$inc = "-I$acedir/inc";
}
$define = "-DUNIX -DSD_VERSION=$sd_version",
}
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => 'Authen::ACE4',
'VERSION_FROM' => 'ACE4.pm',
'LIBS' => $libs,
'DEFINE' => $define,
'INC' => $inc,
($] ge '5.005') ?
(
'AUTHOR' => 'Open System Consultants, Mike McCauley (mikem@open.com.au)',
'ABSTRACT' => 'Access to SecurID ACE version 4 and up',
) : (),
);