From 9547d3a190e933173ff2015dc63aab498dcba130 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 26 Nov 2002 21:45:28 +0000 Subject: [PATCH] Automake conditional to control perlread.c. Perl disabled by default. --- configure.in | 6 ++++-- recctrl/Makefile.am | 12 ++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index c940861..6a49836 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Zebra, Index Data Aps, 1995-2002 -dnl $Id: configure.in,v 1.58 2002-11-26 20:15:44 adam Exp $ +dnl $Id: configure.in,v 1.59 2002-11-26 21:45:28 adam Exp $ dnl AC_INIT(include/zebraver.h) AM_INIT_AUTOMAKE(idzebra,1.3.4) @@ -195,7 +195,8 @@ if test "$expat" != "no"; then fi dnl dnl ------ PERL -perl=yes +AM_CONDITIONAL(perl,false) +perl=no PERL_XS_INIT="NULL" PERL_XS_INIT_INCLUDE='' PERL_BINARY="" @@ -255,6 +256,7 @@ if test "$perl" != "no"; then ZPERL_LIBS="$LIBS" CFLAGS="$PERL_CFLAGS $CFLAGS" LIBS="$PERL_LIBS $LIBS" + AM_CONDITIONAL(perl,true) else AC_DEFINE(HAVE_PERL,0) AC_MSG_RESULT(Not found) diff --git a/recctrl/Makefile.am b/recctrl/Makefile.am index 5c93407..2b2335f 100644 --- a/recctrl/Makefile.am +++ b/recctrl/Makefile.am @@ -1,7 +1,15 @@ -## $Id: Makefile.am,v 1.5 2002-11-15 21:26:01 adam Exp $ +## $Id: Makefile.am,v 1.6 2002-11-26 21:45:29 adam Exp $ noinst_LIBRARIES = librecctrl.a +if perl +PERLREAD=perlread.c +else +PERLREAD= +endif + librecctrl_a_SOURCES = recctrl.c recgrs.c sgmlread.c regxread.c \ - marcread.c rectext.c grsread.h recgrs.h rectext.h xmlread.c perlread.c + marcread.c rectext.c grsread.h recgrs.h rectext.h xmlread.c \ + $(PERLREAD) + INCLUDES = -I$(srcdir)/../include @YAZINC@ $(TCL_INCLUDE) -- 1.7.10.4