summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-multimedia/mikmod/libmikmod/m4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-multimedia/mikmod/libmikmod/m4.patch')
-rw-r--r--meta-oe/recipes-multimedia/mikmod/libmikmod/m4.patch197
1 files changed, 0 insertions, 197 deletions
diff --git a/meta-oe/recipes-multimedia/mikmod/libmikmod/m4.patch b/meta-oe/recipes-multimedia/mikmod/libmikmod/m4.patch
deleted file mode 100644
index ac7f2d7d0..000000000
--- a/meta-oe/recipes-multimedia/mikmod/libmikmod/m4.patch
+++ /dev/null
@@ -1,197 +0,0 @@
1--- /dev/null
2+++ libmikmod-3.2.0-beta2/m4/esd.m4
3@@ -0,0 +1,194 @@
4+# Configure paths for ESD
5+# Manish Singh 98-9-30
6+# stolen back from Frank Belew
7+# stolen from Manish Singh
8+# Shamelessly stolen from Owen Taylor
9+
10+dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
11+dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
12+dnl
13+AC_DEFUN(AM_PATH_ESD,
14+[dnl
15+dnl Get the cflags and libraries from the esd-config script
16+dnl
17+AC_ARG_WITH(esd-prefix,[ --with-esd-prefix=PFX Prefix where ESD is installed (optional)],
18+ esd_prefix="$withval", esd_prefix="")
19+AC_ARG_WITH(esd-exec-prefix,[ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)],
20+ esd_exec_prefix="$withval", esd_exec_prefix="")
21+AC_ARG_ENABLE(esdtest, [ --disable-esdtest Do not try to compile and run a test ESD program],
22+ , enable_esdtest=yes)
23+
24+ if test x$esd_exec_prefix != x ; then
25+ esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
26+ if test x${ESD_CONFIG+set} != xset ; then
27+ ESD_CONFIG=$esd_exec_prefix/bin/esd-config
28+ fi
29+ fi
30+ if test x$esd_prefix != x ; then
31+ esd_args="$esd_args --prefix=$esd_prefix"
32+ if test x${ESD_CONFIG+set} != xset ; then
33+ ESD_CONFIG=$esd_prefix/bin/esd-config
34+ fi
35+ fi
36+
37+ AC_PATH_PROG(ESD_CONFIG, esd-config, no)
38+ min_esd_version=ifelse([$1], ,0.2.7,$1)
39+ AC_MSG_CHECKING(for ESD - version >= $min_esd_version)
40+ no_esd=""
41+ if test "$ESD_CONFIG" = "no" ; then
42+ no_esd=yes
43+ else
44+ AC_LANG_SAVE
45+ AC_LANG_C
46+ ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
47+ ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
48+
49+ esd_major_version=`$ESD_CONFIG $esd_args --version | \
50+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
51+ esd_minor_version=`$ESD_CONFIG $esd_args --version | \
52+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
53+ esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
54+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
55+ if test "x$enable_esdtest" = "xyes" ; then
56+ ac_save_CFLAGS="$CFLAGS"
57+ ac_save_LIBS="$LIBS"
58+ CFLAGS="$CFLAGS $ESD_CFLAGS"
59+ LIBS="$LIBS $ESD_LIBS"
60+dnl
61+dnl Now check if the installed ESD is sufficiently new. (Also sanity
62+dnl checks the results of esd-config to some extent
63+dnl
64+ rm -f conf.esdtest
65+ AC_TRY_RUN([
66+#include <stdio.h>
67+#include <stdlib.h>
68+#include <string.h>
69+#include <esd.h>
70+
71+char*
72+my_strdup (char *str)
73+{
74+ char *new_str;
75+
76+ if (str)
77+ {
78+ new_str = malloc ((strlen (str) + 1) * sizeof(char));
79+ strcpy (new_str, str);
80+ }
81+ else
82+ new_str = NULL;
83+
84+ return new_str;
85+}
86+
87+int main ()
88+{
89+ int major, minor, micro;
90+ char *tmp_version;
91+
92+ system ("touch conf.esdtest");
93+
94+ /* HP/UX 9 (%@#!) writes to sscanf strings */
95+ tmp_version = my_strdup("$min_esd_version");
96+ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
97+ printf("%s, bad version string\n", "$min_esd_version");
98+ exit(1);
99+ }
100+
101+ if (($esd_major_version > major) ||
102+ (($esd_major_version == major) && ($esd_minor_version > minor)) ||
103+ (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
104+ {
105+ return 0;
106+ }
107+ else
108+ {
109+ printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
110+ printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
111+ printf("*** best to upgrade to the required version.\n");
112+ printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
113+ printf("*** to point to the correct copy of esd-config, and remove the file\n");
114+ printf("*** config.cache before re-running configure\n");
115+ return 1;
116+ }
117+}
118+
119+],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
120+ CFLAGS="$ac_save_CFLAGS"
121+ LIBS="$ac_save_LIBS"
122+ AC_LANG_RESTORE
123+ fi
124+ fi
125+ if test "x$no_esd" = x ; then
126+ AC_MSG_RESULT(yes)
127+ ifelse([$2], , :, [$2])
128+ else
129+ AC_MSG_RESULT(no)
130+ if test "$ESD_CONFIG" = "no" ; then
131+ echo "*** The esd-config script installed by ESD could not be found"
132+ echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
133+ echo "*** your path, or set the ESD_CONFIG environment variable to the"
134+ echo "*** full path to esd-config."
135+ else
136+ if test -f conf.esdtest ; then
137+ :
138+ else
139+ echo "*** Could not run ESD test program, checking why..."
140+ CFLAGS="$CFLAGS $ESD_CFLAGS"
141+ LIBS="$LIBS $ESD_LIBS"
142+ AC_LANG_SAVE
143+ AC_LANG_C
144+ AC_TRY_LINK([
145+#include <stdio.h>
146+#include <esd.h>
147+], [ return 0; ],
148+ [ echo "*** The test program compiled, but did not run. This usually means"
149+ echo "*** that the run-time linker is not finding ESD or finding the wrong"
150+ echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
151+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
152+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
153+ echo "*** is required on your system"
154+ echo "***"
155+ echo "*** If you have an old version installed, it is best to remove it, although"
156+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
157+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
158+ echo "*** exact error that occured. This usually means ESD was incorrectly installed"
159+ echo "*** or that you have moved ESD since it was installed. In the latter case, you"
160+ echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
161+ CFLAGS="$ac_save_CFLAGS"
162+ LIBS="$ac_save_LIBS"
163+ AC_LANG_RESTORE
164+ fi
165+ fi
166+ ESD_CFLAGS=""
167+ ESD_LIBS=""
168+ ifelse([$3], , :, [$3])
169+ fi
170+ AC_SUBST(ESD_CFLAGS)
171+ AC_SUBST(ESD_LIBS)
172+ rm -f conf.esdtest
173+])
174+
175+dnl AM_ESD_SUPPORTS_MULTIPLE_RECORD([ACTION-IF-SUPPORTS [, ACTION-IF-NOT-SUPPORTS]])
176+dnl Test, whether esd supports multiple recording clients (version >=0.2.21)
177+dnl
178+AC_DEFUN(AM_ESD_SUPPORTS_MULTIPLE_RECORD,
179+[dnl
180+ AC_MSG_NOTICE([whether installed esd version supports multiple recording clients])
181+ ac_save_ESD_CFLAGS="$ESD_CFLAGS"
182+ ac_save_ESD_LIBS="$ESD_LIBS"
183+ AM_PATH_ESD(0.2.21,
184+ ifelse([$1], , [
185+ AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, true)
186+ AC_DEFINE(ESD_SUPPORTS_MULTIPLE_RECORD, 1,
187+ [Define if you have esound with support of multiple recording clients.])],
188+ [$1]),
189+ ifelse([$2], , [AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, false)], [$2])
190+ if test "x$ac_save_ESD_CFLAGS" != x ; then
191+ ESD_CFLAGS="$ac_save_ESD_CFLAGS"
192+ fi
193+ if test "x$ac_save_ESD_LIBS" != x ; then
194+ ESD_LIBS="$ac_save_ESD_LIBS"
195+ fi
196+ )
197+])