Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
/ veriwell Public archive

Commit

Permalink
fixed build issues on ppc osx platforms when bz2 and z libs aren't
Browse files Browse the repository at this point in the history
present
  • Loading branch information
markhummel committed Oct 2, 2005
1 parent 554aae2 commit 0e97d35
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 16 deletions.
9 changes: 9 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -20219,6 +20219,15 @@ if test X"$ac_cv_enable_lxt" = Xyes; then
exit 1;
fi
fi
if test X"$ac_cv_enable_lxt2" = Xyes; then
if test X"$ac_cv_lib_z_gzwrite" = Xno; then
echo ""
echo "*** Error: libz not found. lxt2 waveform dumping"
echo " cannot be built. Rerun configure with --disable-lxt2."
echo ""
exit 1;
fi
fi


echo "$as_me:$LINENO: checking for a readline compatible library" >&5
Expand Down
9 changes: 9 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ if test X"$ac_cv_enable_lxt" = Xyes; then
exit 1;
fi
fi
if test X"$ac_cv_enable_lxt2" = Xyes; then
if test X"$ac_cv_lib_z_gzwrite" = Xno; then
echo ""
echo "*** Error: libz not found. lxt2 waveform dumping"
echo " cannot be built. Rerun configure with --disable-lxt2."
echo ""
exit 1;
fi
fi

VL_LIB_READLINE
if test ! "$HAVE_LIBREADLINE" = 1; then
Expand Down
6 changes: 3 additions & 3 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ EXTRA_DIST = veriwell.1
man_MANS = veriwell.1

if USE_HELP2MAN
veriwell.1: $(top_builddir)/src/veriwell
help2man -N $< > $@
veriwell.1: $(top_srcdir)/src/veriwell.cc
help2man -N $(top_builddir)/src/veriwell > $@
endif

DISTCLEANFILES = veriwell.1
#DISTCLEANFILES = veriwell.1
MAINTAINERCLEANFILES = Makefile.in
8 changes: 4 additions & 4 deletions doc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
EXTRA_DIST = veriwell.1
man_MANS = veriwell.1
DISTCLEANFILES = veriwell.1

#DISTCLEANFILES = veriwell.1
MAINTAINERCLEANFILES = Makefile.in
all: all-am

Expand Down Expand Up @@ -309,7 +310,6 @@ clean-generic:

distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)

maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
Expand Down Expand Up @@ -375,8 +375,8 @@ uninstall-man: uninstall-man1
uninstall-man1


@[email protected]: $(top_builddir)/src/veriwell
@USE_HELP2MAN_TRUE@ help2man -N $< > $@
@[email protected]: $(top_srcdir)/src/veriwell.cc
@USE_HELP2MAN_TRUE@ help2man -N $(top_builddir)/src/veriwell > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
4 changes: 3 additions & 1 deletion lxt/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
if USE_LXT
LXTSOURCE=lxt.c lxt_write.c lxt_write.h
LXTLIB = liblxt.la
endif
if USE_LXT2
LXT2SOURCE=lxt2.c lxt2_write.c lxt2_write.h
LXTLIB = liblxt.la
endif
noinst_LTLIBRARIES = liblxt.la
noinst_LTLIBRARIES = $(LXTLIB)

liblxt_la_SOURCES = $(LXTSOURCE) $(LXT2SOURCE)
liblxt_la_LDFLAGS = -version-info 0:0:0
Expand Down
8 changes: 6 additions & 2 deletions lxt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ am__liblxt_la_SOURCES_DIST = lxt.c lxt_write.c lxt_write.h lxt2.c \
@USE_LXT2_TRUE@am__objects_2 = lxt2.lo lxt2_write.lo
am_liblxt_la_OBJECTS = $(am__objects_1) $(am__objects_2)
liblxt_la_OBJECTS = $(am_liblxt_la_OBJECTS)
@USE_LXT2_TRUE@am_liblxt_la_rpath =
@USE_LXT_TRUE@am_liblxt_la_rpath =
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__depfiles_maybe = depfiles
Expand Down Expand Up @@ -178,8 +180,10 @@ sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
@USE_LXT_TRUE@LXTSOURCE = lxt.c lxt_write.c lxt_write.h
@USE_LXT2_TRUE@LXTLIB = liblxt.la
@USE_LXT_TRUE@LXTLIB = liblxt.la
@USE_LXT2_TRUE@LXT2SOURCE = lxt2.c lxt2_write.c lxt2_write.h
noinst_LTLIBRARIES = liblxt.la
noinst_LTLIBRARIES = $(LXTLIB)
liblxt_la_SOURCES = $(LXTSOURCE) $(LXT2SOURCE)
liblxt_la_LDFLAGS = -version-info 0:0:0
AM_CFLAGS = -I $(top_srcdir)/src
Expand Down Expand Up @@ -228,7 +232,7 @@ clean-noinstLTLIBRARIES:
rm -f "$${dir}/so_locations"; \
done
liblxt.la: $(liblxt_la_OBJECTS) $(liblxt_la_DEPENDENCIES)
$(LINK) $(liblxt_la_LDFLAGS) $(liblxt_la_OBJECTS) $(liblxt_la_LIBADD) $(LIBS)
$(LINK) $(am_liblxt_la_rpath) $(liblxt_la_LDFLAGS) $(liblxt_la_OBJECTS) $(liblxt_la_LIBADD) $(LIBS)

