|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: locating Perl's header files?
|
On May 30, Kyle R. Burton wrote:
> I'm trying to build an extension wrapper using SWIG (we're providing
> interfaces for a library in Perl, as well as Java). For the building
> of the Perl wrapper bit, g++ needs to know where Perl's header files
> are kept (/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE on my
> workstation).
>
> I'd rather not hard-code this into the Makefile, I'd like to ask Perl
> for it somehow. To try to be both version and location independant, if
> possible. I've looked at perldoc Config and it looks promising, as if I
> could just do:
>
> perl -MConfig -e 'print join(" ",@Config{@ARGV}),"\n";' secret-parameter
>
> My problem is that I don't see a setting that represents where Perl put
> it's header files when it was installed.
perl -MConfig -e 'print "$Config{archlibexp}/CORE/\n"'
- Kurt
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|