[ 
https://issues.apache.org/jira/browse/QPID-3009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988532#action_12988532
 ] 

Jose Pedro Oliveira commented on QPID-3009:
-------------------------------------------

A  much better way to check the existence of  the header file perl.h is to use 
the perl archlib directory as the base path:

 *  perl_h_pathname = "$PERL_ARCHLIB/CORE/perl.h"


The following autoconf code should produce the desired results for PERL_INC:
----------
...
AC_CHECK_PROG([PERL], [perl], [perl])

if test -n "$PERL"; then
    PERL_ARCHLIB=`perl -MConfig -e 'print "$Config{archlib}";'`
    AC_CHECK_FILE( ["$PERL_ARCHLIB/CORE/perl.h"],
            [AC_SUBST([PERL_INC], ["$PERL_ARCHLIB/CORE"])] )
fi
...
----------


Variable values in a Fedora 12 i386 system:
----------
checking for perl... perl
checking for "/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/perl.h"... yes
**
* PERL         = perl
* PERL_ARCHLIB = /usr/lib/perl5/5.10.0/i386-linux-thread-multi
* PERL_INC     = /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE
**
----------

Variable values in a Fedora 13 x86_64 system:
----------
checking for perl... perl
checking for "/usr/lib64/perl5/CORE/perl.h"... yes
**
* PERL         = perl
* PERL_ARCHLIB = /usr/lib64/perl5
* PERL_INC     = /usr/lib64/perl5/CORE
**
----------

/jpo

> Perl binding to Qpid messaging
> ------------------------------
>
>                 Key: QPID-3009
>                 URL: https://issues.apache.org/jira/browse/QPID-3009
>             Project: Qpid
>          Issue Type: New Feature
>          Components: C++ Client
>    Affects Versions: 0.8
>         Environment: -
>            Reporter: Hao Chang Yu
>            Assignee: Ted Ross
>             Fix For: 0.8
>
>         Attachments: QPID-3009.diff, qpid_perl.patch
>
>
> As we need to use perl programs to send amqp messages but there is no perl 
> version of qpid messaging.
> Therefore, I had written a perl api to bind with c++ qpid messaging library.  
> This perl api for qpid messaging is developed using swig and is base on qpid 
> 0.8.
> Please see the attached patch file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to