mostlyclean-compile:
-rm -f *.$(OBJEXT)
Expand Down
7 changes: 6 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
if USE_LXT
ZLIB=-lz
BZ2LIB=-lbz2
LIBLXT = $(top_builddir)/lxt/liblxt.la
endif
if USE_LXT2
ZLIB=-lz
LIBLXT = $(top_builddir)/lxt/liblxt.la
endif
nobase_include_HEADERS = veriuser.h acc_user.h veriuser.c

Expand Down Expand Up @@ -33,7 +38,7 @@ libveriwell_la_SOURCES = parse.yy sdfparse.yy sdfcpars.yy multdiv.cc \
systask.h timescal.h trace.h tree.h udp.h usertask.h \
verisys.h veriuser.h veriwell.h v.h vtypes.h tree.def
libveriwell_la_LDFLAGS = -version-info 0:0:0
libveriwell_la_LIBADD = $(top_builddir)/lxt/liblxt.la $(top_builddir)/replace/libreplace.la
libveriwell_la_LIBADD = $(LIBLXT) $(top_builddir)/replace/libreplace.la

AM_YFLAGS = -y -d

Expand Down
16 changes: 11 additions & 5 deletions src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
"$(DESTDIR)$(includedir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
libveriwell_la_DEPENDENCIES = $(top_builddir)/lxt/liblxt.la \
@USE_LXT2_FALSE@@USE_LXT_TRUE@am__DEPENDENCIES_1 = \
@USE_LXT2_FALSE@@USE_LXT_TRUE@ $(top_builddir)/lxt/liblxt.la
@USE_LXT2_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/lxt/liblxt.la
libveriwell_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/replace/libreplace.la
am_libveriwell_la_OBJECTS = parse.lo sdfparse.lo sdfcpars.lo \
multdiv.lo print.lo usertask.lo flags.lo store.lo nsched.lo \
Expand All @@ -77,9 +80,9 @@ binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
PROGRAMS = $(bin_PROGRAMS)
am_veriwell_OBJECTS = defaultveriuser.$(OBJEXT)
veriwell_OBJECTS = $(am_veriwell_OBJECTS)
am__DEPENDENCIES_1 =
veriwell_DEPENDENCIES = libveriwell.la $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
am__DEPENDENCIES_2 =
veriwell_DEPENDENCIES = libveriwell.la $(am__DEPENDENCIES_2) \
$(am__DEPENDENCIES_2)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__depfiles_maybe = depfiles
Expand Down Expand Up @@ -215,8 +218,11 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
@USE_LXT2_TRUE@ZLIB = -lz
@USE_LXT_TRUE@ZLIB = -lz
@USE_LXT_TRUE@BZ2LIB = -lbz2
@USE_LXT2_TRUE@LIBLXT = $(top_builddir)/lxt/liblxt.la
@USE_LXT_TRUE@LIBLXT = $(top_builddir)/lxt/liblxt.la
nobase_include_HEADERS = veriuser.h acc_user.h veriuser.c
veriwell_SOURCES = defaultveriuser.cc
veriwell_LDADD = $(vl_cv_lib_readline) libveriwell.la $(ZLIB) $(BZ2LIB)
Expand All @@ -242,7 +248,7 @@ libveriwell_la_SOURCES = parse.yy sdfparse.yy sdfcpars.yy multdiv.cc \
verisys.h veriuser.h veriwell.h v.h vtypes.h tree.def

libveriwell_la_LDFLAGS = -version-info 0:0:0
libveriwell_la_LIBADD = $(top_builddir)/lxt/liblxt.la $(top_builddir)/replace/libreplace.la
libveriwell_la_LIBADD = $(LIBLXT) $(top_builddir)/replace/libreplace.la
AM_YFLAGS = -y -d
BUILT_SOURCES = build.h
CLEANFILES = build.h
Expand Down

0 comments on commit 0e97d35

Please sign in to comment.