Mercurial > audlegacy-plugins
annotate m4/libmad.m4 @ 2434:12c81b5d31f9
Fix the double-free!!!!oneoneone+1.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 07 Mar 2008 14:49:02 -0600 |
parents | b3475063c000 |
children | 0dea41453224 |
rev | line source |
---|---|
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
1 dnl Configure paths for libmad |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
2 dnl derived from libFLAC.m4 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
3 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
4 dnl AM_PATH_LIBMAD([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
5 dnl Test for libmad, and define MAD_CFLAGS and MAD_LIBS |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
6 dnl |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
7 AC_DEFUN([AM_PATH_LIBMAD], |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
8 [dnl |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
9 dnl Get the cflags and libraries |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
10 dnl |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
11 AC_ARG_WITH(libmad,[ --with-libmad=PFX Prefix where libmad is installed (optional)], libmad_prefix="$withval", libmad_prefix="") |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
12 AC_ARG_WITH(libmad-libraries,[ --with-libmad-libraries=DIR Directory where libmad library is installed (optional)], libmad_libraries="$withval", libmad_libraries="") |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
13 AC_ARG_WITH(libmad-includes,[ --with-libmad-includes=DIR Directory where libmad header files are installed (optional)], libmad_includes="$withval", libmad_includes="") |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
14 AC_ARG_ENABLE(libmadtest, [ --disable-libmadtest do not try to compile and run a test libmad program],, enable_libmadtest=yes) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
15 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
16 if test "x$libmad_libraries" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
17 MAD_LIBS="-L$libmad_libraries" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
18 elif test "x$libmad_prefix" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
19 MAD_LIBS="-L$libmad_prefix/lib" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
20 elif test "x$prefix" != "xNONE" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
21 MAD_LIBS="-L$libdir" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
22 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
23 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
24 MAD_LIBS="$MAD_LIBS -lmad -lm" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
25 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
26 if test "x$libmad_includes" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
27 MAD_CFLAGS="-I$libmad_includes" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
28 elif test "x$libmad_prefix" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
29 MAD_CFLAGS="-I$libmad_prefix/include" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
30 elif test "x$prefix" != "xNONE"; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
31 MAD_CFLAGS="-I$prefix/include" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
32 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
33 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
34 no_libmad="" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
35 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
36 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
37 if test "x$enable_libmadtest" = "xyes" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
38 ac_save_CFLAGS="$CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
39 ac_save_CXXFLAGS="$CXXFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
40 ac_save_LIBS="$LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
41 CFLAGS="$CFLAGS $MAD_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
42 CXXFLAGS="$CXXFLAGS $MAD_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
43 LIBS="$LIBS $MAD_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
44 dnl |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
45 dnl Now check if the installed libmad is sufficiently new. |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
46 dnl |
2359
b3475063c000
little help to yaz: build-time check for MAD_F_FRACBITS == __AUDACIOUS_ASSUMED_MAD_F_FRACBITS__
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
2125
diff
changeset
|
47 AC_MSG_CHECKING(for libmad) |
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
48 rm -f conf.libmadtest |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
49 AC_TRY_RUN([ |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
50 #include <stdio.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
51 #include <stdlib.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
52 #include <string.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
53 #include <mad.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
54 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
55 int main () |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
56 { |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
57 mad_timer_t t; |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
58 mad_timer_add(&t, t); |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
59 system("touch conf.libmadtest"); |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
60 return 0; |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
61 } |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
62 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
63 ],, no_libmad=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
64 CFLAGS="$ac_save_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
65 LIBS="$ac_save_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
66 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
67 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
68 if test "x$no_libmad" = "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
69 AC_MSG_RESULT(yes) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
70 ifelse([$1], , :, [$1]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
71 else |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
72 AC_MSG_RESULT(no) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
73 if test -f conf.libmadtest ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
74 : |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
75 else |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
76 echo "*** Could not run libmad test program, checking why..." |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
77 CFLAGS="$CFLAGS $MAD_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
78 LIBS="$LIBS $MAD_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
79 AC_TRY_LINK([ |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
80 #include <stdio.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
81 ], [ return 0; ], |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
82 [ echo "*** The test program compiled, but did not run. This usually means" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
83 echo "*** that the run-time linker is not finding libmad or finding the wrong" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
84 echo "*** version of libmad. If it is not finding libmad, you'll need to set your" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
85 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
86 echo "*** to the installed location Also, make sure you have run ldconfig if that" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
87 echo "*** is required on your system" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
88 echo "***" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
89 echo "*** If you have an old version installed, it is best to remove it, although" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
90 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
91 [ echo "*** The test program failed to compile or link. See the file config.log for the" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
92 echo "*** exact error that occured. This usually means libmad was incorrectly installed" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
93 echo "*** or that you have moved libmad since it was installed. In the latter case, you" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
94 echo "*** may want to edit the libmad-config script: $LIBMAD_CONFIG" ]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
95 CFLAGS="$ac_save_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
96 LIBS="$ac_save_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
97 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
98 MAD_CFLAGS="" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
99 MAD_LIBS="" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
100 ifelse([$2], , :, [$2]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
101 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
102 AC_SUBST(MAD_CFLAGS) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
103 AC_SUBST(MAD_LIBS) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
104 rm -f conf.libmadtest |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
105 ]) |