2007-10-26 Thiago Jung Bauermann * configure.ac: Add ADDITIONAL_OBJS variable. * Makefile.in (bid_OBS): New. (libdecnumber_a_OBJS): Add ADDITIONAL_OBJS, remove condition on enable_decimal_float. * configure: Regenerate. Index: libdecnumber/configure.ac =================================================================== --- libdecnumber.orig/configure.ac 2007-10-26 18:15:47.000000000 -0200 +++ libdecnumber/configure.ac 2007-10-26 18:16:02.000000000 -0200 @@ -113,8 +113,16 @@ if test x$enable_decimal_float = xyes -o esac fi +# If BID is being used, additional objects should be linked in. +if test x$enable_decimal_float = xbid; then + ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)" +else + ADDITIONAL_OBJS= +fi + AC_MSG_RESULT($enable_decimal_float) AC_SUBST(enable_decimal_float) +AC_SUBST(ADDITIONAL_OBJS) AC_C_BIGENDIAN Index: libdecnumber/Makefile.in =================================================================== --- libdecnumber.orig/Makefile.in 2007-10-26 18:17:04.000000000 -0200 +++ libdecnumber/Makefile.in 2007-10-26 18:24:59.000000000 -0200 @@ -50,19 +50,18 @@ libdir = @libdir@ localedir = $(datadir)/locale prefix = @prefix@ +ADDITIONAL_OBJS = @ADDITIONAL_OBJS@ + enable_decimal_float= @enable_decimal_float@ INCLUDES = -I$(srcdir) -I. ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) -libdecnumber_a_OBJS = decNumber.o decContext.o \ - decimal32.o decimal64.o decimal128.o +bid_OBJS = bid2dpd_dpd2bid.o host-ieee32.o host-ieee64.o host-ieee128.o -ifeq ($(enable_decimal_float),bid) -libdecnumber_a_OBJS+=bid2dpd_dpd2bid.o host-ieee32.o host-ieee64.o \ - host-ieee128.o -endif +libdecnumber_a_OBJS = decNumber.o decContext.o \ + decimal32.o decimal64.o decimal128.o $(ADDITIONAL_OBJS) libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \ decNumber.c decNumber.h decNumberLocal.h \