From 34c9a7fdcdf2e5a2505bdc82aa222f9f9966ea7d Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Wed, 2 Jul 2003 08:41:39 +0000 Subject: [PATCH] Only include ffi.d when it is required. Some compilers do not like empty files. --- src/c/Makefile.in | 2 +- src/configure | 1 + src/configure.in | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/c/Makefile.in b/src/c/Makefile.in index 486bea8c7..51bc103a7 100644 --- a/src/c/Makefile.in +++ b/src/c/Makefile.in @@ -43,7 +43,7 @@ OBJS = main.o symbol.o package.o list.o\ time.o unixint.o\ mapfun.o multival.o hash.o format.o pathname.o\ structure.o load.o unixfsys.o unixsys.o \ - all_symbols.o ffi.o @EXTRA_OBJS@ + all_symbols.o @EXTRA_OBJS@ .SUFFIXES: .c .o .d diff --git a/src/configure b/src/configure index 7a633747c..8255ab666 100755 --- a/src/configure +++ b/src/configure @@ -4670,6 +4670,7 @@ if test "${ffi}"; then #define ECL_FFI 1 _ACEOF + EXTRA_OBJS="${EXTRA_OBJS} ffi.o" fi if test "${locative}" ; then EXTRA_OBJS="${EXTRA_OBJS} unify.o" diff --git a/src/configure.in b/src/configure.in index 2125e796d..46a510033 100644 --- a/src/configure.in +++ b/src/configure.in @@ -215,6 +215,7 @@ if test "${closstreams}"; then fi if test "${ffi}"; then AC_DEFINE(ECL_FFI) + EXTRA_OBJS="${EXTRA_OBJS} ffi.o" fi if test "${locative}" ; then EXTRA_OBJS="${EXTRA_OBJS} unify.o"