From 8cd69cc0f4fab6542abca87398ba3bf0baa003a7 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 19 Mar 2014 17:24:21 -0400 Subject: [PATCH] fix perldir to at least point to install the same place as the code looks for it. Note, on fhs type builds, where prefix is /usr, these files are going to go into /usr/perl, which probably isn't right, but thats where the code looks too, we should do something better for builds that are not in the prefix --- src/mod/languages/mod_perl/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/languages/mod_perl/Makefile.am b/src/mod/languages/mod_perl/Makefile.am index 07fbc80dec..5f42ea5444 100644 --- a/src/mod/languages/mod_perl/Makefile.am +++ b/src/mod/languages/mod_perl/Makefile.am @@ -4,7 +4,7 @@ PERL = perl PERL_LIBDIR =-L`perl -MConfig -e 'print $$Config{archlib}'`/CORE PERL_LIBS =`perl -MConfig -e 'print $$Config{libs}'` -perldir=$(DESTDIR)$(prefix)/perl +perldir=$(prefix)/perl mod_LTLIBRARIES = mod_perl.la perl_LTLIBRARIES = freeswitch.la mod_perl_la_SOURCES = mod_perl.c freeswitch_perl.cpp mod_perl_wrap.cpp perlxsi.c @@ -36,6 +36,6 @@ orig: mod_perl_wrap.cpp @touch .perlok install-data-local: - mkdir -p $(DESTDIR)$(prefix)/perl - $(INSTALL) freeswitch.pm $(DESTDIR)$(prefix)/perl - if [ ! -f $(DESTDIR)$(prefix)/perl/freeswitch.pm ] ; then $(INSTALL) freeswitch.pm $(DESTDIR)$(prefix)/perl ; fi + mkdir -p $(DESTDIR)$(perldir) + $(INSTALL) freeswitch.pm $(DESTDIR)$(perldir) + if [ ! -f $(DESTDIR)$(perldir)/freeswitch.pm ] ; then $(INSTALL) freeswitch.pm $(DESTDIR)$(perldir) ; fi