perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Gunton <n...@nilspace.com>
Subject Re: ANNOUNCE: Embperl-2.5.0_2
Date Tue, 11 Sep 2012 04:40:31 GMT
richter@ecos.de wrote:
> P.S. Httpd binary. You need to figure out if the httpd binary is stored in Apache:::BuildConfig,
than we can use it inside Makefile.PL

Ok, I eventually found it - actually it's Apache2::Config. I wrote this 
little script to get everything:

#!/usr/bin/perl -w
use strict;
use Apache2::BuildConfig;
my $config = Apache2::BuildConfig->new;
while (my ($key, $value) = each %$config)
{
     print "$key => $value\n";
}
1;

... and the output was as follows:

APXS_EXTRA_CPPFLAGS => -D_REENTRANT -D_GNU_SOURCE
MP_USE_DSO => 1
APXS_INCLUDEDIR => /usr/local/httpd_perl/include
cwd => /usr/src/mod_perl
MODPERL_CPPRUN => cc -E
MP_GENERATE_XS => 1
MODPERL_RANLIB => :
libpth => ARRAY(0x1461198)
MODPERL_LIB_DSO => mod_perl.so
APXS_BINDIR => /usr/local/httpd_perl/bin
MODPERL_PRIVLIBEXP => /usr/share/perl/5.14
MODPERL_LIB_STATIC => mod_perl.a
MODPERL_MAKEFILE => Makefile
MODPERL_LDDLFLAGS => -shared -L/usr/local/lib -fstack-protector
MODPERL_CCOPTS =>  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector 
-fno-strict-aliasing -pipe -I/usr/local/include 
-I/usr/lib/perl/5.14/CORE -DMOD_PERL -DMP_COMPAT_1X
MODPERL_INC => -I/usr/src/mod_perl/src/modules/perl 
-I/usr/src/mod_perl/xs -I/usr/local/httpd_proxy/include 
-I/usr/local/httpd_proxy/include  -I/usr/local/httpd_perl/include
XS => HASH(0x1443998)
MODPERL_LIBNAME => mod_perl
apr_config_path => /usr/local/httpd_proxy/bin/apr-1-config
MODPERL_LIB_EXT => .a
MP_APR_LIB => aprext
MODPERL_TEST_F => test -f
Use of uninitialized value $value in concatenation (.) or string at 
/home/neil/bin/test.pl line 10.
dir =>
MODPERL_MV => mv
MODPERL_LDOPTS => -Wl,-E  -fstack-protector -L/usr/local/lib 
-L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
file_makefile => src/modules/perl/Makefile
MODPERL_PERLPATH => /usr/bin/perl
MODPERL_CC => cc
MODPERL_CCCDLFLAGS => -fPIC
MODPERL_AP_LIBEXECDIR => /usr/local/httpd_perl/modules
APXS_NOTEST_CPPFLAGS =>
APXS_APR_BINDIR => /usr/local/httpd_proxy/bin
APXS_EXTRA_CFLAGS => -g -O2 -pthread
MODPERL_AR => ar
MODPERL_OBJ_EXT => .o
ap_includedir => /usr/local/httpd_perl/include
MODPERL_O_FILES => mod_perl.o modperl_interp.o modperl_tipool.o 
modperl_log.o modperl_config.o modperl_cmd.o modperl_options.o 
modperl_callback.o modperl_handler.o modperl_gtop.o modperl_util.o 
modperl_io.o modperl_io_apache.o modperl_filter.o modperl_bucket.o 
modperl_mgv.o modperl_pcw.o modperl_global.o modperl_env.o modperl_cgi.o 
modperl_perl.o modperl_perl_global.o modperl_perl_pp.o modperl_sys.o 
modperl_module.o modperl_svptr_table.o modperl_const.o 
modperl_constants.o modperl_apache_compat.o modperl_error.o 
modperl_debug.o modperl_common_util.o modperl_common_log.o 
modperl_hooks.o modperl_directives.o modperl_flags.o modperl_xsinit.o 
modperl_exports.o
MODPERL_O_PIC_FILES => mod_perl.lo modperl_interp.lo modperl_tipool.lo 
modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo 
modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo 
modperl_io.lo modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo 
modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo 
modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo 
modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo 
modperl_constants.lo modperl_apache_compat.lo modperl_error.lo 
modperl_debug.lo modperl_common_util.lo modperl_common_log.lo 
modperl_hooks.lo modperl_directives.lo modperl_flags.lo 
modperl_xsinit.lo modperl_exports.lo
MP_APXS => /usr/local/httpd_perl/bin/apxs
MODPERL_AP_INCLUDEDIR => /usr/local/httpd_perl/include
apr_bindir => /usr/local/httpd_proxy/bin
MODPERL_RM => rm
file_ldopts => src/modules/perl/ldopts
APXS_APU_BINDIR => /usr/local/httpd_proxy/bin
MODPERL_ARCHLIBEXP => /usr/lib/perl/5.14
MODPERL_XSUBPP => $(MODPERL_PERLPATH) 
$(MODPERL_PRIVLIBEXP)/ExtUtils/xsubpp -typemap 
$(MODPERL_PRIVLIBEXP)/ExtUtils/typemap -typemap 
/usr/src/mod_perl/lib/typemap
MODPERL_RM_F => rm -f
file_build_config => lib/Apache2/BuildConfig.pm
httpd_version => HASH(0x14610c0)
MP_COMPAT_1X => 1
apr_config => HASH(0x1460f88)
MODPERL_C_FILES => mod_perl.c modperl_interp.c modperl_tipool.c 
modperl_log.c modperl_config.c modperl_cmd.c modperl_options.c 
modperl_callback.c modperl_handler.c modperl_gtop.c modperl_util.c 
modperl_io.c modperl_io_apache.c modperl_filter.c modperl_bucket.c 
modperl_mgv.c modperl_pcw.c modperl_global.c modperl_env.c modperl_cgi.c 
modperl_perl.c modperl_perl_global.c modperl_perl_pp.c modperl_sys.c 
modperl_module.c modperl_svptr_table.c modperl_const.c 
modperl_constants.c modperl_apache_compat.c modperl_error.c 
modperl_debug.c modperl_common_util.c modperl_common_log.c 
modperl_hooks.c modperl_directives.c modperl_flags.c modperl_xsinit.c 
modperl_exports.c
MP_LIBNAME => mod_perl
apu_config_path => /usr/local/httpd_proxy/bin/apu-1-config
MODPERL_H_FILES => mod_perl.h modperl_interp.h modperl_tipool.h 
modperl_log.h modperl_config.h modperl_cmd.h modperl_options.h 
modperl_callback.h modperl_handler.h modperl_gtop.h modperl_util.h 
modperl_io.h modperl_io_apache.h modperl_filter.h modperl_bucket.h 
modperl_mgv.h modperl_pcw.h modperl_global.h modperl_env.h modperl_cgi.h 
modperl_perl.h modperl_perl_global.h modperl_perl_pp.h modperl_sys.h 
modperl_module.h modperl_svptr_table.h modperl_const.h 
modperl_constants.h modperl_apache_compat.h modperl_error.h 
modperl_debug.h modperl_common_util.h modperl_common_log.h 
modperl_perl_unembed.h modperl_types.h modperl_time.h 
modperl_apache_includes.h modperl_perl_includes.h modperl_apr_includes.h 
modperl_apr_compat.h modperl_common_includes.h modperl_common_types.h 
modperl_hooks.h modperl_directives.h modperl_flags.h modperl_trace.h 
modperl_largefiles.h
MODPERL_CP => cp
MODPERL_LIB_SHARED => mod_perl.so
apr_includedir => /usr/local/httpd_proxy/include
MODPERL_DLEXT => so
httpd_is_source_tree =>
MP_USE_STATIC => 0
MODPERL_OPTIMIZE => -O2 -g
MODPERL_LIB => mod_perl.so
MODPERL_AP_LIBS =>
API_VERSION => 2
MODPERL_LD => cc
APXS_LIBEXECDIR => /usr/local/httpd_perl/modules
VERSION => 2.0.7

... and I don't see anything in there saying what the Apache binary 
executable is called (for me it's in 
/usr/local/httpd_perl/bin/httpd_perl). So I guess that means it wouldn't 
be possible for your make script to pick it up, if this is its only 
source of information about the installation. No worries, it was just a 
thought, if it ain't there then it ain't there.

Thanks,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message