Mercurial > hg > xmms-sid
comparison configure.ac @ 800:1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
at run-time, but either one can be chosen via --with-/--without- configure
options.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 07 Nov 2012 11:58:46 +0200 |
parents | 3e305ce076e8 |
children | 7a716a3972f3 |
comparison
equal
deleted
inserted
replaced
799:13483b855058 | 800:1fe6005ed58c |
---|---|
95 AC_DEFINE([HAVE_SIDPLAY1]) | 95 AC_DEFINE([HAVE_SIDPLAY1]) |
96 fi | 96 fi |
97 | 97 |
98 | 98 |
99 xs_have_sidplay2_api="" | 99 xs_have_sidplay2_api="" |
100 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2]) | 100 XS_ARG_WITH([sidplayfp], [libSIDPlayFP], [XS_PATH_LIBSIDPLAYFP]) |
101 | 101 |
102 if test "x$xs_have_sidplayfp" = "xyes"; then | 102 if test "x$xs_have_sidplayfp" = "xyes"; then |
103 xs_have_sidplay2_api="(FP)" | 103 xs_have_sidplay2_api="(FP)" |
104 xs_have_sidplay2_lib="yes" | 104 xs_have_sidplay2_lib="yes" |
105 AC_DEFINE([HAVE_SIDPLAY2]) | 105 AC_DEFINE([HAVE_SIDPLAY2]) |
106 AC_DEFINE([HAVE_SIDPLAY2_FP]) | 106 AC_DEFINE([HAVE_SIDPLAY2_FP]) |
107 AC_DEFINE([HAVE_HARDSID_BUILDER]) | 107 AC_DEFINE([HAVE_HARDSID_BUILDER]) |
108 AC_DEFINE([HAVE_RESID_BUILDER]) | 108 AC_DEFINE([HAVE_RESID_BUILDER]) |
109 AC_DEFINE([HAVE_RESID_FP_BUILDER]) | 109 AC_DEFINE([HAVE_RESID_FP_BUILDER]) |
110 | 110 |
111 elif test "x$xs_have_sidplay2" = "xyes"; then | 111 else |
112 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2]) | |
113 if test "x$xs_have_sidplay2" = "xyes"; then | |
112 xs_have_sidplay2_api="(non-COMI)" | 114 xs_have_sidplay2_api="(non-COMI)" |
113 xs_have_sidplay2_lib="yes" | 115 xs_have_sidplay2_lib="yes" |
114 AC_DEFINE([HAVE_SIDPLAY2]) | 116 AC_DEFINE([HAVE_SIDPLAY2]) |
115 | 117 |
116 AC_LANG_PUSH([C++]) | 118 AC_LANG_PUSH([C++]) |
123 if test "x$xs_builders_available" = "xno"; then | 125 if test "x$xs_builders_available" = "xno"; then |
124 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); | 126 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); |
125 fi | 127 fi |
126 | 128 |
127 AC_LANG_POP([C++]) | 129 AC_LANG_POP([C++]) |
130 fi | |
128 fi | 131 fi |
129 | 132 |
130 | 133 |
131 dnl *** | 134 dnl *** |
132 dnl *** Check if we have some emulator library available? | 135 dnl *** Check if we have some emulator library available? |