GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PDL::DEV (3)

.ds Aq ’

NAME

PDL::Core::Dev - PDL development module

CONTENTS

DESCRIPTION

This module encapsulates most of the stuff useful for PDL development and is often used from within Makefile.PL’s.

SYNOPSIS



   use PDL::Core::Dev;



FUNCTIONS

    isbigendian

Is the machine big or little endian?



  print "Your machins is big endian.\n" if isbigendian();



returns 1 if the machine is big endian, 0 if little endian, or dies if neither. It uses the byteorder element of perl’s %Config array.



   my $retval = isbigendian();



    trylink

a perl configure clone



  if (trylink libGL, , char glBegin(); glBegin();, -lGL) {
    $libs = -lGLU -lGL;
    $have_GL = 1;
  } else {
    $have_GL = 0;
  }
  $maybe =
    trylink libwhatever, $inc, $body, $libs, $cflags,
        {MakeMaker=>1, Hide=>0, Clean=>1};



Try to link some C-code making up the body of a function with a given set of library specifiers

return 1 if successful, 0 otherwise



   trylink $infomsg, $include, $progbody, $libs [,$cflags,{OPTIONS}];



Takes 4 + 2 optional arguments.
o an informational message to print (can be empty)
o any commands to be included at the top of the generated C program (typically something like #include "mylib.h")
o the body of the program (in function main)
o library flags to use for linking. Preprocessing by MakeMaker should be performed as needed (see options and example).
o compilation flags. For example, something like -I/usr/local/lib. Optional argument. Empty if omitted.
o OPTIONS
MakeMaker Preprocess library strings in the way MakeMaker does things. This is advisable to ensure that your code will actually work after the link specs have been processed by MakeMaker.
Hide Controls if linking output etc is hidden from the user or not. On by default except within the build of the PDL distribution where the config value set in perldl.conf prevails.
Clean Remove temporary files. Enabled by default. You might want to switch it off during debugging.

    datatypes_switch

prints on STDOUT XS text for Core.xs.

    generate_core_flags

prints on STDOUT XS text with core flags, for Core.xs.

    generate_badval_init

prints on STDOUT XS text with badval initialisation, for Core.xs.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DEV (3) 2015-10-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.