Skip to content

Commit

Permalink
Build dance continues.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 28, 2002
1 parent 6fd6e1e commit a5b01bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
15 changes: 13 additions & 2 deletions configure.in
Expand Up @@ -57,7 +57,8 @@ AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
LIBTOOL="libtool"
AM_PROG_LIBTOOL
AC_CHECK_PROG(we_have_sed, sed, yes, no)

dnl ---------------------------------------------------------------------
Expand Down Expand Up @@ -234,9 +235,19 @@ AC_CHECK_FUNCS([memset strrchr])
dnl Add Makefile conditionals
AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
AM_CONDITIONAL(BUILD_BEOS_CPP, test x$this_is_beos = xyes)
AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)

if test x$this_is_beos = xyes; then
BUILD_BEOS_CPP=beos.cpp
BUILD_BEOS_EXTRA=
else
BUILD_BEOS_CPP=
BUILD_BEOS_EXTRA=beos.cpp
fi

AC_SUBST([BUILD_BEOS_CPP])
AC_SUBST([BUILD_BEOS_EXTRA])

LDFLAGS="$LDFLAGS -no-undefined"

AC_OUTPUT([
Expand Down
17 changes: 2 additions & 15 deletions platform/Makefile.am
Expand Up @@ -2,28 +2,15 @@ noinst_LTLIBRARIES = libplatform.la

INCLUDES = -I$(top_srcdir)

if BUILD_BEOS_CPP
BEOS_SRC = beos.cpp
else
BEOS_SRC =
endif

if !BUILD_BEOS_CPP
BEOS_EXTRA = beos.cpp
else
BEOS_EXTRA =
endif


libplatform_la_SOURCES = \
unix.c \
posix.c \
$(BEOS_SRC)
@BUILD_BEOS_CPP@


EXTRA_DIST = \
skeleton.c \
macclassic.c \
win32.c \
$(BEOS_EXTRA)
@BUILD_BEOS_EXTRA@

0 comments on commit a5b01bc

Please sign in to comment.