From 1cee02c55c70813b509cb8fde9d25e0151ee317c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 24 May 2000 07:29:16 +0000 Subject: [PATCH] avoid mutually exclusive options causing long Makefile.in lines: simplify the logic --- configure.in | 1 + source/Makefile.am | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.in b/configure.in index 7dcf6bb..d31cb07 100644 --- a/configure.in +++ b/configure.in @@ -588,6 +588,7 @@ fi AM_CONDITIONAL(CDTYPE_WIN32, test "$CDTYPE" = "WIN32") AM_CONDITIONAL(CDTYPE_LINUX, test "$CDTYPE" = "LINUX") +AM_CONDITIONAL(CDTYPE_NULL, test "$CDTYPE" != "WIN32" -a "$CDTYPE" != "LINUX") dnl ================================================================== diff --git a/source/Makefile.am b/source/Makefile.am index f2e61a8..363a80f 100644 --- a/source/Makefile.am +++ b/source/Makefile.am @@ -22,25 +22,23 @@ EXTRA_libqfsys_sv_a_SOURCES = sv_sys_unix.c sv_sys_win.c sys_win.c sys_unix.c fn if SNDTYPE_WIN32 libqfsnd_a_SOURCES = snd_win.c -else +endif if SNDTYPE_OSS libqfsnd_a_SOURCES = snd_oss.c -else +endif if SNDTYPE_ALSA libqfsnd_a_SOURCES = snd_alsa.c endif -endif -endif EXTRA_libqfsnd_a_SOURCES = snd_win.c snd_oss.c snd_alsa.c if CDTYPE_WIN32 libqfcd_a_SOURCES = cd_win.c -else +endif if CDTYPE_LINUX libqfcd_a_SOURCES = cd_linux.c -else -libqfcd_a_SOURCES = cd_null.c endif +if CDTYPE_NULL +libqfcd_a_SOURCES = cd_null.c endif EXTRA_libqfcd_a_SOURCES = cd_win.c cd_linux.c cd_null.c