Authen-ACE4

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

    # 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";
    }
    elsif ($sd_version == 6)
    {
	# For V 6.0:
	$acedir = '/opt/ace/ACEAgentSDK';
	$libs = ["-L$acedir/lib/sol -laceclnt -lpthread"];
	$libs = ["-L$acedir/lib/lnx -laceclnt"] if $Config{archname} =~ /linux/;
	$inc = "-I$acedir/inc";
    }
    elsif  ($sd_version == 8)
    {
	$acedir = '/opt/ace/ACEAgentSDK';
	if ($Config{archname} =~ /64/)
	{
	    $libs = ["-L$acedir/lib/64bit/sol_x86/release -laceclnt -lpthread"];
	    $libs = ["-L$acedir/lib/64bit/sparc/release -laceclnt -lpthread"] if $Config{archname} =~ /sun4/;
	    $libs = ["-L$acedir/lib/64bit/lnx/release -laceclnt"] if $Config{archname} =~ /linux/;
	}
	else
	{
	    $libs = ["-L$acedir/lib/32bit/sol_x86/release -laceclnt -lpthread"];
	    $libs = ["-L$acedir/lib/32bit/sparc/release -laceclnt -lpthread"] if $Config{archname} =~ /sun4/;
	    $libs = ["-L$acedir/lib/32bit/lnx/release -laceclnt"] if `uname` =~ /Linux/;
	}
	$inc = "-I$acedir/inc";
    }
    else
    {
	die "unsupported Unix SDK version $sd_version";
    }
    $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,
    'EXE_FILES'    => $exe,
    ($] ge '5.005') ? 
	       (
	        'AUTHOR'   => 'Open System Consultants, Mike McCauley (mikem@open.com.au)',
	        'ABSTRACT' => 'Access to SecurID ACE version 4 and up',
	        ) : (),
);




( run in 0.920 second using v1.01-cache-2.11-cpan-b16cb0d3907 )