Add dynamic build support for *bsd and linux.

Originally committed to SVN as r3560.
This commit is contained in:
Amar Takhar 2009-09-26 14:50:24 +00:00
parent c7bbf95c9b
commit 4f01dab280
2 changed files with 15 additions and 1 deletions

View file

@ -61,6 +61,10 @@ case "$target_or_host" in
build_linux="yes" build_linux="yes"
;; ;;
*-*-*bsd*)
build_bsd="yes"
;;
*) *)
build_default="yes" build_default="yes"
;; ;;
@ -96,6 +100,9 @@ fi
# Used for universalchardet. # Used for universalchardet.
AC_AGI_MDCPUCFG($target_or_host) AC_AGI_MDCPUCFG($target_or_host)
AM_CONDITIONAL([BUILD_BSD], [test "$build_bsd" = "yes"])
AM_CONDITIONAL([BUILD_LINUX], [test "$build_linux" = "yes"])
# For conditional file building and options in Makefile(s). # For conditional file building and options in Makefile(s).
AM_CONDITIONAL([BUILD_DARWIN], [test "$build_darwin" = "yes"]) AM_CONDITIONAL([BUILD_DARWIN], [test "$build_darwin" = "yes"])
AM_CONDITIONAL([BUILD_DEFAULT], [test "$build_default" = "yes"]) AM_CONDITIONAL([BUILD_DEFAULT], [test "$build_default" = "yes"])

View file

@ -25,12 +25,19 @@ reporter_SOURCES = \
name_map.cpp \ name_map.cpp \
platform.cpp \ platform.cpp \
platform_unix.cpp \ platform_unix.cpp \
platform_unix_bsd.cpp \
progress.cpp \ progress.cpp \
report.cpp \ report.cpp \
upload.cpp \ upload.cpp \
view.cpp view.cpp
if BUILD_BSD
reporter_SOURCES += platform_unix_bsd.cpp
endif
if BUILD_LINUX
reporter_SOURCES += platform_unix_linux.cpp
endif
reporter_SOURCES += \ reporter_SOURCES += \
*.h \ *.h \