annotate acinclude.m4 @ 35:3fcc147b253a

Updates towards 0.8beta0
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 19 Jun 2003 20:13:00 +0000
parents 13db37492b6d
children 66f8d711cb95
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
1 dnl *** These m4-macros are directly ripped from XSIDPlay's acinclude.m4
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
2 dnl *** (C) Copyright 2002 Michael Schwendt, licensed under GNU GPL v2.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
3 dnl *** Updated for new automake/autoconf plus namespace and other
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
4 dnl *** cosmetic changes by Matti 'ccr' Hämäläinen (C) 2003
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
5
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
6 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
7 dnl Try to find a file (or one of more files in a list of dirs).
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
8 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
9
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
10 AC_DEFUN(MY_FIND_FILE,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
11 [
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
12 $3=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
13 for i in $2; do
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
14 for j in $1; do
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
15 if test -r "$i/$j"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
16 $3=$i
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
17 break 2
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
18 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
19 done
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
20 done
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
21 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
22
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
23 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
24
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
25 AC_DEFUN(MY_SUBST,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
26 dnl Substitute an instance of @$1@ with value "$2".
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
27 dnl Example: MY_SUBST(FOO,BAR) <-> @FOO@ => BAR
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
28 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
29 eval "$1=$2"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
30 AC_SUBST($1)
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
31 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
32
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
33 AC_DEFUN(MY_SUBST_DEF,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
34 dnl Substitute an instance of @$1@ with value "#define $1".
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
35 dnl Example: MY_SUBST_DEF(FOO) <-> @FOO@ => #define FOO
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
36 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
37 eval "$1=\"#define $1\""
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
38 AC_SUBST($1)
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
39 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
40
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
41 AC_DEFUN(MY_SUBST_UNDEF,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
42 dnl Substitute an instance of @$1@ with value "#undef $1".
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
43 dnl Example: MY_SUBST_UNDEF(FOO) <-> @FOO@ => #undef FOO
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
44 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
45 eval "$1=\"#undef $1\""
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
46 AC_SUBST($1)
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
47 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
48
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
49 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
50 dnl Pass C++ compiler options to libtool which supports C only.
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
51 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
52
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
53 AC_DEFUN(MY_PROG_LIBTOOL,
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 [
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
55 xs_save_cc="$CC"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
56 xs_save_cflags="$CFLAGS"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
57 CC="$CXX"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
58 CFLAGS="$CXXFLAGS"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
59 AM_PROG_LIBTOOL
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
60 CC="$xs_save_cc"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
61 CFLAGS="$xs_save_cflags"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
62 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
63
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
64 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
65
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
66 AC_DEFUN(MY_TRY_LINK_SAVE,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
67 [
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
68 xs_cxx_save="$CXX"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
69 xs_cxxflags_save="$CXXFLAGS"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
70 xs_ldflags_save="$LDFLAGS"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
71 xs_libs_save="$LIBS"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
72 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
73
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
74 AC_DEFUN(MY_TRY_LINK_RESTORE,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
75 [
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
76 CXX="$xs_cxx_save"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
77 CXXFLAGS="$xs_cxxflags_save"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
78 LDFLAGS="$xs_ldflags_save"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
79 LIBS="$xs_libs_save"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
80 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
81
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
82 AC_DEFUN(MY_PROG_PKGCONFIG,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
83 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
84 AC_PATH_PROG(PKG_CONFIG, pkg-config, "")
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
85 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
86
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
87 AC_DEFUN(MY_NEED_PKGCONFIG,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
88 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
89 AC_REQUIRE([MY_PROG_PKGCONFIG])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
90 if test -z "$PKG_CONFIG"; then
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
91 AC_MSG_ERROR([pkg-config not found. See http://pkgconfig.sourceforge.net])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
92 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
93 if ! $PKG_CONFIG --atleast-pkgconfig-version 0.5 ; then
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
94 AC_MSG_ERROR([pkg-config too old; version 0.5 or better required.])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
95 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
96 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
97
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
98 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
99 dnl Try to find SIDPLAY library and header files.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
100 dnl $xs_have_sidplay1 will be "yes" or "no"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
101 dnl @SIDPLAY1_LDADD@ will be substituted with linker parameters
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
102 dnl @SIDPLAY1_INCLUDES@ will be substituted with compiler parameters
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
103 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
104
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
105 AC_DEFUN(XS_PATH_LIBSIDPLAY1,
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
106 [
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
107 AC_MSG_CHECKING([for working SIDPlay1 library and headers])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
108
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
109 AC_LANG_PUSH(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
110
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
111 # Use include path given by user (if any).
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
112 if test -n "$xs_sidplay1_includes"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
113 xs_sidplay1_cxxflags="-I$xs_sidplay1_includes"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
114 else
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
115 xs_sidplay1_cxxflags=""
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
116 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
117
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
118 # Use library path given by user (if any).
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
119 if test -n "$xs_sidplay1_library"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
120 xs_sidplay1_ldflags="-L$xs_sidplay1_library"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
121 else
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
122 xs_sidplay1_ldflags=""
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
123 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
124
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
125 AC_CACHE_VAL(xs_cv_have_sidplay1,
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
126 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
127 # Run test compilation with either standard search path
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
128 # or user-defined paths.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
129 MY_TRY_LIBSIDPLAY1
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
130 if test "$xs_sidplay1_works" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
131 xs_cv_have_sidplay1="xs_have_sidplay1=yes \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
132 xs_sidplay1_cxxflags=\"$xs_sidplay1_cxxflags\" \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
133 xs_sidplay1_ldflags=\"$xs_sidplay1_ldflags\" "
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
134 else
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
135 MY_FIND_LIBSIDPLAY1
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
136 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
137 ])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
138
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
139 eval "$xs_cv_have_sidplay1"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
140
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
141 if test "$xs_have_sidplay1" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
142 if test -n "$xs_sidplay1_cxxflags" || test -n "$xs_sidplay1_ldflags"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
143 AC_MSG_RESULT([$xs_sidplay1_cxxflags $xs_sidplay1_ldflags])
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
144 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
145 AC_MSG_RESULT([yes])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
146 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
147 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
148 AC_MSG_RESULT([no])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
149 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
150 SIDPLAY1_LDADD="$xs_sidplay1_ldflags -lsidplay"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
151 SIDPLAY1_INCLUDES="$xs_sidplay1_cxxflags"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
152 AC_SUBST(SIDPLAY1_LDADD)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
153 AC_SUBST(SIDPLAY1_INCLUDES)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
154
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
155 AC_LANG_POP(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
156 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
157
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
158 dnl Functions used by XS_PATH_LIBSIDPLAY1.
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
159
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
160 AC_DEFUN(MY_FIND_LIBSIDPLAY1,
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
161 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
162 # Search common locations where header files might be stored.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
163 xs_sidplay1_incdirs="$xs_sidplay1_includes /usr/include /usr/local/include /usr/lib/sidplay/include /usr/local/lib/sidplay/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
164 MY_FIND_FILE(sidplay/sidtune.h, $xs_sidplay1_incdirs, xs_sidplay1_includes)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
165
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
166 # Search common locations where library might be stored.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
167 xs_sidplay1_libdirs="$xs_sidplay1_library /usr/lib /usr/lib/sidplay /usr/local/lib/sidplay"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
168 MY_FIND_FILE(libsidplay.a libsidplay.so libsidplay.so.1 libsidplay.so.1.36 libsidplay.so.1.37,
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
169 $xs_sidplay1_libdirs, xs_sidplay1_library)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
170
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
171 if test -z "$xs_sidplay1_includes" || test -z "$xs_sidplay1_library"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
172 xs_cv_have_sidplay1="xs_have_sidplay1=no \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
173 xs_sidplay1_ldflags=\"\" xs_sidplay1_cxxflags=\"\" "
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
174 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
175 # Test compilation with found paths.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
176 xs_sidplay1_ldflags="-L$xs_sidplay1_library"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
177 xs_sidplay1_cxxflags="-I$xs_sidplay1_includes"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
178 MY_TRY_LIBSIDPLAY1
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
179 xs_cv_have_sidplay1="xs_have_sidplay1=$xs_sidplay1_works \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
180 xs_sidplay1_ldflags=\"$xs_sidplay1_ldflags\" \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
181 xs_sidplay1_cxxflags=\"$xs_sidplay1_cxxflags\" "
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
182 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
183 ])
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
184
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
185 AC_DEFUN(MY_TRY_LIBSIDPLAY1,
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
186 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
187 MY_TRY_LINK_SAVE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
188
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
189 CXXFLAGS="$CXXFLAGS $xs_sidplay1_cxxflags"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
190 LDFLAGS="$LDFLAGS $xs_sidplay1_ldflags"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
191 LIBS="$LIBS -lsidplay"
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
192
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
193 AC_LINK_IFELSE([AC_LANG_PROGRAM(
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
194 [[#include <sidplay/sidtune.h>]],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
195 [[sidTune* myTest = new sidTune(0);]])],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
196 [xs_sidplay1_works=yes],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
197 [xs_sidplay1_works=no]
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
198 )
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
199
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
200 MY_TRY_LINK_RESTORE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
201 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
202
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
203
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
204 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
205 dnl Try to find SIDPLAY2 library and header files.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
206 dnl $xs_have_sidplay2 will be "yes" or "no"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
207 dnl @SIDPLAY_LDADD@ will be substituted with linker parameters
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
208 dnl @SIDPLAY_INCLUDES@ will be substituted with compiler parameters
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
209 dnl -------------------------------------------------------------------------
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
210 AC_DEFUN(XS_PATH_LIBSIDPLAY2,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
211 [
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
212 AC_MSG_CHECKING([for working SIDPlay2 library and headers])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
213
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
214 AC_LANG_PUSH(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
215
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
216 AC_REQUIRE([MY_PROG_PKGCONFIG])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
217 if test -n "$PKG_CONFIG" && $PKG_CONFIG --atleast-version $LIBSIDPLAY2_REQUIRED_VERSION libsidplay2; then
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
218 xs_pkgcfg_knows=yes
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
219 else
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
220 xs_pkgcfg_knows=no
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
221 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
222
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
223 # Derive sidbuilders path from libsidplay2 root.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
224 if test -n "$xs_sidplay2_library"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
225 xs_sidplay2_builders="$xs_sidplay2_library/sidplay/builders"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
226 elif test "$xs_pkgcfg_knows" = yes ; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
227 xs_sidplay2_builders=`$PKG_CONFIG --variable=builders libsidplay2`
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
228 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
229
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
230 AC_CACHE_VAL(xs_cv_have_sidplay2,
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
231 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
232 # Run test compilation with either standard search path
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
233 # or user-defined paths.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
234 xs_sidplay2_ldadd="-lsidplay2"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
235 MY_TRY_LIBSIDPLAY2
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
236 if test "$xs_sidplay2_works" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
237 xs_cv_have_sidplay2="xs_have_sidplay2=yes \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
238 xs_sidplay2_cxxflags=\"$xs_sidplay2_cxxflags\" \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
239 xs_sidplay2_ldadd=\"$xs_sidplay2_ldadd\" \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
240 xs_sidplay2_builders=\"$xs_sidplay2_builders\" "
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
241 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
242 MY_FIND_LIBSIDPLAY2
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
243 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
244 ])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
245 eval "$xs_cv_have_sidplay2"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
246 if test "$xs_have_sidplay2" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
247 if test -n "$xs_sidplay2_cxxflags" || test -n "$xs_sidplay2_ldadd"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
248 AC_MSG_RESULT([$xs_sidplay2_cxxflags $xs_sidplay2_ldadd])
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
249 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
250 AC_MSG_RESULT([yes])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
251 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
252 else
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
253 AC_MSG_RESULT([no])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
254 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
255 SIDPLAY2_LDADD="$xs_sidplay2_ldadd"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
256 SIDPLAY2_INCLUDES="$xs_sidplay2_cxxflags"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
257 AC_SUBST(SIDPLAY2_LDADD)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
258 AC_SUBST(SIDPLAY2_INCLUDES)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
259
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
260 AC_LANG_POP(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
261 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
262
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
263
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
264 dnl Functions used by XS_PATH_LIBSIDPLAY2.
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
265 AC_DEFUN(MY_FIND_LIBSIDPLAY2,
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
266 [
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
267 # See whether user didn't provide paths.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
268 if test -z "$xs_sidplay2_includes"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
269 if test "$xs_pkgcfg_knows" = yes ; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
270 xs_sidplay2_includes=`$PKG_CONFIG --variable=includedir libsidplay2`
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
271 xs_sidplay2_cxxflags=`$PKG_CONFIG --cflags libsidplay2`
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
272 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
273 # Search common locations where header files might be stored.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
274 xs_sidplay2_incdirs="$xs_sidplay2_includes $xs_sidplay2_includes/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
275 MY_FIND_FILE(sidplay/sidplay2.h,$xs_sidplay2_incdirs,xs_sidplay2_includes)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
276 xs_sidplay2_cxxflags="-I$xs_sidplay2_includes"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
277 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
278 else
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
279 xs_sidplay2_cxxflags="-I$xs_sidplay2_includes"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
280 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
281 if test -z "$xs_sidplay2_library"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
282 if test "$xs_pkgcfg_knows" = yes ; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
283 xs_sidplay2_library=`$PKG_CONFIG --variable=libdir libsidplay2`
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
284 xs_sidplay2_ldadd=`$PKG_CONFIG --libs libsidplay2`
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
285 xs_sidplay2_builders=`$PKG_CONFIG --variable=builders libsidplay2`
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
286 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
287 # Search common locations where library might be stored.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
288 xs_sidplay2_libdirs="$xs_sidplay2_library $xs_sidplay2_library/lib $xs_sidplay2_library/src"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
289 MY_FIND_FILE(libsidplay2.la,$xs_sidplay2_libdirs,xs_sidplay2_library)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
290 xs_sidplay2_ldadd="-L$xs_sidplay2_library -lsidplay2"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
291 xs_sidplay2_builders="$xs_sidplay2_library/sidplay/builders"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
292 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
293 else
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
294 xs_sidplay2_ldadd="-L$xs_sidplay2_library -lsidplay2"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
295 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
296 if test -z "$xs_sidplay2_includes" || test -z "$xs_sidplay2_library"; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
297 xs_cv_have_sidplay2="xs_have_sidplay2=no \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
298 xs_sidplay2_ldadd=\"\" xs_sidplay2_cxxflags=\"\" \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
299 xs_sidplay2_builders=\"\" "
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
300 else
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
301 # Test compilation with found paths.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
302 xs_sidplay2_ldadd="-L$xs_sidplay2_library -lsidplay2"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
303 xs_sidplay2_cxxflags="-I$xs_sidplay2_includes"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
304 MY_TRY_LIBSIDPLAY2
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
305 xs_cv_have_sidplay2="xs_have_sidplay2=$xs_sidplay2_works \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
306 xs_sidplay2_ldadd=\"$xs_sidplay2_ldadd\" \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
307 xs_sidplay2_cxxflags=\"$xs_sidplay2_cxxflags\" \
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
308 xs_sidplay2_builders=\"$xs_sidplay2_builders\" "
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
309 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
310 ])
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
311
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
312
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
313 AC_DEFUN(MY_TRY_LIBSIDPLAY2,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
314 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
315 MY_TRY_LINK_SAVE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
316
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
317 CXX="${SHELL-/bin/sh} ${srcdir}/libtool $CXX"
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
318 CXXFLAGS="$CXXFLAGS $xs_sidplay2_cxxflags -DHAVE_UNIX"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
319 LDFLAGS="$LDFLAGS $xs_sidplay2_ldadd"
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
320
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
321 AC_LINK_IFELSE([AC_LANG_PROGRAM(
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
322 [[#include <sidplay/sidplay2.h>]],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
323 [[sidplay2 *myEngine;]])],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
324 [xs_sidplay2_works=yes],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
325 [xs_sidplay2_works=no]
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
326 )
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
327
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
328 MY_TRY_LINK_RESTORE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
329 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
330
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
331
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
332 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
333 dnl Find libsidplay2 builders (sidbuilders) dir.
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
334 dnl @BUILDERS_INCLUDES@
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
335 dnl @BUILDERS_LDFLAGS@
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
336 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
337 AC_DEFUN(BUILDERS_FIND,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
338 [
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
339 AC_MSG_CHECKING([for SIDPlay2 builders directory])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
340
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
341 AC_LANG_PUSH(C++)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
342
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
343 AC_REQUIRE([XS_PATH_LIBSIDPLAY2])
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
344
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
345 dnl Be pessimistic.
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
346 builders_available=no
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
347
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
348 dnl Sidbuilder headers are included with "builders" prefix.
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
349 builders_includedir=$xs_sidplay2_includes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
350 builders_libdir=$xs_sidplay2_builders
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
351
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
352 dnl If libsidplay2 is in standard library search path, we need
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
353 dnl to get an argument whether /usr, /usr/local, etc. Else we
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
354 dnl can only use ${libdir}/sidplay/builders, but then are
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
355 dnl unable to check whether files exist as long as ${exec_prefix}
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
356 dnl is not defined in the configure script. So, this is a bit
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
357 dnl ugly, but a satisfactory fallback default for those who
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
358 dnl define ${prefix} and ${exec_prefix}.
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
359 if test -z $builders_libdir; then
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
360 eval "builders_libdir=$libdir/sidplay/builders"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
361 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
362
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
363 AC_ARG_WITH(sidbuilders,
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
364 [ --with-sidbuilders=DIR what the SIDPlay2 builders install PREFIX is],
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
365 [builders_includedir="$withval/include"
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
366 builders_libdir="$withval/lib/sidplay/builders"])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
367
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
368 AC_ARG_WITH(builders-inc,
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
369 [ --with-builders-inc=DIR where the SIDPlay2 builders headers are located],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
370 [builders_includedir="$withval"])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
371
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
372 AC_ARG_WITH(builders-lib,
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
373 [ --with-builders-lib=DIR where the SIDPlay2 builders libraries are installed],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
374 [builders_libdir="$withval"])
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
375
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
376 if test -n "$builders_includedir"; then
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
377 BUILDERS_INCLUDES="-I$builders_includedir"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
378 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
379
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
380 if test -n "$builders_libdir"; then
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
381 BUILDERS_LDFLAGS="-L$builders_libdir"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
382 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
383
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
384 if test -d $builders_libdir; then
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
385 xs_have_sidbuilders_dir=yes
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
386 AC_MSG_RESULT([$builders_libdir])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
387 else
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
388 xs_have_sidbuilders_dir=no
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
389 AC_MSG_RESULT([$xs_have_sidbuilders_dir])
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
390 AC_MSG_ERROR([$builders_libdir not found!
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
391 Check --help on how to specify SIDPlay2 and/or builders library and
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
392 header path, or set --exec-prefix to the same prefix as your installation
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
393 of libsidplay2.
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
394 ])
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
395 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
396
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
397 AC_SUBST(BUILDERS_INCLUDES)
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
398 AC_SUBST(BUILDERS_LDFLAGS)
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
399
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
400 AC_LANG_POP(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
401 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
402
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
403
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
404 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
405 dnl Test for working reSID builder.
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
406 dnl sets $(RESID_LDADD), substitutes @RESID_LDADD@
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
407 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
408 AC_DEFUN(BUILDERS_FIND_RESID,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
409 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
410 AC_MSG_CHECKING([for reSID builder module])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
411 AC_LANG_PUSH(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
412 MY_TRY_LINK_SAVE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
413
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
414 CXX="${SHELL-/bin/sh} ${srcdir}/libtool $CXX"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
415 CXXFLAGS="$CXXFLAGS $BUILDERS_INCLUDES"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
416 LDFLAGS="$LDFLAGS $BUILDERS_LDFLAGS"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
417 LIBS="$LIBS -lresid-builder"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
418
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
419 AC_LINK_IFELSE([AC_LANG_PROGRAM(
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
420 [[#include <sidplay/builders/resid.h>]],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
421 [[ReSIDBuilder *sid;]])],
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
422 [builders_work=yes],
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
423 [builders_work=no]
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
424 )
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
425
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
426 MY_TRY_LINK_RESTORE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
427
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
428 if test "$builders_work" = yes; then
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
429 builders_available=yes
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
430 xs_builders="reSID $xs_builders"
32
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
431 AC_DEFINE(HAVE_RESID_BUILDER)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
432 RESID_LDADD="-lresid-builder"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
433 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
434 AC_MSG_RESULT($builders_work)
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
435 AC_SUBST(RESID_LDADD)
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
436 AC_LANG_POP(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
437 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
438
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
439
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
440 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
441 dnl Test for working HardSID builder.
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
442 dnl sets $(HARDSID_LDADD), substitutes @HARDSID_LDADD@
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
443 dnl -------------------------------------------------------------------------
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
444 AC_DEFUN(BUILDERS_FIND_HARDSID,
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
445 [
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
446 AC_MSG_CHECKING([for HardSID builder module])
32
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
447 AC_LANG_PUSH(C++)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
448 MY_TRY_LINK_SAVE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
449
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
450 CXX="${SHELL-/bin/sh} ${srcdir}/libtool $CXX"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
451 CXXFLAGS="$CXXFLAGS $BUILDERS_INCLUDES"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
452 LDFLAGS="$LDFLAGS $BUILDERS_LDFLAGS"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
453 LIBS="$LIBS -lhardsid-builder"
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
454
32
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
455 AC_LINK_IFELSE([AC_LANG_PROGRAM(
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
456 [[#include <sidplay/builders/hardsid.h>]],
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
457 [[HardSID *sid;]])],
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
458 [builders_work=yes],
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
459 [builders_work=no]
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
460 )
32
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
461
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
462 MY_TRY_LINK_RESTORE
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
463
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
464 if test "$builders_work" = yes; then
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
465 builders_available=yes
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
466 xs_builders="HardSID $xs_builders"
32
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
467 AC_DEFINE(HAVE_HARDSID_BUILDER)
30
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
468 HARDSID_LDADD="-lhardsid-builder"
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
469 fi
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
470 AC_MSG_RESULT($builders_work)
fde5167bb736 Updated to have macros for detecting libSIDPlay 1 and 2
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
471 AC_SUBST(HARDSID_LDADD)
32
13db37492b6d More fixes in the configuration system
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
472 AC_LANG_POP(C++)
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
473 ])