Mercurial > audlegacy
comparison configure.ac @ 1622:55011fbbd8cb trunk
[svn] - detect what $(SHARED_SUFFIX) should be.
- detect if we are using Apple-GCC.
author | nenolod |
---|---|
date | Wed, 06 Sep 2006 12:57:50 -0700 |
parents | 9becbe564217 |
children | d863bca9b6d7 |
comparison
equal
deleted
inserted
replaced
1621:fae6e0cfcc77 | 1622:55011fbbd8cb |
---|---|
184 if test "x$enable_ipv6" = xyes; then | 184 if test "x$enable_ipv6" = xyes; then |
185 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] ) | 185 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] ) |
186 fi | 186 fi |
187 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes) | 187 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes) |
188 AC_SUBST(USE_IPV6) | 188 AC_SUBST(USE_IPV6) |
189 | |
190 dnl plugin stuff | |
191 dnl ======================== | |
192 | |
193 dnl Ok, first we find out what flags we need to use. | |
194 AC_MSG_CHECKING([for what extension and flags to use for plugin compilation]) | |
195 case "$target" in | |
196 *-apple-*) | |
197 AC_MSG_RESULT([Mac OS X: -fPIC -bundle, .dylib]) | |
198 PICFLAGS="-fPIC -bundle" | |
199 PICLDFLAGS="-fPIC -bundle" | |
200 SHARED_SUFFIX=".dylib" | |
201 ;; | |
202 *) | |
203 AC_MSG_RESULT([libdl-compatible: -fPIC -DPIC -shared, .so]) | |
204 PICFLAGS="-fPIC -DPIC -shared" | |
205 PICLDFLAGS="-fPIC -DPIC -shared" | |
206 SHARED_SUFFIX=".so" | |
207 ;; | |
208 esac | |
209 AC_SUBST(PICFLAGS) | |
210 AC_SUBST(SHARED_SUFFIX) | |
211 | |
212 AC_MSG_CHECKING([if you are running Apple-GCC]) | |
213 case "$target" in | |
214 *-apple-*) | |
215 AC_MSG_RESULT([yes, sorry you poor bastard]) | |
216 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" | |
217 ;; | |
218 *) | |
219 AC_MSG_RESULT([no]) | |
220 ;; | |
221 esac | |
189 | 222 |
190 dnl chardet support | 223 dnl chardet support |
191 dnl ======================== | 224 dnl ======================== |
192 AC_ARG_ENABLE(chardet, | 225 AC_ARG_ENABLE(chardet, |
193 [ --enable-chardet enable character set detection support (default=no)], | 226 [ --enable-chardet enable character set detection support (default=no)], |