| 1 |
Author: Sandro Tosi <[email protected]> |
| 2 |
Description: New patch generated from rplay 3.3.2-12 diff.gz |
| 3 |
Index: rplay/configure |
| 4 |
=================================================================== |
| 5 |
--- rplay.orig/configure 2024-08-08 09:34:14.963482455 +0200 |
| 6 |
+++ rplay/configure 2024-08-08 09:34:14.955482448 +0200 |
| 7 |
@@ -527,6 +527,8 @@ |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
+BUILD_TARGETS="include lib adpcm" |
| 12 |
+ |
| 13 |
|
| 14 |
export srcdir |
| 15 |
RPLAY_VERSION=`$srcdir/version` |
| 16 |
@@ -544,7 +546,7 @@ |
| 17 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 18 |
set dummy gcc; ac_word=$2 |
| 19 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 20 |
|
| 21 |
+echo "configure:550: checking for $ac_word" >&5 |
| 22 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 23 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 24 |
else |
| 25 |
@@ -574,7 +576,7 @@ |
| 26 |
# Extract the first word of "cc", so it can be a program name with args. |
| 27 |
set dummy cc; ac_word=$2 |
| 28 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 29 |
|
| 30 |
+echo "configure:580: checking for $ac_word" >&5 |
| 31 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 32 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 33 |
else |
| 34 |
@@ -625,7 +627,7 @@ |
| 35 |
# Extract the first word of "cl", so it can be a program name with args. |
| 36 |
set dummy cl; ac_word=$2 |
| 37 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 38 |
|
| 39 |
+echo "configure:631: checking for $ac_word" >&5 |
| 40 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 41 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 42 |
else |
| 43 |
@@ -657,7 +659,7 @@ |
| 44 |
fi |
| 45 |
|
| 46 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 47 |
|
| 48 |
+echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 49 |
|
| 50 |
ac_ext=c |
| 51 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 52 |
@@ -668,12 +670,12 @@ |
| 53 |
|
| 54 |
cat > conftest.$ac_ext << EOF |
| 55 |
|
| 56 |
|
| 57 |
+#line 674 "configure" |
| 58 |
#include "confdefs.h" |
| 59 |
|
| 60 |
main(){return(0);} |
| 61 |
EOF |
| 62 |
|
| 63 |
+if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 64 |
ac_cv_prog_cc_works=yes |
| 65 |
# If we can't run a trivial program, we are probably using a cross compiler. |
| 66 |
if (./conftest; exit) 2>/dev/null; then |
| 67 |
@@ -699,12 +701,12 @@ |
| 68 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 69 |
fi |
| 70 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 71 |
|
| 72 |
+echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 73 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 74 |
cross_compiling=$ac_cv_prog_cc_cross |
| 75 |
|
| 76 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 77 |
|
| 78 |
+echo "configure:710: checking whether we are using GNU C" >&5 |
| 79 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 80 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 81 |
else |
| 82 |
@@ -713,7 +715,7 @@ |
| 83 |
yes; |
| 84 |
#endif |
| 85 |
EOF |
| 86 |
|
| 87 |
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 88 |
ac_cv_prog_gcc=yes |
| 89 |
else |
| 90 |
ac_cv_prog_gcc=no |
| 91 |
@@ -732,7 +734,7 @@ |
| 92 |
ac_save_CFLAGS="$CFLAGS" |
| 93 |
CFLAGS= |
| 94 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 95 |
|
| 96 |
+echo "configure:738: checking whether ${CC-cc} accepts -g" >&5 |
| 97 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 98 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 99 |
else |
| 100 |
@@ -797,7 +799,7 @@ |
| 101 |
|
| 102 |
|
| 103 |
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
| 104 |
|
| 105 |
+echo "configure:803: checking for POSIXized ISC" >&5 |
| 106 |
if test -d /etc/conf/kconfig.d && |
| 107 |
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 108 |
then |
| 109 |
@@ -818,7 +820,7 @@ |
| 110 |
fi |
| 111 |
|
| 112 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 113 |
|
| 114 |
+echo "configure:824: checking how to run the C preprocessor" >&5 |
| 115 |
# On Suns, sometimes $CPP names a directory. |
| 116 |
if test -n "$CPP" && test -d "$CPP"; then |
| 117 |
CPP= |
| 118 |
@@ -833,13 +835,13 @@ |
| 119 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 120 |
# not just through cpp. |
| 121 |
cat > conftest.$ac_ext <<EOF |
| 122 |
|
| 123 |
+#line 839 "configure" |
| 124 |
#include "confdefs.h" |
| 125 |
#include <assert.h> |
| 126 |
Syntax Error |
| 127 |
EOF |
| 128 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 129 |
|
| 130 |
+{ (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 131 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 132 |
if test -z "$ac_err"; then |
| 133 |
: |
| 134 |
@@ -850,13 +852,13 @@ |
| 135 |
rm -rf conftest* |
| 136 |
CPP="${CC-cc} -E -traditional-cpp" |
| 137 |
cat > conftest.$ac_ext <<EOF |
| 138 |
|
| 139 |
+#line 856 "configure" |
| 140 |
#include "confdefs.h" |
| 141 |
#include <assert.h> |
| 142 |
Syntax Error |
| 143 |
EOF |
| 144 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 145 |
|
| 146 |
+{ (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 147 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 148 |
if test -z "$ac_err"; then |
| 149 |
: |
| 150 |
@@ -867,13 +869,13 @@ |
| 151 |
rm -rf conftest* |
| 152 |
CPP="${CC-cc} -nologo -E" |
| 153 |
cat > conftest.$ac_ext <<EOF |
| 154 |
|
| 155 |
+#line 873 "configure" |
| 156 |
#include "confdefs.h" |
| 157 |
#include <assert.h> |
| 158 |
Syntax Error |
| 159 |
EOF |
| 160 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 161 |
|
| 162 |
+{ (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 163 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 164 |
if test -z "$ac_err"; then |
| 165 |
: |
| 166 |
@@ -928,7 +930,7 @@ |
| 167 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 168 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 169 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 170 |
|
| 171 |
+echo "configure:934: checking for a BSD compatible install" >&5 |
| 172 |
if test -z "$INSTALL"; then |
| 173 |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 174 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 175 |
@@ -981,7 +983,7 @@ |
| 176 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 177 |
|
| 178 |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 179 |
|
| 180 |
+echo "configure:987: checking whether ln -s works" >&5 |
| 181 |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 182 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 183 |
else |
| 184 |
@@ -1004,7 +1006,7 @@ |
| 185 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 186 |
set dummy ranlib; ac_word=$2 |
| 187 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 188 |
|
| 189 |
+echo "configure:1010: checking for $ac_word" >&5 |
| 190 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 191 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 192 |
else |
| 193 |
@@ -1036,7 +1038,7 @@ |
| 194 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 195 |
set dummy $ac_prog; ac_word=$2 |
| 196 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 197 |
|
| 198 |
+echo "configure:1042: checking for $ac_word" >&5 |
| 199 |
if eval "test \"`echo '$''{'ac_cv_prog_ETAGS'+set}'`\" = set"; then |
| 200 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 201 |
else |
| 202 |
@@ -1071,7 +1073,7 @@ |
| 203 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 204 |
set dummy $ac_prog; ac_word=$2 |
| 205 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 206 |
|
| 207 |
+echo "configure:1077: checking for $ac_word" >&5 |
| 208 |
if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEPEND'+set}'`\" = set"; then |
| 209 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 210 |
else |
| 211 |
@@ -1106,7 +1108,7 @@ |
| 212 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 213 |
set dummy $ac_prog; ac_word=$2 |
| 214 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 215 |
|
| 216 |
+echo "configure:1112: checking for $ac_word" >&5 |
| 217 |
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
| 218 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 219 |
else |
| 220 |
@@ -1141,7 +1143,7 @@ |
| 221 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 222 |
set dummy $ac_prog; ac_word=$2 |
| 223 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 224 |
|
| 225 |
+echo "configure:1147: checking for $ac_word" >&5 |
| 226 |
if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then |
| 227 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 228 |
else |
| 229 |
@@ -1176,7 +1178,7 @@ |
| 230 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 231 |
set dummy $ac_prog; ac_word=$2 |
| 232 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 233 |
|
| 234 |
+echo "configure:1182: checking for $ac_word" >&5 |
| 235 |
if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then |
| 236 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 237 |
else |
| 238 |
@@ -1211,7 +1213,7 @@ |
| 239 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 240 |
set dummy $ac_prog; ac_word=$2 |
| 241 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 242 |
|
| 243 |
+echo "configure:1217: checking for $ac_word" >&5 |
| 244 |
if eval "test \"`echo '$''{'ac_cv_prog_DVIPS'+set}'`\" = set"; then |
| 245 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 246 |
else |
| 247 |
@@ -1247,12 +1249,12 @@ |
| 248 |
do |
| 249 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 250 |
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
| 251 |
|
| 252 |
+echo "configure:1253: checking for $ac_hdr that defines DIR" >&5 |
| 253 |
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 254 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 255 |
else |
| 256 |
cat > conftest.$ac_ext <<EOF |
| 257 |
|
| 258 |
+#line 1258 "configure" |
| 259 |
#include "confdefs.h" |
| 260 |
#include <sys/types.h> |
| 261 |
#include <$ac_hdr> |
| 262 |
@@ -1260,7 +1262,7 @@ |
| 263 |
DIR *dirp = 0; |
| 264 |
; return 0; } |
| 265 |
EOF |
| 266 |
|
| 267 |
+if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 268 |
rm -rf conftest* |
| 269 |
eval "ac_cv_header_dirent_$ac_safe=yes" |
| 270 |
else |
| 271 |
@@ -1285,7 +1287,7 @@ |
| 272 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 273 |
if test $ac_header_dirent = dirent.h; then |
| 274 |
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
| 275 |
|
| 276 |
+echo "configure:1291: checking for opendir in -ldir" >&5 |
| 277 |
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
| 278 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 279 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 280 |
@@ -1293,7 +1295,7 @@ |
| 281 |
ac_save_LIBS="$LIBS" |
| 282 |
LIBS="-ldir $LIBS" |
| 283 |
cat > conftest.$ac_ext <<EOF |
| 284 |
|
| 285 |
+#line 1299 "configure" |
| 286 |
#include "confdefs.h" |
| 287 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 288 |
/* We use char because int might match the return type of a gcc2 |
| 289 |
@@ -1304,7 +1306,7 @@ |
| 290 |
opendir() |
| 291 |
; return 0; } |
| 292 |
EOF |
| 293 |
|
| 294 |
+if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 295 |
rm -rf conftest* |
| 296 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 297 |
else |
| 298 |
@@ -1326,7 +1328,7 @@ |
| 299 |
|
| 300 |
else |
| 301 |
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
| 302 |
|
| 303 |
+echo "configure:1332: checking for opendir in -lx" >&5 |
| 304 |
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
| 305 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 306 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 307 |
@@ -1334,7 +1336,7 @@ |
| 308 |
ac_save_LIBS="$LIBS" |
| 309 |
LIBS="-lx $LIBS" |
| 310 |
cat > conftest.$ac_ext <<EOF |
| 311 |
|
| 312 |
+#line 1340 "configure" |
| 313 |
#include "confdefs.h" |
| 314 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 315 |
/* We use char because int might match the return type of a gcc2 |
| 316 |
@@ -1345,7 +1347,7 @@ |
| 317 |
opendir() |
| 318 |
; return 0; } |
| 319 |
EOF |
| 320 |
|
| 321 |
+if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 322 |
rm -rf conftest* |
| 323 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 324 |
else |
| 325 |
@@ -1368,12 +1370,12 @@ |
| 326 |
fi |
| 327 |
|
| 328 |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 329 |
|
| 330 |
+echo "configure:1374: checking for ANSI C header files" >&5 |
| 331 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 332 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 333 |
else |
| 334 |
cat > conftest.$ac_ext <<EOF |
| 335 |
|
| 336 |
+#line 1379 "configure" |
| 337 |
#include "confdefs.h" |
| 338 |
#include <stdlib.h> |
| 339 |
#include <stdarg.h> |
| 340 |
@@ -1381,7 +1383,7 @@ |
| 341 |
#include <float.h> |
| 342 |
EOF |
| 343 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 344 |
|
| 345 |
+{ (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 346 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 347 |
if test -z "$ac_err"; then |
| 348 |
rm -rf conftest* |
| 349 |
@@ -1398,7 +1400,7 @@ |
| 350 |
if test $ac_cv_header_stdc = yes; then |
| 351 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 352 |
cat > conftest.$ac_ext <<EOF |
| 353 |
|
| 354 |
+#line 1404 "configure" |
| 355 |
#include "confdefs.h" |
| 356 |
#include <string.h> |
| 357 |
EOF |
| 358 |
@@ -1416,7 +1418,7 @@ |
| 359 |
if test $ac_cv_header_stdc = yes; then |
| 360 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 361 |
cat > conftest.$ac_ext <<EOF |
| 362 |
|
| 363 |
+#line 1422 "configure" |
| 364 |
#include "confdefs.h" |
| 365 |
#include <stdlib.h> |
| 366 |
EOF |
| 367 |
@@ -1437,7 +1439,7 @@ |
| 368 |
: |
| 369 |
else |
| 370 |
cat > conftest.$ac_ext <<EOF |
| 371 |
|
| 372 |
+#line 1443 "configure" |
| 373 |
#include "confdefs.h" |
| 374 |
#include <ctype.h> |
| 375 |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 376 |
@@ -1448,7 +1450,7 @@ |
| 377 |
exit (0); } |
| 378 |
|
| 379 |
EOF |
| 380 |
|
| 381 |
+if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 382 |
then |
| 383 |
: |
| 384 |
else |
| 385 |
@@ -1472,12 +1474,12 @@ |
| 386 |
fi |
| 387 |
|
| 388 |
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 389 |
|
| 390 |
+echo "configure:1478: checking whether time.h and sys/time.h may both be included" >&5 |
| 391 |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 392 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 393 |
else |
| 394 |
cat > conftest.$ac_ext <<EOF |
| 395 |
|
| 396 |
+#line 1483 "configure" |
| 397 |
#include "confdefs.h" |
| 398 |
#include <sys/types.h> |
| 399 |
#include <sys/time.h> |
| 400 |
@@ -1486,7 +1488,7 @@ |
| 401 |
struct tm *tp; |
| 402 |
; return 0; } |
| 403 |
EOF |
| 404 |
|
| 405 |
+if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 406 |
rm -rf conftest* |
| 407 |
ac_cv_header_time=yes |
| 408 |
else |
| 409 |
@@ -1506,21 +1508,21 @@ |
| 410 |
|
| 411 |
fi |
| 412 |
|
| 413 |
|
| 414 |
+for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h regex.h rxposix.h rx/rxposix.h |
| 415 |
do |
| 416 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 417 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 418 |
|
| 419 |
+echo "configure:1516: checking for $ac_hdr" >&5 |
| 420 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 421 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 422 |
else |
| 423 |
cat > conftest.$ac_ext <<EOF |
| 424 |
|
| 425 |
+#line 1521 "configure" |
| 426 |
#include "confdefs.h" |
| 427 |
#include <$ac_hdr> |
| 428 |
EOF |
| 429 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 430 |
|
| 431 |
+{ (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 432 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 433 |
if test -z "$ac_err"; then |
| 434 |
rm -rf conftest* |
| 435 |
@@ -1547,12 +1549,12 @@ |
| 436 |
done |
| 437 |
|
| 438 |
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
| 439 |
|
| 440 |
+echo "configure:1553: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 441 |
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
| 442 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 443 |
else |
| 444 |
cat > conftest.$ac_ext <<EOF |
| 445 |
|
| 446 |
+#line 1558 "configure" |
| 447 |
#include "confdefs.h" |
| 448 |
#include <sys/types.h> |
| 449 |
#include <sys/wait.h> |
| 450 |
@@ -1568,7 +1570,7 @@ |
| 451 |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 452 |
; return 0; } |
| 453 |
EOF |
| 454 |
|
| 455 |
+if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 456 |
rm -rf conftest* |
| 457 |
ac_cv_header_sys_wait_h=yes |
| 458 |
else |
| 459 |
@@ -1590,12 +1592,12 @@ |
| 460 |
|
| 461 |
|
| 462 |
echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 463 |
|
| 464 |
+echo "configure:1596: checking for working const" >&5 |
| 465 |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 466 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 467 |
else |
| 468 |
cat > conftest.$ac_ext <<EOF |
| 469 |
|
| 470 |
+#line 1601 "configure" |
| 471 |
#include "confdefs.h" |
| 472 |
|
| 473 |
int main() { |
| 474 |
@@ -1644,7 +1646,7 @@ |
| 475 |
|
| 476 |
; return 0; } |
| 477 |
EOF |
| 478 |
|
| 479 |
+if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 480 |
rm -rf conftest* |
| 481 |
ac_cv_c_const=yes |
| 482 |
else |
| 483 |
@@ -1665,12 +1667,12 @@ |
| 484 |
fi |
| 485 |
|
| 486 |
echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 487 |
|
| 488 |
+echo "configure:1671: checking for size_t" >&5 |
| 489 |
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 490 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 491 |
else |
| 492 |
cat > conftest.$ac_ext <<EOF |
| 493 |
|
| 494 |
+#line 1676 "configure" |
| 495 |
#include "confdefs.h" |
| 496 |
#include <sys/types.h> |
| 497 |
#if STDC_HEADERS |
| 498 |
@@ -1702,17 +1704,17 @@ |
| 499 |
do |
| 500 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 501 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 502 |
|
| 503 |
+echo "configure:1708: checking for $ac_hdr" >&5 |
| 504 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 505 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 506 |
else |
| 507 |
cat > conftest.$ac_ext <<EOF |
| 508 |
|
| 509 |
+#line 1713 "configure" |
| 510 |
#include "confdefs.h" |
| 511 |
#include <$ac_hdr> |
| 512 |
EOF |
| 513 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 514 |
|
| 515 |
+{ (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 516 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 517 |
if test -z "$ac_err"; then |
| 518 |
rm -rf conftest* |
| 519 |
@@ -1741,12 +1743,12 @@ |
| 520 |
for ac_func in getpagesize |
| 521 |
do |
| 522 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 523 |
|
| 524 |
+echo "configure:1747: checking for $ac_func" >&5 |
| 525 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 526 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 527 |
else |
| 528 |
cat > conftest.$ac_ext <<EOF |
| 529 |
|
| 530 |
+#line 1752 "configure" |
| 531 |
#include "confdefs.h" |
| 532 |
/* System header to define __stub macros and hopefully few prototypes, |
| 533 |
which can conflict with char $ac_func(); below. */ |
| 534 |
@@ -1769,7 +1771,7 @@ |
| 535 |
|
| 536 |
; return 0; } |
| 537 |
EOF |
| 538 |
|
| 539 |
+if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 540 |
rm -rf conftest* |
| 541 |
eval "ac_cv_func_$ac_func=yes" |
| 542 |
else |
| 543 |
@@ -1794,7 +1796,7 @@ |
| 544 |
done |
| 545 |
|
| 546 |
echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
| 547 |
|
| 548 |
+echo "configure:1800: checking for working mmap" >&5 |
| 549 |
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 550 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 551 |
else |
| 552 |
@@ -1802,7 +1804,7 @@ |
| 553 |
ac_cv_func_mmap_fixed_mapped=no |
| 554 |
else |
| 555 |
cat > conftest.$ac_ext <<EOF |
| 556 |
|
| 557 |
+#line 1808 "configure" |
| 558 |
#include "confdefs.h" |
| 559 |
|
| 560 |
/* Thanks to Mike Haertel and Jim Avera for this test. |
| 561 |
@@ -1942,7 +1944,7 @@ |
| 562 |
} |
| 563 |
|
| 564 |
EOF |
| 565 |
|
| 566 |
+if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 567 |
then |
| 568 |
ac_cv_func_mmap_fixed_mapped=yes |
| 569 |
else |
| 570 |
@@ -1965,7 +1967,7 @@ |
| 571 |
fi |
| 572 |
|
| 573 |
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 |
| 574 |
|
| 575 |
+echo "configure:1971: checking for 8-bit clean memcmp" >&5 |
| 576 |
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then |
| 577 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 578 |
else |
| 579 |
@@ -1973,7 +1975,7 @@ |
| 580 |
ac_cv_func_memcmp_clean=no |
| 581 |
else |
| 582 |
cat > conftest.$ac_ext <<EOF |
| 583 |
|
| 584 |
+#line 1979 "configure" |
| 585 |
#include "confdefs.h" |
| 586 |
|
| 587 |
main() |
| 588 |
@@ -1983,7 +1985,7 @@ |
| 589 |
} |
| 590 |
|
| 591 |
EOF |
| 592 |
|
| 593 |
+if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 594 |
then |
| 595 |
ac_cv_func_memcmp_clean=yes |
| 596 |
else |
| 597 |
@@ -2001,12 +2003,12 @@ |
| 598 |
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" |
| 599 |
|
| 600 |
echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
| 601 |
|
| 602 |
+echo "configure:2007: checking for vprintf" >&5 |
| 603 |
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 604 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 605 |
else |
| 606 |
cat > conftest.$ac_ext <<EOF |
| 607 |
|
| 608 |
+#line 2012 "configure" |
| 609 |
#include "confdefs.h" |
| 610 |
/* System header to define __stub macros and hopefully few prototypes, |
| 611 |
which can conflict with char vprintf(); below. */ |
| 612 |
@@ -2029,7 +2031,7 @@ |
| 613 |
|
| 614 |
; return 0; } |
| 615 |
EOF |
| 616 |
|
| 617 |
+if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 618 |
rm -rf conftest* |
| 619 |
eval "ac_cv_func_vprintf=yes" |
| 620 |
else |
| 621 |
@@ -2053,12 +2055,12 @@ |
| 622 |
|
| 623 |
if test "$ac_cv_func_vprintf" != yes; then |
| 624 |
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
| 625 |
|
| 626 |
+echo "configure:2059: checking for _doprnt" >&5 |
| 627 |
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 628 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 629 |
else |
| 630 |
cat > conftest.$ac_ext <<EOF |
| 631 |
|
| 632 |
+#line 2064 "configure" |
| 633 |
#include "confdefs.h" |
| 634 |
/* System header to define __stub macros and hopefully few prototypes, |
| 635 |
which can conflict with char _doprnt(); below. */ |
| 636 |
@@ -2081,7 +2083,7 @@ |
| 637 |
|
| 638 |
; return 0; } |
| 639 |
EOF |
| 640 |
|
| 641 |
+if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 642 |
rm -rf conftest* |
| 643 |
eval "ac_cv_func__doprnt=yes" |
| 644 |
else |
| 645 |
@@ -2106,12 +2108,12 @@ |
| 646 |
fi |
| 647 |
|
| 648 |
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 649 |
|
| 650 |
+echo "configure:2112: checking return type of signal handlers" >&5 |
| 651 |
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 652 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 653 |
else |
| 654 |
cat > conftest.$ac_ext <<EOF |
| 655 |
|
| 656 |
+#line 2117 "configure" |
| 657 |
#include "confdefs.h" |
| 658 |
#include <sys/types.h> |
| 659 |
#include <signal.h> |
| 660 |
@@ -2128,7 +2130,7 @@ |
| 661 |
int i; |
| 662 |
; return 0; } |
| 663 |
EOF |
| 664 |
|
| 665 |
+if { (eval echo configure:2134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 666 |
rm -rf conftest* |
| 667 |
ac_cv_type_signal=void |
| 668 |
else |
| 669 |
@@ -2149,12 +2151,12 @@ |
| 670 |
for ac_func in getcwd gethostname mkdir re_comp regcomp select snprintf socket strdup strerror strstr fstat fchmod fchown utime utimes memmove sigset vsnprintf waitpid random srandom |
| 671 |
do |
| 672 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 673 |
|
| 674 |
+echo "configure:2155: checking for $ac_func" >&5 |
| 675 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 676 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 677 |
else |
| 678 |
cat > conftest.$ac_ext <<EOF |
| 679 |
|
| 680 |
+#line 2160 "configure" |
| 681 |
#include "confdefs.h" |
| 682 |
/* System header to define __stub macros and hopefully few prototypes, |
| 683 |
which can conflict with char $ac_func(); below. */ |
| 684 |
@@ -2177,7 +2179,7 @@ |
| 685 |
|
| 686 |
; return 0; } |
| 687 |
EOF |
| 688 |
|
| 689 |
+if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 690 |
rm -rf conftest* |
| 691 |
eval "ac_cv_func_$ac_func=yes" |
| 692 |
else |
| 693 |
@@ -2202,7 +2204,7 @@ |
| 694 |
done |
| 695 |
|
| 696 |
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
| 697 |
|
| 698 |
+echo "configure:2208: checking for socket in -lsocket" >&5 |
| 699 |
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 700 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 701 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 702 |
@@ -2210,7 +2212,7 @@ |
| 703 |
ac_save_LIBS="$LIBS" |
| 704 |
LIBS="-lsocket $LIBS" |
| 705 |
cat > conftest.$ac_ext <<EOF |
| 706 |
|
| 707 |
+#line 2216 "configure" |
| 708 |
#include "confdefs.h" |
| 709 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 710 |
/* We use char because int might match the return type of a gcc2 |
| 711 |
@@ -2221,7 +2223,7 @@ |
| 712 |
socket() |
| 713 |
; return 0; } |
| 714 |
EOF |
| 715 |
|
| 716 |
+if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 717 |
rm -rf conftest* |
| 718 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 719 |
else |
| 720 |
@@ -2242,7 +2244,7 @@ |
| 721 |
fi |
| 722 |
|
| 723 |
echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6 |
| 724 |
|
| 725 |
+echo "configure:2248: checking for t_accept in -lnsl" >&5 |
| 726 |
ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'` |
| 727 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 728 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 729 |
@@ -2250,7 +2252,7 @@ |
| 730 |
ac_save_LIBS="$LIBS" |
| 731 |
LIBS="-lnsl $LIBS" |
| 732 |
cat > conftest.$ac_ext <<EOF |
| 733 |
|
| 734 |
+#line 2256 "configure" |
| 735 |
#include "confdefs.h" |
| 736 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 737 |
/* We use char because int might match the return type of a gcc2 |
| 738 |
@@ -2261,7 +2263,7 @@ |
| 739 |
t_accept() |
| 740 |
; return 0; } |
| 741 |
EOF |
| 742 |
|
| 743 |
+if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 744 |
rm -rf conftest* |
| 745 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 746 |
else |
| 747 |
@@ -2283,7 +2285,7 @@ |
| 748 |
|
| 749 |
|
| 750 |
echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 |
| 751 |
|
| 752 |
+echo "configure:2289: checking for readline in -lreadline" >&5 |
| 753 |
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` |
| 754 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 755 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 756 |
@@ -2291,7 +2293,7 @@ |
| 757 |
ac_save_LIBS="$LIBS" |
| 758 |
LIBS="-lreadline $LIBS" |
| 759 |
cat > conftest.$ac_ext <<EOF |
| 760 |
|
| 761 |
+#line 2297 "configure" |
| 762 |
#include "confdefs.h" |
| 763 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 764 |
/* We use char because int might match the return type of a gcc2 |
| 765 |
@@ -2302,7 +2304,7 @@ |
| 766 |
readline() |
| 767 |
; return 0; } |
| 768 |
EOF |
| 769 |
|
| 770 |
+if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 771 |
rm -rf conftest* |
| 772 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 773 |
else |
| 774 |
@@ -2317,7 +2319,10 @@ |
| 775 |
fi |
| 776 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 777 |
echo "$ac_t""yes" 1>&6 |
| 778 |
|
| 779 |
+ cat >> confdefs.h <<\EOF |
| 780 |
+#define HAVE_LIBREADLINE 1 |
| 781 |
+EOF |
| 782 |
+ RL_LIBS="-lreadline" |
| 783 |
else |
| 784 |
echo "$ac_t""no" 1>&6 |
| 785 |
fi |
| 786 |
@@ -2325,7 +2330,7 @@ |
| 787 |
|
| 788 |
|
| 789 |
echo $ac_n "checking for gsm_decode in -lgsm""... $ac_c" 1>&6 |
| 790 |
|
| 791 |
+echo "configure:2334: checking for gsm_decode in -lgsm" >&5 |
| 792 |
ac_lib_var=`echo gsm'_'gsm_decode | sed 'y%./+-%__p_%'` |
| 793 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 794 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 795 |
@@ -2333,7 +2338,7 @@ |
| 796 |
ac_save_LIBS="$LIBS" |
| 797 |
LIBS="-lgsm $LIBS" |
| 798 |
cat > conftest.$ac_ext <<EOF |
| 799 |
|
| 800 |
+#line 2342 "configure" |
| 801 |
#include "confdefs.h" |
| 802 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 803 |
/* We use char because int might match the return type of a gcc2 |
| 804 |
@@ -2344,7 +2349,7 @@ |
| 805 |
gsm_decode() |
| 806 |
; return 0; } |
| 807 |
EOF |
| 808 |
|
| 809 |
+if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 810 |
rm -rf conftest* |
| 811 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 812 |
else |
| 813 |
@@ -2359,42 +2364,91 @@ |
| 814 |
fi |
| 815 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 816 |
echo "$ac_t""yes" 1>&6 |
| 817 |
|
| 818 |
+ GSM_LIBS="-lgsm"; GSM_INCS="" |
| 819 |
else |
| 820 |
echo "$ac_t""no" 1>&6 |
| 821 |
+ |
| 822 |
+ GSM_LIBS="-L../gsm -lgsm"; GSM_INCS="-I\${srcdir}/../gsm" |
| 823 |
+ BUILD_TARGETS="$BUILD_TARGETS gsm" |
| 824 |
+ |
| 825 |
fi |
| 826 |
|
| 827 |
|
| 828 |
|
| 829 |
|
| 830 |
+ |
| 831 |
+ |
| 832 |
+ |
| 833 |
+for ac_func in regcomp |
| 834 |
+do |
| 835 |
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 836 |
+echo "configure:2383: checking for $ac_func" >&5 |
| 837 |
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 838 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
| 839 |
else |
| 840 |
|
| 841 |
|
| 842 |
|
| 843 |
+ cat > conftest.$ac_ext <<EOF |
| 844 |
+#line 2388 "configure" |
| 845 |
+#include "confdefs.h" |
| 846 |
+/* System header to define __stub macros and hopefully few prototypes, |
| 847 |
+ which can conflict with char $ac_func(); below. */ |
| 848 |
+#include <assert.h> |
| 849 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
| 850 |
+/* We use char because int might match the return type of a gcc2 |
| 851 |
+ builtin and then its argument prototype would still apply. */ |
| 852 |
+char $ac_func(); |
| 853 |
|
| 854 |
+int main() { |
| 855 |
|
| 856 |
+/* The GNU C library defines this for functions which it implements |
| 857 |
+ to always fail with ENOSYS. Some functions are actually named |
| 858 |
+ something starting with __ and the normal name is an alias. */ |
| 859 |
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 860 |
+choke me |
| 861 |
+#else |
| 862 |
+$ac_func(); |
| 863 |
+#endif |
| 864 |
|
| 865 |
|
| 866 |
|
| 867 |
|
| 868 |
+; return 0; } |
| 869 |
+EOF |
| 870 |
+if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 871 |
+ rm -rf conftest* |
| 872 |
+ eval "ac_cv_func_$ac_func=yes" |
| 873 |
+else |
| 874 |
+ echo "configure: failed program was:" >&5 |
| 875 |
+ cat conftest.$ac_ext >&5 |
| 876 |
+ rm -rf conftest* |
| 877 |
+ eval "ac_cv_func_$ac_func=no" |
| 878 |
+fi |
| 879 |
+rm -f conftest* |
| 880 |
+fi |
| 881 |
+ |
| 882 |
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 883 |
+ echo "$ac_t""yes" 1>&6 |
| 884 |
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 885 |
+ cat >> confdefs.h <<EOF |
| 886 |
+#define $ac_tr_func 1 |
| 887 |
+EOF |
| 888 |
+ |
| 889 |
+else |
| 890 |
+ echo "$ac_t""no" 1>&6 |
| 891 |
+echo $ac_n "checking for regcomp in -lrx""... $ac_c" 1>&6 |
| 892 |
+echo "configure:2433: checking for regcomp in -lrx" >&5 |
| 893 |
+ac_lib_var=`echo rx'_'regcomp | sed 'y%./+-%__p_%'` |
| 894 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 895 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 896 |
else |
| 897 |
ac_save_LIBS="$LIBS" |
| 898 |
LIBS="-lrx $LIBS" |
| 899 |
cat > conftest.$ac_ext <<EOF |
| 900 |
|
| 901 |
+#line 2441 "configure" |
| 902 |
#include "confdefs.h" |
| 903 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 904 |
/* We use char because int might match the return type of a gcc2 |
| 905 |
builtin and then its argument prototype would still apply. */ |
| 906 |
|
| 907 |
+char regcomp(); |
| 908 |
|
| 909 |
int main() { |
| 910 |
|
| 911 |
+regcomp() |
| 912 |
; return 0; } |
| 913 |
EOF |
| 914 |
|
| 915 |
+if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 916 |
rm -rf conftest* |
| 917 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 918 |
else |
| 919 |
@@ -2409,18 +2463,22 @@ |
| 920 |
fi |
| 921 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 922 |
echo "$ac_t""yes" 1>&6 |
| 923 |
|
| 924 |
+ RX_LIBS="-lrx"; RX_INCS="" |
| 925 |
else |
| 926 |
echo "$ac_t""no" 1>&6 |
| 927 |
+ |
| 928 |
+ RX_LIBS="-L../rx -lrx"; RX_INCS="-I\${srcdir}/../rx" |
| 929 |
+ BUILD_TARGETS="$BUILD_TARGETS rx" |
| 930 |
+ subdirs="rx" |
| 931 |
+s%@subdirs@%$subdirs%g |
| 932 |
+ |
| 933 |
+ |
| 934 |
fi |
| 935 |
|
| 936 |
|
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
|
| 941 |
|
| 942 |
+ |
| 943 |
fi |
| 944 |
+done |
| 945 |
+ |
| 946 |
|
| 947 |
|
| 948 |
|
| 949 |
@@ -2434,9 +2492,9 @@ |
| 950 |
|
| 951 |
if test -z "$RPLAY_TARGET"; then |
| 952 |
echo $ac_n "checking for sun""... $ac_c" 1>&6 |
| 953 |
|
| 954 |
+echo "configure:2496: checking for sun" >&5 |
| 955 |
cat > conftest.$ac_ext <<EOF |
| 956 |
|
| 957 |
+#line 2498 "configure" |
| 958 |
#include "confdefs.h" |
| 959 |
|
| 960 |
#ifdef sun |
| 961 |
@@ -2460,7 +2518,7 @@ |
| 962 |
fi |
| 963 |
if test "$RPLAY_TARGET"; then |
| 964 |
echo $ac_n "checking for solaris""... $ac_c" 1>&6 |
| 965 |
|
| 966 |
+echo "configure:2522: checking for solaris" >&5 |
| 967 |
if test ! -f /vmunix; then |
| 968 |
is_solaris=yes |
| 969 |
RPLAY_TARGET="solaris" |
| 970 |
@@ -2473,9 +2531,9 @@ |
| 971 |
|
| 972 |
if test -z "$RPLAY_TARGET"; then |
| 973 |
echo $ac_n "checking for linux""... $ac_c" 1>&6 |
| 974 |
|
| 975 |
+echo "configure:2535: checking for linux" >&5 |
| 976 |
cat > conftest.$ac_ext <<EOF |
| 977 |
|
| 978 |
+#line 2537 "configure" |
| 979 |
#include "confdefs.h" |
| 980 |
|
| 981 |
#ifdef linux |
| 982 |
@@ -2501,9 +2559,9 @@ |
| 983 |
|
| 984 |
if test -z "$RPLAY_TARGET"; then |
| 985 |
echo $ac_n "checking for hpux""... $ac_c" 1>&6 |
| 986 |
|
| 987 |
+echo "configure:2563: checking for hpux" >&5 |
| 988 |
cat > conftest.$ac_ext <<EOF |
| 989 |
|
| 990 |
+#line 2565 "configure" |
| 991 |
#include "confdefs.h" |
| 992 |
|
| 993 |
#ifdef __hpux |
| 994 |
@@ -2529,9 +2587,9 @@ |
| 995 |
|
| 996 |
if test -z "$RPLAY_TARGET"; then |
| 997 |
echo $ac_n "checking for sgi""... $ac_c" 1>&6 |
| 998 |
|
| 999 |
+echo "configure:2591: checking for sgi" >&5 |
| 1000 |
cat > conftest.$ac_ext <<EOF |
| 1001 |
|
| 1002 |
+#line 2593 "configure" |
| 1003 |
#include "confdefs.h" |
| 1004 |
|
| 1005 |
#ifdef sgi |
| 1006 |
@@ -2553,22 +2611,22 @@ |
| 1007 |
if test $is_sgi = "yes"; then |
| 1008 |
RPLAY_TARGET="sgi" |
| 1009 |
echo $ac_n "checking for multimedia development kit""... $ac_c" 1>&6 |
| 1010 |
|
| 1011 |
+echo "configure:2615: checking for multimedia development kit" >&5 |
| 1012 |
for ac_hdr in audio.h |
| 1013 |
do |
| 1014 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1015 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1016 |
|
| 1017 |
+echo "configure:2620: checking for $ac_hdr" >&5 |
| 1018 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1019 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1020 |
else |
| 1021 |
cat > conftest.$ac_ext <<EOF |
| 1022 |
|
| 1023 |
+#line 2625 "configure" |
| 1024 |
#include "confdefs.h" |
| 1025 |
#include <$ac_hdr> |
| 1026 |
EOF |
| 1027 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1028 |
|
| 1029 |
+{ (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1030 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1031 |
if test -z "$ac_err"; then |
| 1032 |
rm -rf conftest* |
| 1033 |
@@ -2604,12 +2662,12 @@ |
| 1034 |
|
| 1035 |
if test -z "$RPLAY_TARGET"; then |
| 1036 |
echo $ac_n "checking for FreeBSD""... $ac_c" 1>&6 |
| 1037 |
|
| 1038 |
+echo "configure:2666: checking for FreeBSD" >&5 |
| 1039 |
cat > conftest.$ac_ext <<EOF |
| 1040 |
|
| 1041 |
+#line 2668 "configure" |
| 1042 |
#include "confdefs.h" |
| 1043 |
|
| 1044 |
|
| 1045 |
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |
| 1046 |
yes |
| 1047 |
#endif |
| 1048 |
|
| 1049 |
@@ -2633,12 +2691,9 @@ |
| 1050 |
|
| 1051 |
if test -z "$RPLAY_TARGET"; then |
| 1052 |
echo 'Sorry, I could not figure out what type of system you have.' |
| 1053 |
|
| 1054 |
|
| 1055 |
|
| 1056 |
|
| 1057 |
|
| 1058 |
|
| 1059 |
+ echo 'Will try the generic configuration.' |
| 1060 |
+ sleep 5 |
| 1061 |
+ RPLAY_TARGET="generic" |
| 1062 |
fi |
| 1063 |
|
| 1064 |
echo "using $RPLAY_TARGET configuration" |
| 1065 |
@@ -2659,21 +2714,11 @@ |
| 1066 |
fi |
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
|
| 1071 |
|
| 1072 |
|
| 1073 |
|
| 1074 |
|
| 1075 |
|
| 1076 |
|
| 1077 |
|
| 1078 |
|
| 1079 |
BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc" |
| 1080 |
|
| 1081 |
|
| 1082 |
|
| 1083 |
|
| 1084 |
+case "$RPLAY_TARGET" in |
| 1085 |
+ oss|FreeBSD|generic) BUILD_TARGETS="$BUILD_TARGETS devrplay";; |
| 1086 |
+esac |
| 1087 |
|
| 1088 |
|
| 1089 |
|
| 1090 |
@@ -2832,7 +2877,6 @@ |
| 1091 |
s%@RX_INCS@%$RX_INCS%g |
| 1092 |
s%@RPLAY_TOP@%$RPLAY_TOP%g |
| 1093 |
s%@RPLAY_TARGET@%$RPLAY_TARGET%g |
| 1094 |
|
| 1095 |
s%@BUILD_TARGETS@%$BUILD_TARGETS%g |
| 1096 |
|
| 1097 |
CEOF |
| 1098 |
@@ -3191,7 +3235,7 @@ |
| 1099 |
fi |
| 1100 |
fi |
| 1101 |
|
| 1102 |
|
| 1103 |
+ cd "$ac_popdir" |
| 1104 |
done |
| 1105 |
fi |
| 1106 |
|
| 1107 |
Index: rplay/configure.in |
| 1108 |
=================================================================== |
| 1109 |
--- rplay.orig/configure.in 2024-08-08 09:34:14.963482455 +0200 |
| 1110 |
+++ rplay/configure.in 2024-08-08 09:34:55.063516575 +0200 |
| 1111 |
@@ -6,6 +6,8 @@ |
| 1112 |
AC_INIT(rplayd/rplayd.c) |
| 1113 |
AC_CONFIG_HEADER(include/config.h) |
| 1114 |
|
| 1115 |
+BUILD_TARGETS="include lib adpcm" |
| 1116 |
+ |
| 1117 |
dnl |
| 1118 |
dnl Figure what version of rplay this is. |
| 1119 |
dnl |
| 1120 |
@@ -15,7 +17,7 @@ |
| 1121 |
|
| 1122 |
echo configuring rplay version $RPLAY_VERSION |
| 1123 |
AC_SUBST(RPLAY_VERSION) |
| 1124 |
|
| 1125 |
+AC_DEFINE_UNQUOTED([RPLAY_VERSION], [], "$RPLAY_VERSION") |
| 1126 |
|
| 1127 |
# We want these before the checks, so the checks can modify their values. |
| 1128 |
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 |
| 1129 |
@@ -32,11 +34,11 @@ |
| 1130 |
AC_ARG_ENABLE(rplayd-group, [ --enable-rplayd-group=GROUP], RPLAYD_GROUP=$enableval) |
| 1131 |
if test -n "$RPLAYD_USER" |
| 1132 |
then |
| 1133 |
|
| 1134 |
+AC_DEFINE_UNQUOTED([RPLAYD_USER], [], "$RPLAYD_USER") |
| 1135 |
fi |
| 1136 |
if test -n "$RPLAYD_GROUP" |
| 1137 |
then |
| 1138 |
|
| 1139 |
+AC_DEFINE_UNQUOTED([RPLAYD_GROUP], [], "$RPLAYD_GROUP") |
| 1140 |
fi |
| 1141 |
|
| 1142 |
|
| 1143 |
@@ -58,7 +60,7 @@ |
| 1144 |
AC_HEADER_STDC |
| 1145 |
AC_HEADER_TIME |
| 1146 |
dnl AC_PATH_XTRA |
| 1147 |
|
| 1148 |
+AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h regex.h rxposix.h rx/rxposix.h) |
| 1149 |
AC_HEADER_SYS_WAIT |
| 1150 |
|
| 1151 |
dnl Check for typedefs, structures, and compiler characteristics. |
| 1152 |
@@ -74,28 +76,31 @@ |
| 1153 |
AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
| 1154 |
AC_CHECK_LIB(nsl, t_accept, [LIBS="$LIBS -lnsl"]) |
| 1155 |
|
| 1156 |
|
| 1157 |
+AC_CHECK_LIB(readline, readline, |
| 1158 |
+ [AC_DEFINE([HAVE_LIBREADLINE], [], [use libreadline]) RL_LIBS="-lreadline"]) |
| 1159 |
AC_SUBST(RL_LIBS) |
| 1160 |
|
| 1161 |
|
| 1162 |
|
| 1163 |
|
| 1164 |
|
| 1165 |
|
| 1166 |
|
| 1167 |
|
| 1168 |
|
| 1169 |
+AC_CHECK_LIB(gsm, gsm_decode, |
| 1170 |
+ [GSM_LIBS="-lgsm"; GSM_INCS=""], |
| 1171 |
+ [ |
| 1172 |
+ GSM_LIBS="-L../gsm -lgsm"; GSM_INCS="-I\${srcdir}/../gsm" |
| 1173 |
+ BUILD_TARGETS="$BUILD_TARGETS gsm" |
| 1174 |
+ ]) |
| 1175 |
AC_SUBST(GSM_LIBS) |
| 1176 |
AC_SUBST(GSM_INCS) |
| 1177 |
|
| 1178 |
|
| 1179 |
|
| 1180 |
|
| 1181 |
|
| 1182 |
|
| 1183 |
|
| 1184 |
|
| 1185 |
|
| 1186 |
+dnl check for regcomp in libc, librx, or build rx |
| 1187 |
+AC_CHECK_FUNCS(regcomp, |
| 1188 |
+ [], |
| 1189 |
+ [ |
| 1190 |
+ AC_CHECK_LIB(rx, regcomp, |
| 1191 |
+ [RX_LIBS="-lrx"; RX_INCS=""], |
| 1192 |
+ [ |
| 1193 |
+ RX_LIBS="-L../rx -lrx"; RX_INCS="-I\${srcdir}/../rx" |
| 1194 |
+ BUILD_TARGETS="$BUILD_TARGETS rx" |
| 1195 |
+ AC_CONFIG_SUBDIRS(rx) |
| 1196 |
+ ]) |
| 1197 |
+ ]) |
| 1198 |
AC_SUBST(RX_LIBS) |
| 1199 |
AC_SUBST(RX_INCS) |
| 1200 |
|
| 1201 |
@@ -202,7 +207,7 @@ |
| 1202 |
AC_MSG_CHECKING(for FreeBSD) |
| 1203 |
AC_EGREP_CPP(yes, |
| 1204 |
[ |
| 1205 |
|
| 1206 |
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |
| 1207 |
yes |
| 1208 |
#endif |
| 1209 |
], is_freebsd=yes, is_freebsd=no) |
| 1210 |
@@ -221,12 +226,9 @@ |
| 1211 |
dnl |
| 1212 |
if test -z "$RPLAY_TARGET"; then |
| 1213 |
echo 'Sorry, I could not figure out what type of system you have.' |
| 1214 |
|
| 1215 |
|
| 1216 |
|
| 1217 |
|
| 1218 |
|
| 1219 |
|
| 1220 |
+ echo 'Will try the generic configuration.' |
| 1221 |
+ sleep 5 |
| 1222 |
+ RPLAY_TARGET="generic" |
| 1223 |
fi |
| 1224 |
|
| 1225 |
echo "using $RPLAY_TARGET configuration" |
| 1226 |
@@ -238,7 +240,7 @@ |
| 1227 |
dnl Add special things to @DEFS@. |
| 1228 |
dnl |
| 1229 |
if test $RPLAY_TARGET = "solaris"; then |
| 1230 |
|
| 1231 |
+ AC_DEFINE([SVR4], [], "target is solaris") |
| 1232 |
fi |
| 1233 |
AC_SUBST(DEFS) |
| 1234 |
|
| 1235 |
@@ -250,20 +252,11 @@ |
| 1236 |
fi |
| 1237 |
AC_SUBST(LIBS) |
| 1238 |
|
| 1239 |
|
| 1240 |
|
| 1241 |
|
| 1242 |
|
| 1243 |
|
| 1244 |
|
| 1245 |
|
| 1246 |
|
| 1247 |
|
| 1248 |
BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc" |
| 1249 |
|
| 1250 |
|
| 1251 |
|
| 1252 |
|
| 1253 |
+case "$RPLAY_TARGET" in |
| 1254 |
+ oss|FreeBSD|generic) BUILD_TARGETS="$BUILD_TARGETS devrplay";; |
| 1255 |
+esac |
| 1256 |
|
| 1257 |
AC_SUBST(BUILD_TARGETS) |
| 1258 |
|
| 1259 |
Index: rplay/doc/librplay.info |
| 1260 |
=================================================================== |
| 1261 |
--- rplay.orig/doc/librplay.info 2024-08-08 09:34:14.963482455 +0200 |
| 1262 |
+++ rplay/doc/librplay.info 2024-08-08 09:34:14.955482448 +0200 |
| 1263 |
@@ -1,5 +1,10 @@ |
| 1264 |
|
| 1265 |
|
| 1266 |
+This is librplay.info, produced by makeinfo version 4.1 from |
| 1267 |
+librplay.texi. |
| 1268 |
+ |
| 1269 |
+INFO-DIR-SECTION Development |
| 1270 |
+START-INFO-DIR-ENTRY |
| 1271 |
+* librplay: (librplay). The rplay library. |
| 1272 |
+END-INFO-DIR-ENTRY |
| 1273 |
|
| 1274 |
This file documents librplay. |
| 1275 |
|
| 1276 |
@@ -658,52 +663,52 @@ |
| 1277 |
|
| 1278 |
* Menu: |
| 1279 |
|
| 1280 |
|
| 1281 |
|
| 1282 |
|
| 1283 |
|
| 1284 |
|
| 1285 |
|
| 1286 |
|
| 1287 |
|
| 1288 |
|
| 1289 |
|
| 1290 |
|
| 1291 |
|
| 1292 |
|
| 1293 |
|
| 1294 |
|
| 1295 |
|
| 1296 |
|
| 1297 |
|
| 1298 |
|
| 1299 |
|
| 1300 |
|
| 1301 |
|
| 1302 |
|
| 1303 |
|
| 1304 |
|
| 1305 |
|
| 1306 |
|
| 1307 |
|
| 1308 |
|
| 1309 |
|
| 1310 |
|
| 1311 |
|
| 1312 |
|
| 1313 |
|
| 1314 |
+* rplay: RPLAY Core Functions. |
| 1315 |
+* rplay_close: RPLAY Core Functions. |
| 1316 |
+* rplay_convert: RPLAY Miscellaneous Functions. |
| 1317 |
+* rplay_create: RPLAY Core Functions. |
| 1318 |
+* rplay_default: RPLAY Helper Functions. |
| 1319 |
+* rplay_default_host: RPLAY Helper Functions. |
| 1320 |
+* rplay_destroy: RPLAY Core Functions. |
| 1321 |
+* rplay_display: RPLAY Helper Functions. |
| 1322 |
+* rplay_get: RPLAY Core Functions. |
| 1323 |
+* rplay_host: RPLAY Helper Functions. |
| 1324 |
+* rplay_host_volume: RPLAY Helper Functions. |
| 1325 |
+* rplay_local: RPLAY Helper Functions. |
| 1326 |
+* rplay_open: RPLAY Core Functions. |
| 1327 |
+* rplay_open_default: RPLAY Helper Functions. |
| 1328 |
+* rplay_open_display: RPLAY Helper Functions. |
| 1329 |
+* rplay_open_port: RPLAY Helper Functions. |
| 1330 |
+* rplay_open_sockaddr_in: RPLAY Helper Functions. |
| 1331 |
+* rplay_pack: RPLAY Miscellaneous Functions. |
| 1332 |
+* rplay_perror: RPLAY Error Reporting. |
| 1333 |
+* rplay_ping: RPLAY Helper Functions. |
| 1334 |
+* rplay_ping_sockaddr_in: RPLAY Helper Functions. |
| 1335 |
+* rplay_ping_sockfd: RPLAY Helper Functions. |
| 1336 |
+* rplay_set: RPLAY Core Functions. |
| 1337 |
+* rplay_sound: RPLAY Helper Functions. |
| 1338 |
+* rplay_unpack: RPLAY Miscellaneous Functions. |
| 1339 |
+* rptp_close: RPTP Core Functions. |
| 1340 |
+* rptp_command: RPTP Helper Functions. |
| 1341 |
+* rptp_getline: RPTP Helper Functions. |
| 1342 |
+* rptp_open: RPTP Core Functions. |
| 1343 |
+* rptp_parse: RPTP Helper Functions. |
| 1344 |
+* rptp_perror: RPTP Error Reporting. |
| 1345 |
+* rptp_putline: RPTP Helper Functions. |
| 1346 |
+* rptp_read: RPTP Core Functions. |
| 1347 |
+* rptp_write: RPTP Core Functions. |
| 1348 |
|
| 1349 |
|
| 1350 |
|
| 1351 |
Tag Table: |
| 1352 |
|
| 1353 |
|
| 1354 |
|
| 1355 |
|
| 1356 |
|
| 1357 |
|
| 1358 |
|
| 1359 |
|
| 1360 |
|
| 1361 |
+Node: Top835 |
| 1362 |
+Node: RPLAY Core Functions1987 |
| 1363 |
+Node: RPLAY Helper Functions7114 |
| 1364 |
+Node: RPLAY Miscellaneous Functions12829 |
| 1365 |
+Node: RPLAY Error Reporting13993 |
| 1366 |
+Node: RPTP Core Functions14499 |
| 1367 |
+Node: RPTP Helper Functions16409 |
| 1368 |
+Node: RPTP Error Reporting19729 |
| 1369 |
+Node: Function Index20214 |
| 1370 |
|
| 1371 |
End Tag Table |
| 1372 |
Index: rplay/doc/librplay.texi |
| 1373 |
=================================================================== |
| 1374 |
--- rplay.orig/doc/librplay.texi 2024-08-08 09:34:14.963482455 +0200 |
| 1375 |
+++ rplay/doc/librplay.texi 2024-08-08 09:34:14.955482448 +0200 |
| 1376 |
@@ -10,6 +10,11 @@ |
| 1377 |
|
| 1378 |
@ifinfo |
| 1379 |
|
| 1380 |
+@dircategory Development |
| 1381 |
+@direntry |
| 1382 |
+* librplay: (librplay). The rplay library. |
| 1383 |
+@end direntry |
| 1384 |
+ |
| 1385 |
This file documents librplay. |
| 1386 |
|
| 1387 |
Copyright (C) 1995 Mark Boyns |
| 1388 |
Index: rplay/doc/rplay.texi |
| 1389 |
=================================================================== |
| 1390 |
--- rplay.orig/doc/rplay.texi 2024-08-08 09:34:14.963482455 +0200 |
| 1391 |
+++ rplay/doc/rplay.texi 2024-08-08 09:34:14.955482448 +0200 |
| 1392 |
@@ -10,6 +10,11 @@ |
| 1393 |
|
| 1394 |
@ifinfo |
| 1395 |
|
| 1396 |
+@dircategory Development |
| 1397 |
+@direntry |
| 1398 |
+* rplay: (rplay). The rplay Network Audio System |
| 1399 |
+@end direntry |
| 1400 |
+ |
| 1401 |
This file documents the rplay Network Audio System. |
| 1402 |
|
| 1403 |
Copyright (C) 1993-97 Mark Boyns |
| 1404 |
Index: rplay/doc/rplay.hosts.5 |
| 1405 |
=================================================================== |
| 1406 |
--- rplay.orig/doc/rplay.hosts.5 2024-08-08 09:34:14.963482455 +0200 |
| 1407 |
+++ rplay/doc/rplay.hosts.5 2024-08-08 09:34:14.955482448 +0200 |
| 1408 |
@@ -34,6 +34,9 @@ |
| 1409 |
.B x |
| 1410 |
the host can play, stop, pause, and continue sounds. This |
| 1411 |
is normally called execute permission. |
| 1412 |
+.TP 3 |
| 1413 |
+.B m |
| 1414 |
+the host can monitor the audio stream written by rplayd to the audio device. |
| 1415 |
.RE |
| 1416 |
.TP |
| 1417 |
"rx" permissions are used when no permissions are specified. |
| 1418 |
@@ -61,6 +64,12 @@ |
| 1419 |
130.190.*:rx |
| 1420 |
146.244.234.*:rx |
| 1421 |
using.default.perms.edu |
| 1422 |
+ |
| 1423 |
+# |
| 1424 |
+# Hosts which can monitor the audio stream |
| 1425 |
+# |
| 1426 |
+nsa.sdsu.edu:m |
| 1427 |
+ |
| 1428 |
.fi |
| 1429 |
.ft R |
| 1430 |
.LP |
| 1431 |
Index: rplay/doc/rplaydsp.1 |
| 1432 |
=================================================================== |
| 1433 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 1434 |
+++ rplay/doc/rplaydsp.1 2024-08-08 09:34:14.955482448 +0200 |
| 1435 |
@@ -0,0 +1,34 @@ |
| 1436 |
+.TH RPLAYDSP 1 2000/05/02 |
| 1437 |
+.SH NAME |
| 1438 |
+rplaydsp \- intercept data bound for /dev/dsp and route it to rplayd |
| 1439 |
+.SH SYNOPSIS |
| 1440 |
+.B rplaydsp command [command arguments] |
| 1441 |
+.SH DESCRIPTION |
| 1442 |
+rplaydsp allows sound tools to interact with rplayd without having been |
| 1443 |
+coded to do so. Any program that writes data to /dev/dsp should work with |
| 1444 |
+rplaydsp. |
| 1445 |
+ |
| 1446 |
+The following environment variables can be used to modify the default |
| 1447 |
+behavior of rplaydsp. |
| 1448 |
+ |
| 1449 |
+RPLAY_HOST: By default, rplaydsp talks to the local rplayd. If you need |
| 1450 |
+the output to go somewhere else, then set RPLAY_HOST to the remote |
| 1451 |
+hostname or ip address. |
| 1452 |
+ |
| 1453 |
+DEVRPLAY_SOUND: Sounds can be named under rplayd, the default name used by |
| 1454 |
+rplaydsp is 'devrplay'. Use this variable to control the name of the |
| 1455 |
+sound. |
| 1456 |
+ |
| 1457 |
+DEVRPLAY_INFO: If your sound isn't the "standard" wav format and speed, |
| 1458 |
+you can set this variable so that rplayd grok the sound. An example value |
| 1459 |
+for a .au file is: |
| 1460 |
+ input-info=ulinear8,8000,1,1,little-endian |
| 1461 |
+ |
| 1462 |
+DEVRPLAY_OPTS: Set this variable to pass a generic set of RPTP options to |
| 1463 |
+rplayd. |
| 1464 |
+ |
| 1465 |
+.SH EXAMPLES |
| 1466 |
+rplaydsp realplayer http://www.example.com/foo.ram |
| 1467 |
+.SH SEE ALSO |
| 1468 |
+.IR rplayd (8), |
| 1469 |
+.IR rplay (1) |
| 1470 |
Index: rplay/doc/RPTP.info |
| 1471 |
=================================================================== |
| 1472 |
--- rplay.orig/doc/RPTP.info 2024-08-08 09:34:14.963482455 +0200 |
| 1473 |
+++ rplay/doc/RPTP.info 2024-08-08 09:34:14.955482448 +0200 |
| 1474 |
@@ -1,5 +1,9 @@ |
| 1475 |
|
| 1476 |
|
| 1477 |
+This is RPTP.info, produced by makeinfo version 4.1 from RPTP.texi. |
| 1478 |
+ |
| 1479 |
+INFO-DIR-SECTION Development |
| 1480 |
+START-INFO-DIR-ENTRY |
| 1481 |
+* RPTP: (RPTP). The RPTP Protocol. |
| 1482 |
+END-INFO-DIR-ENTRY |
| 1483 |
|
| 1484 |
This file documents RPTP protocol. |
| 1485 |
|
| 1486 |
@@ -570,7 +574,7 @@ |
| 1487 |
info sound=bogus.au |
| 1488 |
+sound=bogus.au size=9574 bits=8 sample-rate=8000 channels=1 |
| 1489 |
|
| 1490 |
|
| 1491 |
+ - Command: list [connections|hosts|servers|spool|sounds] |
| 1492 |
List the specified server information. |
| 1493 |
|
| 1494 |
`connections' |
| 1495 |
@@ -647,17 +651,29 @@ |
| 1496 |
The `sound' attribute can be preceded by any of the following |
| 1497 |
attributes: |
| 1498 |
`count' |
| 1499 |
+ |
| 1500 |
`list-count' |
| 1501 |
+ |
| 1502 |
`priority' |
| 1503 |
+ |
| 1504 |
`random' |
| 1505 |
+ |
| 1506 |
`sample-rate' |
| 1507 |
+ |
| 1508 |
`volume' |
| 1509 |
+ |
| 1510 |
`input' |
| 1511 |
+ |
| 1512 |
`input-bits' |
| 1513 |
+ |
| 1514 |
`input-byte-order' |
| 1515 |
+ |
| 1516 |
`input-channels' |
| 1517 |
+ |
| 1518 |
`input-format' |
| 1519 |
+ |
| 1520 |
`input-offset' |
| 1521 |
+ |
| 1522 |
`input-sample-rate' |
| 1523 |
This command returns one line containing the `id' attribute. |
| 1524 |
|
| 1525 |
@@ -699,15 +715,21 @@ |
| 1526 |
`message' attribute. The server will probably close the connect |
| 1527 |
so the line may not be sent. |
| 1528 |
|
| 1529 |
|
| 1530 |
+ - Command: set name[=value] ... |
| 1531 |
Get and set server attributes. The current set of supported |
| 1532 |
server attributes is: |
| 1533 |
`application' |
| 1534 |
+ |
| 1535 |
`level-notify-rate' |
| 1536 |
+ |
| 1537 |
`notify' |
| 1538 |
+ |
| 1539 |
`notify-rate' |
| 1540 |
+ |
| 1541 |
`position-notify-rate' |
| 1542 |
+ |
| 1543 |
`priority-threshold' |
| 1544 |
+ |
| 1545 |
`volume' |
| 1546 |
This command returns one line containing the server's values for |
| 1547 |
the specified attributes. If an attribute cannot be set, the |
| 1548 |
@@ -852,55 +874,55 @@ |
| 1549 |
|
| 1550 |
* Menu: |
| 1551 |
|
| 1552 |
|
| 1553 |
|
| 1554 |
|
| 1555 |
|
| 1556 |
|
| 1557 |
|
| 1558 |
|
| 1559 |
|
| 1560 |
|
| 1561 |
|
| 1562 |
|
| 1563 |
|
| 1564 |
|
| 1565 |
|
| 1566 |
|
| 1567 |
|
| 1568 |
|
| 1569 |
|
| 1570 |
|
| 1571 |
|
| 1572 |
|
| 1573 |
|
| 1574 |
|
| 1575 |
|
| 1576 |
|
| 1577 |
|
| 1578 |
|
| 1579 |
|
| 1580 |
|
| 1581 |
|
| 1582 |
|
| 1583 |
|
| 1584 |
|
| 1585 |
|
| 1586 |
|
| 1587 |
|
| 1588 |
|
| 1589 |
|
| 1590 |
|
| 1591 |
|
| 1592 |
|
| 1593 |
|
| 1594 |
|
| 1595 |
|
| 1596 |
|
| 1597 |
|
| 1598 |
|
| 1599 |
|
| 1600 |
|
| 1601 |
+* access: Attributes. |
| 1602 |
+* application: Attributes. |
| 1603 |
+* audio-bits: Attributes. |
| 1604 |
+* audio-bufsize: Attributes. |
| 1605 |
+* audio-byte-order: Attributes. |
| 1606 |
+* audio-channels: Attributes. |
| 1607 |
+* audio-device: Attributes. |
| 1608 |
+* audio-format: Attributes. |
| 1609 |
+* audio-offset: Attributes. |
| 1610 |
+* audio-port: Attributes. |
| 1611 |
+* audio-rate: Attributes. |
| 1612 |
+* audio-sample-rate: Attributes. |
| 1613 |
+* audio-volume: Attributes. |
| 1614 |
+* bits: Attributes. |
| 1615 |
+* channels: Attributes. |
| 1616 |
+* count: Attributes. |
| 1617 |
+* error: Attributes. |
| 1618 |
+* event: Attributes. |
| 1619 |
+* format: Attributes. |
| 1620 |
+* host: Attributes. |
| 1621 |
+* id: Attributes. |
| 1622 |
+* idle: Attributes. |
| 1623 |
+* input: Attributes. |
| 1624 |
+* input-bits: Attributes. |
| 1625 |
+* input-byte-order: Attributes. |
| 1626 |
+* input-channels: Attributes. |
| 1627 |
+* input-format: Attributes. |
| 1628 |
+* input-offset: Attributes. |
| 1629 |
+* input-sample-rate: Attributes. |
| 1630 |
+* left: Attributes. |
| 1631 |
+* list-count: Attributes. |
| 1632 |
+* message: Attributes. |
| 1633 |
+* notify: Attributes. |
| 1634 |
+* pause: Attributes. |
| 1635 |
+* play: Attributes. |
| 1636 |
+* position: Attributes. |
| 1637 |
+* priority: Attributes. |
| 1638 |
+* random: Attributes. |
| 1639 |
+* remain: Attributes. |
| 1640 |
+* right: Attributes. |
| 1641 |
+* sample: Attributes. |
| 1642 |
+* sample-rate: Attributes. |
| 1643 |
+* samples: Attributes. |
| 1644 |
+* seconds: Attributes. |
| 1645 |
+* size: Attributes. |
| 1646 |
+* sound: Attributes. |
| 1647 |
+* uptime: Attributes. |
| 1648 |
+* version: Attributes. |
| 1649 |
+* volume: Attributes. |
| 1650 |
|
| 1651 |
|
| 1652 |
File: RPTP.info, Node: Event Index, Next: Command Index, Prev: Attribute Index, Up: Top |
| 1653 |
@@ -910,19 +932,19 @@ |
| 1654 |
|
| 1655 |
* Menu: |
| 1656 |
|
| 1657 |
|
| 1658 |
|
| 1659 |
|
| 1660 |
|
| 1661 |
|
| 1662 |
|
| 1663 |
|
| 1664 |
|
| 1665 |
|
| 1666 |
|
| 1667 |
|
| 1668 |
|
| 1669 |
|
| 1670 |
+* all: Events. |
| 1671 |
+* any: Events. |
| 1672 |
+* continue: Events. |
| 1673 |
+* done: Events. |
| 1674 |
+* level: Events. |
| 1675 |
+* none: Events. |
| 1676 |
+* pause: Events. |
| 1677 |
+* play: Events. |
| 1678 |
+* position: Events. |
| 1679 |
+* skip: Events. |
| 1680 |
+* state: Events. |
| 1681 |
+* stop: Events. |
| 1682 |
+* volume: Events. |
| 1683 |
|
| 1684 |
|
| 1685 |
File: RPTP.info, Node: Command Index, Prev: Event Index, Up: Top |
| 1686 |
@@ -932,41 +954,41 @@ |
| 1687 |
|
| 1688 |
* Menu: |
| 1689 |
|
| 1690 |
|
| 1691 |
|
| 1692 |
|
| 1693 |
|
| 1694 |
|
| 1695 |
|
| 1696 |
|
| 1697 |
|
| 1698 |
|
| 1699 |
|
| 1700 |
|
| 1701 |
|
| 1702 |
|
| 1703 |
|
| 1704 |
|
| 1705 |
|
| 1706 |
|
| 1707 |
|
| 1708 |
|
| 1709 |
|
| 1710 |
|
| 1711 |
+* access: Commands. |
| 1712 |
+* application: Commands. |
| 1713 |
+* continue: Commands. |
| 1714 |
+* done: Commands. |
| 1715 |
+* find: Commands. |
| 1716 |
+* get: Commands. |
| 1717 |
+* help: Commands. |
| 1718 |
+* info: Commands. |
| 1719 |
+* list: Commands. |
| 1720 |
+* pause: Commands. |
| 1721 |
+* play: Commands. |
| 1722 |
+* put: Commands. |
| 1723 |
+* quit: Commands. |
| 1724 |
+* reset: Commands. |
| 1725 |
+* set: Commands. |
| 1726 |
+* skip: Commands. |
| 1727 |
+* status: Commands. |
| 1728 |
+* stop: Commands. |
| 1729 |
+* version: Commands. |
| 1730 |
+* volume: Commands. |
| 1731 |
+* wait: Commands. |
| 1732 |
|
| 1733 |
|
| 1734 |
|
| 1735 |
Tag Table: |
| 1736 |
|
| 1737 |
|
| 1738 |
|
| 1739 |
|
| 1740 |
|
| 1741 |
|
| 1742 |
|
| 1743 |
|
| 1744 |
|
| 1745 |
|
| 1746 |
|
| 1747 |
+Node: Top824 |
| 1748 |
+Node: Overview1263 |
| 1749 |
+Node: Attributes3152 |
| 1750 |
+Node: Events8821 |
| 1751 |
+Node: Event Notification9705 |
| 1752 |
+Node: Commands11765 |
| 1753 |
+Node: Connecting21216 |
| 1754 |
+Node: Timeouts22159 |
| 1755 |
+Node: Attribute Index22659 |
| 1756 |
+Node: Event Index25389 |
| 1757 |
+Node: Command Index26156 |
| 1758 |
|
| 1759 |
End Tag Table |
| 1760 |
Index: rplay/doc/RPLAY.texi |
| 1761 |
=================================================================== |
| 1762 |
--- rplay.orig/doc/RPLAY.texi 2024-08-08 09:34:14.963482455 +0200 |
| 1763 |
+++ rplay/doc/RPLAY.texi 2024-08-08 09:34:14.955482448 +0200 |
| 1764 |
@@ -10,6 +10,11 @@ |
| 1765 |
|
| 1766 |
@ifinfo |
| 1767 |
|
| 1768 |
+@dircategory Development |
| 1769 |
+@direntry |
| 1770 |
+* RPLAY: (RPLAY). The RPLAY Protocol. |
| 1771 |
+@end direntry |
| 1772 |
+ |
| 1773 |
This file documents RPLAY protocol. |
| 1774 |
|
| 1775 |
Copyright (C) 1995 Mark Boyns |
| 1776 |
Index: rplay/doc/RPLAY.info |
| 1777 |
=================================================================== |
| 1778 |
--- rplay.orig/doc/RPLAY.info 2024-08-08 09:34:14.963482455 +0200 |
| 1779 |
+++ rplay/doc/RPLAY.info 2024-08-08 09:34:14.955482448 +0200 |
| 1780 |
@@ -1,5 +1,9 @@ |
| 1781 |
|
| 1782 |
|
| 1783 |
+This is RPLAY.info, produced by makeinfo version 4.1 from RPLAY.texi. |
| 1784 |
+ |
| 1785 |
+INFO-DIR-SECTION Development |
| 1786 |
+START-INFO-DIR-ENTRY |
| 1787 |
+* RPLAY: (RPLAY). The RPLAY Protocol. |
| 1788 |
+END-INFO-DIR-ENTRY |
| 1789 |
|
| 1790 |
This file documents RPLAY protocol. |
| 1791 |
|
| 1792 |
@@ -41,7 +45,7 @@ |
| 1793 |
|
| 1794 |
The `RPLAY' protocol uses simple binary UDP packets to control the |
| 1795 |
audio server. Communication between the client and server is one-way - |
| 1796 |
|
| 1797 |
+packets are sent to the server and the server _never_ replies. |
| 1798 |
|
| 1799 |
|
| 1800 |
File: RPLAY.info, Node: Commands, Next: Attributes, Prev: Overview, Up: Top |
| 1801 |
@@ -140,8 +144,8 @@ |
| 1802 |
****************** |
| 1803 |
|
| 1804 |
RPLAY packets always begin with a RPLAY_ID byte followed by a RPLAY |
| 1805 |
|
| 1806 |
|
| 1807 |
+command. (*note Commands::) The remaining contents is a list of |
| 1808 |
+attributes (*note Attributes::) and their corresponding values. The |
| 1809 |
packet is terminated with the RPLAY_NULL attribute. |
| 1810 |
|
| 1811 |
A packet will never contain an attribute that is set to a default |
| 1812 |
@@ -161,10 +165,10 @@ |
| 1813 |
|
| 1814 |
|
| 1815 |
Tag Table: |
| 1816 |
|
| 1817 |
|
| 1818 |
|
| 1819 |
|
| 1820 |
|
| 1821 |
+Node: Top830 |
| 1822 |
+Node: Overview1220 |
| 1823 |
+Node: Commands1521 |
| 1824 |
+Node: Attributes2348 |
| 1825 |
+Node: Packet description4225 |
| 1826 |
|
| 1827 |
End Tag Table |
| 1828 |
Index: rplay/doc/rplay.info |
| 1829 |
=================================================================== |
| 1830 |
--- rplay.orig/doc/rplay.info 2024-08-08 09:34:14.963482455 +0200 |
| 1831 |
+++ rplay/doc/rplay.info 2024-08-08 09:34:14.955482448 +0200 |
| 1832 |
@@ -1,5 +1,9 @@ |
| 1833 |
|
| 1834 |
|
| 1835 |
+This is rplay.info, produced by makeinfo version 4.1 from rplay.texi. |
| 1836 |
+ |
| 1837 |
+INFO-DIR-SECTION Development |
| 1838 |
+START-INFO-DIR-ENTRY |
| 1839 |
+* rplay: (rplay). The rplay Network Audio System |
| 1840 |
+END-INFO-DIR-ENTRY |
| 1841 |
|
| 1842 |
This file documents the rplay Network Audio System. |
| 1843 |
|
| 1844 |
@@ -156,11 +160,11 @@ |
| 1845 |
|
| 1846 |
|
| 1847 |
Tag Table: |
| 1848 |
|
| 1849 |
|
| 1850 |
|
| 1851 |
|
| 1852 |
|
| 1853 |
|
| 1854 |
+Node: Top860 |
| 1855 |
+Node: Overview1346 |
| 1856 |
+Node: rplayd3082 |
| 1857 |
+Node: rplay4739 |
| 1858 |
+Node: rptp5193 |
| 1859 |
+Node: xrplay5512 |
| 1860 |
|
| 1861 |
End Tag Table |
| 1862 |
Index: rplay/doc/RPTP.texi |
| 1863 |
=================================================================== |
| 1864 |
--- rplay.orig/doc/RPTP.texi 2024-08-08 09:34:14.963482455 +0200 |
| 1865 |
+++ rplay/doc/RPTP.texi 2024-08-08 09:34:14.955482448 +0200 |
| 1866 |
@@ -11,6 +11,11 @@ |
| 1867 |
|
| 1868 |
@ifinfo |
| 1869 |
|
| 1870 |
+@dircategory Development |
| 1871 |
+@direntry |
| 1872 |
+* RPTP: (RPTP). The RPTP Protocol. |
| 1873 |
+@end direntry |
| 1874 |
+ |
| 1875 |
This file documents RPTP protocol. |
| 1876 |
|
| 1877 |
Copyright (C) 1995 Mark Boyns |
| 1878 |
Index: rplay/doc/Makefile.in |
| 1879 |
=================================================================== |
| 1880 |
--- rplay.orig/doc/Makefile.in 2024-08-08 09:34:14.963482455 +0200 |
| 1881 |
+++ rplay/doc/Makefile.in 2024-08-08 09:34:14.955482448 +0200 |
| 1882 |
@@ -41,6 +41,7 @@ |
| 1883 |
install: all |
| 1884 |
-$(MKINSTALLDIRS) $(mandir)/man1 $(mandir)/man5 $(mandir)/man8 $(infodir) |
| 1885 |
-$(INSTALL_DATA) rplay.1 $(mandir)/man1 |
| 1886 |
+ -$(INSTALL_DATA) rplaydsp.1 $(mandir)/man1 |
| 1887 |
-$(INSTALL_DATA) rplayd.8 $(mandir)/man8 |
| 1888 |
-$(INSTALL_DATA) rptp.1 $(mandir)/man1 |
| 1889 |
-$(INSTALL_DATA) rplay.conf.5 $(mandir)/man5 |
| 1890 |
Index: rplay/devrplay/rplaydsp |
| 1891 |
=================================================================== |
| 1892 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 1893 |
+++ rplay/devrplay/rplaydsp 2024-08-08 09:34:14.955482448 +0200 |
| 1894 |
@@ -0,0 +1,12 @@ |
| 1895 |
+#!/bin/sh |
| 1896 |
+ |
| 1897 |
+if [ -z $LD_PRELOAD ]; then |
| 1898 |
+ LD_PRELOAD=/usr/lib/devrplay.so |
| 1899 |
+else |
| 1900 |
+ LD_PRELOAD=/usr/lib/devrplay.so:$LD_PRELOAD |
| 1901 |
+fi |
| 1902 |
+ |
| 1903 |
+export LD_PRELOAD |
| 1904 |
+ |
| 1905 |
+exec "$@" |
| 1906 |
+ |
| 1907 |
Index: rplay/devrplay/Makefile.in |
| 1908 |
=================================================================== |
| 1909 |
--- rplay.orig/devrplay/Makefile.in 2024-08-08 09:34:14.963482455 +0200 |
| 1910 |
+++ rplay/devrplay/Makefile.in 2024-08-08 09:34:14.955482448 +0200 |
| 1911 |
@@ -24,7 +24,7 @@ |
| 1912 |
#$(TARGET): $(OBJS) ../librplay/librplay.so |
| 1913 |
# $(CC) -o $@ $(OBJS) ../librplay/rplay.lo ../librplay/rptp.lo $(LDFLAGS) |
| 1914 |
|
| 1915 |
|
| 1916 |
+$(TARGET): $(OBJS) ../librplay/librplay.so.@RPLAY_VERSION@ |
| 1917 |
$(CC) -o $@ $(OBJS) $(LDFLAGS) |
| 1918 |
|
| 1919 |
../librplay/librplay.so: |
| 1920 |
@@ -33,6 +33,8 @@ |
| 1921 |
install: all |
| 1922 |
$(MKINSTALLDIRS) $(libdir) |
| 1923 |
$(INSTALL_DATA) $(TARGET) $(libdir) |
| 1924 |
+ $(MKINSTALLDIRS) $(bindir) |
| 1925 |
+ $(INSTALL_PROGRAM) rplaydsp $(bindir)/rplaydsp |
| 1926 |
|
| 1927 |
uninstall: |
| 1928 |
$(RM) $(libdir)/$(TARGET) |
| 1929 |
Index: rplay/devrplay/devrplay.c |
| 1930 |
=================================================================== |
| 1931 |
--- rplay.orig/devrplay/devrplay.c 2024-08-08 09:34:14.963482455 +0200 |
| 1932 |
+++ rplay/devrplay/devrplay.c 2024-08-08 09:34:14.955482448 +0200 |
| 1933 |
@@ -26,6 +26,9 @@ |
| 1934 |
* Copyright (C) 1998, 1999 Manish Singh <[email protected]> |
| 1935 |
*/ |
| 1936 |
|
| 1937 |
+#define _GNU_SOURCE |
| 1938 |
+#define __USE_GNU |
| 1939 |
+ |
| 1940 |
#ifdef HAVE_CONFIG_H |
| 1941 |
#include "config.h" |
| 1942 |
#endif |
| 1943 |
@@ -34,6 +37,7 @@ |
| 1944 |
#include <string.h> |
| 1945 |
#include <unistd.h> |
| 1946 |
#include <fcntl.h> |
| 1947 |
+#include <sys/errno.h> |
| 1948 |
#include <sys/types.h> |
| 1949 |
#include <sys/stat.h> |
| 1950 |
#include <sys/time.h> |
| 1951 |
@@ -56,6 +60,7 @@ |
| 1952 |
static int dsp_speed; |
| 1953 |
static int dsp_blksize; |
| 1954 |
static int streaming; |
| 1955 |
+static int opened; |
| 1956 |
|
| 1957 |
static char * |
| 1958 |
getsound() |
| 1959 |
@@ -95,12 +100,35 @@ |
| 1960 |
|
| 1961 |
if (strcmp(pathname, "/dev/dsp") == 0) |
| 1962 |
{ |
| 1963 |
+ char response[RPTP_MAX_LINE]; |
| 1964 |
+ char *acc; |
| 1965 |
+ |
| 1966 |
rplay_fd = rptp_open(rplay_default_host(), RPTP_PORT, response, |
| 1967 |
sizeof(response)); |
| 1968 |
if (rplay_fd < 0) |
| 1969 |
{ |
| 1970 |
rptp_perror(rplay_default_host()); |
| 1971 |
} |
| 1972 |
+ else |
| 1973 |
+ { |
| 1974 |
+ rptp_putline(rplay_fd, "access"); |
| 1975 |
+ rptp_getline(rplay_fd, response, sizeof(response)); |
| 1976 |
+ acc = rptp_parse(response, "access"); |
| 1977 |
+ |
| 1978 |
+ if (!acc || !strchr(acc, 'w')) |
| 1979 |
+ { |
| 1980 |
+ fprintf(stderr, |
| 1981 |
+ "RPLAY-ERROR: please add 'w' to rplay.hosts or man rplay.hosts\n"); |
| 1982 |
+ errno = EACCES; |
| 1983 |
+ close(rplay_fd); |
| 1984 |
+ rplay_fd = -1; |
| 1985 |
+ } |
| 1986 |
+ else |
| 1987 |
+ { |
| 1988 |
+ opened = 1; |
| 1989 |
+ } |
| 1990 |
+ } |
| 1991 |
+ |
| 1992 |
return rplay_fd; |
| 1993 |
} |
| 1994 |
else |
| 1995 |
@@ -158,6 +186,7 @@ |
| 1996 |
break; |
| 1997 |
} |
| 1998 |
|
| 1999 |
+ /* |
| 2000 |
if (spool_id == -1 && dsp_fmt && dsp_speed && dsp_channels) |
| 2001 |
{ |
| 2002 |
char response[RPTP_MAX_LINE]; |
| 2003 |
@@ -174,11 +203,18 @@ |
| 2004 |
getsound()); |
| 2005 |
rptp_getline(rplay_fd, response, sizeof(response)); |
| 2006 |
|
| 2007 |
+ if (response[0] != RPTP_OK) |
| 2008 |
+ { |
| 2009 |
+ errno = EINVAL; |
| 2010 |
+ return -1; |
| 2011 |
+ } |
| 2012 |
+ |
| 2013 |
spool_id = atoi(1 + rptp_parse(response, "id")); |
| 2014 |
|
| 2015 |
rptp_putline(rplay_fd, "put id=#%d size=0", spool_id); |
| 2016 |
rptp_getline(rplay_fd, response, sizeof(response)); |
| 2017 |
} |
| 2018 |
+ */ |
| 2019 |
|
| 2020 |
return 0; |
| 2021 |
} |
| 2022 |
@@ -214,7 +250,7 @@ |
| 2023 |
if (!func) |
| 2024 |
func = (int (*)(int, const void *, size_t)) dlsym(REAL_LIBC, "write"); |
| 2025 |
|
| 2026 |
|
| 2027 |
+ if (fd == rplay_fd && !streaming && opened) |
| 2028 |
{ |
| 2029 |
char info[64]; |
| 2030 |
char response[RPTP_MAX_LINE]; |
| 2031 |
@@ -241,7 +277,7 @@ |
| 2032 |
} |
| 2033 |
/* otherwise let rplayd figure out the format using |
| 2034 |
the sound header and/or name. */ |
| 2035 |
|
| 2036 |
+ |
| 2037 |
streaming = 1; |
| 2038 |
rptp_putline(rplay_fd, "play input=flow %s sound=\"%s\"", |
| 2039 |
info, getsound()); |
| 2040 |
@@ -269,6 +305,7 @@ |
| 2041 |
rplay_fd = -1; |
| 2042 |
spool_id = -1; |
| 2043 |
streaming = 0; |
| 2044 |
+ opened = 0; |
| 2045 |
dsp_fmt = dsp_speed = dsp_channels = dsp_speed = dsp_blksize = 0; |
| 2046 |
} |
| 2047 |
|
| 2048 |
Index: rplay/etc/rplay.hosts |
| 2049 |
=================================================================== |
| 2050 |
--- rplay.orig/etc/rplay.hosts 2024-08-08 09:34:14.963482455 +0200 |
| 2051 |
+++ rplay/etc/rplay.hosts 2024-08-08 09:34:14.955482448 +0200 |
| 2052 |
@@ -1,5 +1,6 @@ |
| 2053 |
|
| 2054 |
|
| 2055 |
|
| 2056 |
|
| 2057 |
|
| 2058 |
+# default rplay.hosts |
| 2059 |
+# see the rplay.hosts(5) for details on the format and meaning of this |
| 2060 |
+# file |
| 2061 |
+ |
| 2062 |
+# give the localhost the default permissions |
| 2063 |
+localhost |
| 2064 |
Index: rplay/etc/rplay.helpers |
| 2065 |
=================================================================== |
| 2066 |
--- rplay.orig/etc/rplay.helpers 2024-08-08 09:34:14.963482455 +0200 |
| 2067 |
+++ rplay/etc/rplay.helpers 2024-08-08 09:34:14.955482448 +0200 |
| 2068 |
@@ -3,7 +3,6 @@ |
| 2069 |
# <regex> <audio-format> <application> |
| 2070 |
# |
| 2071 |
## MPEG |
| 2072 |
|
| 2073 |
+\.mp[1-3]$ linear16,44100,16,2,little-endian /usr/bin/mpg123 --stdout --quiet --rate 44100 --stereo - |
| 2074 |
|
| 2075 |
|
| 2076 |
|
| 2077 |
+\.ogg$ linear16,44100,16,2,little-endian /usr/bin/ogg123 -q -d raw -o byteorder:little -f - /dev/fd/0 |
| 2078 |
Index: rplay/include/config.h.in |
| 2079 |
=================================================================== |
| 2080 |
--- rplay.orig/include/config.h.in 2024-08-08 09:34:14.963482455 +0200 |
| 2081 |
+++ rplay/include/config.h.in 2024-08-08 09:34:14.955482448 +0200 |
| 2082 |
@@ -40,7 +40,7 @@ |
| 2083 |
/* |
| 2084 |
* Use host authentication. |
| 2085 |
*/ |
| 2086 |
|
| 2087 |
+#define AUTH |
| 2088 |
|
| 2089 |
/* |
| 2090 |
* Support rplay 2.0 packets. If you define this then you |
| 2091 |
@@ -75,7 +75,7 @@ |
| 2092 |
* 1 - System and rplayd errors. |
| 2093 |
* 2 - + RPTP connections, get, put, find. |
| 2094 |
* 3 - + play, stop, pause, continue, etc. |
| 2095 |
|
| 2096 |
+ * 4 - + Debug messages. |
| 2097 |
* |
| 2098 |
* Note that the logging level can also be specified with |
| 2099 |
* rplayd command line options. This is only used if |
| 2100 |
@@ -192,6 +192,7 @@ |
| 2101 |
#undef HAVE_LIBREADLINE |
| 2102 |
#undef HAVE_RANDOM |
| 2103 |
#undef HAVE_SRANDOM |
| 2104 |
+#undef HAVE_REGCOMP |
| 2105 |
|
| 2106 |
#undef HAVE_STDC_HEADERS |
| 2107 |
#undef HAVE_MEMORY_H |
| 2108 |
@@ -207,6 +208,7 @@ |
| 2109 |
|
| 2110 |
#undef HAVE_GSM_H |
| 2111 |
#undef HAVE_GSM_GSM_H |
| 2112 |
+#undef HAVE_REGEX_H |
| 2113 |
#undef HAVE_RXPOSIX_H |
| 2114 |
#undef HAVE_RX_RXPOSIX_H |
| 2115 |
|
| 2116 |
Index: rplay/librplay/Makefile.in |
| 2117 |
=================================================================== |
| 2118 |
--- rplay.orig/librplay/Makefile.in 2024-08-08 09:34:14.963482455 +0200 |
| 2119 |
+++ rplay/librplay/Makefile.in 2024-08-08 09:34:14.955482448 +0200 |
| 2120 |
@@ -9,7 +9,7 @@ |
| 2121 |
MKINSTALLDIRS= @srcdir@/../mkinstalldirs |
| 2122 |
|
| 2123 |
CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I@srcdir@/../include @DEFS@ |
| 2124 |
|
| 2125 |
+LDFLAGS= $(LD_OPTIONS) -shared -Xlinker -soname -Xlinker librplay.so.3 @LDFLAGS@ |
| 2126 |
|
| 2127 |
.c.o: |
| 2128 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
| 2129 |
@@ -33,7 +33,10 @@ |
| 2130 |
$(RANLIB) $@ |
| 2131 |
|
| 2132 |
librplay.so: $(SHAREDOBJS) |
| 2133 |
|
| 2134 |
+ $(CC) -o $@.@RPLAY_VERSION@ $(SHAREDOBJS) $(LDFLAGS) |
| 2135 |
+ ln -fs $@.@RPLAY_VERSION@ [email protected] |
| 2136 |
+ ln -fs $@.@RPLAY_VERSION@ $@ |
| 2137 |
+ |
| 2138 |
|
| 2139 |
# |
| 2140 |
# For HP-UX comment above and uncomment below. |
| 2141 |
@@ -50,14 +53,16 @@ |
| 2142 |
install: all |
| 2143 |
$(MKINSTALLDIRS) $(libdir) |
| 2144 |
$(INSTALL_DATA) $(TARGET) $(libdir) |
| 2145 |
|
| 2146 |
+ $(INSTALL_DATA) librplay.so.@RPLAY_VERSION@ $(libdir) |
| 2147 |
+ (cd $(libdir) && ln -s librplay.so.@RPLAY_VERSION@ librplay.so.3) |
| 2148 |
+ (cd $(libdir) && ln -s librplay.so.@RPLAY_VERSION@ librplay.so) |
| 2149 |
|
| 2150 |
uninstall: |
| 2151 |
$(RM) $(libdir)/$(TARGET) |
| 2152 |
$(RM) $(libdir)/librplay.so |
| 2153 |
|
| 2154 |
clean: |
| 2155 |
|
| 2156 |
+ $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so* a.out core *~ *.bak *.orig TAGS |
| 2157 |
|
| 2158 |
distclean: clean |
| 2159 |
$(RM) Makefile |
| 2160 |
Index: rplay/perl/RPlay.pm |
| 2161 |
=================================================================== |
| 2162 |
--- rplay.orig/perl/RPlay.pm 2024-08-08 09:34:14.963482455 +0200 |
| 2163 |
+++ rplay/perl/RPlay.pm 2024-08-08 09:34:14.955482448 +0200 |
| 2164 |
@@ -44,8 +44,8 @@ |
| 2165 |
my ($that_host, $that_port) = @_; |
| 2166 |
my ($pat, $name, $aliases, $proto, $port, $udp); |
| 2167 |
my (@bytes, $addrtype, $length, $old); |
| 2168 |
|
| 2169 |
|
| 2170 |
+ my ($that, $that_addr); |
| 2171 |
+ my ($this, $this_addr); |
| 2172 |
|
| 2173 |
$sockaddr = 'S n a4 x8'; |
| 2174 |
|
| 2175 |
Index: rplay/rplay/rplay.c |
| 2176 |
=================================================================== |
| 2177 |
--- rplay.orig/rplay/rplay.c 2024-08-08 09:34:14.963482455 +0200 |
| 2178 |
+++ rplay/rplay/rplay.c 2024-08-08 09:34:14.959482451 +0200 |
| 2179 |
@@ -42,6 +42,11 @@ |
| 2180 |
|
| 2181 |
#define OPTIONS "+spcN:P:h:rv:n:R:b:i:" |
| 2182 |
|
| 2183 |
+/* Make sure MAXPATHLEN is defined. */ |
| 2184 |
+#ifndef MAXPATHLEN |
| 2185 |
+#define MAXPATHLEN 4096 |
| 2186 |
+#endif |
| 2187 |
+ |
| 2188 |
struct option longopts[] = |
| 2189 |
{ |
| 2190 |
{"continue", no_argument, NULL, 'c'}, |
| 2191 |
Index: rplay/rplayd/sound.c |
| 2192 |
=================================================================== |
| 2193 |
--- rplay.orig/rplayd/sound.c 2024-08-08 09:34:14.963482455 +0200 |
| 2194 |
+++ rplay/rplayd/sound.c 2024-08-08 09:34:14.959482451 +0200 |
| 2195 |
@@ -64,6 +64,9 @@ |
| 2196 |
#ifdef HAVE_HELPERS |
| 2197 |
#include "helper.h" |
| 2198 |
#endif /* HAVE_HELPERS */ |
| 2199 |
+#ifdef HAVE_REGEX_H |
| 2200 |
+#include <regex.h> |
| 2201 |
+#else |
| 2202 |
#ifdef HAVE_RX_RXPOSIX_H |
| 2203 |
#include <rx/rxposix.h> |
| 2204 |
#else |
| 2205 |
@@ -73,6 +76,12 @@ |
| 2206 |
#include "rxposix.h" |
| 2207 |
#endif |
| 2208 |
#endif |
| 2209 |
+#endif |
| 2210 |
+ |
| 2211 |
+/* Make sure MAXPATHLEN is defined. */ |
| 2212 |
+#ifndef MAXPATHLEN |
| 2213 |
+#define MAXPATHLEN 4096 |
| 2214 |
+#endif |
| 2215 |
|
| 2216 |
SOUND *sounds = NULL; |
| 2217 |
int sound_count = 0; |
| 2218 |
@@ -143,9 +152,9 @@ |
| 2219 |
|
| 2220 |
//memset ((char *) &bad_dirs, 0, sizeof (bad_dirs)); |
| 2221 |
|
| 2222 |
|
| 2223 |
+ if (regcomp(&bad_dirs, buf, REG_ICASE | REG_NOSUB)) |
| 2224 |
{ |
| 2225 |
|
| 2226 |
+ report(REPORT_ERROR, "bad_dirs: regcomp failed\n"); |
| 2227 |
done(1); |
| 2228 |
} |
| 2229 |
|
| 2230 |
@@ -162,7 +171,7 @@ |
| 2231 |
#endif |
| 2232 |
{ |
| 2233 |
/* return 1 if bad */ |
| 2234 |
|
| 2235 |
+ return regexec(&bad_dirs, dir, 0, 0, 0) ? 0 : 1; |
| 2236 |
} |
| 2237 |
|
| 2238 |
#endif /* BAD_DIRS */ |
| 2239 |
Index: rplay/rplayd/sound.h |
| 2240 |
=================================================================== |
| 2241 |
--- rplay.orig/rplayd/sound.h 2024-08-08 09:34:14.963482455 +0200 |
| 2242 |
+++ rplay/rplayd/sound.h 2024-08-08 09:34:14.959482451 +0200 |
| 2243 |
@@ -170,9 +170,9 @@ |
| 2244 |
int gsm_bit_frame_bytes; /* Number of bytes in gsm_bit_frame */ |
| 2245 |
int gsm_fixed_buffer_size; |
| 2246 |
#endif /* HAVE_GSM */ |
| 2247 |
|
| 2248 |
+#if defined(HAVE_CDROM) || defined(HAVE_HELPERS) |
| 2249 |
int pid; |
| 2250 |
|
| 2251 |
+#endif /* HAVE_CDROM || HAVE_HELPERS */ |
| 2252 |
} |
| 2253 |
SINDEX; |
| 2254 |
|
| 2255 |
Index: rplay/rplayd/helper.h |
| 2256 |
=================================================================== |
| 2257 |
--- rplay.orig/rplayd/helper.h 2024-08-08 09:34:14.963482455 +0200 |
| 2258 |
+++ rplay/rplayd/helper.h 2024-08-08 09:34:14.959482451 +0200 |
| 2259 |
@@ -26,6 +26,9 @@ |
| 2260 |
|
| 2261 |
#ifdef HAVE_HELPERS |
| 2262 |
|
| 2263 |
+#ifdef HAVE_REGEX_H |
| 2264 |
+#include <regex.h> |
| 2265 |
+#else |
| 2266 |
#ifdef HAVE_RX_RXPOSIX_H |
| 2267 |
#include <rx/rxposix.h> |
| 2268 |
#else |
| 2269 |
@@ -35,6 +38,7 @@ |
| 2270 |
#include "rxposix.h" |
| 2271 |
#endif |
| 2272 |
#endif |
| 2273 |
+#endif |
| 2274 |
|
| 2275 |
typedef struct _helper |
| 2276 |
{ |
| 2277 |
Index: rplay/rplayd/rplayd.h |
| 2278 |
=================================================================== |
| 2279 |
--- rplay.orig/rplayd/rplayd.h 2024-08-08 09:34:14.963482455 +0200 |
| 2280 |
+++ rplay/rplayd/rplayd.h 2024-08-08 09:34:14.959482451 +0200 |
| 2281 |
@@ -73,7 +73,6 @@ |
| 2282 |
extern fd_set read_mask; |
| 2283 |
extern fd_set write_mask; |
| 2284 |
extern int debug; |
| 2285 |
|
| 2286 |
extern int rptp_timeout; |
| 2287 |
extern char hostname[]; |
| 2288 |
extern char *hostaddr; |
| 2289 |
@@ -133,7 +132,7 @@ |
| 2290 |
extern int monitor_count; |
| 2291 |
extern BUFFER *monitor_buffers; |
| 2292 |
|
| 2293 |
|
| 2294 |
+#include <errno.h> |
| 2295 |
|
| 2296 |
#ifdef __STDC__ |
| 2297 |
extern void usage (); |
| 2298 |
Index: rplay/rplayd/helper.c |
| 2299 |
=================================================================== |
| 2300 |
--- rplay.orig/rplayd/helper.c 2024-08-08 09:34:14.963482455 +0200 |
| 2301 |
+++ rplay/rplayd/helper.c 2024-08-08 09:34:14.959482451 +0200 |
| 2302 |
@@ -43,6 +43,11 @@ |
| 2303 |
#include "helper.h" |
| 2304 |
#include "misc.h" |
| 2305 |
|
| 2306 |
+/* Make sure MAXPATHLEN is defined. */ |
| 2307 |
+#ifndef MAXPATHLEN |
| 2308 |
+#define MAXPATHLEN 4096 |
| 2309 |
+#endif |
| 2310 |
+ |
| 2311 |
HELPER *helpers = NULL; |
| 2312 |
static time_t helper_read_time; |
| 2313 |
|
| 2314 |
@@ -110,7 +115,7 @@ |
| 2315 |
done(1); |
| 2316 |
} |
| 2317 |
//memset ((char *) &hp->pattern, 0, sizeof (hp->pattern)); |
| 2318 |
|
| 2319 |
+ error = regcomp(&hp->pattern, pat, REG_ICASE | REG_NOSUB); |
| 2320 |
if (error) |
| 2321 |
{ |
| 2322 |
report(REPORT_ERROR, "helper_read: %d line %d\n", error, line); |
| 2323 |
@@ -188,7 +193,7 @@ |
| 2324 |
|
| 2325 |
for (hp = helpers; hp; hp = hp->next) |
| 2326 |
{ |
| 2327 |
|
| 2328 |
+ if (regexec(&hp->pattern, sound, 0, 0, 0) == 0) |
| 2329 |
{ |
| 2330 |
return hp; |
| 2331 |
} |
| 2332 |
Index: rplay/rplayd/native.c |
| 2333 |
=================================================================== |
| 2334 |
--- rplay.orig/rplayd/native.c 2024-08-08 09:34:14.963482455 +0200 |
| 2335 |
+++ rplay/rplayd/native.c 2024-08-08 09:34:14.959482451 +0200 |
| 2336 |
@@ -22,7 +22,7 @@ |
| 2337 |
*/ |
| 2338 |
|
| 2339 |
|
| 2340 |
|
| 2341 |
+#include <string.h> |
| 2342 |
#ifdef HAVE_CONFIG_H |
| 2343 |
#include "config.h" |
| 2344 |
#endif |
| 2345 |
Index: rplay/rplayd/rplayd.c |
| 2346 |
=================================================================== |
| 2347 |
--- rplay.orig/rplayd/rplayd.c 2024-08-08 09:34:14.963482455 +0200 |
| 2348 |
+++ rplay/rplayd/rplayd.c 2024-08-08 09:34:14.959482451 +0200 |
| 2349 |
@@ -333,6 +333,9 @@ |
| 2350 |
|
| 2351 |
progname = argv[0]; |
| 2352 |
|
| 2353 |
+ /* no need to keep stdin around */ |
| 2354 |
+ close(0); |
| 2355 |
+ |
| 2356 |
servers_file = tilde_expand(RPLAY_SERVERS); |
| 2357 |
#ifdef HAVE_HELPERS |
| 2358 |
helpers_file = tilde_expand(RPLAY_HELPERS); |
| 2359 |
@@ -1466,7 +1469,7 @@ |
| 2360 |
char *buf = rplay_audio_buf; |
| 2361 |
int size = rplay_audio_size; |
| 2362 |
int n; |
| 2363 |
|
| 2364 |
+ |
| 2365 |
while (size) |
| 2366 |
{ |
| 2367 |
n = MIN(BUFFER_SIZE - monitor_buffers->offset, size); |
| 2368 |
@@ -1483,7 +1486,7 @@ |
| 2369 |
} |
| 2370 |
} |
| 2371 |
} |
| 2372 |
|
| 2373 |
+ |
| 2374 |
rplay_audio_size = 0; |
| 2375 |
|
| 2376 |
/* Flush when the audio stream has ended. */ |
| 2377 |
Index: rplay/rplayd/spool.c |
| 2378 |
=================================================================== |
| 2379 |
--- rplay.orig/rplayd/spool.c 2024-08-08 09:34:14.963482455 +0200 |
| 2380 |
+++ rplay/rplayd/spool.c 2024-08-08 09:34:14.959482451 +0200 |
| 2381 |
@@ -43,6 +43,11 @@ |
| 2382 |
#include "flange.h" |
| 2383 |
#endif |
| 2384 |
|
| 2385 |
+/* Make sure MAXPATHLEN is defined. */ |
| 2386 |
+#ifndef MAXPATHLEN |
| 2387 |
+#define MAXPATHLEN 4096 |
| 2388 |
+#endif |
| 2389 |
+ |
| 2390 |
SPOOL *spool = NULL; /* List of spool entries. */ |
| 2391 |
int spool_size = 0; /* Number of entries in the spool. */ |
| 2392 |
int spool_nplaying = 0; /* Number of playing sounds. */ |
| 2393 |
@@ -1127,8 +1132,8 @@ |
| 2394 |
spool_flow_pause(sp); |
| 2395 |
} |
| 2396 |
} |
| 2397 |
|
| 2398 |
} |
| 2399 |
+#endif /* HAVE_CDROM */ |
| 2400 |
} |
| 2401 |
else |
| 2402 |
{ |
| 2403 |
Index: rplay/rplayd/xhash.c |
| 2404 |
=================================================================== |
| 2405 |
--- rplay.orig/rplayd/xhash.c 2024-08-08 09:34:14.963482455 +0200 |
| 2406 |
+++ rplay/rplayd/xhash.c 2024-08-08 09:34:14.959482451 +0200 |
| 2407 |
@@ -36,6 +36,11 @@ |
| 2408 |
#include "hash.h" |
| 2409 |
#include "rplayd.h" |
| 2410 |
|
| 2411 |
+/* Make sure MAXPATHLEN is defined. */ |
| 2412 |
+#ifndef MAXPATHLEN |
| 2413 |
+#define MAXPATHLEN 4096 |
| 2414 |
+#endif |
| 2415 |
+ |
| 2416 |
static struct hash_control *htable; |
| 2417 |
|
| 2418 |
#ifdef DEBUG |
| 2419 |
Index: rplay/rplayd/cache.c |
| 2420 |
=================================================================== |
| 2421 |
--- rplay.orig/rplayd/cache.c 2024-08-08 09:34:14.963482455 +0200 |
| 2422 |
+++ rplay/rplayd/cache.c 2024-08-08 09:34:14.959482451 +0200 |
| 2423 |
@@ -47,6 +47,11 @@ |
| 2424 |
#include "spool.h" |
| 2425 |
#include "cache.h" |
| 2426 |
|
| 2427 |
+/* Make sure MAXPATHLEN is defined. */ |
| 2428 |
+#ifndef MAXPATHLEN |
| 2429 |
+#define MAXPATHLEN 4096 |
| 2430 |
+#endif |
| 2431 |
+ |
| 2432 |
static DIR *cache_dir; |
| 2433 |
static char cache_path[MAXPATHLEN]; |
| 2434 |
static char cache_directory[MAXPATHLEN]; |
| 2435 |
Index: rplay/rplayd/host.c |
| 2436 |
=================================================================== |
| 2437 |
--- rplay.orig/rplayd/host.c 2024-08-08 09:34:14.963482455 +0200 |
| 2438 |
+++ rplay/rplayd/host.c 2024-08-08 09:34:14.959482451 +0200 |
| 2439 |
@@ -33,6 +33,9 @@ |
| 2440 |
#include "host.h" |
| 2441 |
#include "buffer.h" |
| 2442 |
#include "misc.h" |
| 2443 |
+#ifdef HAVE_REGEX_H |
| 2444 |
+#include <regex.h> |
| 2445 |
+#else |
| 2446 |
#ifdef HAVE_RX_RXPOSIX_H |
| 2447 |
#include <rx/rxposix.h> |
| 2448 |
#else |
| 2449 |
@@ -42,6 +45,7 @@ |
| 2450 |
#include "rxposix.h" |
| 2451 |
#endif |
| 2452 |
#endif |
| 2453 |
+#endif |
| 2454 |
|
| 2455 |
#ifdef AUTH |
| 2456 |
|
| 2457 |
@@ -197,35 +201,31 @@ |
| 2458 |
} |
| 2459 |
strcat(expr_monitor, "$"); |
| 2460 |
|
| 2461 |
|
| 2462 |
|
| 2463 |
+ error = regcomp(&access_read, expr_read, REG_ICASE | REG_NOSUB); |
| 2464 |
if (error) |
| 2465 |
{ |
| 2466 |
|
| 2467 |
+ report(REPORT_ERROR, "host_read: regcomp: %d\n", error); |
| 2468 |
done(1); |
| 2469 |
} |
| 2470 |
|
| 2471 |
|
| 2472 |
|
| 2473 |
+ error = regcomp(&access_write, expr_write, REG_ICASE | REG_NOSUB); |
| 2474 |
if (error) |
| 2475 |
{ |
| 2476 |
|
| 2477 |
+ report(REPORT_ERROR, "host_read: regcomp: %d\n", error); |
| 2478 |
done(1); |
| 2479 |
} |
| 2480 |
|
| 2481 |
|
| 2482 |
|
| 2483 |
+ error = regcomp(&access_execute, expr_execute, REG_ICASE | REG_NOSUB); |
| 2484 |
if (error) |
| 2485 |
{ |
| 2486 |
|
| 2487 |
+ report(REPORT_ERROR, "host_read: regcomp: %d\n", error); |
| 2488 |
done(1); |
| 2489 |
} |
| 2490 |
|
| 2491 |
|
| 2492 |
|
| 2493 |
+ error = regcomp(&access_monitor, expr_monitor, REG_ICASE | REG_NOSUB); |
| 2494 |
if (error) |
| 2495 |
{ |
| 2496 |
|
| 2497 |
+ report(REPORT_ERROR, "host_read: regcomp: %d\n", error); |
| 2498 |
done(1); |
| 2499 |
} |
| 2500 |
} |
| 2501 |
@@ -432,7 +432,7 @@ |
| 2502 |
done(1); |
| 2503 |
} |
| 2504 |
|
| 2505 |
|
| 2506 |
+ n = regexec(re, p, 0, 0, 0); |
| 2507 |
|
| 2508 |
return !n; |
| 2509 |
} |
| 2510 |
Index: rplay/rplayd/timer.c |
| 2511 |
=================================================================== |
| 2512 |
--- rplay.orig/rplayd/timer.c 2024-08-08 09:34:14.963482455 +0200 |
| 2513 |
+++ rplay/rplayd/timer.c 2024-08-08 09:34:14.959482451 +0200 |
| 2514 |
@@ -29,6 +29,7 @@ |
| 2515 |
#include <sys/signal.h> |
| 2516 |
#include <stdio.h> |
| 2517 |
#include <unistd.h> |
| 2518 |
+#include <errno.h> |
| 2519 |
#include "rplayd.h" |
| 2520 |
#include "timer.h" |
| 2521 |
|
| 2522 |
Index: rplay/rplayd/Makefile.in |
| 2523 |
=================================================================== |
| 2524 |
--- rplay.orig/rplayd/Makefile.in 2024-08-08 09:34:14.963482455 +0200 |
| 2525 |
+++ rplay/rplayd/Makefile.in 2024-08-08 09:34:14.959482451 +0200 |
| 2526 |
@@ -25,7 +25,7 @@ |
| 2527 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
| 2528 |
|
| 2529 |
LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \ |
| 2530 |
|
| 2531 |
+ -L../adpcm -ladpcm @GSM_LIBS@ @RX_LIBS@ @LDFLAGS@ @LIBS@ -lm |
| 2532 |
|
| 2533 |
TARGET= rplayd |
| 2534 |
|
| 2535 |
@@ -54,7 +54,7 @@ |
| 2536 |
install: all |
| 2537 |
$(MKINSTALLDIRS) $(sbindir) |
| 2538 |
$(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET) |
| 2539 |
|
| 2540 |
+ @(test -x $(bindir)/$(TARGET) && echo "" && echo " Note: Consider removing $(bindir)/$(TARGET)" && echo "") || true |
| 2541 |
|
| 2542 |
uninstall: |
| 2543 |
$(RM) $(bindir)/$(TARGET) |
| 2544 |
Index: rplay/rplayd/audio/audio_FreeBSD.c |
| 2545 |
=================================================================== |
| 2546 |
--- rplay.orig/rplayd/audio/audio_FreeBSD.c 2024-08-08 09:34:14.963482455 +0200 |
| 2547 |
+++ rplay/rplayd/audio/audio_FreeBSD.c 2024-08-08 09:34:14.959482451 +0200 |
| 2548 |
@@ -35,7 +35,7 @@ |
| 2549 |
#include <sys/ioctl.h> |
| 2550 |
#include <sys/errno.h> |
| 2551 |
#include <errno.h> |
| 2552 |
|
| 2553 |
+#include <sys/soundcard.h> |
| 2554 |
|
| 2555 |
/* |
| 2556 |
* for the poor folks who don't have a sound card, but use the pc speaker |
| 2557 |
Index: rplay/rplayd/audio/audio_gnu.h |
| 2558 |
=================================================================== |
| 2559 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 2560 |
+++ rplay/rplayd/audio/audio_gnu.h 2024-08-08 09:34:14.959482451 +0200 |
| 2561 |
@@ -0,0 +1,37 @@ |
| 2562 |
+/* $Id: audio_generic.h,v 1.3 1999/03/10 07:58:10 boyns Exp $ */ |
| 2563 |
+ |
| 2564 |
+/* |
| 2565 |
+ * Copyright (C) 1993-99 Mark R. Boyns <[email protected]> |
| 2566 |
+ * |
| 2567 |
+ * This file is part of rplay. |
| 2568 |
+ * |
| 2569 |
+ * rplay is free software; you can redistribute it and/or modify |
| 2570 |
+ * it under the terms of the GNU General Public License as published by |
| 2571 |
+ * the Free Software Foundation; either version 2 of the License, or |
| 2572 |
+ * (at your option) any later version. |
| 2573 |
+ * |
| 2574 |
+ * rplay is distributed in the hope that it will be useful, |
| 2575 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 2576 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 2577 |
+ * GNU General Public License for more details. |
| 2578 |
+ * |
| 2579 |
+ * You should have received a copy of the GNU General Public License |
| 2580 |
+ * along with rplay; see the file COPYING. If not, write to the |
| 2581 |
+ * Free Software Foundation, Inc., |
| 2582 |
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
| 2583 |
+ */ |
| 2584 |
+ |
| 2585 |
+ |
| 2586 |
+ |
| 2587 |
+#ifndef _audio_generic_h |
| 2588 |
+#define _audio_generic_h |
| 2589 |
+ |
| 2590 |
+#include "rplay.h" |
| 2591 |
+ |
| 2592 |
+#define RPLAY_AUDIO_DEVICE "/dev/audio" |
| 2593 |
+#define RPLAY_AUDIO_TIMEOUT 5 |
| 2594 |
+#define RPLAY_AUDIO_FLUSH_TIMEOUT -1 |
| 2595 |
+#define RPLAY_AUDIO_RATE 10 |
| 2596 |
+#define RPLAY_AUDIO_BYTE_ORDER RPLAY_BIG_ENDIAN |
| 2597 |
+ |
| 2598 |
+#endif /* _audio_generic_h */ |
| 2599 |
Index: rplay/rplayd/audio/audio_gnu.c |
| 2600 |
=================================================================== |
| 2601 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 2602 |
+++ rplay/rplayd/audio/audio_gnu.c 2024-08-08 09:34:14.959482451 +0200 |
| 2603 |
@@ -0,0 +1,287 @@ |
| 2604 |
+/* $Id: audio_generic.c,v 1.5 1999/03/10 07:58:10 boyns Exp $ */ |
| 2605 |
+ |
| 2606 |
+/* |
| 2607 |
+ * Copyright (C) 1993-99 Mark R. Boyns <[email protected]> |
| 2608 |
+ * |
| 2609 |
+ * This file is part of rplay. |
| 2610 |
+ * |
| 2611 |
+ * rplay is free software; you can redistribute it and/or modify |
| 2612 |
+ * it under the terms of the GNU General Public License as published by |
| 2613 |
+ * the Free Software Foundation; either version 2 of the License, or |
| 2614 |
+ * (at your option) any later version. |
| 2615 |
+ * |
| 2616 |
+ * rplay is distributed in the hope that it will be useful, |
| 2617 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 2618 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 2619 |
+ * GNU General Public License for more details. |
| 2620 |
+ * |
| 2621 |
+ * You should have received a copy of the GNU General Public License |
| 2622 |
+ * along with rplay; see the file COPYING. If not, write to the |
| 2623 |
+ * Free Software Foundation, Inc., |
| 2624 |
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
| 2625 |
+ */ |
| 2626 |
+ |
| 2627 |
+ |
| 2628 |
+ |
| 2629 |
+#include "rplayd.h" |
| 2630 |
+ |
| 2631 |
+/* |
| 2632 |
+ * System audio include files: |
| 2633 |
+ */ |
| 2634 |
+#include <sys/types.h> |
| 2635 |
+#include <sys/file.h> |
| 2636 |
+#include <sys/ioctl.h> |
| 2637 |
+#ifdef ultrix |
| 2638 |
+#include <fcntl.h> |
| 2639 |
+#else |
| 2640 |
+#include <sys/fcntl.h> |
| 2641 |
+#endif |
| 2642 |
+#include <sys/errno.h> |
| 2643 |
+ |
| 2644 |
+/* |
| 2645 |
+ * External variables: |
| 2646 |
+ */ |
| 2647 |
+extern char *rplay_audio_device; |
| 2648 |
+extern int rplay_audio_sample_rate; |
| 2649 |
+extern int rplay_audio_channels; |
| 2650 |
+extern int rplay_audio_precision; |
| 2651 |
+extern int rplay_audio_format; |
| 2652 |
+extern int rplay_audio_port; |
| 2653 |
+extern int optional_sample_rate; |
| 2654 |
+extern int optional_precision; |
| 2655 |
+extern int optional_channels; |
| 2656 |
+extern int optional_format; |
| 2657 |
+extern int optional_port; |
| 2658 |
+ |
| 2659 |
+/* |
| 2660 |
+ * Internal variables: |
| 2661 |
+ */ |
| 2662 |
+static int rplay_audio_fd = -1; |
| 2663 |
+ |
| 2664 |
+static RPLAY_AUDIO_TABLE generic_table[] = |
| 2665 |
+{ |
| 2666 |
+ {8000, RPLAY_FORMAT_ULAW, 1, 1}, |
| 2667 |
+ {0, 0, 0, 0} |
| 2668 |
+}; |
| 2669 |
+ |
| 2670 |
+/* |
| 2671 |
+ * Initialize the audio device. |
| 2672 |
+ * This routine must set the following external variables: |
| 2673 |
+ * rplay_audio_sample_rate |
| 2674 |
+ * rplay_audio_precision |
| 2675 |
+ * rplay_audio_channels |
| 2676 |
+ * rplay_audio_format |
| 2677 |
+ * rplay_audio_port |
| 2678 |
+ * |
| 2679 |
+ * and may use the following optional parameters: |
| 2680 |
+ * optional_sample_rate |
| 2681 |
+ * optional_precision |
| 2682 |
+ * optional_channels |
| 2683 |
+ * optional_format |
| 2684 |
+ * optional_port |
| 2685 |
+ * |
| 2686 |
+ * optional_* variables with values of zero should be ignored. |
| 2687 |
+ * |
| 2688 |
+ * Return 0 on success and -1 on error. |
| 2689 |
+ */ |
| 2690 |
+int |
| 2691 |
+rplay_audio_init() |
| 2692 |
+{ |
| 2693 |
+ if (rplay_audio_fd == -1) |
| 2694 |
+ { |
| 2695 |
+ rplay_audio_open(); |
| 2696 |
+ if (rplay_audio_fd == -1) |
| 2697 |
+ { |
| 2698 |
+ report(REPORT_ERROR, "rplay_audio_init: cannot open %s\n", |
| 2699 |
+ rplay_audio_device); |
| 2700 |
+ return -1; |
| 2701 |
+ } |
| 2702 |
+ } |
| 2703 |
+ |
| 2704 |
+ rplay_audio_sample_rate = 8000; |
| 2705 |
+ rplay_audio_precision = 8; |
| 2706 |
+ rplay_audio_channels = 1; |
| 2707 |
+ rplay_audio_format = RPLAY_FORMAT_ULAW; |
| 2708 |
+ rplay_audio_port = RPLAY_AUDIO_PORT_SPEAKER; |
| 2709 |
+ rplay_audio_table = generic_table; |
| 2710 |
+ |
| 2711 |
+ return 0; |
| 2712 |
+} |
| 2713 |
+ |
| 2714 |
+/* |
| 2715 |
+ * Open the audio device. |
| 2716 |
+ * |
| 2717 |
+ * Return 0 on success and -1 on error. |
| 2718 |
+ */ |
| 2719 |
+int |
| 2720 |
+rplay_audio_open() |
| 2721 |
+{ |
| 2722 |
+ int flags; |
| 2723 |
+ |
| 2724 |
+ rplay_audio_fd = open(rplay_audio_device, O_WRONLY | O_NDELAY, 0); |
| 2725 |
+ if (rplay_audio_fd < 0) |
| 2726 |
+ { |
| 2727 |
+ return -1; |
| 2728 |
+ } |
| 2729 |
+ |
| 2730 |
+ if (fcntl(rplay_audio_fd, F_SETFD, 1) < 0) |
| 2731 |
+ { |
| 2732 |
+ report(REPORT_ERROR, |
| 2733 |
+ "rplay_audio_open: close-on-exec %d\n", |
| 2734 |
+ sys_err_str(errno)); |
| 2735 |
+ /* return -1; */ |
| 2736 |
+ } |
| 2737 |
+ |
| 2738 |
+ if (rplay_audio_init() < 0) |
| 2739 |
+ { |
| 2740 |
+ return -1; |
| 2741 |
+ } |
| 2742 |
+ |
| 2743 |
+ /* |
| 2744 |
+ * Make sure the audio device writes are non-blocking. |
| 2745 |
+ */ |
| 2746 |
+ flags = fcntl(rplay_audio_fd, F_GETFL, 0); |
| 2747 |
+ if (flags < 0) |
| 2748 |
+ { |
| 2749 |
+ return -1; |
| 2750 |
+ } |
| 2751 |
+ flags |= FNDELAY; |
| 2752 |
+ if (fcntl(rplay_audio_fd, F_SETFL, flags) < 0) |
| 2753 |
+ { |
| 2754 |
+ return -1; |
| 2755 |
+ } |
| 2756 |
+ |
| 2757 |
+ return 0; |
| 2758 |
+} |
| 2759 |
+ |
| 2760 |
+/* |
| 2761 |
+ * Is the audio device open? |
| 2762 |
+ * |
| 2763 |
+ * Return 1 for true and 0 for false. |
| 2764 |
+ */ |
| 2765 |
+int |
| 2766 |
+rplay_audio_isopen() |
| 2767 |
+{ |
| 2768 |
+ return rplay_audio_fd != -1; |
| 2769 |
+} |
| 2770 |
+ |
| 2771 |
+/* |
| 2772 |
+ * Flush the audio device. |
| 2773 |
+ * |
| 2774 |
+ * Return 0 on success and -1 on error. |
| 2775 |
+ */ |
| 2776 |
+int |
| 2777 |
+rplay_audio_flush() |
| 2778 |
+{ |
| 2779 |
+ return 0; |
| 2780 |
+} |
| 2781 |
+ |
| 2782 |
+/* |
| 2783 |
+ * Write nbytes from buf to the audio device. |
| 2784 |
+ * |
| 2785 |
+ * Return the number of bytes written on success and -1 on error. |
| 2786 |
+ */ |
| 2787 |
+#ifdef __STDC__ |
| 2788 |
+int |
| 2789 |
+rplay_audio_write(char *buf, int nbytes) |
| 2790 |
+#else |
| 2791 |
+int |
| 2792 |
+rplay_audio_write(buf, nbytes) |
| 2793 |
+ char *buf; |
| 2794 |
+ int nbytes; |
| 2795 |
+#endif |
| 2796 |
+{ |
| 2797 |
+ int n, nleft, nwritten; |
| 2798 |
+ char *p; |
| 2799 |
+ |
| 2800 |
+ nleft = nbytes; |
| 2801 |
+ nwritten = 0; |
| 2802 |
+ |
| 2803 |
+ for (p = buf; nleft > 0; nleft -= n, p += n) |
| 2804 |
+ { |
| 2805 |
+ n = write(rplay_audio_fd, p, nleft); |
| 2806 |
+ if (n < 0) |
| 2807 |
+ { |
| 2808 |
+ if (errno == EWOULDBLOCK) |
| 2809 |
+ { |
| 2810 |
+ return nwritten; |
| 2811 |
+ } |
| 2812 |
+ else if (errno != EINTR) |
| 2813 |
+ { |
| 2814 |
+ return -1; |
| 2815 |
+ } |
| 2816 |
+ n = 0; |
| 2817 |
+ } |
| 2818 |
+ else |
| 2819 |
+ { |
| 2820 |
+ nwritten += n; |
| 2821 |
+ } |
| 2822 |
+ } |
| 2823 |
+ |
| 2824 |
+ return nwritten; |
| 2825 |
+} |
| 2826 |
+ |
| 2827 |
+/* |
| 2828 |
+ * Close the audio device. |
| 2829 |
+ * |
| 2830 |
+ * Return 0 on success and -1 on error. |
| 2831 |
+ */ |
| 2832 |
+int |
| 2833 |
+rplay_audio_close() |
| 2834 |
+{ |
| 2835 |
+ if (rplay_audio_fd != -1) |
| 2836 |
+ { |
| 2837 |
+ close(rplay_audio_fd); |
| 2838 |
+ } |
| 2839 |
+ |
| 2840 |
+ rplay_audio_fd = -1; |
| 2841 |
+ |
| 2842 |
+ return 0; |
| 2843 |
+} |
| 2844 |
+ |
| 2845 |
+/* |
| 2846 |
+ * Return the volume of the audio device. |
| 2847 |
+ * |
| 2848 |
+ * Return 0-255 or -1 on error. |
| 2849 |
+ */ |
| 2850 |
+int |
| 2851 |
+rplay_audio_get_volume() |
| 2852 |
+{ |
| 2853 |
+#ifdef FAKE_VOLUME |
| 2854 |
+ return rplay_audio_volume; |
| 2855 |
+#else /* not FAKE_VOLUME */ |
| 2856 |
+ return -1; |
| 2857 |
+#endif /* not FAKE_VOLUME */ |
| 2858 |
+} |
| 2859 |
+ |
| 2860 |
+/* |
| 2861 |
+ * Set the volume of the audio device. |
| 2862 |
+ * Input should be 0-255. |
| 2863 |
+ * |
| 2864 |
+ * Return the volume of the audio device 0-255 or -1. |
| 2865 |
+ */ |
| 2866 |
+#ifdef __STDC__ |
| 2867 |
+int |
| 2868 |
+rplay_audio_set_volume(int volume) |
| 2869 |
+#else |
| 2870 |
+int |
| 2871 |
+rplay_audio_set_volume(volume) |
| 2872 |
+ int volume; |
| 2873 |
+#endif |
| 2874 |
+{ |
| 2875 |
+#ifdef FAKE_VOLUME |
| 2876 |
+ if (volume < RPLAY_MIN_VOLUME) |
| 2877 |
+ { |
| 2878 |
+ volume = RPLAY_MIN_VOLUME; |
| 2879 |
+ } |
| 2880 |
+ else if (volume > RPLAY_MAX_VOLUME) |
| 2881 |
+ { |
| 2882 |
+ volume = RPLAY_MAX_VOLUME; |
| 2883 |
+ } |
| 2884 |
+ rplay_audio_volume = volume; |
| 2885 |
+ |
| 2886 |
+ return rplay_audio_volume; |
| 2887 |
+#else /* not FAKE_VOLUME */ |
| 2888 |
+ return -1; |
| 2889 |
+#endif /* not FAKE_VOLUME */ |
| 2890 |
+} |
| 2891 |
Index: rplay/rptp/rptp.c |
| 2892 |
=================================================================== |
| 2893 |
--- rplay.orig/rptp/rptp.c 2024-08-08 09:34:14.963482455 +0200 |
| 2894 |
+++ rplay/rptp/rptp.c 2024-08-08 09:34:14.959482451 +0200 |
| 2895 |
@@ -532,6 +532,8 @@ |
| 2896 |
printf("help Display help information.\n"); |
| 2897 |
printf("info Display sound information.\n"); |
| 2898 |
printf("list Display various server information.\n"); |
| 2899 |
+ printf("monitor Monitor the audio output of rplayd.\n"); |
| 2900 |
+ printf(" Requires \"m\" permission in rplay.hosts\n"); |
| 2901 |
printf("open Connect to a server.\n"); |
| 2902 |
printf("pause Pause sounds that are playing.\n"); |
| 2903 |
printf("play Play sounds\n"); |
| 2904 |
@@ -783,7 +785,7 @@ |
| 2905 |
} |
| 2906 |
fwrite(rptp_buf, 1, n, fp); |
| 2907 |
size -= n; |
| 2908 |
|
| 2909 |
+ |
| 2910 |
sprintf(line, "\r%s %d/%d %d%%", filename, |
| 2911 |
total_size - size, total_size, |
| 2912 |
(int)(((float)(total_size-size)/total_size)*100)); |
| 2913 |
@@ -1018,7 +1020,7 @@ |
| 2914 |
char line[80]; |
| 2915 |
int n, size; |
| 2916 |
int sample_rate, precision, channels, sample_size; |
| 2917 |
|
| 2918 |
+ |
| 2919 |
if (!connected()) |
| 2920 |
{ |
| 2921 |
return; |