Build dance continues.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 28 Jun 2002 05:59:14 +0000
changeset 302 b6fe2b615045
parent 301 d4125bc24ac8
child 303 cbf97606120f
Build dance continues.
configure.in
platform/Makefile.am
--- a/configure.in	Fri Jun 28 05:51:37 2002 +0000
+++ b/configure.in	Fri Jun 28 05:59:14 2002 +0000
@@ -57,7 +57,8 @@
 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 ---------------------------------------------------------------------
@@ -234,9 +235,19 @@
 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([
--- a/platform/Makefile.am	Fri Jun 28 05:51:37 2002 +0000
+++ b/platform/Makefile.am	Fri Jun 28 05:59:14 2002 +0000
@@ -2,28 +2,15 @@
 
 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@