Mercurial > audlegacy
annotate acinclude.m4 @ 4490:2e56a47e7a5d
Correctly check for USE_DBUS and USE_EGGSM.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 21 Apr 2008 07:32:45 +0300 |
parents | 1f0aa82891a5 |
children | 956272f5935d |
rev | line source |
---|---|
4475
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
1 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
2 dnl ** ADD_PKG_REQUIRES([requirement]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
3 AC_DEFUN([ADD_PC_REQUIRES], [ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
4 if test "x$PC_REQUIRES" = "x"; then |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
5 PC_REQUIRES="$1" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
6 else |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
7 PC_REQUIRES="$PC_REQUIRES, $1" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
8 fi |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
9 AC_SUBST([PC_REQUIRES]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
10 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
11 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
12 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
13 dnl ** Like PKG_CHECK_MODULES, but provides an informative error message. |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
14 dnl ** AUD_CHECK_MODULE([define name], [module], [version required], |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
15 dnl ** [informational name], [additional error message]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
16 dnl ** |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
17 dnl ** AUD_CHECK_MODULE([GLIB], [gtk+-2.0], [>= 2.10.0], [Gtk+2], [See http://www.gtk.org/]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
18 AC_DEFUN([AUD_CHECK_MODULE], [ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
19 PKG_CHECK_MODULES([$1], [$2 $3], [ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
20 ADD_PC_REQUIRES([$2 $3]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
21 ],[ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
22 PKG_CHECK_EXISTS([$2], [ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
23 cv_pkg_version=`$PKG_CONFIG --modversion "$2" 2>/dev/null` |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
24 AC_MSG_ERROR([[ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
25 $4 version $cv_pkg_version was found, but $2 $3 is required. |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
26 $5]]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
27 ],[ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
28 AC_MSG_ERROR([[ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
29 Cannot find $4! If you are using binary packages based system, check that you |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
30 have the corresponding -dev/devel packages installed. |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
31 $5]]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
32 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
33 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
34 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
35 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
36 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
37 dnl ** Simplifying wrapper |
4485
1f0aa82891a5
Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
Matti Hamalainen <ccr@tnsp.org>
parents:
4479
diff
changeset
|
38 AC_DEFUN([AUD_CONDITIONAL], |
1f0aa82891a5
Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
Matti Hamalainen <ccr@tnsp.org>
parents:
4479
diff
changeset
|
39 dnl [AM_CONDITIONAL([$1],[test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"])]) |
1f0aa82891a5
Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
Matti Hamalainen <ccr@tnsp.org>
parents:
4479
diff
changeset
|
40 [if test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"]) ; then |
1f0aa82891a5
Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
Matti Hamalainen <ccr@tnsp.org>
parents:
4479
diff
changeset
|
41 $1="yes" |
1f0aa82891a5
Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
Matti Hamalainen <ccr@tnsp.org>
parents:
4479
diff
changeset
|
42 else |
1f0aa82891a5
Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
Matti Hamalainen <ccr@tnsp.org>
parents:
4479
diff
changeset
|
43 $1="no" |
1f0aa82891a5
Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
Matti Hamalainen <ccr@tnsp.org>
parents:
4479
diff
changeset
|
44 fi |
4479
bb5d11a735a0
Perform AC_SUBST() for each AUD_CONDITIONAL().
Matti Hamalainen <ccr@tnsp.org>
parents:
4475
diff
changeset
|
45 AC_SUBST([$1])dnl |
bb5d11a735a0
Perform AC_SUBST() for each AUD_CONDITIONAL().
Matti Hamalainen <ccr@tnsp.org>
parents:
4475
diff
changeset
|
46 ]) |
4475
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
47 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
48 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
49 dnl ** Simple wrapper for AC_ARG_ENABLE |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
50 dnl ** AUD_ARG_ENABLE([name], [default value], [help string], [if enabled], [if disabled]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
51 AC_DEFUN([AUD_ARG_ENABLE], [dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
52 define([Name], [translit([$1], [./-], [___])]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
53 AC_ARG_ENABLE([$1], [$3],, [enable_[]Name=$2]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
54 if test "x${enable_[]Name}" = "xyes"; then |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
55 m4_ifvaln([$4], [$4], [:])dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
56 m4_ifvaln([$5], [else $5])dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
57 fi |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
58 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
59 |
0 | 60 |
4475
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
61 AC_DEFUN([AUD_ARG_SIMPLE], [dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
62 define([Name], [translit([$1], [./-], [___])]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
63 AC_ARG_ENABLE([$1], [$3],, [enable_[]Name=$2]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
64 if test "x${enable_[]Name}" = "xyes"; then |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
65 AC_DEFINE([$4], [$5], [$6]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
66 fi |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
67 AUD_CONDITIONAL([$4], [enable_$1]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
68 AC_SUBST([$4]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
69 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
70 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
71 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
72 dnl ** Wrapper for cached compilation check |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
73 dnl ** AUD_TRY_COMPILE([message], [result variable], [includes], [body], [if ok], [if not ok]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
74 AC_DEFUN([AUD_TRY_COMPILE], [dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
75 AC_CACHE_CHECK([$1], [$2], |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
76 [AC_TRY_COMPILE([$3], [$4], [$2="yes"], [$2="no"])]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
77 if test "x${$2}" = "xyes"; then |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
78 m4_ifvaln([$5], [$5], [:])dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
79 m4_ifvaln([$6], [else $6])dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
80 fi |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
81 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
82 |
32 | 83 |
4475
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
84 dnl ** Check for GNU make |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
85 AC_DEFUN([AUD_CHECK_GNU_MAKE],[ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
86 AC_CACHE_CHECK([for GNU make],aud_gnu_make_command,[ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
87 aud_gnu_make_command="" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
88 for a in "$MAKE" make gmake gnumake; do |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
89 test "x$a" = "x" && continue |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
90 if ( sh -c "$a --version" 2>/dev/null | grep "GNU Make" >/dev/null ) ; then |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
91 aud_gnu_make_command="$a" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
92 break |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
93 fi |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
94 done |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
95 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
96 if test "x$aud_gnu_make_command" != "x" ; then |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
97 MAKE="$aud_gnu_make_command" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
98 else |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
99 AC_MSG_ERROR([** GNU make not found. If it is installed, try setting MAKE environment variable. **]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
100 fi |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
101 AC_SUBST([MAKE]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
102 ]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
103 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
104 |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
105 dnl *** Define plugin directories |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
106 AC_DEFUN([AUD_DEFINE_PLUGIN_DIR],[ |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
107 define([Name], [translit([$1], [a-z], [A-Z])])dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
108 if test "x$enable_one_plugin_dir" = "xyes"; then |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
109 ifdef([aud_plugin_dirs_defined],[], |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
110 [ pluginsubs="\\\"Plugins\\\"" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
111 ])dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
112 Name[]_PLUGIN_DIR="Plugins" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
113 else |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
114 ifdef([aud_plugin_dirs_defined], |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
115 [pluginsubs="$pluginsubs,\\\"$1\\\""], |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
116 [pluginsubs="\\\"$1\\\""]) |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
117 Name[]_PLUGIN_DIR="$1" |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
118 fi |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
119 AC_SUBST(Name[]_PLUGIN_DIR)dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
120 define([aud_plugin_dirs_defined],[1])dnl |
40f998ddd0a4
Various new helper macros added for simplifying and sanitizing configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents:
83
diff
changeset
|
121 ])dnl |