Import Debian changes 3.3.2-8
rplay (3.3.2-8) unstable; urgency=low
* better arg passing in rplaydsp. (closes: Bug#133199)
* rplayd now closes stdin. (closes: 135672)
* fixed redundant declarations. (closes: 138699)
* better ogg helper.
rplay (3.3.2-7) unstable; urgency=low
* *finally* moved librplay3-dev to development section.
rplay (3.3.2-6) unstable; urgency=low
* make sure that we can actually write data to rplayd. (closes: Bug#89352)
* added some spaces to the description of the rplay package to make the
formatting happy. (closes: Bug#123598)
rplay (3.3.2-5) unstable; urgency=low
* rmdir /etc/rplay on purge. (closes: Bug#74397)
* redirect std{err,out} to /dev/null in init script. (closes: Bug#120849)
* beefed up the manpage for rplaydsp. (closes: Bug#112624)
* fixed typo in librplay3-dev description. (closes: Bug#110478)
* merged Marcus Brinkmann's hurd patches. (closes: Bug#77044)
* fixed a few lintian warnings.
* added vorbis-tools suggestion to rplay-server and helper description
in rplay.helpers.
rplay (3.3.2-4) unstable; urgency=low
* /etc/init.d/rplay starts at 99 and dies at 10. (closes: Bug#67203)
* rplay-server suggested some non-existent/experimental version of
xmp. (closes: Bug#74179)
* /etc/rplay is completely removed upon purging. (closes: Bug#74379)
* rplayd now uses the regex facilities from libc and no longer depends
on librx.
* installed default rplay.hosts.
rplay (3.3.2-3) unstable; urgency=high
* recompile using libreadline4. (closes: Bug#63176)
* fixed up copyright file.
* fixed Depends lines in control file. (closes: Bug#51934)
* added rplaydsp and moved devrplay.so to rplay-client.
lantz moore authored 22 years ago
Thorsten Alteholz committed 5 years ago
526 | 526 | |
527 | 527 | |
528 | 528 | |
529 | BUILD_TARGETS="include lib adpcm" | |
530 | ||
529 | 531 | |
530 | 532 | export srcdir |
531 | 533 | RPLAY_VERSION=`$srcdir/version` |
543 | 545 | # Extract the first word of "gcc", so it can be a program name with args. |
544 | 546 | set dummy gcc; ac_word=$2 |
545 | 547 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
546 | echo "configure:548: checking for $ac_word" >&5 | |
548 | echo "configure:550: checking for $ac_word" >&5 | |
547 | 549 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
548 | 550 | echo $ac_n "(cached) $ac_c" 1>&6 |
549 | 551 | else |
573 | 575 | # Extract the first word of "cc", so it can be a program name with args. |
574 | 576 | set dummy cc; ac_word=$2 |
575 | 577 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
576 | echo "configure:578: checking for $ac_word" >&5 | |
578 | echo "configure:580: checking for $ac_word" >&5 | |
577 | 579 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
578 | 580 | echo $ac_n "(cached) $ac_c" 1>&6 |
579 | 581 | else |
624 | 626 | # Extract the first word of "cl", so it can be a program name with args. |
625 | 627 | set dummy cl; ac_word=$2 |
626 | 628 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
627 | echo "configure:629: checking for $ac_word" >&5 | |
629 | echo "configure:631: checking for $ac_word" >&5 | |
628 | 630 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
629 | 631 | echo $ac_n "(cached) $ac_c" 1>&6 |
630 | 632 | else |
656 | 658 | fi |
657 | 659 | |
658 | 660 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
659 | echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
661 | echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
660 | 662 | |
661 | 663 | ac_ext=c |
662 | 664 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
667 | 669 | |
668 | 670 | cat > conftest.$ac_ext << EOF |
669 | 671 | |
670 | #line 672 "configure" | |
672 | #line 674 "configure" | |
671 | 673 | #include "confdefs.h" |
672 | 674 | |
673 | 675 | main(){return(0);} |
674 | 676 | EOF |
675 | if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
677 | if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
676 | 678 | ac_cv_prog_cc_works=yes |
677 | 679 | # If we can't run a trivial program, we are probably using a cross compiler. |
678 | 680 | if (./conftest; exit) 2>/dev/null; then |
698 | 700 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
699 | 701 | fi |
700 | 702 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
701 | echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
703 | echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
702 | 704 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
703 | 705 | cross_compiling=$ac_cv_prog_cc_cross |
704 | 706 | |
705 | 707 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
706 | echo "configure:708: checking whether we are using GNU C" >&5 | |
708 | echo "configure:710: checking whether we are using GNU C" >&5 | |
707 | 709 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
708 | 710 | echo $ac_n "(cached) $ac_c" 1>&6 |
709 | 711 | else |
712 | 714 | yes; |
713 | 715 | #endif |
714 | 716 | EOF |
715 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
717 | 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 | |
716 | 718 | ac_cv_prog_gcc=yes |
717 | 719 | else |
718 | 720 | ac_cv_prog_gcc=no |
731 | 733 | ac_save_CFLAGS="$CFLAGS" |
732 | 734 | CFLAGS= |
733 | 735 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
734 | echo "configure:736: checking whether ${CC-cc} accepts -g" >&5 | |
736 | echo "configure:738: checking whether ${CC-cc} accepts -g" >&5 | |
735 | 737 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
736 | 738 | echo $ac_n "(cached) $ac_c" 1>&6 |
737 | 739 | else |
796 | 798 | |
797 | 799 | |
798 | 800 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
799 | echo "configure:801: checking for POSIXized ISC" >&5 | |
801 | echo "configure:803: checking for POSIXized ISC" >&5 | |
800 | 802 | if test -d /etc/conf/kconfig.d && |
801 | 803 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
802 | 804 | then |
817 | 819 | fi |
818 | 820 | |
819 | 821 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
820 | echo "configure:822: checking how to run the C preprocessor" >&5 | |
822 | echo "configure:824: checking how to run the C preprocessor" >&5 | |
821 | 823 | # On Suns, sometimes $CPP names a directory. |
822 | 824 | if test -n "$CPP" && test -d "$CPP"; then |
823 | 825 | CPP= |
832 | 834 | # On the NeXT, cc -E runs the code through the compiler's parser, |
833 | 835 | # not just through cpp. |
834 | 836 | cat > conftest.$ac_ext <<EOF |
835 | #line 837 "configure" | |
837 | #line 839 "configure" | |
836 | 838 | #include "confdefs.h" |
837 | 839 | #include <assert.h> |
838 | 840 | Syntax Error |
839 | 841 | EOF |
840 | 842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
841 | { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
843 | { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
842 | 844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
843 | 845 | if test -z "$ac_err"; then |
844 | 846 | : |
849 | 851 | rm -rf conftest* |
850 | 852 | CPP="${CC-cc} -E -traditional-cpp" |
851 | 853 | cat > conftest.$ac_ext <<EOF |
852 | #line 854 "configure" | |
854 | #line 856 "configure" | |
853 | 855 | #include "confdefs.h" |
854 | 856 | #include <assert.h> |
855 | 857 | Syntax Error |
856 | 858 | EOF |
857 | 859 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
858 | { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
860 | { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
859 | 861 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
860 | 862 | if test -z "$ac_err"; then |
861 | 863 | : |
866 | 868 | rm -rf conftest* |
867 | 869 | CPP="${CC-cc} -nologo -E" |
868 | 870 | cat > conftest.$ac_ext <<EOF |
869 | #line 871 "configure" | |
871 | #line 873 "configure" | |
870 | 872 | #include "confdefs.h" |
871 | 873 | #include <assert.h> |
872 | 874 | Syntax Error |
873 | 875 | EOF |
874 | 876 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
875 | { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
877 | { (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
876 | 878 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
877 | 879 | if test -z "$ac_err"; then |
878 | 880 | : |
927 | 929 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
928 | 930 | # ./install, which can be erroneously created by make from ./install.sh. |
929 | 931 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
930 | echo "configure:932: checking for a BSD compatible install" >&5 | |
932 | echo "configure:934: checking for a BSD compatible install" >&5 | |
931 | 933 | if test -z "$INSTALL"; then |
932 | 934 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
933 | 935 | echo $ac_n "(cached) $ac_c" 1>&6 |
980 | 982 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
981 | 983 | |
982 | 984 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
983 | echo "configure:985: checking whether ln -s works" >&5 | |
985 | echo "configure:987: checking whether ln -s works" >&5 | |
984 | 986 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
985 | 987 | echo $ac_n "(cached) $ac_c" 1>&6 |
986 | 988 | else |
1003 | 1005 | # Extract the first word of "ranlib", so it can be a program name with args. |
1004 | 1006 | set dummy ranlib; ac_word=$2 |
1005 | 1007 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1006 | echo "configure:1008: checking for $ac_word" >&5 | |
1008 | echo "configure:1010: checking for $ac_word" >&5 | |
1007 | 1009 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1008 | 1010 | echo $ac_n "(cached) $ac_c" 1>&6 |
1009 | 1011 | else |
1035 | 1037 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1036 | 1038 | set dummy $ac_prog; ac_word=$2 |
1037 | 1039 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1038 | echo "configure:1040: checking for $ac_word" >&5 | |
1040 | echo "configure:1042: checking for $ac_word" >&5 | |
1039 | 1041 | if eval "test \"`echo '$''{'ac_cv_prog_ETAGS'+set}'`\" = set"; then |
1040 | 1042 | echo $ac_n "(cached) $ac_c" 1>&6 |
1041 | 1043 | else |
1070 | 1072 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1071 | 1073 | set dummy $ac_prog; ac_word=$2 |
1072 | 1074 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1073 | echo "configure:1075: checking for $ac_word" >&5 | |
1075 | echo "configure:1077: checking for $ac_word" >&5 | |
1074 | 1076 | if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEPEND'+set}'`\" = set"; then |
1075 | 1077 | echo $ac_n "(cached) $ac_c" 1>&6 |
1076 | 1078 | else |
1105 | 1107 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1106 | 1108 | set dummy $ac_prog; ac_word=$2 |
1107 | 1109 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1108 | echo "configure:1110: checking for $ac_word" >&5 | |
1110 | echo "configure:1112: checking for $ac_word" >&5 | |
1109 | 1111 | if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
1110 | 1112 | echo $ac_n "(cached) $ac_c" 1>&6 |
1111 | 1113 | else |
1140 | 1142 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1141 | 1143 | set dummy $ac_prog; ac_word=$2 |
1142 | 1144 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1143 | echo "configure:1145: checking for $ac_word" >&5 | |
1145 | echo "configure:1147: checking for $ac_word" >&5 | |
1144 | 1146 | if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then |
1145 | 1147 | echo $ac_n "(cached) $ac_c" 1>&6 |
1146 | 1148 | else |
1175 | 1177 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1176 | 1178 | set dummy $ac_prog; ac_word=$2 |
1177 | 1179 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1178 | echo "configure:1180: checking for $ac_word" >&5 | |
1180 | echo "configure:1182: checking for $ac_word" >&5 | |
1179 | 1181 | if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then |
1180 | 1182 | echo $ac_n "(cached) $ac_c" 1>&6 |
1181 | 1183 | else |
1210 | 1212 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1211 | 1213 | set dummy $ac_prog; ac_word=$2 |
1212 | 1214 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1213 | echo "configure:1215: checking for $ac_word" >&5 | |
1215 | echo "configure:1217: checking for $ac_word" >&5 | |
1214 | 1216 | if eval "test \"`echo '$''{'ac_cv_prog_DVIPS'+set}'`\" = set"; then |
1215 | 1217 | echo $ac_n "(cached) $ac_c" 1>&6 |
1216 | 1218 | else |
1246 | 1248 | do |
1247 | 1249 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1248 | 1250 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
1249 | echo "configure:1251: checking for $ac_hdr that defines DIR" >&5 | |
1251 | echo "configure:1253: checking for $ac_hdr that defines DIR" >&5 | |
1250 | 1252 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
1251 | 1253 | echo $ac_n "(cached) $ac_c" 1>&6 |
1252 | 1254 | else |
1253 | 1255 | cat > conftest.$ac_ext <<EOF |
1254 | #line 1256 "configure" | |
1256 | #line 1258 "configure" | |
1255 | 1257 | #include "confdefs.h" |
1256 | 1258 | #include <sys/types.h> |
1257 | 1259 | #include <$ac_hdr> |
1259 | 1261 | DIR *dirp = 0; |
1260 | 1262 | ; return 0; } |
1261 | 1263 | EOF |
1262 | if { (eval echo configure:1264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1264 | if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1263 | 1265 | rm -rf conftest* |
1264 | 1266 | eval "ac_cv_header_dirent_$ac_safe=yes" |
1265 | 1267 | else |
1284 | 1286 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
1285 | 1287 | if test $ac_header_dirent = dirent.h; then |
1286 | 1288 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
1287 | echo "configure:1289: checking for opendir in -ldir" >&5 | |
1289 | echo "configure:1291: checking for opendir in -ldir" >&5 | |
1288 | 1290 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
1289 | 1291 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1290 | 1292 | echo $ac_n "(cached) $ac_c" 1>&6 |
1292 | 1294 | ac_save_LIBS="$LIBS" |
1293 | 1295 | LIBS="-ldir $LIBS" |
1294 | 1296 | cat > conftest.$ac_ext <<EOF |
1295 | #line 1297 "configure" | |
1297 | #line 1299 "configure" | |
1296 | 1298 | #include "confdefs.h" |
1297 | 1299 | /* Override any gcc2 internal prototype to avoid an error. */ |
1298 | 1300 | /* We use char because int might match the return type of a gcc2 |
1303 | 1305 | opendir() |
1304 | 1306 | ; return 0; } |
1305 | 1307 | EOF |
1306 | if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1308 | if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1307 | 1309 | rm -rf conftest* |
1308 | 1310 | eval "ac_cv_lib_$ac_lib_var=yes" |
1309 | 1311 | else |
1325 | 1327 | |
1326 | 1328 | else |
1327 | 1329 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
1328 | echo "configure:1330: checking for opendir in -lx" >&5 | |
1330 | echo "configure:1332: checking for opendir in -lx" >&5 | |
1329 | 1331 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
1330 | 1332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1331 | 1333 | echo $ac_n "(cached) $ac_c" 1>&6 |
1333 | 1335 | ac_save_LIBS="$LIBS" |
1334 | 1336 | LIBS="-lx $LIBS" |
1335 | 1337 | cat > conftest.$ac_ext <<EOF |
1336 | #line 1338 "configure" | |
1338 | #line 1340 "configure" | |
1337 | 1339 | #include "confdefs.h" |
1338 | 1340 | /* Override any gcc2 internal prototype to avoid an error. */ |
1339 | 1341 | /* We use char because int might match the return type of a gcc2 |
1344 | 1346 | opendir() |
1345 | 1347 | ; return 0; } |
1346 | 1348 | EOF |
1347 | if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1349 | if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1348 | 1350 | rm -rf conftest* |
1349 | 1351 | eval "ac_cv_lib_$ac_lib_var=yes" |
1350 | 1352 | else |
1367 | 1369 | fi |
1368 | 1370 | |
1369 | 1371 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1370 | echo "configure:1372: checking for ANSI C header files" >&5 | |
1372 | echo "configure:1374: checking for ANSI C header files" >&5 | |
1371 | 1373 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1372 | 1374 | echo $ac_n "(cached) $ac_c" 1>&6 |
1373 | 1375 | else |
1374 | 1376 | cat > conftest.$ac_ext <<EOF |
1375 | #line 1377 "configure" | |
1377 | #line 1379 "configure" | |
1376 | 1378 | #include "confdefs.h" |
1377 | 1379 | #include <stdlib.h> |
1378 | 1380 | #include <stdarg.h> |
1380 | 1382 | #include <float.h> |
1381 | 1383 | EOF |
1382 | 1384 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1383 | { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1385 | { (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1384 | 1386 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1385 | 1387 | if test -z "$ac_err"; then |
1386 | 1388 | rm -rf conftest* |
1397 | 1399 | if test $ac_cv_header_stdc = yes; then |
1398 | 1400 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1399 | 1401 | cat > conftest.$ac_ext <<EOF |
1400 | #line 1402 "configure" | |
1402 | #line 1404 "configure" | |
1401 | 1403 | #include "confdefs.h" |
1402 | 1404 | #include <string.h> |
1403 | 1405 | EOF |
1415 | 1417 | if test $ac_cv_header_stdc = yes; then |
1416 | 1418 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1417 | 1419 | cat > conftest.$ac_ext <<EOF |
1418 | #line 1420 "configure" | |
1420 | #line 1422 "configure" | |
1419 | 1421 | #include "confdefs.h" |
1420 | 1422 | #include <stdlib.h> |
1421 | 1423 | EOF |
1436 | 1438 | : |
1437 | 1439 | else |
1438 | 1440 | cat > conftest.$ac_ext <<EOF |
1439 | #line 1441 "configure" | |
1441 | #line 1443 "configure" | |
1440 | 1442 | #include "confdefs.h" |
1441 | 1443 | #include <ctype.h> |
1442 | 1444 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1447 | 1449 | exit (0); } |
1448 | 1450 | |
1449 | 1451 | EOF |
1450 | if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1452 | if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1451 | 1453 | then |
1452 | 1454 | : |
1453 | 1455 | else |
1471 | 1473 | fi |
1472 | 1474 | |
1473 | 1475 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
1474 | echo "configure:1476: checking whether time.h and sys/time.h may both be included" >&5 | |
1476 | echo "configure:1478: checking whether time.h and sys/time.h may both be included" >&5 | |
1475 | 1477 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1476 | 1478 | echo $ac_n "(cached) $ac_c" 1>&6 |
1477 | 1479 | else |
1478 | 1480 | cat > conftest.$ac_ext <<EOF |
1479 | #line 1481 "configure" | |
1481 | #line 1483 "configure" | |
1480 | 1482 | #include "confdefs.h" |
1481 | 1483 | #include <sys/types.h> |
1482 | 1484 | #include <sys/time.h> |
1485 | 1487 | struct tm *tp; |
1486 | 1488 | ; return 0; } |
1487 | 1489 | EOF |
1488 | if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1490 | if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1489 | 1491 | rm -rf conftest* |
1490 | 1492 | ac_cv_header_time=yes |
1491 | 1493 | else |
1505 | 1507 | |
1506 | 1508 | fi |
1507 | 1509 | |
1508 | 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 rxposix.h rx/rxposix.h | |
1510 | 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 | |
1509 | 1511 | do |
1510 | 1512 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1511 | 1513 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1512 | echo "configure:1514: checking for $ac_hdr" >&5 | |
1514 | echo "configure:1516: checking for $ac_hdr" >&5 | |
1513 | 1515 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1514 | 1516 | echo $ac_n "(cached) $ac_c" 1>&6 |
1515 | 1517 | else |
1516 | 1518 | cat > conftest.$ac_ext <<EOF |
1517 | #line 1519 "configure" | |
1519 | #line 1521 "configure" | |
1518 | 1520 | #include "confdefs.h" |
1519 | 1521 | #include <$ac_hdr> |
1520 | 1522 | EOF |
1521 | 1523 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1522 | { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1524 | { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1523 | 1525 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1524 | 1526 | if test -z "$ac_err"; then |
1525 | 1527 | rm -rf conftest* |
1546 | 1548 | done |
1547 | 1549 | |
1548 | 1550 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
1549 | echo "configure:1551: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
1551 | echo "configure:1553: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
1550 | 1552 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1551 | 1553 | echo $ac_n "(cached) $ac_c" 1>&6 |
1552 | 1554 | else |
1553 | 1555 | cat > conftest.$ac_ext <<EOF |
1554 | #line 1556 "configure" | |
1556 | #line 1558 "configure" | |
1555 | 1557 | #include "confdefs.h" |
1556 | 1558 | #include <sys/types.h> |
1557 | 1559 | #include <sys/wait.h> |
1567 | 1569 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
1568 | 1570 | ; return 0; } |
1569 | 1571 | EOF |
1570 | if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1572 | if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1571 | 1573 | rm -rf conftest* |
1572 | 1574 | ac_cv_header_sys_wait_h=yes |
1573 | 1575 | else |
1589 | 1591 | |
1590 | 1592 | |
1591 | 1593 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1592 | echo "configure:1594: checking for working const" >&5 | |
1594 | echo "configure:1596: checking for working const" >&5 | |
1593 | 1595 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1594 | 1596 | echo $ac_n "(cached) $ac_c" 1>&6 |
1595 | 1597 | else |
1596 | 1598 | cat > conftest.$ac_ext <<EOF |
1597 | #line 1599 "configure" | |
1599 | #line 1601 "configure" | |
1598 | 1600 | #include "confdefs.h" |
1599 | 1601 | |
1600 | 1602 | int main() { |
1643 | 1645 | |
1644 | 1646 | ; return 0; } |
1645 | 1647 | EOF |
1646 | if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1648 | if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1647 | 1649 | rm -rf conftest* |
1648 | 1650 | ac_cv_c_const=yes |
1649 | 1651 | else |
1664 | 1666 | fi |
1665 | 1667 | |
1666 | 1668 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1667 | echo "configure:1669: checking for size_t" >&5 | |
1669 | echo "configure:1671: checking for size_t" >&5 | |
1668 | 1670 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1669 | 1671 | echo $ac_n "(cached) $ac_c" 1>&6 |
1670 | 1672 | else |
1671 | 1673 | cat > conftest.$ac_ext <<EOF |
1672 | #line 1674 "configure" | |
1674 | #line 1676 "configure" | |
1673 | 1675 | #include "confdefs.h" |
1674 | 1676 | #include <sys/types.h> |
1675 | 1677 | #if STDC_HEADERS |
1701 | 1703 | do |
1702 | 1704 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1703 | 1705 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1704 | echo "configure:1706: checking for $ac_hdr" >&5 | |
1706 | echo "configure:1708: checking for $ac_hdr" >&5 | |
1705 | 1707 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1706 | 1708 | echo $ac_n "(cached) $ac_c" 1>&6 |
1707 | 1709 | else |
1708 | 1710 | cat > conftest.$ac_ext <<EOF |
1709 | #line 1711 "configure" | |
1711 | #line 1713 "configure" | |
1710 | 1712 | #include "confdefs.h" |
1711 | 1713 | #include <$ac_hdr> |
1712 | 1714 | EOF |
1713 | 1715 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1714 | { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1716 | { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1715 | 1717 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1716 | 1718 | if test -z "$ac_err"; then |
1717 | 1719 | rm -rf conftest* |
1740 | 1742 | for ac_func in getpagesize |
1741 | 1743 | do |
1742 | 1744 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1743 | echo "configure:1745: checking for $ac_func" >&5 | |
1745 | echo "configure:1747: checking for $ac_func" >&5 | |
1744 | 1746 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1745 | 1747 | echo $ac_n "(cached) $ac_c" 1>&6 |
1746 | 1748 | else |
1747 | 1749 | cat > conftest.$ac_ext <<EOF |
1748 | #line 1750 "configure" | |
1750 | #line 1752 "configure" | |
1749 | 1751 | #include "confdefs.h" |
1750 | 1752 | /* System header to define __stub macros and hopefully few prototypes, |
1751 | 1753 | which can conflict with char $ac_func(); below. */ |
1768 | 1770 | |
1769 | 1771 | ; return 0; } |
1770 | 1772 | EOF |
1771 | if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1773 | if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1772 | 1774 | rm -rf conftest* |
1773 | 1775 | eval "ac_cv_func_$ac_func=yes" |
1774 | 1776 | else |
1793 | 1795 | done |
1794 | 1796 | |
1795 | 1797 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
1796 | echo "configure:1798: checking for working mmap" >&5 | |
1798 | echo "configure:1800: checking for working mmap" >&5 | |
1797 | 1799 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
1798 | 1800 | echo $ac_n "(cached) $ac_c" 1>&6 |
1799 | 1801 | else |
1801 | 1803 | ac_cv_func_mmap_fixed_mapped=no |
1802 | 1804 | else |
1803 | 1805 | cat > conftest.$ac_ext <<EOF |
1804 | #line 1806 "configure" | |
1806 | #line 1808 "configure" | |
1805 | 1807 | #include "confdefs.h" |
1806 | 1808 | |
1807 | 1809 | /* Thanks to Mike Haertel and Jim Avera for this test. |
1941 | 1943 | } |
1942 | 1944 | |
1943 | 1945 | EOF |
1944 | if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1946 | if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1945 | 1947 | then |
1946 | 1948 | ac_cv_func_mmap_fixed_mapped=yes |
1947 | 1949 | else |
1964 | 1966 | fi |
1965 | 1967 | |
1966 | 1968 | echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 |
1967 | echo "configure:1969: checking for 8-bit clean memcmp" >&5 | |
1969 | echo "configure:1971: checking for 8-bit clean memcmp" >&5 | |
1968 | 1970 | if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then |
1969 | 1971 | echo $ac_n "(cached) $ac_c" 1>&6 |
1970 | 1972 | else |
1972 | 1974 | ac_cv_func_memcmp_clean=no |
1973 | 1975 | else |
1974 | 1976 | cat > conftest.$ac_ext <<EOF |
1975 | #line 1977 "configure" | |
1977 | #line 1979 "configure" | |
1976 | 1978 | #include "confdefs.h" |
1977 | 1979 | |
1978 | 1980 | main() |
1982 | 1984 | } |
1983 | 1985 | |
1984 | 1986 | EOF |
1985 | if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1987 | if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1986 | 1988 | then |
1987 | 1989 | ac_cv_func_memcmp_clean=yes |
1988 | 1990 | else |
2000 | 2002 | test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" |
2001 | 2003 | |
2002 | 2004 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2003 | echo "configure:2005: checking for vprintf" >&5 | |
2005 | echo "configure:2007: checking for vprintf" >&5 | |
2004 | 2006 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2005 | 2007 | echo $ac_n "(cached) $ac_c" 1>&6 |
2006 | 2008 | else |
2007 | 2009 | cat > conftest.$ac_ext <<EOF |
2008 | #line 2010 "configure" | |
2010 | #line 2012 "configure" | |
2009 | 2011 | #include "confdefs.h" |
2010 | 2012 | /* System header to define __stub macros and hopefully few prototypes, |
2011 | 2013 | which can conflict with char vprintf(); below. */ |
2028 | 2030 | |
2029 | 2031 | ; return 0; } |
2030 | 2032 | EOF |
2031 | if { (eval echo configure:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2033 | if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2032 | 2034 | rm -rf conftest* |
2033 | 2035 | eval "ac_cv_func_vprintf=yes" |
2034 | 2036 | else |
2052 | 2054 | |
2053 | 2055 | if test "$ac_cv_func_vprintf" != yes; then |
2054 | 2056 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2055 | echo "configure:2057: checking for _doprnt" >&5 | |
2057 | echo "configure:2059: checking for _doprnt" >&5 | |
2056 | 2058 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2057 | 2059 | echo $ac_n "(cached) $ac_c" 1>&6 |
2058 | 2060 | else |
2059 | 2061 | cat > conftest.$ac_ext <<EOF |
2060 | #line 2062 "configure" | |
2062 | #line 2064 "configure" | |
2061 | 2063 | #include "confdefs.h" |
2062 | 2064 | /* System header to define __stub macros and hopefully few prototypes, |
2063 | 2065 | which can conflict with char _doprnt(); below. */ |
2080 | 2082 | |
2081 | 2083 | ; return 0; } |
2082 | 2084 | EOF |
2083 | if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2085 | if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2084 | 2086 | rm -rf conftest* |
2085 | 2087 | eval "ac_cv_func__doprnt=yes" |
2086 | 2088 | else |
2105 | 2107 | fi |
2106 | 2108 | |
2107 | 2109 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
2108 | echo "configure:2110: checking return type of signal handlers" >&5 | |
2110 | echo "configure:2112: checking return type of signal handlers" >&5 | |
2109 | 2111 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2110 | 2112 | echo $ac_n "(cached) $ac_c" 1>&6 |
2111 | 2113 | else |
2112 | 2114 | cat > conftest.$ac_ext <<EOF |
2113 | #line 2115 "configure" | |
2115 | #line 2117 "configure" | |
2114 | 2116 | #include "confdefs.h" |
2115 | 2117 | #include <sys/types.h> |
2116 | 2118 | #include <signal.h> |
2127 | 2129 | int i; |
2128 | 2130 | ; return 0; } |
2129 | 2131 | EOF |
2130 | if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2132 | if { (eval echo configure:2134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2131 | 2133 | rm -rf conftest* |
2132 | 2134 | ac_cv_type_signal=void |
2133 | 2135 | else |
2148 | 2150 | 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 |
2149 | 2151 | do |
2150 | 2152 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2151 | echo "configure:2153: checking for $ac_func" >&5 | |
2153 | echo "configure:2155: checking for $ac_func" >&5 | |
2152 | 2154 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2153 | 2155 | echo $ac_n "(cached) $ac_c" 1>&6 |
2154 | 2156 | else |
2155 | 2157 | cat > conftest.$ac_ext <<EOF |
2156 | #line 2158 "configure" | |
2158 | #line 2160 "configure" | |
2157 | 2159 | #include "confdefs.h" |
2158 | 2160 | /* System header to define __stub macros and hopefully few prototypes, |
2159 | 2161 | which can conflict with char $ac_func(); below. */ |
2176 | 2178 | |
2177 | 2179 | ; return 0; } |
2178 | 2180 | EOF |
2179 | if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2181 | if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2180 | 2182 | rm -rf conftest* |
2181 | 2183 | eval "ac_cv_func_$ac_func=yes" |
2182 | 2184 | else |
2201 | 2203 | done |
2202 | 2204 | |
2203 | 2205 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
2204 | echo "configure:2206: checking for socket in -lsocket" >&5 | |
2206 | echo "configure:2208: checking for socket in -lsocket" >&5 | |
2205 | 2207 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
2206 | 2208 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2207 | 2209 | echo $ac_n "(cached) $ac_c" 1>&6 |
2209 | 2211 | ac_save_LIBS="$LIBS" |
2210 | 2212 | LIBS="-lsocket $LIBS" |
2211 | 2213 | cat > conftest.$ac_ext <<EOF |
2212 | #line 2214 "configure" | |
2214 | #line 2216 "configure" | |
2213 | 2215 | #include "confdefs.h" |
2214 | 2216 | /* Override any gcc2 internal prototype to avoid an error. */ |
2215 | 2217 | /* We use char because int might match the return type of a gcc2 |
2220 | 2222 | socket() |
2221 | 2223 | ; return 0; } |
2222 | 2224 | EOF |
2223 | if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2225 | if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2224 | 2226 | rm -rf conftest* |
2225 | 2227 | eval "ac_cv_lib_$ac_lib_var=yes" |
2226 | 2228 | else |
2241 | 2243 | fi |
2242 | 2244 | |
2243 | 2245 | echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6 |
2244 | echo "configure:2246: checking for t_accept in -lnsl" >&5 | |
2246 | echo "configure:2248: checking for t_accept in -lnsl" >&5 | |
2245 | 2247 | ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'` |
2246 | 2248 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2247 | 2249 | echo $ac_n "(cached) $ac_c" 1>&6 |
2249 | 2251 | ac_save_LIBS="$LIBS" |
2250 | 2252 | LIBS="-lnsl $LIBS" |
2251 | 2253 | cat > conftest.$ac_ext <<EOF |
2252 | #line 2254 "configure" | |
2254 | #line 2256 "configure" | |
2253 | 2255 | #include "confdefs.h" |
2254 | 2256 | /* Override any gcc2 internal prototype to avoid an error. */ |
2255 | 2257 | /* We use char because int might match the return type of a gcc2 |
2260 | 2262 | t_accept() |
2261 | 2263 | ; return 0; } |
2262 | 2264 | EOF |
2263 | if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2265 | if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2264 | 2266 | rm -rf conftest* |
2265 | 2267 | eval "ac_cv_lib_$ac_lib_var=yes" |
2266 | 2268 | else |
2282 | 2284 | |
2283 | 2285 | |
2284 | 2286 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 |
2285 | echo "configure:2287: checking for readline in -lreadline" >&5 | |
2287 | echo "configure:2289: checking for readline in -lreadline" >&5 | |
2286 | 2288 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` |
2287 | 2289 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2288 | 2290 | echo $ac_n "(cached) $ac_c" 1>&6 |
2290 | 2292 | ac_save_LIBS="$LIBS" |
2291 | 2293 | LIBS="-lreadline $LIBS" |
2292 | 2294 | cat > conftest.$ac_ext <<EOF |
2293 | #line 2295 "configure" | |
2295 | #line 2297 "configure" | |
2294 | 2296 | #include "confdefs.h" |
2295 | 2297 | /* Override any gcc2 internal prototype to avoid an error. */ |
2296 | 2298 | /* We use char because int might match the return type of a gcc2 |
2301 | 2303 | readline() |
2302 | 2304 | ; return 0; } |
2303 | 2305 | EOF |
2304 | if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2306 | if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2305 | 2307 | rm -rf conftest* |
2306 | 2308 | eval "ac_cv_lib_$ac_lib_var=yes" |
2307 | 2309 | else |
2316 | 2318 | fi |
2317 | 2319 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2318 | 2320 | echo "$ac_t""yes" 1>&6 |
2319 | RL_LIBS="-lreadline" | |
2321 | cat >> confdefs.h <<\EOF | |
2322 | #define HAVE_LIBREADLINE 1 | |
2323 | EOF | |
2324 | RL_LIBS="-lreadline" | |
2320 | 2325 | else |
2321 | 2326 | echo "$ac_t""no" 1>&6 |
2322 | 2327 | fi |
2324 | 2329 | |
2325 | 2330 | |
2326 | 2331 | echo $ac_n "checking for gsm_decode in -lgsm""... $ac_c" 1>&6 |
2327 | echo "configure:2329: checking for gsm_decode in -lgsm" >&5 | |
2332 | echo "configure:2334: checking for gsm_decode in -lgsm" >&5 | |
2328 | 2333 | ac_lib_var=`echo gsm'_'gsm_decode | sed 'y%./+-%__p_%'` |
2329 | 2334 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2330 | 2335 | echo $ac_n "(cached) $ac_c" 1>&6 |
2332 | 2337 | ac_save_LIBS="$LIBS" |
2333 | 2338 | LIBS="-lgsm $LIBS" |
2334 | 2339 | cat > conftest.$ac_ext <<EOF |
2335 | #line 2337 "configure" | |
2340 | #line 2342 "configure" | |
2336 | 2341 | #include "confdefs.h" |
2337 | 2342 | /* Override any gcc2 internal prototype to avoid an error. */ |
2338 | 2343 | /* We use char because int might match the return type of a gcc2 |
2343 | 2348 | gsm_decode() |
2344 | 2349 | ; return 0; } |
2345 | 2350 | EOF |
2346 | if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2351 | if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2347 | 2352 | rm -rf conftest* |
2348 | 2353 | eval "ac_cv_lib_$ac_lib_var=yes" |
2349 | 2354 | else |
2358 | 2363 | fi |
2359 | 2364 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2360 | 2365 | echo "$ac_t""yes" 1>&6 |
2361 | HAVE_GSM="yes" | |
2366 | GSM_LIBS="-lgsm"; GSM_INCS="" | |
2362 | 2367 | else |
2363 | 2368 | echo "$ac_t""no" 1>&6 |
2364 | fi | |
2365 | ||
2366 | if test "$HAVE_GSM" = "yes"; then | |
2367 | GSM_LIBS="-lgsm" | |
2368 | GSM_INCS="" | |
2369 | else | |
2370 | GSM_LIBS="-L../gsm -lgsm" | |
2371 | GSM_INCS="-I\${srcdir}/../gsm" | |
2372 | fi | |
2373 | ||
2374 | ||
2375 | ||
2376 | echo $ac_n "checking for regncomp in -lrx""... $ac_c" 1>&6 | |
2377 | echo "configure:2379: checking for regncomp in -lrx" >&5 | |
2378 | ac_lib_var=`echo rx'_'regncomp | sed 'y%./+-%__p_%'` | |
2369 | ||
2370 | GSM_LIBS="-L../gsm -lgsm"; GSM_INCS="-I\${srcdir}/../gsm" | |
2371 | BUILD_TARGETS="$BUILD_TARGETS gsm" | |
2372 | ||
2373 | fi | |
2374 | ||
2375 | ||
2376 | ||
2377 | ||
2378 | for ac_func in regcomp | |
2379 | do | |
2380 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2381 | echo "configure:2383: checking for $ac_func" >&5 | |
2382 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
2383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2384 | else | |
2385 | cat > conftest.$ac_ext <<EOF | |
2386 | #line 2388 "configure" | |
2387 | #include "confdefs.h" | |
2388 | /* System header to define __stub macros and hopefully few prototypes, | |
2389 | which can conflict with char $ac_func(); below. */ | |
2390 | #include <assert.h> | |
2391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2392 | /* We use char because int might match the return type of a gcc2 | |
2393 | builtin and then its argument prototype would still apply. */ | |
2394 | char $ac_func(); | |
2395 | ||
2396 | int main() { | |
2397 | ||
2398 | /* The GNU C library defines this for functions which it implements | |
2399 | to always fail with ENOSYS. Some functions are actually named | |
2400 | something starting with __ and the normal name is an alias. */ | |
2401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2402 | choke me | |
2403 | #else | |
2404 | $ac_func(); | |
2405 | #endif | |
2406 | ||
2407 | ; return 0; } | |
2408 | EOF | |
2409 | if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2410 | rm -rf conftest* | |
2411 | eval "ac_cv_func_$ac_func=yes" | |
2412 | else | |
2413 | echo "configure: failed program was:" >&5 | |
2414 | cat conftest.$ac_ext >&5 | |
2415 | rm -rf conftest* | |
2416 | eval "ac_cv_func_$ac_func=no" | |
2417 | fi | |
2418 | rm -f conftest* | |
2419 | fi | |
2420 | ||
2421 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2422 | echo "$ac_t""yes" 1>&6 | |
2423 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2424 | cat >> confdefs.h <<EOF | |
2425 | #define $ac_tr_func 1 | |
2426 | EOF | |
2427 | ||
2428 | else | |
2429 | echo "$ac_t""no" 1>&6 | |
2430 | echo $ac_n "checking for regcomp in -lrx""... $ac_c" 1>&6 | |
2431 | echo "configure:2433: checking for regcomp in -lrx" >&5 | |
2432 | ac_lib_var=`echo rx'_'regcomp | sed 'y%./+-%__p_%'` | |
2379 | 2433 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2380 | 2434 | echo $ac_n "(cached) $ac_c" 1>&6 |
2381 | 2435 | else |
2382 | 2436 | ac_save_LIBS="$LIBS" |
2383 | 2437 | LIBS="-lrx $LIBS" |
2384 | 2438 | cat > conftest.$ac_ext <<EOF |
2385 | #line 2387 "configure" | |
2439 | #line 2441 "configure" | |
2386 | 2440 | #include "confdefs.h" |
2387 | 2441 | /* Override any gcc2 internal prototype to avoid an error. */ |
2388 | 2442 | /* We use char because int might match the return type of a gcc2 |
2389 | 2443 | builtin and then its argument prototype would still apply. */ |
2390 | char regncomp(); | |
2444 | char regcomp(); | |
2391 | 2445 | |
2392 | 2446 | int main() { |
2393 | regncomp() | |
2447 | regcomp() | |
2394 | 2448 | ; return 0; } |
2395 | 2449 | EOF |
2396 | if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2450 | if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2397 | 2451 | rm -rf conftest* |
2398 | 2452 | eval "ac_cv_lib_$ac_lib_var=yes" |
2399 | 2453 | else |
2408 | 2462 | fi |
2409 | 2463 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2410 | 2464 | echo "$ac_t""yes" 1>&6 |
2411 | HAVE_RX="yes" | |
2465 | RX_LIBS="-lrx"; RX_INCS="" | |
2412 | 2466 | else |
2413 | 2467 | echo "$ac_t""no" 1>&6 |
2414 | fi | |
2415 | ||
2416 | if test "$HAVE_RX" = "yes"; then | |
2417 | RX_LIBS="-lrx" | |
2418 | RX_INCS="" | |
2419 | else | |
2420 | RX_LIBS="-L../rx -lrx" | |
2421 | RX_INCS="-I\${srcdir}/../rx" | |
2422 | fi | |
2468 | ||
2469 | RX_LIBS="-L../rx -lrx"; RX_INCS="-I\${srcdir}/../rx" | |
2470 | BUILD_TARGETS="$BUILD_TARGETS rx" | |
2471 | subdirs="rx" | |
2472 | s%@subdirs@%$subdirs%g | |
2473 | ||
2474 | ||
2475 | fi | |
2476 | ||
2477 | ||
2478 | fi | |
2479 | done | |
2480 | ||
2423 | 2481 | |
2424 | 2482 | |
2425 | 2483 | |
2433 | 2491 | |
2434 | 2492 | if test -z "$RPLAY_TARGET"; then |
2435 | 2493 | echo $ac_n "checking for sun""... $ac_c" 1>&6 |
2436 | echo "configure:2438: checking for sun" >&5 | |
2494 | echo "configure:2496: checking for sun" >&5 | |
2437 | 2495 | cat > conftest.$ac_ext <<EOF |
2438 | #line 2440 "configure" | |
2496 | #line 2498 "configure" | |
2439 | 2497 | #include "confdefs.h" |
2440 | 2498 | |
2441 | 2499 | #ifdef sun |
2459 | 2517 | fi |
2460 | 2518 | if test "$RPLAY_TARGET"; then |
2461 | 2519 | echo $ac_n "checking for solaris""... $ac_c" 1>&6 |
2462 | echo "configure:2464: checking for solaris" >&5 | |
2520 | echo "configure:2522: checking for solaris" >&5 | |
2463 | 2521 | if test ! -f /vmunix; then |
2464 | 2522 | is_solaris=yes |
2465 | 2523 | RPLAY_TARGET="solaris" |
2472 | 2530 | |
2473 | 2531 | if test -z "$RPLAY_TARGET"; then |
2474 | 2532 | echo $ac_n "checking for linux""... $ac_c" 1>&6 |
2475 | echo "configure:2477: checking for linux" >&5 | |
2533 | echo "configure:2535: checking for linux" >&5 | |
2476 | 2534 | cat > conftest.$ac_ext <<EOF |
2477 | #line 2479 "configure" | |
2535 | #line 2537 "configure" | |
2478 | 2536 | #include "confdefs.h" |
2479 | 2537 | |
2480 | 2538 | #ifdef linux |
2500 | 2558 | |
2501 | 2559 | if test -z "$RPLAY_TARGET"; then |
2502 | 2560 | echo $ac_n "checking for hpux""... $ac_c" 1>&6 |
2503 | echo "configure:2505: checking for hpux" >&5 | |
2561 | echo "configure:2563: checking for hpux" >&5 | |
2504 | 2562 | cat > conftest.$ac_ext <<EOF |
2505 | #line 2507 "configure" | |
2563 | #line 2565 "configure" | |
2506 | 2564 | #include "confdefs.h" |
2507 | 2565 | |
2508 | 2566 | #ifdef __hpux |
2528 | 2586 | |
2529 | 2587 | if test -z "$RPLAY_TARGET"; then |
2530 | 2588 | echo $ac_n "checking for sgi""... $ac_c" 1>&6 |
2531 | echo "configure:2533: checking for sgi" >&5 | |
2589 | echo "configure:2591: checking for sgi" >&5 | |
2532 | 2590 | cat > conftest.$ac_ext <<EOF |
2533 | #line 2535 "configure" | |
2591 | #line 2593 "configure" | |
2534 | 2592 | #include "confdefs.h" |
2535 | 2593 | |
2536 | 2594 | #ifdef sgi |
2552 | 2610 | if test $is_sgi = "yes"; then |
2553 | 2611 | RPLAY_TARGET="sgi" |
2554 | 2612 | echo $ac_n "checking for multimedia development kit""... $ac_c" 1>&6 |
2555 | echo "configure:2557: checking for multimedia development kit" >&5 | |
2613 | echo "configure:2615: checking for multimedia development kit" >&5 | |
2556 | 2614 | for ac_hdr in audio.h |
2557 | 2615 | do |
2558 | 2616 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2559 | 2617 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2560 | echo "configure:2562: checking for $ac_hdr" >&5 | |
2618 | echo "configure:2620: checking for $ac_hdr" >&5 | |
2561 | 2619 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2562 | 2620 | echo $ac_n "(cached) $ac_c" 1>&6 |
2563 | 2621 | else |
2564 | 2622 | cat > conftest.$ac_ext <<EOF |
2565 | #line 2567 "configure" | |
2623 | #line 2625 "configure" | |
2566 | 2624 | #include "confdefs.h" |
2567 | 2625 | #include <$ac_hdr> |
2568 | 2626 | EOF |
2569 | 2627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2570 | { (eval echo configure:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2628 | { (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2571 | 2629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2572 | 2630 | if test -z "$ac_err"; then |
2573 | 2631 | rm -rf conftest* |
2603 | 2661 | |
2604 | 2662 | if test -z "$RPLAY_TARGET"; then |
2605 | 2663 | echo $ac_n "checking for FreeBSD""... $ac_c" 1>&6 |
2606 | echo "configure:2608: checking for FreeBSD" >&5 | |
2664 | echo "configure:2666: checking for FreeBSD" >&5 | |
2607 | 2665 | cat > conftest.$ac_ext <<EOF |
2608 | #line 2610 "configure" | |
2666 | #line 2668 "configure" | |
2609 | 2667 | #include "confdefs.h" |
2610 | 2668 | |
2611 | 2669 | #ifdef __FreeBSD__ |
2626 | 2684 | echo "$ac_t""$is_freebsd" 1>&6 |
2627 | 2685 | if test $is_freebsd = "yes"; then |
2628 | 2686 | RPLAY_TARGET="FreeBSD" |
2687 | fi | |
2688 | fi | |
2689 | ||
2690 | if test -z "$RPLAY_TARGET"; then | |
2691 | echo $ac_n "checking for the Hurd""... $ac_c" 1>&6 | |
2692 | echo "configure:2694: checking for the Hurd" >&5 | |
2693 | cat > conftest.$ac_ext <<EOF | |
2694 | #line 2696 "configure" | |
2695 | #include "confdefs.h" | |
2696 | ||
2697 | #ifdef __GNU__ | |
2698 | yes | |
2699 | #endif | |
2700 | ||
2701 | EOF | |
2702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2703 | egrep "yes" >/dev/null 2>&1; then | |
2704 | rm -rf conftest* | |
2705 | is_gnu=yes | |
2706 | else | |
2707 | rm -rf conftest* | |
2708 | is_gnu=no | |
2709 | fi | |
2710 | rm -f conftest* | |
2711 | ||
2712 | echo "$ac_t""$is_gnu" 1>&6 | |
2713 | if test $is_gnu = "yes"; then | |
2714 | RPLAY_TARGET="gnu" | |
2629 | 2715 | fi |
2630 | 2716 | fi |
2631 | 2717 | |
2658 | 2744 | fi |
2659 | 2745 | |
2660 | 2746 | |
2661 | BUILD_TARGETS="include lib adpcm" | |
2662 | if test "$HAVE_RX" != "yes"; then | |
2663 | BUILD_TARGETS="$BUILD_TARGETS rx" | |
2664 | subdirs="rx" | |
2665 | ||
2666 | fi | |
2667 | if test "$HAVE_GSM" != "yes"; then | |
2668 | BUILD_TARGETS="$BUILD_TARGETS gsm" | |
2669 | fi | |
2670 | ||
2671 | 2747 | BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc" |
2672 | 2748 | |
2673 | if test $RPLAY_TARGET = "oss"; then | |
2749 | if test $RPLAY_TARGET = "oss" -o $RPLAY_TARGET = "gnu"; then | |
2674 | 2750 | BUILD_TARGETS="$BUILD_TARGETS devrplay" |
2675 | 2751 | fi |
2676 | 2752 | |
2831 | 2907 | s%@RX_INCS@%$RX_INCS%g |
2832 | 2908 | s%@RPLAY_TOP@%$RPLAY_TOP%g |
2833 | 2909 | s%@RPLAY_TARGET@%$RPLAY_TARGET%g |
2834 | s%@subdirs@%$subdirs%g | |
2835 | 2910 | s%@BUILD_TARGETS@%$BUILD_TARGETS%g |
2836 | 2911 | |
2837 | 2912 | CEOF |
4 | 4 | |
5 | 5 | AC_INIT(rplayd/rplayd.c) |
6 | 6 | AC_CONFIG_HEADER(include/config.h) |
7 | ||
8 | BUILD_TARGETS="include lib adpcm" | |
7 | 9 | |
8 | 10 | dnl |
9 | 11 | dnl Figure what version of rplay this is. |
57 | 59 | AC_HEADER_STDC |
58 | 60 | AC_HEADER_TIME |
59 | 61 | dnl AC_PATH_XTRA |
60 | 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 rxposix.h rx/rxposix.h) | |
62 | 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) | |
61 | 63 | AC_HEADER_SYS_WAIT |
62 | 64 | |
63 | 65 | dnl Check for typedefs, structures, and compiler characteristics. |
73 | 75 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
74 | 76 | AC_CHECK_LIB(nsl, t_accept, [LIBS="$LIBS -lnsl"]) |
75 | 77 | |
76 | AC_CHECK_LIB(readline, readline, [RL_LIBS="-lreadline"]) | |
78 | AC_CHECK_LIB(readline, readline, | |
79 | [AC_DEFINE(HAVE_LIBREADLINE) RL_LIBS="-lreadline"]) | |
77 | 80 | AC_SUBST(RL_LIBS) |
78 | 81 | |
79 | AC_CHECK_LIB(gsm, gsm_decode, [HAVE_GSM="yes"]) | |
80 | if test "$HAVE_GSM" = "yes"; then | |
81 | GSM_LIBS="-lgsm" | |
82 | GSM_INCS="" | |
83 | else | |
84 | GSM_LIBS="-L../gsm -lgsm" | |
85 | GSM_INCS="-I\${srcdir}/../gsm" | |
86 | fi | |
82 | AC_CHECK_LIB(gsm, gsm_decode, | |
83 | [GSM_LIBS="-lgsm"; GSM_INCS=""], | |
84 | [ | |
85 | GSM_LIBS="-L../gsm -lgsm"; GSM_INCS="-I\${srcdir}/../gsm" | |
86 | BUILD_TARGETS="$BUILD_TARGETS gsm" | |
87 | ]) | |
87 | 88 | AC_SUBST(GSM_LIBS) |
88 | 89 | AC_SUBST(GSM_INCS) |
89 | 90 | |
90 | AC_CHECK_LIB(rx, regncomp, [HAVE_RX="yes"]) | |
91 | if test "$HAVE_RX" = "yes"; then | |
92 | RX_LIBS="-lrx" | |
93 | RX_INCS="" | |
94 | else | |
95 | RX_LIBS="-L../rx -lrx" | |
96 | RX_INCS="-I\${srcdir}/../rx" | |
97 | fi | |
91 | dnl check for regcomp in libc, librx, or build rx | |
92 | AC_CHECK_FUNCS(regcomp, | |
93 | [], | |
94 | [ | |
95 | AC_CHECK_LIB(rx, regcomp, | |
96 | [RX_LIBS="-lrx"; RX_INCS=""], | |
97 | [ | |
98 | RX_LIBS="-L../rx -lrx"; RX_INCS="-I\${srcdir}/../rx" | |
99 | BUILD_TARGETS="$BUILD_TARGETS rx" | |
100 | AC_CONFIG_SUBDIRS(rx) | |
101 | ]) | |
102 | ]) | |
98 | 103 | AC_SUBST(RX_LIBS) |
99 | 104 | AC_SUBST(RX_INCS) |
100 | 105 | |
212 | 217 | fi |
213 | 218 | |
214 | 219 | dnl |
220 | dnl Check for the Hurd | |
221 | dnl | |
222 | if test -z "$RPLAY_TARGET"; then | |
223 | AC_MSG_CHECKING(for the Hurd) | |
224 | AC_EGREP_CPP(yes, | |
225 | [ | |
226 | #ifdef __GNU__ | |
227 | yes | |
228 | #endif | |
229 | ], is_gnu=yes, is_gnu=no) | |
230 | AC_MSG_RESULT($is_gnu) | |
231 | if test $is_gnu = "yes"; then | |
232 | RPLAY_TARGET="gnu" | |
233 | fi | |
234 | fi | |
235 | ||
236 | dnl | |
215 | 237 | dnl *** Add new systems before this line *** |
216 | 238 | dnl |
217 | 239 | |
249 | 271 | fi |
250 | 272 | AC_SUBST(LIBS) |
251 | 273 | |
252 | BUILD_TARGETS="include lib adpcm" | |
253 | if test "$HAVE_RX" != "yes"; then | |
254 | BUILD_TARGETS="$BUILD_TARGETS rx" | |
255 | AC_CONFIG_SUBDIRS(rx) | |
256 | fi | |
257 | if test "$HAVE_GSM" != "yes"; then | |
258 | BUILD_TARGETS="$BUILD_TARGETS gsm" | |
259 | fi | |
260 | ||
261 | 274 | BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc" |
262 | 275 | |
263 | if test $RPLAY_TARGET = "oss"; then | |
276 | if test $RPLAY_TARGET = "oss" -o $RPLAY_TARGET = "gnu"; then | |
264 | 277 | BUILD_TARGETS="$BUILD_TARGETS devrplay" |
265 | 278 | fi |
266 | 279 |
0 | rplay (3.3.2-8) unstable; urgency=low | |
1 | ||
2 | * better arg passing in rplaydsp. (closes: Bug#133199) | |
3 | * rplayd now closes stdin. (closes: 135672) | |
4 | * fixed redundant declarations. (closes: 138699) | |
5 | * better ogg helper. | |
6 | ||
7 | -- lantz moore <lmoore@tump.com> Tue, 2 Apr 2002 17:44:19 -0800 | |
8 | ||
9 | rplay (3.3.2-7) unstable; urgency=low | |
10 | ||
11 | * *finally* moved librplay3-dev to development section. | |
12 | ||
13 | -- lantz moore <lmoore@tump.com> Sat, 9 Feb 2002 16:14:32 -0800 | |
14 | ||
15 | rplay (3.3.2-6) unstable; urgency=low | |
16 | ||
17 | * make sure that we can actually write data to rplayd. (closes: Bug#89352) | |
18 | * added some spaces to the description of the rplay package to make the | |
19 | formatting happy. (closes: Bug#123598) | |
20 | ||
21 | -- lantz moore <lmoore@debian.org> Fri, 1 Feb 2002 12:16:48 -0800 | |
22 | ||
23 | rplay (3.3.2-5) unstable; urgency=low | |
24 | ||
25 | * rmdir /etc/rplay on purge. (closes: Bug#74397) | |
26 | * redirect std{err,out} to /dev/null in init script. (closes: Bug#120849) | |
27 | * beefed up the manpage for rplaydsp. (closes: Bug#112624) | |
28 | * fixed typo in librplay3-dev description. (closes: Bug#110478) | |
29 | * merged Marcus Brinkmann's hurd patches. (closes: Bug#77044) | |
30 | * fixed a few lintian warnings. | |
31 | * added vorbis-tools suggestion to rplay-server and helper description | |
32 | in rplay.helpers. | |
33 | ||
34 | -- lantz moore <lmoore@debian.org> Thu, 6 Dec 2001 14:03:26 -0800 | |
35 | ||
36 | rplay (3.3.2-4) unstable; urgency=low | |
37 | ||
38 | * /etc/init.d/rplay starts at 99 and dies at 10. (closes: Bug#67203) | |
39 | * rplay-server suggested some non-existent/experimental version of | |
40 | xmp. (closes: Bug#74179) | |
41 | * /etc/rplay is completely removed upon purging. (closes: Bug#74379) | |
42 | * rplayd now uses the regex facilities from libc and no longer depends | |
43 | on librx. | |
44 | * installed default rplay.hosts. | |
45 | ||
46 | -- lantz moore <lmoore@debian.org> Sat, 21 Oct 2000 15:50:33 -0700 | |
47 | ||
48 | rplay (3.3.2-3) unstable; urgency=high | |
49 | ||
50 | * recompile using libreadline4. (closes: Bug#63176) | |
51 | * fixed up copyright file. | |
52 | * fixed Depends lines in control file. (closes: Bug#51934) | |
53 | * added rplaydsp and moved devrplay.so to rplay-client. | |
54 | ||
55 | -- lantz moore <lmoore@debian.org> Tue, 2 May 2000 14:44:43 -0700 | |
56 | ||
0 | 57 | rplay (3.3.2-2) unstable; urgency=medium |
1 | 58 | |
2 | 59 | * added soname and -D_REENTRANT (fixes 37125, 48520) |
59 | 116 | * Initial Release. |
60 | 117 | |
61 | 118 | -- lantz moore <lmoore@debian.org> Mon, 22 Jun 1998 13:55:25 -0700 |
62 | ||
63 | Local variables: | |
64 | mode: debian-changelog | |
65 | add-log-mailing-address: "lmoore@debian.org" | |
66 | End: |
0 | 3 |
1 | 1 | Section: sound |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: lantz moore <lmoore@debian.org> |
4 | Standards-Version: 3.1.0.0 | |
4 | Standards-Version: 3.5.6.1 | |
5 | Build-Depends: libgsm1-dev, libreadline4-dev, debhelper | |
5 | 6 | |
6 | 7 | Package: rplay |
7 | 8 | Architecture: any |
11 | 12 | This package will cause all of the rplay packages to be installed, after |
12 | 13 | which time it can safely be removed. |
13 | 14 | . |
14 | rplay-server contains the rplay server. | |
15 | rplay-client contains the rplay clients. | |
16 | librplay3{,-dev} contains the rplay libraries. | |
17 | rplay-perl contains the rplay perl modules. | |
18 | rplay-contrib currently only contains the mailsound stuff. | |
15 | rplay-server contains the rplay server. | |
16 | rplay-client contains the rplay clients. | |
17 | librplay3{,-dev} contains the rplay libraries. | |
18 | rplay-perl contains the rplay perl modules. | |
19 | rplay-contrib currently only contains the mailsound stuff. | |
19 | 20 | . |
20 | 21 | RPlay allows sounds to be played to and from local and remote Unix |
21 | 22 | systems. Sounds can be played with or without sending audio data over |
27 | 28 | |
28 | 29 | Package: rplay-client |
29 | 30 | Architecture: any |
30 | Depends: ${shlibs:Depends}, librplay3 | |
31 | Depends: ${shlibs:Depends} | |
31 | 32 | Conflicts: rplay (<< 3.3.2-2) |
32 | 33 | Replaces: rplay (<< 3.3.2-2) |
33 | 34 | Description: The basic rplay clients. |
44 | 45 | |
45 | 46 | Package: rplay-server |
46 | 47 | Architecture: any |
47 | Depends: ${shlibs:Depends}, librplay3 | |
48 | Depends: ${shlibs:Depends} | |
48 | 49 | Conflicts: rplay (<< 3.3.2-2) |
49 | 50 | Replaces: rplay (<< 3.3.2-2) |
50 | Suggests: xmp (>> 1.1.5), mpg123 | |
51 | Suggests: mpg123, vorbis-tools | |
51 | 52 | Description: The rplay network audio system server. |
52 | 53 | This package contains the rplay server. The rplay server allows sounds |
53 | 54 | to be played on the system. |
81 | 82 | Conflicts: rplay (<< 3.3.2-2) |
82 | 83 | Replaces: rplay (<< 3.3.2-2) |
83 | 84 | Depends: librplay3 (= ${Source-Version}) |
84 | Description: Development libraries for the rplay network autio system. | |
85 | Section: devel | |
86 | Description: Development libraries for the rplay network audio system. | |
85 | 87 | Contains header files and development libraries for the rplay network |
86 | 88 | audio system. |
87 | 89 | . |
95 | 97 | |
96 | 98 | Package: rplay-contrib |
97 | 99 | Architecture: any |
98 | Depends: ${shlibs:Depends}, librplay3, rplay-perl, perl5, ${perl:Depends} | |
100 | Depends: ${shlibs:Depends}, rplay-perl, ${perl:Depends} | |
99 | 101 | Conflicts: rplay (<< 3.3.2-2) |
100 | 102 | Replaces: rplay (<< 3.3.2-2) |
101 | 103 | Description: Contributed binaries for the rplay network audio system. |
114 | 116 | Architecture: any |
115 | 117 | Conflicts: rplay (<< 3.3.2-2) |
116 | 118 | Replaces: rplay (<< 3.3.2-2) |
117 | Depends: perl5, ${perl:Depends} | |
119 | Depends: ${perl:Depends} | |
118 | 120 | Description: Perl modules for the rplay network audio system. |
119 | 121 | Contains perl modules which aid in creating rplay-aware perl scripts. |
120 | 122 | . |
0 | 0 | This package was debianized by lantz moore <lmoore@debian.org>. |
1 | 1 | |
2 | It was downloaded from ftp://rplay.doit.org/pub/rplay-3.3.1.tar.gz | |
2 | It was downloaded from ftp://rplay.doit.org/pub/rplay-3.3.2.tar.gz | |
3 | 3 | |
4 | 4 | RPlay was written by Mark Boyns <boyns@doit.org>. |
5 | 5 | |
6 | Copyright (C) 1993-98 Mark R. Boyns <boyns@doit.org> | |
6 | Copyright (C) 1993-2000 Mark R. Boyns <boyns@doit.org> | |
7 | 7 | |
8 | 8 | This program is free software; you may redistribute it and/or modify |
9 | 9 | it under the terms of the GNU General Public License as published by |
16 | 16 | for more details. |
17 | 17 | |
18 | 18 | A copy of the GNU General Public License is available as |
19 | /usr/doc/copyright/GPL in the Debian GNU/Linux distribution or on the | |
19 | /usr/share/common-licenses/GPL in the Debian GNU/Linux distribution or on the | |
20 | 20 | World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also |
21 | 21 | obtain it by writing to the Free Software Foundation, Inc., 59 Temple |
22 | 22 | Place - Suite 330, Boston, MA 02111-1307, USA. |
0 | # Automatically added by dh_installinfo | |
1 | install-info --quiet /usr/share/info/librplay.info | |
2 | # End automatically added section |
0 | # Automatically added by dh_installinfo | |
1 | install-info --quiet --remove /usr/share/info/librplay.info | |
2 | # End automatically added section |
0 | # Automatically added by dh_installdocs | |
1 | if [ "$1" = "configure" ]; then | |
2 | if [ -d /usr/doc -a ! -e /usr/doc/librplay3 -a -d /usr/share/doc/librplay3 ]; then | |
3 | ln -sf ../share/doc/librplay3 /usr/doc/librplay3 | |
4 | fi | |
5 | fi | |
6 | # End automatically added section |
0 | # Automatically added by dh_installdocs | |
1 | if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/librplay3 ]; then | |
2 | rm -f /usr/doc/librplay3 | |
3 | fi | |
4 | # End automatically added section |
0 | 0 | usr/bin/rplay |
1 | 1 | usr/bin/rptp |
2 | usr/bin/rplaydsp | |
2 | 3 | usr/share/man/man1/rplay.1 |
4 | usr/share/man/man1/rplaydsp.1 | |
3 | 5 | usr/share/man/man1/rptp.1 |
6 | usr/lib/devrplay.so |
0 | # Automatically added by dh_installinfo | |
1 | install-info --quiet /usr/share/info/RPTP.info | |
2 | # End automatically added section | |
3 | # Automatically added by dh_installinfo | |
4 | install-info --quiet /usr/share/info/RPLAY.info | |
5 | # End automatically added section | |
6 | # Automatically added by dh_installinfo | |
7 | install-info --quiet /usr/share/info/rplay.info | |
8 | # End automatically added section | |
9 | # Automatically added by dh_installmime | |
10 | if [ -x /usr/sbin/update-mime ]; then update-mime; fi | |
11 | # End automatically added section |
0 | # Automatically added by dh_installmime | |
1 | if [ -x /usr/sbin/update-mime ]; then update-mime; fi | |
2 | # End automatically added section |
0 | # Automatically added by dh_installinfo | |
1 | install-info --quiet --remove /usr/share/info/RPTP.info | |
2 | # End automatically added section | |
3 | # Automatically added by dh_installinfo | |
4 | install-info --quiet --remove /usr/share/info/RPLAY.info | |
5 | # End automatically added section | |
6 | # Automatically added by dh_installinfo | |
7 | install-info --quiet --remove /usr/share/info/rplay.info | |
8 | # End automatically added section |
0 | shlibs:Depends=libc6 (>= 2.1), libncurses4 (>= 4.2-3.1), libreadlineg2 (>= 2.1-12) |
4 | 4 | if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$pkg ]; then |
5 | 5 | rm -f /usr/doc/$pkg |
6 | 6 | fi |
7 | ||
8 | #DEBHELPER# |
0 | # Automatically added by dh_installdocs | |
1 | if [ "$1" = "configure" ]; then | |
2 | if [ -d /usr/doc -a ! -e /usr/doc/rplay-perl -a -d /usr/share/doc/rplay-perl ]; then | |
3 | ln -sf ../share/doc/rplay-perl /usr/doc/rplay-perl | |
4 | fi | |
5 | fi | |
6 | # End automatically added section |
0 | # Automatically added by dh_installdocs | |
1 | if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/rplay-perl ]; then | |
2 | rm -f /usr/doc/rplay-perl | |
3 | fi | |
4 | # End automatically added section |
0 | 0 | /etc/rplay/rplay.conf |
1 | 1 | /etc/rplay/rplay.servers |
2 | 2 | /etc/rplay/rplay.helpers |
3 | /etc/rplay/rplay.hosts | |
3 | 4 | /etc/init.d/rplay |
6 | 6 | etc/rplay/rplay.conf |
7 | 7 | etc/rplay/rplay.servers |
8 | 8 | etc/rplay/rplay.helpers |
9 | etc/rplay/rplay.hosts |
0 | # Automatically added by dh_installinit | |
1 | update-rc.d rplay defaults >/dev/null | |
2 | /etc/init.d/rplay start | |
3 | # End automatically added section |
0 | 0 | #!/bin/sh -e |
1 | 1 | |
2 | if [ "$1" = "purge" ]; then | |
3 | rmdir --ignore-fail-on-non-empty /etc/rplay | |
4 | fi | |
5 | ||
2 | 6 | #DEBHELPER# |
0 | # Automatically added by dh_installinit | |
1 | if [ "$1" = "purge" ] ; then | |
2 | update-rc.d rplay remove >/dev/null | |
3 | fi | |
4 | # End automatically added section |
0 | # Automatically added by dh_installinit | |
1 | /etc/init.d/rplay stop | |
2 | # End automatically added section |
1 | 1 | |
2 | 2 | # /etc/init.d/rplay: start and stop the rplay daemon |
3 | 3 | |
4 | # there have been requests to have rplay start up after autofs and amd. | |
5 | FLAGS="defaults 40" | |
4 | # there have been requests to have rplay start up *late* and stop *early* | |
5 | FLAGS="defaults 99 10" | |
6 | 6 | |
7 | 7 | test -x /usr/sbin/rplayd || exit 0 |
8 | 8 | |
13 | 13 | |
14 | 14 | case "$1" in |
15 | 15 | start) echo -n "Starting rplay server: rplayd" |
16 | start-stop-daemon --start --quiet --exec /usr/sbin/rplayd 2> /dev/null | |
16 | start-stop-daemon --start --quiet \ | |
17 | --exec /usr/sbin/rplayd > /dev/null 2>&1 | |
17 | 18 | echo "." |
18 | 19 | ;; |
19 | 20 | |
29 | 30 | restart) |
30 | 31 | echo -n "Restarting rplay server: rplayd" |
31 | 32 | start-stop-daemon --stop --quiet --exec /usr/sbin/rplayd |
32 | start-stop-daemon --start --quiet --exec /usr/sbin/rplayd 2> /dev/null | |
33 | start-stop-daemon --start --quiet \ | |
34 | --exec /usr/sbin/rplayd > /dev/null 2>&1 | |
33 | 35 | echo "." |
34 | 36 | ;; |
35 | 37 |
0 | shlibs:Depends=libc6 (>= 2.1), libgsm1 (>= 1.0.10-3), librx1g |
6 | 6 | i = $(shell pwd)/debian/tmp |
7 | 7 | b = $(shell pwd)/debian/build |
8 | 8 | |
9 | build: build-debstamp | |
10 | build-debstamp: | |
11 | $(checkdir) | |
9 | build: build-stamp | |
10 | build-stamp: | |
11 | dh_testdir | |
12 | 12 | ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x \ |
13 | 13 | --enable-rplayd-user=nobody --enable-rplayd-group=audio |
14 | 14 | make CFLAGS="-O2 -D_REENTRANT" |
15 | 15 | (cd contrib/mailsound; make CFLAGS="-O2 -g") |
16 | touch build-debstamp | |
16 | ||
17 | touch build-stamp | |
17 | 18 | |
18 | 19 | clean: |
19 | [ ! -f Makefile ] || make distclean | |
20 | $(checkdir) | |
21 | -rm -f *-debstamp | |
22 | -rm -f `find . -name "*~"` | |
23 | -rm -f contrib/mailsound/mailsound{,.o} | |
24 | -rm -rf $(i) $(b) debian/files* core debian/substvars | |
25 | ||
26 | install: build install-debstamp | |
27 | install-debstamp: | |
28 | 20 | dh_testdir |
29 | 21 | dh_testroot |
22 | -rm -f build-stamp | |
23 | ||
24 | -[ ! -f Makefile ] || $(MAKE) distclean | |
25 | ||
26 | -rm -f changelog contrib/mailsound/mailsound{,.o} \ | |
27 | gsm/Makefile rx/{config.*,Makefile} | |
28 | ||
30 | 29 | dh_clean |
31 | rm -rf $(b) $(i) | |
32 | make install prefix=$(i)/usr infodir=$(i)/usr/share/info mandir=$(i)/usr/share/man | |
30 | ||
31 | install: | |
32 | install: build | |
33 | dh_testdir | |
34 | dh_testroot | |
35 | dh_clean -k | |
36 | ||
37 | make install prefix=$(i)/usr \ | |
38 | infodir=$(i)/usr/share/info \ | |
39 | mandir=$(i)/usr/share/man | |
33 | 40 | install -s contrib/mailsound/mailsound $(i)/usr/bin |
34 | 41 | mkdir -p $(i)/usr/lib/perl5 |
35 | 42 | install -m 664 perl/{RPlay.pm,rplay.ph,RPTP.pm} $(i)/usr/lib/perl5 |
38 | 45 | install -m 644 perl/Mailsound.1 $(i)/usr/share/man/man1 |
39 | 46 | install -d $(i)/etc/rplay |
40 | 47 | install -m 644 etc/rplay.{conf,helpers,hosts,servers} $(i)/etc/rplay |
41 | touch install-debstamp | |
48 | ||
49 | cp ChangeLog changelog | |
50 | ||
51 | dh_movefiles | |
52 | dh_installinit -prplay-server --init-script=rplay -- defaults 99 10 | |
42 | 53 | |
43 | 54 | binary: binary-indep binary-arch |
44 | 55 | |
45 | binary-indep: install | |
46 | $(checkroot) | |
56 | binary-indep: build install | |
47 | 57 | |
48 | binary-arch: checkroot install librplay3 librplay3-dev rplay rplay-server rplay-perl rplay-contrib rplay-client rplay | |
58 | binary-arch: build install | |
59 | dh_testdir | |
60 | dh_testroot | |
61 | # dh_installdebconf | |
62 | dh_installdocs | |
63 | dh_installexamples | |
64 | dh_installmenu | |
65 | # dh_installlogrotate | |
66 | # dh_installemacsen | |
67 | # dh_installpam | |
68 | # dh_installmime | |
69 | # dh_installinit | |
70 | # dh_installcron | |
71 | dh_installman | |
72 | dh_installinfo | |
73 | dh_undocumented | |
74 | dh_installchangelogs | |
75 | dh_strip | |
76 | dh_link | |
77 | dh_compress | |
78 | dh_fixperms | |
79 | dh_makeshlibs | |
80 | dh_installdeb | |
81 | dh_perl | |
82 | dh_shlibdeps | |
83 | dh_gencontrol | |
84 | dh_md5sums | |
85 | dh_builddeb | |
49 | 86 | |
50 | rplay: install | |
51 | install -d $(b)/$@/usr/share/doc | |
52 | cd $(b)/$@/usr/share/doc && ln -s librplay3 $@ | |
53 | dh_installdeb -p$@ -P$(b)/$@ | |
54 | dh_gencontrol -p$@ -P$(b)/$@ | |
55 | dh_md5sums -p$@ -P$(b)/$@ | |
56 | dh_builddeb -p$@ -P$(b)/$@ | |
57 | ||
58 | librplay3: install | |
59 | dh_installdocs -p$@ -P$(b)/$@ | |
60 | cd $(b)/$@/usr/share/doc/$@/ && ln -s ChangeLog.gz changelog.gz | |
61 | dh_installchangelogs -p$@ -P$(b)/$@ | |
62 | dh_movefiles -p$@ -P$(b)/$@ | |
63 | dh_makeshlibs -p$@ -P$(b)/$@ | |
64 | dh_strip -p$@ -P$(b)/$@ | |
65 | dh_compress -p$@ -P$(b)/$@ | |
66 | dh_fixperms -p$@ -P$(b)/$@ | |
67 | dh_installmime -p$@ -P$(b)/$@ | |
68 | dh_installdeb -p$@ -P$(b)/$@ | |
69 | dh_shlibdeps -p$@ -P$(b)/$@ | |
70 | dh_gencontrol -p$@ -P$(b)/$@ | |
71 | dh_md5sums -p$@ -P$(b)/$@ | |
72 | dh_builddeb -p$@ -P$(b)/$@ | |
73 | ||
74 | librplay3-dev: install | |
75 | install -d $(b)/$@/usr/share/doc | |
76 | cd $(b)/$@/usr/share/doc && ln -s librplay3 $@ | |
77 | dh_movefiles -p$@ -P$(b)/$@ | |
78 | dh_strip -p$@ -P$(b)/$@ | |
79 | dh_compress -p$@ -P$(b)/$@ | |
80 | dh_fixperms -p$@ -P$(b)/$@ | |
81 | dh_installinfo -p$@ -P$(b)/$@ | |
82 | dh_installmime -p$@ -P$(b)/$@ | |
83 | dh_installdeb -p$@ -P$(b)/$@ | |
84 | dh_shlibdeps -p$@ -P$(b)/$@ | |
85 | dh_gencontrol -p$@ -P$(b)/$@ | |
86 | dh_md5sums -p$@ -P$(b)/$@ | |
87 | dh_builddeb -p$@ -P$(b)/$@ | |
88 | ||
89 | rplay-client: install | |
90 | install -d $(b)/$@/usr/share/doc | |
91 | cd $(b)/$@/usr/share/doc && ln -s librplay3 $@ | |
92 | dh_movefiles -p$@ -P$(b)/$@ | |
93 | dh_strip -p$@ -P$(b)/$@ | |
94 | dh_compress -p$@ -P$(b)/$@ | |
95 | dh_fixperms -p$@ -P$(b)/$@ | |
96 | dh_installinfo -p$@ -P$(b)/$@ | |
97 | dh_installmime -p$@ -P$(b)/$@ | |
98 | dh_installdeb -p$@ -P$(b)/$@ | |
99 | dh_shlibdeps -p$@ -P$(b)/$@ | |
100 | dh_gencontrol -p$@ -P$(b)/$@ | |
101 | dh_md5sums -p$@ -P$(b)/$@ | |
102 | dh_builddeb -p$@ -P$(b)/$@ | |
103 | ||
104 | rplay-server: install | |
105 | install -d $(b)/$@/usr/share/doc/librplay3 | |
106 | cd $(b)/$@/usr/share/doc && ln -s librplay3 $@ | |
107 | dh_movefiles -p$@ -P$(b)/$@ | |
108 | dh_installexamples -p$@ -P$(b)/$@ | |
109 | dh_strip -p$@ -P$(b)/$@ | |
110 | dh_compress -p$@ -P$(b)/$@ | |
111 | dh_fixperms -p$@ -P$(b)/$@ | |
112 | dh_installinit -p$@ -P$(b)/$@ --init-script=rplay | |
113 | dh_installdeb -p$@ -P$(b)/$@ | |
114 | dh_shlibdeps -p$@ -P$(b)/$@ | |
115 | dh_gencontrol -p$@ -P$(b)/$@ | |
116 | dh_md5sums -p$@ -P$(b)/$@ | |
117 | dh_builddeb -p$@ -P$(b)/$@ | |
118 | ||
119 | rplay-perl: install | |
120 | dh_installdocs -p$@ -P$(b)/$@ | |
121 | dh_installchangelogs -p$@ -P$(b)/$@ | |
122 | dh_movefiles -p$@ -P$(b)/$@ | |
123 | dh_perl -p$@ -P$(b)/$@ | |
124 | dh_compress -p$@ -P$(b)/$@ | |
125 | dh_fixperms -p$@ -P$(b)/$@ | |
126 | dh_installdeb -p$@ -P$(b)/$@ | |
127 | dh_gencontrol -p$@ -P$(b)/$@ | |
128 | dh_md5sums -p$@ -P$(b)/$@ | |
129 | dh_builddeb -p$@ -P$(b)/$@ | |
130 | ||
131 | rplay-contrib: install | |
132 | install -d $(b)/$@/usr/share/doc | |
133 | cd $(b)/$@/usr/share/doc && ln -s rplay-perl $@ | |
134 | dh_movefiles -p$@ -P$(b)/$@ | |
135 | dh_perl -p$@ -P$(b)/$@ | |
136 | dh_strip -p$@ -P$(b)/$@ | |
137 | dh_compress -p$@ -P$(b)/$@ | |
138 | dh_fixperms -p$@ -P$(b)/$@ | |
139 | dh_installdeb -p$@ -P$(b)/$@ | |
140 | dh_shlibdeps -p$@ -P$(b)/$@ | |
141 | dh_gencontrol -p$@ -P$(b)/$@ | |
142 | dh_md5sums -p$@ -P$(b)/$@ | |
143 | dh_builddeb -p$@ -P$(b)/$@ | |
144 | ||
145 | define checkdir | |
146 | test -f debian/rules | |
147 | endef | |
148 | ||
149 | checkroot: | |
150 | $(checkdir) | |
151 | test root = "`whoami`" | |
152 | ||
153 | .PHONY: binary binary-arch binary-indep clean checkroot | |
87 | binary: binary-indep binary-arch | |
88 | .PHONY: build clean binary-indep binary-arch binary install |
32 | 32 | install: all |
33 | 33 | $(MKINSTALLDIRS) $(libdir) |
34 | 34 | $(INSTALL_DATA) $(TARGET) $(libdir) |
35 | $(MKINSTALLDIRS) $(bindir) | |
36 | $(INSTALL_PROGRAM) rplaydsp $(bindir)/rplaydsp | |
35 | 37 | |
36 | 38 | uninstall: |
37 | 39 | $(RM) $(libdir)/$(TARGET) |
25 | 25 | * Copyright (C) 1998, 1999 Manish Singh <yosh@gimp.org> |
26 | 26 | */ |
27 | 27 | |
28 | #define _GNU_SOURCE | |
29 | #define __USE_GNU | |
30 | ||
28 | 31 | #ifdef HAVE_CONFIG_H |
29 | 32 | #include "config.h" |
30 | 33 | #endif |
33 | 36 | #include <string.h> |
34 | 37 | #include <unistd.h> |
35 | 38 | #include <fcntl.h> |
39 | #include <sys/errno.h> | |
36 | 40 | #include <sys/types.h> |
37 | 41 | #include <sys/stat.h> |
38 | 42 | #include <sys/time.h> |
55 | 59 | static int dsp_speed; |
56 | 60 | static int dsp_blksize; |
57 | 61 | static int streaming; |
62 | static int opened; | |
58 | 63 | |
59 | 64 | static char * |
60 | 65 | getsound() |
94 | 99 | |
95 | 100 | if (strcmp(pathname, "/dev/dsp") == 0) |
96 | 101 | { |
102 | char response[RPTP_MAX_LINE]; | |
103 | char *acc; | |
104 | ||
97 | 105 | rplay_fd = rptp_open(rplay_default_host(), RPTP_PORT, response, |
98 | 106 | sizeof(response)); |
99 | 107 | if (rplay_fd < 0) |
100 | 108 | { |
101 | 109 | rptp_perror(rplay_default_host()); |
102 | 110 | } |
111 | else | |
112 | { | |
113 | rptp_putline(rplay_fd, "access"); | |
114 | rptp_getline(rplay_fd, response, sizeof(response)); | |
115 | acc = rptp_parse(response, "access"); | |
116 | ||
117 | if (!acc || !strchr(acc, 'w')) | |
118 | { | |
119 | fprintf(stderr, | |
120 | "RPLAY-ERROR: please add 'w' to rplay.hosts or man rplay.hosts\n"); | |
121 | errno = EACCES; | |
122 | close(rplay_fd); | |
123 | rplay_fd = -1; | |
124 | } | |
125 | else | |
126 | { | |
127 | opened = 1; | |
128 | } | |
129 | } | |
130 | ||
103 | 131 | return rplay_fd; |
104 | 132 | } |
105 | 133 | else |
157 | 185 | break; |
158 | 186 | } |
159 | 187 | |
188 | /* | |
160 | 189 | if (spool_id == -1 && dsp_fmt && dsp_speed && dsp_channels) |
161 | 190 | { |
162 | 191 | char response[RPTP_MAX_LINE]; |
173 | 202 | getsound()); |
174 | 203 | rptp_getline(rplay_fd, response, sizeof(response)); |
175 | 204 | |
205 | if (response[0] != RPTP_OK) | |
206 | { | |
207 | errno = EINVAL; | |
208 | return -1; | |
209 | } | |
210 | ||
176 | 211 | spool_id = atoi(1 + rptp_parse(response, "id")); |
177 | 212 | |
178 | 213 | rptp_putline(rplay_fd, "put id=#%d size=0", spool_id); |
179 | 214 | rptp_getline(rplay_fd, response, sizeof(response)); |
180 | 215 | } |
216 | */ | |
181 | 217 | |
182 | 218 | return 0; |
183 | 219 | } |
213 | 249 | if (!func) |
214 | 250 | func = (int (*)(int, const void *, size_t)) dlsym(REAL_LIBC, "write"); |
215 | 251 | |
216 | if (fd == rplay_fd && !streaming) | |
252 | if (fd == rplay_fd && !streaming && opened) | |
217 | 253 | { |
218 | 254 | char info[64]; |
219 | 255 | char response[RPTP_MAX_LINE]; |
240 | 276 | } |
241 | 277 | /* otherwise let rplayd figure out the format using |
242 | 278 | the sound header and/or name. */ |
243 | ||
279 | ||
244 | 280 | streaming = 1; |
245 | 281 | rptp_putline(rplay_fd, "play input=flow %s sound=\"%s\"", |
246 | 282 | info, getsound()); |
268 | 304 | rplay_fd = -1; |
269 | 305 | spool_id = -1; |
270 | 306 | streaming = 0; |
307 | opened = 0; | |
271 | 308 | dsp_fmt = dsp_speed = dsp_channels = dsp_speed = dsp_blksize = 0; |
272 | 309 | } |
273 | 310 |
0 | #!/bin/sh | |
1 | ||
2 | if [ -z $LD_PRELOAD ]; then | |
3 | LD_PRELOAD=/usr/lib/devrplay.so | |
4 | else | |
5 | LD_PRELOAD=/usr/lib/devrplay.so:$LD_PRELOAD | |
6 | fi | |
7 | ||
8 | export LD_PRELOAD | |
9 | ||
10 | exec "$@" | |
11 |
40 | 40 | install: all |
41 | 41 | -$(MKINSTALLDIRS) $(mandir)/man1 $(mandir)/man5 $(mandir)/man8 $(infodir) |
42 | 42 | -$(INSTALL_DATA) rplay.1 $(mandir)/man1 |
43 | -$(INSTALL_DATA) rplaydsp.1 $(mandir)/man1 | |
43 | 44 | -$(INSTALL_DATA) rplayd.8 $(mandir)/man8 |
44 | 45 | -$(INSTALL_DATA) rptp.1 $(mandir)/man1 |
45 | 46 | -$(INSTALL_DATA) rplay.conf.5 $(mandir)/man5 |
0 | This is Info file RPLAY.info, produced by Makeinfo-1.63 from the input | |
1 | file RPLAY.texi. | |
0 | This is RPLAY.info, produced by makeinfo version 4.1 from RPLAY.texi. | |
1 | ||
2 | INFO-DIR-SECTION Development | |
3 | START-INFO-DIR-ENTRY | |
4 | * RPLAY: (RPLAY). The RPLAY Protocol. | |
5 | END-INFO-DIR-ENTRY | |
2 | 6 | |
3 | 7 | This file documents RPLAY protocol. |
4 | 8 | |
40 | 44 | |
41 | 45 | The `RPLAY' protocol uses simple binary UDP packets to control the |
42 | 46 | audio server. Communication between the client and server is one-way - |
43 | packets are sent to the server and the server *never* replies. | |
47 | packets are sent to the server and the server _never_ replies. | |
44 | 48 | |
45 | 49 | |
46 | 50 | File: RPLAY.info, Node: Commands, Next: Attributes, Prev: Overview, Up: Top |
139 | 143 | ****************** |
140 | 144 | |
141 | 145 | RPLAY packets always begin with a RPLAY_ID byte followed by a RPLAY |
142 | command. (*note Commands::.) The remaining contents is a list of | |
143 | attributes (*note Attributes::.) and their corresponding values. The | |
146 | command. (*note Commands::) The remaining contents is a list of | |
147 | attributes (*note Attributes::) and their corresponding values. The | |
144 | 148 | packet is terminated with the RPLAY_NULL attribute. |
145 | 149 | |
146 | 150 | A packet will never contain an attribute that is set to a default |
160 | 164 | |
161 | 165 | |
162 | 166 | Tag Table: |
163 | Node: Top734 | |
164 | Node: Overview1124 | |
165 | Node: Commands1425 | |
166 | Node: Attributes2252 | |
167 | Node: Packet description4129 | |
167 | Node: Top830 | |
168 | Node: Overview1220 | |
169 | Node: Commands1521 | |
170 | Node: Attributes2348 | |
171 | Node: Packet description4225 | |
168 | 172 | |
169 | 173 | End Tag Table |
9 | 9 | |
10 | 10 | @ifinfo |
11 | 11 | |
12 | @dircategory Development | |
13 | @direntry | |
14 | * RPLAY: (RPLAY). The RPLAY Protocol. | |
15 | @end direntry | |
16 | ||
12 | 17 | This file documents RPLAY protocol. |
13 | 18 | |
14 | 19 | Copyright (C) 1995 Mark Boyns |
0 | This is Info file RPTP.info, produced by Makeinfo-1.63 from the input | |
1 | file RPTP.texi. | |
0 | This is RPTP.info, produced by makeinfo version 4.1 from RPTP.texi. | |
1 | ||
2 | INFO-DIR-SECTION Development | |
3 | START-INFO-DIR-ENTRY | |
4 | * RPTP: (RPTP). The RPTP Protocol. | |
5 | END-INFO-DIR-ENTRY | |
2 | 6 | |
3 | 7 | This file documents RPTP protocol. |
4 | 8 | |
569 | 573 | info sound=bogus.au |
570 | 574 | +sound=bogus.au size=9574 bits=8 sample-rate=8000 channels=1 |
571 | 575 | |
572 | - Command: list [CONNECTIONS|HOSTS|SERVERS|SPOOL|SOUNDS] | |
576 | - Command: list [connections|hosts|servers|spool|sounds] | |
573 | 577 | List the specified server information. |
574 | 578 | |
575 | 579 | `connections' |
646 | 650 | The `sound' attribute can be preceded by any of the following |
647 | 651 | attributes: |
648 | 652 | `count' |
653 | ||
649 | 654 | `list-count' |
655 | ||
650 | 656 | `priority' |
657 | ||
651 | 658 | `random' |
659 | ||
652 | 660 | `sample-rate' |
661 | ||
653 | 662 | `volume' |
663 | ||
654 | 664 | `input' |
665 | ||
655 | 666 | `input-bits' |
667 | ||
656 | 668 | `input-byte-order' |
669 | ||
657 | 670 | `input-channels' |
671 | ||
658 | 672 | `input-format' |
673 | ||
659 | 674 | `input-offset' |
675 | ||
660 | 676 | `input-sample-rate' |
661 | 677 | This command returns one line containing the `id' attribute. |
662 | 678 | |
698 | 714 | `message' attribute. The server will probably close the connect |
699 | 715 | so the line may not be sent. |
700 | 716 | |
701 | - Command: set NAME[=VALUE] ... | |
717 | - Command: set name[=value] ... | |
702 | 718 | Get and set server attributes. The current set of supported |
703 | 719 | server attributes is: |
704 | 720 | `application' |
721 | ||
705 | 722 | `level-notify-rate' |
723 | ||
706 | 724 | `notify' |
725 | ||
707 | 726 | `notify-rate' |
727 | ||
708 | 728 | `position-notify-rate' |
729 | ||
709 | 730 | `priority-threshold' |
731 | ||
710 | 732 | `volume' |
711 | 733 | This command returns one line containing the server's values for |
712 | 734 | the specified attributes. If an attribute cannot be set, the |
851 | 873 | |
852 | 874 | * Menu: |
853 | 875 | |
854 | * access: Attributes. | |
855 | * application: Attributes. | |
856 | * audio-bits: Attributes. | |
857 | * audio-bufsize: Attributes. | |
858 | * audio-byte-order: Attributes. | |
859 | * audio-channels: Attributes. | |
860 | * audio-device: Attributes. | |
861 | * audio-format: Attributes. | |
862 | * audio-offset: Attributes. | |
863 | * audio-port: Attributes. | |
864 | * audio-rate: Attributes. | |
865 | * audio-sample-rate: Attributes. | |
866 | * audio-volume: Attributes. | |
867 | * bits: Attributes. | |
868 | * channels: Attributes. | |
869 | * count: Attributes. | |
870 | * error: Attributes. | |
871 | * event: Attributes. | |
872 | * format: Attributes. | |
873 | * host: Attributes. | |
874 | * id: Attributes. | |
875 | * idle: Attributes. | |
876 | * input: Attributes. | |
877 | * input-bits: Attributes. | |
878 | * input-byte-order: Attributes. | |
879 | * input-channels: Attributes. | |
880 | * input-format: Attributes. | |
881 | * input-offset: Attributes. | |
882 | * input-sample-rate: Attributes. | |
883 | * left: Attributes. | |
884 | * list-count: Attributes. | |
885 | * message: Attributes. | |
886 | * notify: Attributes. | |
887 | * pause: Attributes. | |
888 | * play: Attributes. | |
889 | * position: Attributes. | |
890 | * priority: Attributes. | |
891 | * random: Attributes. | |
892 | * remain: Attributes. | |
893 | * right: Attributes. | |
894 | * sample: Attributes. | |
895 | * sample-rate: Attributes. | |
896 | * samples: Attributes. | |
897 | * seconds: Attributes. | |
898 | * size: Attributes. | |
899 | * sound: Attributes. | |
900 | * uptime: Attributes. | |
901 | * version: Attributes. | |
902 | * volume: Attributes. | |
876 | * access: Attributes. | |
877 | * application: Attributes. | |
878 | * audio-bits: Attributes. | |
879 | * audio-bufsize: Attributes. | |
880 | * audio-byte-order: Attributes. | |
881 | * audio-channels: Attributes. | |
882 | * audio-device: Attributes. | |
883 | * audio-format: Attributes. | |
884 | * audio-offset: Attributes. | |
885 | * audio-port: Attributes. | |
886 | * audio-rate: Attributes. | |
887 | * audio-sample-rate: Attributes. | |
888 | * audio-volume: Attributes. | |
889 | * bits: Attributes. | |
890 | * channels: Attributes. | |
891 | * count: Attributes. | |
892 | * error: Attributes. | |
893 | * event: Attributes. | |
894 | * format: Attributes. | |
895 | * host: Attributes. | |
896 | * id: Attributes. | |
897 | * idle: Attributes. | |
898 | * input: Attributes. | |
899 | * input-bits: Attributes. | |
900 | * input-byte-order: Attributes. | |
901 | * input-channels: Attributes. | |
902 | * input-format: Attributes. | |
903 | * input-offset: Attributes. | |
904 | * input-sample-rate: Attributes. | |
905 | * left: Attributes. | |
906 | * list-count: Attributes. | |
907 | * message: Attributes. | |
908 | * notify: Attributes. | |
909 | * pause: Attributes. | |
910 | * play: Attributes. | |
911 | * position: Attributes. | |
912 | * priority: Attributes. | |
913 | * random: Attributes. | |
914 | * remain: Attributes. | |
915 | * right: Attributes. | |
916 | * sample: Attributes. | |
917 | * sample-rate: Attributes. | |
918 | * samples: Attributes. | |
919 | * seconds: Attributes. | |
920 | * size: Attributes. | |
921 | * sound: Attributes. | |
922 | * uptime: Attributes. | |
923 | * version: Attributes. | |
924 | * volume: Attributes. | |
903 | 925 | |
904 | 926 | |
905 | 927 | File: RPTP.info, Node: Event Index, Next: Command Index, Prev: Attribute Index, Up: Top |
909 | 931 | |
910 | 932 | * Menu: |
911 | 933 | |
912 | * all: Events. | |
913 | * any: Events. | |
914 | * continue: Events. | |
915 | * done: Events. | |
916 | * level: Events. | |
917 | * none: Events. | |
918 | * pause: Events. | |
919 | * play: Events. | |
920 | * position: Events. | |
921 | * skip: Events. | |
922 | * state: Events. | |
923 | * stop: Events. | |
924 | * volume: Events. | |
934 | * all: Events. | |
935 | * any: Events. | |
936 | * continue: Events. | |
937 | * done: Events. | |
938 | * level: Events. | |
939 | * none: Events. | |
940 | * pause: Events. | |
941 | * play: Events. | |
942 | * position: Events. | |
943 | * skip: Events. | |
944 | * state: Events. | |
945 | * stop: Events. | |
946 | * volume: Events. | |
925 | 947 | |
926 | 948 | |
927 | 949 | File: RPTP.info, Node: Command Index, Prev: Event Index, Up: Top |
931 | 953 | |
932 | 954 | * Menu: |
933 | 955 | |
934 | * access: Commands. | |
935 | * application: Commands. | |
936 | * continue: Commands. | |
937 | * done: Commands. | |
938 | * find: Commands. | |
939 | * get: Commands. | |
940 | * help: Commands. | |
941 | * info: Commands. | |
942 | * list: Commands. | |
943 | * pause: Commands. | |
944 | * play: Commands. | |
945 | * put: Commands. | |
946 | * quit: Commands. | |
947 | * reset: Commands. | |
948 | * set: Commands. | |
949 | * skip: Commands. | |
950 | * status: Commands. | |
951 | * stop: Commands. | |
952 | * version: Commands. | |
953 | * volume: Commands. | |
954 | * wait: Commands. | |
956 | * access: Commands. | |
957 | * application: Commands. | |
958 | * continue: Commands. | |
959 | * done: Commands. | |
960 | * find: Commands. | |
961 | * get: Commands. | |
962 | * help: Commands. | |
963 | * info: Commands. | |
964 | * list: Commands. | |
965 | * pause: Commands. | |
966 | * play: Commands. | |
967 | * put: Commands. | |
968 | * quit: Commands. | |
969 | * reset: Commands. | |
970 | * set: Commands. | |
971 | * skip: Commands. | |
972 | * status: Commands. | |
973 | * stop: Commands. | |
974 | * version: Commands. | |
975 | * volume: Commands. | |
976 | * wait: Commands. | |
955 | 977 | |
956 | 978 | |
957 | 979 | |
958 | 980 | Tag Table: |
959 | Node: Top731 | |
960 | Node: Overview1170 | |
961 | Node: Attributes3059 | |
962 | Node: Events8728 | |
963 | Node: Event Notification9612 | |
964 | Node: Commands11672 | |
965 | Node: Connecting21105 | |
966 | Node: Timeouts22048 | |
967 | Node: Attribute Index22548 | |
968 | Node: Event Index25229 | |
969 | Node: Command Index25983 | |
981 | Node: Top824 | |
982 | Node: Overview1263 | |
983 | Node: Attributes3152 | |
984 | Node: Events8821 | |
985 | Node: Event Notification9705 | |
986 | Node: Commands11765 | |
987 | Node: Connecting21216 | |
988 | Node: Timeouts22159 | |
989 | Node: Attribute Index22659 | |
990 | Node: Event Index25389 | |
991 | Node: Command Index26156 | |
970 | 992 | |
971 | 993 | End Tag Table |
9 | 9 | @c %**end of header |
10 | 10 | |
11 | 11 | @ifinfo |
12 | ||
13 | @dircategory Development | |
14 | @direntry | |
15 | * RPTP: (RPTP). The RPTP Protocol. | |
16 | @end direntry | |
12 | 17 | |
13 | 18 | This file documents RPTP protocol. |
14 | 19 |
0 | This is Info file librplay.info, produced by Makeinfo-1.63 from the | |
1 | input file librplay.texi. | |
0 | This is librplay.info, produced by makeinfo version 4.1 from | |
1 | librplay.texi. | |
2 | ||
3 | INFO-DIR-SECTION Development | |
4 | START-INFO-DIR-ENTRY | |
5 | * librplay: (librplay). The rplay library. | |
6 | END-INFO-DIR-ENTRY | |
2 | 7 | |
3 | 8 | This file documents librplay. |
4 | 9 | |
657 | 662 | |
658 | 663 | * Menu: |
659 | 664 | |
660 | * rplay: RPLAY Core Functions. | |
661 | * rplay_close: RPLAY Core Functions. | |
662 | * rplay_convert: RPLAY Miscellaneous Functions. | |
663 | * rplay_create: RPLAY Core Functions. | |
664 | * rplay_default: RPLAY Helper Functions. | |
665 | * rplay_default_host: RPLAY Helper Functions. | |
666 | * rplay_destroy: RPLAY Core Functions. | |
667 | * rplay_display: RPLAY Helper Functions. | |
668 | * rplay_get: RPLAY Core Functions. | |
669 | * rplay_host: RPLAY Helper Functions. | |
670 | * rplay_host_volume: RPLAY Helper Functions. | |
671 | * rplay_local: RPLAY Helper Functions. | |
672 | * rplay_open: RPLAY Core Functions. | |
673 | * rplay_open_default: RPLAY Helper Functions. | |
674 | * rplay_open_display: RPLAY Helper Functions. | |
675 | * rplay_open_port: RPLAY Helper Functions. | |
676 | * rplay_open_sockaddr_in: RPLAY Helper Functions. | |
677 | * rplay_pack: RPLAY Miscellaneous Functions. | |
678 | * rplay_perror: RPLAY Error Reporting. | |
679 | * rplay_ping: RPLAY Helper Functions. | |
680 | * rplay_ping_sockaddr_in: RPLAY Helper Functions. | |
681 | * rplay_ping_sockfd: RPLAY Helper Functions. | |
682 | * rplay_set: RPLAY Core Functions. | |
683 | * rplay_sound: RPLAY Helper Functions. | |
684 | * rplay_unpack: RPLAY Miscellaneous Functions. | |
685 | * rptp_close: RPTP Core Functions. | |
686 | * rptp_command: RPTP Helper Functions. | |
687 | * rptp_getline: RPTP Helper Functions. | |
688 | * rptp_open: RPTP Core Functions. | |
689 | * rptp_parse: RPTP Helper Functions. | |
690 | * rptp_perror: RPTP Error Reporting. | |
691 | * rptp_putline: RPTP Helper Functions. | |
692 | * rptp_read: RPTP Core Functions. | |
693 | * rptp_write: RPTP Core Functions. | |
665 | * rplay: RPLAY Core Functions. | |
666 | * rplay_close: RPLAY Core Functions. | |
667 | * rplay_convert: RPLAY Miscellaneous Functions. | |
668 | * rplay_create: RPLAY Core Functions. | |
669 | * rplay_default: RPLAY Helper Functions. | |
670 | * rplay_default_host: RPLAY Helper Functions. | |
671 | * rplay_destroy: RPLAY Core Functions. | |
672 | * rplay_display: RPLAY Helper Functions. | |
673 | * rplay_get: RPLAY Core Functions. | |
674 | * rplay_host: RPLAY Helper Functions. | |
675 | * rplay_host_volume: RPLAY Helper Functions. | |
676 | * rplay_local: RPLAY Helper Functions. | |
677 | * rplay_open: RPLAY Core Functions. | |
678 | * rplay_open_default: RPLAY Helper Functions. | |
679 | * rplay_open_display: RPLAY Helper Functions. | |
680 | * rplay_open_port: RPLAY Helper Functions. | |
681 | * rplay_open_sockaddr_in: RPLAY Helper Functions. | |
682 | * rplay_pack: RPLAY Miscellaneous Functions. | |
683 | * rplay_perror: RPLAY Error Reporting. | |
684 | * rplay_ping: RPLAY Helper Functions. | |
685 | * rplay_ping_sockaddr_in: RPLAY Helper Functions. | |
686 | * rplay_ping_sockfd: RPLAY Helper Functions. | |
687 | * rplay_set: RPLAY Core Functions. | |
688 | * rplay_sound: RPLAY Helper Functions. | |
689 | * rplay_unpack: RPLAY Miscellaneous Functions. | |
690 | * rptp_close: RPTP Core Functions. | |
691 | * rptp_command: RPTP Helper Functions. | |
692 | * rptp_getline: RPTP Helper Functions. | |
693 | * rptp_open: RPTP Core Functions. | |
694 | * rptp_parse: RPTP Helper Functions. | |
695 | * rptp_perror: RPTP Error Reporting. | |
696 | * rptp_putline: RPTP Helper Functions. | |
697 | * rptp_read: RPTP Core Functions. | |
698 | * rptp_write: RPTP Core Functions. | |
694 | 699 | |
695 | 700 | |
696 | 701 | |
697 | 702 | Tag Table: |
698 | Node: Top734 | |
699 | Node: RPLAY Core Functions1886 | |
700 | Node: RPLAY Helper Functions7013 | |
701 | Node: RPLAY Miscellaneous Functions12728 | |
702 | Node: RPLAY Error Reporting13892 | |
703 | Node: RPTP Core Functions14398 | |
704 | Node: RPTP Helper Functions16308 | |
705 | Node: RPTP Error Reporting19628 | |
706 | Node: Function Index20113 | |
703 | Node: Top835 | |
704 | Node: RPLAY Core Functions1987 | |
705 | Node: RPLAY Helper Functions7114 | |
706 | Node: RPLAY Miscellaneous Functions12829 | |
707 | Node: RPLAY Error Reporting13993 | |
708 | Node: RPTP Core Functions14499 | |
709 | Node: RPTP Helper Functions16409 | |
710 | Node: RPTP Error Reporting19729 | |
711 | Node: Function Index20214 | |
707 | 712 | |
708 | 713 | End Tag Table |
8 | 8 | @c %**end of header |
9 | 9 | |
10 | 10 | @ifinfo |
11 | ||
12 | @dircategory Development | |
13 | @direntry | |
14 | * librplay: (librplay). The rplay library. | |
15 | @end direntry | |
11 | 16 | |
12 | 17 | This file documents librplay. |
13 | 18 |
0 | This is Info file rplay.info, produced by Makeinfo version 1.67 from | |
1 | the input file rplay.texi. | |
0 | This is rplay.info, produced by makeinfo version 4.1 from rplay.texi. | |
1 | ||
2 | INFO-DIR-SECTION Development | |
3 | START-INFO-DIR-ENTRY | |
4 | * rplay: (rplay). The rplay Network Audio System | |
5 | END-INFO-DIR-ENTRY | |
2 | 6 | |
3 | 7 | This file documents the rplay Network Audio System. |
4 | 8 | |
155 | 159 | |
156 | 160 | |
157 | 161 | Tag Table: |
158 | Node: Top761 | |
159 | Node: Overview1247 | |
160 | Node: rplayd2983 | |
161 | Node: rplay4640 | |
162 | Node: rptp5094 | |
163 | Node: xrplay5413 | |
162 | Node: Top860 | |
163 | Node: Overview1346 | |
164 | Node: rplayd3082 | |
165 | Node: rplay4739 | |
166 | Node: rptp5193 | |
167 | Node: xrplay5512 | |
164 | 168 | |
165 | 169 | End Tag Table |
8 | 8 | @c %**end of header |
9 | 9 | |
10 | 10 | @ifinfo |
11 | ||
12 | @dircategory Development | |
13 | @direntry | |
14 | * rplay: (rplay). The rplay Network Audio System | |
15 | @end direntry | |
11 | 16 | |
12 | 17 | This file documents the rplay Network Audio System. |
13 | 18 |
0 | .TH RPLAYDSP 1 2000/05/02 | |
1 | .SH NAME | |
2 | rplaydsp \- intercept data bound for /dev/dsp and route it to rplayd | |
3 | .SH SYNOPSIS | |
4 | .B rplaydsp command [command arguments] | |
5 | .SH DESCRIPTION | |
6 | rplaydsp allows sound tools to interact with rplayd without having been | |
7 | coded to do so. Any program that writes data to /dev/dsp should work with | |
8 | rplaydsp. | |
9 | ||
10 | The following environment variables can be used to modify the default | |
11 | behavior of rplaydsp. | |
12 | ||
13 | RPLAY_HOST: By default, rplaydsp talks to the local rplayd. If you need | |
14 | the output to go somewhere else, then set RPLAY_HOST to the remote | |
15 | hostname or ip address. | |
16 | ||
17 | DEVRPLAY_SOUND: Sounds can be named under rplayd, the default name used by | |
18 | rplaydsp is 'devrplay'. Use this variable to control the name of the | |
19 | sound. | |
20 | ||
21 | DEVRPLAY_INFO: If your sound isn't the "standard" wav format and speed, | |
22 | you can set this variable so that rplayd grok the sound. An example value | |
23 | for a .au file is: | |
24 | input-info=ulinear8,8000,1,1,little-endian | |
25 | ||
26 | DEVRPLAY_OPTS: Set this variable to pass a generic set of RPTP options to | |
27 | rplayd. | |
28 | ||
29 | .SH EXAMPLES | |
30 | rplaydsp realplayer http://www.example.com/foo.ram | |
31 | .SH SEE ALSO | |
32 | .IR rplayd (8), | |
33 | .IR rplay (1) |
2 | 2 | # <regex> <audio-format> <application> |
3 | 3 | # |
4 | 4 | ## MPEG |
5 | \.mp[1-3]$ linear16,44100,16,2,little-endian /usr/bin/mpg123 --stdout --quiet --rate 44100 --stereo - | |
5 | \.mp[1-3]$ linear16,44100,16,2,little-endian /usr/bin/mpg123 --stdout --quiet --rate 44100 --stereo - | |
6 | 6 | |
7 | ## MODS | |
8 | #\.\(669\|alm\|amd\|far\|mod\|mtm\|okt\|ptm\|rad\|s3m\|stm\|wow\|xm\)$ linear16,44100,16,2,little-endian /usr/local/bin/xmp --stereo --little-endian -b 16 -f 44100 --stdout --nocmd /dev/fd/0 | |
7 | \.ogg$ linear16,44100,16,2,little-endian /usr/bin/ogg123 -q -d raw -o byteorder:little -f - /dev/fd/0 |
0 | # Sample rplay.hosts | |
1 | # | |
2 | # this file describes what machines can read from or write to this server | |
3 | # *:rwx | |
4 | # would allow anyone to read or write to this server. | |
0 | # default rplay.hosts | |
1 | # see the rplay.hosts(5) for details on the format and meaning of this | |
2 | # file | |
3 | ||
4 | # give the localhost the default permissions | |
5 | localhost |
0 | # Generated automatically from Makefile.in by configure. | |
1 | include /opt/home/lmoore/rplay/rplay-3.3.2/Makefile.config | |
2 | ||
3 | srcdir = . | |
4 | ||
5 | INSTALL = /usr/bin/install -c | |
6 | INSTALL_PROGRAM = ${INSTALL} | |
7 | INSTALL_DATA = ${INSTALL} -m 644 | |
8 | ||
9 | SASR = -DSASR | |
10 | MULHACK = -DUSE_FLOAT_MUL | |
11 | FAST = -DFAST | |
12 | #LTP_CUT = -DLTP_CUT | |
13 | LTP_CUT = | |
14 | ||
15 | CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I. -I./../include -I./../lib -DHAVE_CONFIG_H | |
16 | ||
17 | .c.o: | |
18 | $(CC) -c $(CPPFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) $(LTP_CUT) $(CFLAGS) $< | |
19 | ||
20 | LDFLAGS= $(LD_OPTIONS) -L. -lgsm | |
21 | ||
22 | TARGET= libgsm.a | |
23 | ||
24 | SRCS= add.c code.c debug.c decode.c gsm_create.c gsm_decode.c \ | |
25 | gsm_destroy.c gsm_encode.c gsm_explode.c gsm_implode.c gsm_option.c \ | |
26 | gsm_print.c long_term.c lpc.c preprocess.c rpe.c short_term.c table.c | |
27 | ||
28 | OBJS= add.o code.o debug.o decode.o gsm_create.o gsm_decode.o \ | |
29 | gsm_destroy.o gsm_encode.o gsm_explode.o gsm_implode.o gsm_option.o \ | |
30 | gsm_print.o long_term.o lpc.o preprocess.o rpe.o short_term.o table.o | |
31 | ||
32 | TOAST= toast | |
33 | TOAST_SRCS= toast.c toast_alaw.c toast_audio.c toast_lin.c toast_ulaw.c | |
34 | ||
35 | TOAST_OBJS= toast.o toast_alaw.o toast_audio.o toast_lin.o toast_ulaw.o | |
36 | ||
37 | ||
38 | all: $(TARGET) $(TOAST) | |
39 | ||
40 | $(TARGET): $(OBJS) | |
41 | $(AR) rcv $@ $? | |
42 | $(RANLIB) $@ | |
43 | ||
44 | $(TOAST): $(TARGET) $(TOAST_OBJS) | |
45 | $(CC) -o $@ $(TOAST_OBJS) $(LDFLAGS) | |
46 | ||
47 | install: | |
48 | ||
49 | uninstall: | |
50 | ||
51 | clean: | |
52 | $(RM) $(OBJS) $(TARGET) $(TOAST_OBJS) $(TOAST) a.out core *~ *.bak *.orig TAGS | |
53 | ||
54 | distclean: clean | |
55 | $(RM) Makefile | |
56 | ||
57 | tags: | |
58 | $(TAGS) *.[ch] | |
59 | ||
60 | TAGS: tags | |
61 | ||
62 | etags: tags | |
63 | ||
64 | depend: | |
65 | $(MAKEDEPEND) -- $(CPPFLAGS) $(CFLAGS) -- $(SRCS) | |
66 | ||
67 |
39 | 39 | /* |
40 | 40 | * Use host authentication. |
41 | 41 | */ |
42 | #define AUTH | |
42 | #define AUTH | |
43 | 43 | |
44 | 44 | /* |
45 | 45 | * Support rplay 2.0 packets. If you define this then you |
74 | 74 | * 1 - System and rplayd errors. |
75 | 75 | * 2 - + RPTP connections, get, put, find. |
76 | 76 | * 3 - + play, stop, pause, continue, etc. |
77 | * 4 - + Debug messages. | |
77 | * 4 - + Debug messages. | |
78 | 78 | * |
79 | 79 | * Note that the logging level can also be specified with |
80 | 80 | * rplayd command line options. This is only used if |
191 | 191 | #undef HAVE_LIBREADLINE |
192 | 192 | #undef HAVE_RANDOM |
193 | 193 | #undef HAVE_SRANDOM |
194 | #undef HAVE_REGCOMP | |
194 | 195 | |
195 | 196 | #undef HAVE_STDC_HEADERS |
196 | 197 | #undef HAVE_MEMORY_H |
206 | 207 | |
207 | 208 | #undef HAVE_GSM_H |
208 | 209 | #undef HAVE_GSM_GSM_H |
210 | #undef HAVE_REGEX_H | |
209 | 211 | #undef HAVE_RXPOSIX_H |
210 | 212 | #undef HAVE_RX_RXPOSIX_H |
211 | 213 |
43 | 43 | my ($that_host, $that_port) = @_; |
44 | 44 | my ($pat, $name, $aliases, $proto, $port, $udp); |
45 | 45 | my (@bytes, $addrtype, $length, $old); |
46 | my ($that, $that_addr, $that_addr); | |
47 | my ($this, $this_addr, $this_addr); | |
46 | my ($that, $that_addr); | |
47 | my ($this, $this_addr); | |
48 | 48 | |
49 | 49 | $sockaddr = 'S n a4 x8'; |
50 | 50 |
41 | 41 | |
42 | 42 | #define OPTIONS "+spcN:P:h:rv:n:R:b:i:" |
43 | 43 | |
44 | /* Make sure MAXPATHLEN is defined. */ | |
45 | #ifndef MAXPATHLEN | |
46 | #define MAXPATHLEN 4096 | |
47 | #endif | |
48 | ||
44 | 49 | struct option longopts[] = |
45 | 50 | { |
46 | 51 | {"continue", no_argument, NULL, 'c'}, |
24 | 24 | $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
25 | 25 | |
26 | 26 | LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \ |
27 | -L../adpcm -ladpcm @GSM_LIBS@ -L../rx -lrx @LDFLAGS@ @LIBS@ -lm | |
27 | -L../adpcm -ladpcm @GSM_LIBS@ @RX_LIBS@ @LDFLAGS@ @LIBS@ -lm | |
28 | 28 | |
29 | 29 | TARGET= rplayd |
30 | 30 | |
53 | 53 | install: all |
54 | 54 | $(MKINSTALLDIRS) $(sbindir) |
55 | 55 | $(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET) |
56 | @test -x $(bindir)/$(TARGET) && echo "" && echo " Note: Consider removing $(bindir)/$(TARGET)" && echo "" | |
56 | @(test -x $(bindir)/$(TARGET) && echo "" && echo " Note: Consider removing $(bindir)/$(TARGET)" && echo "") || true | |
57 | 57 | |
58 | 58 | uninstall: |
59 | 59 | $(RM) $(bindir)/$(TARGET) |
0 | /* $Id: audio_generic.c,v 1.5 1999/03/10 07:58:10 boyns Exp $ */ | |
1 | ||
2 | /* | |
3 | * Copyright (C) 1993-99 Mark R. Boyns <boyns@doit.org> | |
4 | * | |
5 | * This file is part of rplay. | |
6 | * | |
7 | * rplay is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License as published by | |
9 | * the Free Software Foundation; either version 2 of the License, or | |
10 | * (at your option) any later version. | |
11 | * | |
12 | * rplay is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
16 | * | |
17 | * You should have received a copy of the GNU General Public License | |
18 | * along with rplay; see the file COPYING. If not, write to the | |
19 | * Free Software Foundation, Inc., | |
20 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. | |
21 | */ | |
22 | ||
23 | ||
24 | ||
25 | #include "rplayd.h" | |
26 | ||
27 | /* | |
28 | * System audio include files: | |
29 | */ | |
30 | #include <sys/types.h> | |
31 | #include <sys/file.h> | |
32 | #include <sys/ioctl.h> | |
33 | #ifdef ultrix | |
34 | #include <fcntl.h> | |
35 | #else | |
36 | #include <sys/fcntl.h> | |
37 | #endif | |
38 | #include <sys/errno.h> | |
39 | ||
40 | /* | |
41 | * External variables: | |
42 | */ | |
43 | extern char *rplay_audio_device; | |
44 | extern int rplay_audio_sample_rate; | |
45 | extern int rplay_audio_channels; | |
46 | extern int rplay_audio_precision; | |
47 | extern int rplay_audio_format; | |
48 | extern int rplay_audio_port; | |
49 | extern int optional_sample_rate; | |
50 | extern int optional_precision; | |
51 | extern int optional_channels; | |
52 | extern int optional_format; | |
53 | extern int optional_port; | |
54 | ||
55 | /* | |
56 | * Internal variables: | |
57 | */ | |
58 | static int rplay_audio_fd = -1; | |
59 | ||
60 | static RPLAY_AUDIO_TABLE generic_table[] = | |
61 | { | |
62 | {8000, RPLAY_FORMAT_ULAW, 1, 1}, | |
63 | {0, 0, 0, 0} | |
64 | }; | |
65 | ||
66 | /* | |
67 | * Initialize the audio device. | |
68 | * This routine must set the following external variables: | |
69 | * rplay_audio_sample_rate | |
70 | * rplay_audio_precision | |
71 | * rplay_audio_channels | |
72 | * rplay_audio_format | |
73 | * rplay_audio_port | |
74 | * | |
75 | * and may use the following optional parameters: | |
76 | * optional_sample_rate | |
77 | * optional_precision | |
78 | * optional_channels | |
79 | * optional_format | |
80 | * optional_port | |
81 | * | |
82 | * optional_* variables with values of zero should be ignored. | |
83 | * | |
84 | * Return 0 on success and -1 on error. | |
85 | */ | |
86 | int | |
87 | rplay_audio_init() | |
88 | { | |
89 | if (rplay_audio_fd == -1) | |
90 | { | |
91 | rplay_audio_open(); | |
92 | if (rplay_audio_fd == -1) | |
93 | { | |
94 | report(REPORT_ERROR, "rplay_audio_init: cannot open %s\n", | |
95 | rplay_audio_device); | |
96 | return -1; | |
97 | } | |
98 | } | |
99 | ||
100 | rplay_audio_sample_rate = 8000; | |
101 | rplay_audio_precision = 8; | |
102 | rplay_audio_channels = 1; | |
103 | rplay_audio_format = RPLAY_FORMAT_ULAW; | |
104 | rplay_audio_port = RPLAY_AUDIO_PORT_SPEAKER; | |
105 | rplay_audio_table = generic_table; | |
106 | ||
107 | return 0; | |
108 | } | |
109 | ||
110 | /* | |
111 | * Open the audio device. | |
112 | * | |
113 | * Return 0 on success and -1 on error. | |
114 | */ | |
115 | int | |
116 | rplay_audio_open() | |
117 | { | |
118 | int flags; | |
119 | ||
120 | rplay_audio_fd = open(rplay_audio_device, O_WRONLY | O_NDELAY, 0); | |
121 | if (rplay_audio_fd < 0) | |
122 | { | |
123 | return -1; | |
124 | } | |
125 | ||
126 | if (fcntl(rplay_audio_fd, F_SETFD, 1) < 0) | |
127 | { | |
128 | report(REPORT_ERROR, | |
129 | "rplay_audio_open: close-on-exec %d\n", | |
130 | sys_err_str(errno)); | |
131 | /* return -1; */ | |
132 | } | |
133 | ||
134 | if (rplay_audio_init() < 0) | |
135 | { | |
136 | return -1; | |
137 | } | |
138 | ||
139 | /* | |
140 | * Make sure the audio device writes are non-blocking. | |
141 | */ | |
142 | flags = fcntl(rplay_audio_fd, F_GETFL, 0); | |
143 | if (flags < 0) | |
144 | { | |
145 | return -1; | |
146 | } | |
147 | flags |= FNDELAY; | |
148 | if (fcntl(rplay_audio_fd, F_SETFL, flags) < 0) | |
149 | { | |
150 | return -1; | |
151 | } | |
152 | ||
153 | return 0; | |
154 | } | |
155 | ||
156 | /* | |
157 | * Is the audio device open? | |
158 | * | |
159 | * Return 1 for true and 0 for false. | |
160 | */ | |
161 | int | |
162 | rplay_audio_isopen() | |
163 | { | |
164 | return rplay_audio_fd != -1; | |
165 | } | |
166 | ||
167 | /* | |
168 | * Flush the audio device. | |
169 | * | |
170 | * Return 0 on success and -1 on error. | |
171 | */ | |
172 | int | |
173 | rplay_audio_flush() | |
174 | { | |
175 | return 0; | |
176 | } | |
177 | ||
178 | /* | |
179 | * Write nbytes from buf to the audio device. | |
180 | * | |
181 | * Return the number of bytes written on success and -1 on error. | |
182 | */ | |
183 | #ifdef __STDC__ | |
184 | int | |
185 | rplay_audio_write(char *buf, int nbytes) | |
186 | #else | |
187 | int | |
188 | rplay_audio_write(buf, nbytes) | |
189 | char *buf; | |
190 | int nbytes; | |
191 | #endif | |
192 | { | |
193 | int n, nleft, nwritten; | |
194 | char *p; | |
195 | ||
196 | nleft = nbytes; | |
197 | nwritten = 0; | |
198 | ||
199 | for (p = buf; nleft > 0; nleft -= n, p += n) | |
200 | { | |
201 | n = write(rplay_audio_fd, p, nleft); | |
202 | if (n < 0) | |
203 | { | |
204 | if (errno == EWOULDBLOCK) | |
205 | { | |
206 | return nwritten; | |
207 | } | |
208 | else if (errno != EINTR) | |
209 | { | |
210 | return -1; | |
211 | } | |
212 | n = 0; | |
213 | } | |
214 | else | |
215 | { | |
216 | nwritten += n; | |
217 | } | |
218 | } | |
219 | ||
220 | return nwritten; | |
221 | } | |
222 | ||
223 | /* | |
224 | * Close the audio device. | |
225 | * | |
226 | * Return 0 on success and -1 on error. | |
227 | */ | |
228 | int | |
229 | rplay_audio_close() | |
230 | { | |
231 | if (rplay_audio_fd != -1) | |
232 | { | |
233 | close(rplay_audio_fd); | |
234 | } | |
235 | ||
236 | rplay_audio_fd = -1; | |
237 | ||
238 | return 0; | |
239 | } | |
240 | ||
241 | /* | |
242 | * Return the volume of the audio device. | |
243 | * | |
244 | * Return 0-255 or -1 on error. | |
245 | */ | |
246 | int | |
247 | rplay_audio_get_volume() | |
248 | { | |
249 | #ifdef FAKE_VOLUME | |
250 | return rplay_audio_volume; | |
251 | #else /* not FAKE_VOLUME */ | |
252 | return -1; | |
253 | #endif /* not FAKE_VOLUME */ | |
254 | } | |
255 | ||
256 | /* | |
257 | * Set the volume of the audio device. | |
258 | * Input should be 0-255. | |
259 | * | |
260 | * Return the volume of the audio device 0-255 or -1. | |
261 | */ | |
262 | #ifdef __STDC__ | |
263 | int | |
264 | rplay_audio_set_volume(int volume) | |
265 | #else | |
266 | int | |
267 | rplay_audio_set_volume(volume) | |
268 | int volume; | |
269 | #endif | |
270 | { | |
271 | #ifdef FAKE_VOLUME | |
272 | if (volume < RPLAY_MIN_VOLUME) | |
273 | { | |
274 | volume = RPLAY_MIN_VOLUME; | |
275 | } | |
276 | else if (volume > RPLAY_MAX_VOLUME) | |
277 | { | |
278 | volume = RPLAY_MAX_VOLUME; | |
279 | } | |
280 | rplay_audio_volume = volume; | |
281 | ||
282 | return rplay_audio_volume; | |
283 | #else /* not FAKE_VOLUME */ | |
284 | return -1; | |
285 | #endif /* not FAKE_VOLUME */ | |
286 | } |
0 | /* $Id: audio_generic.h,v 1.3 1999/03/10 07:58:10 boyns Exp $ */ | |
1 | ||
2 | /* | |
3 | * Copyright (C) 1993-99 Mark R. Boyns <boyns@doit.org> | |
4 | * | |
5 | * This file is part of rplay. | |
6 | * | |
7 | * rplay is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License as published by | |
9 | * the Free Software Foundation; either version 2 of the License, or | |
10 | * (at your option) any later version. | |
11 | * | |
12 | * rplay is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
16 | * | |
17 | * You should have received a copy of the GNU General Public License | |
18 | * along with rplay; see the file COPYING. If not, write to the | |
19 | * Free Software Foundation, Inc., | |
20 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. | |
21 | */ | |
22 | ||
23 | ||
24 | ||
25 | #ifndef _audio_generic_h | |
26 | #define _audio_generic_h | |
27 | ||
28 | #include "rplay.h" | |
29 | ||
30 | #define RPLAY_AUDIO_DEVICE "/dev/audio" | |
31 | #define RPLAY_AUDIO_TIMEOUT 5 | |
32 | #define RPLAY_AUDIO_FLUSH_TIMEOUT -1 | |
33 | #define RPLAY_AUDIO_RATE 10 | |
34 | #define RPLAY_AUDIO_BYTE_ORDER RPLAY_BIG_ENDIAN | |
35 | ||
36 | #endif /* _audio_generic_h */ |
45 | 45 | #include "sound.h" |
46 | 46 | #include "spool.h" |
47 | 47 | #include "cache.h" |
48 | ||
49 | /* Make sure MAXPATHLEN is defined. */ | |
50 | #ifndef MAXPATHLEN | |
51 | #define MAXPATHLEN 4096 | |
52 | #endif | |
48 | 53 | |
49 | 54 | static DIR *cache_dir; |
50 | 55 | static char cache_path[MAXPATHLEN]; |
42 | 42 | #include "helper.h" |
43 | 43 | #include "misc.h" |
44 | 44 | |
45 | /* Make sure MAXPATHLEN is defined. */ | |
46 | #ifndef MAXPATHLEN | |
47 | #define MAXPATHLEN 4096 | |
48 | #endif | |
49 | ||
45 | 50 | HELPER *helpers = NULL; |
46 | 51 | static time_t helper_read_time; |
47 | 52 | |
109 | 114 | done(1); |
110 | 115 | } |
111 | 116 | //memset ((char *) &hp->pattern, 0, sizeof (hp->pattern)); |
112 | error = regncomp(&hp->pattern, pat, strlen(pat), REG_ICASE | REG_NOSUB); | |
117 | error = regcomp(&hp->pattern, pat, REG_ICASE | REG_NOSUB); | |
113 | 118 | if (error) |
114 | 119 | { |
115 | 120 | report(REPORT_ERROR, "helper_read: %d line %d\n", error, line); |
187 | 192 | |
188 | 193 | for (hp = helpers; hp; hp = hp->next) |
189 | 194 | { |
190 | if (regnexec(&hp->pattern, sound, strlen(sound), 0, 0, 0) == 0) | |
195 | if (regexec(&hp->pattern, sound, 0, 0, 0) == 0) | |
191 | 196 | { |
192 | 197 | return hp; |
193 | 198 | } |
25 | 25 | |
26 | 26 | #ifdef HAVE_HELPERS |
27 | 27 | |
28 | #ifdef HAVE_REGEX_H | |
29 | #include <regex.h> | |
30 | #else | |
28 | 31 | #ifdef HAVE_RX_RXPOSIX_H |
29 | 32 | #include <rx/rxposix.h> |
30 | 33 | #else |
32 | 35 | #include <rxposix.h> |
33 | 36 | #else |
34 | 37 | #include "rxposix.h" |
38 | #endif | |
35 | 39 | #endif |
36 | 40 | #endif |
37 | 41 |
32 | 32 | #include "host.h" |
33 | 33 | #include "buffer.h" |
34 | 34 | #include "misc.h" |
35 | #ifdef HAVE_REGEX_H | |
36 | #include <regex.h> | |
37 | #else | |
35 | 38 | #ifdef HAVE_RX_RXPOSIX_H |
36 | 39 | #include <rx/rxposix.h> |
37 | 40 | #else |
39 | 42 | #include <rxposix.h> |
40 | 43 | #else |
41 | 44 | #include "rxposix.h" |
45 | #endif | |
42 | 46 | #endif |
43 | 47 | #endif |
44 | 48 | |
196 | 200 | } |
197 | 201 | strcat(expr_monitor, "$"); |
198 | 202 | |
199 | error = regncomp(&access_read, expr_read, strlen(expr_read), | |
200 | REG_ICASE | REG_NOSUB); | |
203 | error = regcomp(&access_read, expr_read, REG_ICASE | REG_NOSUB); | |
201 | 204 | if (error) |
202 | 205 | { |
203 | report(REPORT_ERROR, "host_read: regncomp: %d\n", error); | |
206 | report(REPORT_ERROR, "host_read: regcomp: %d\n", error); | |
204 | 207 | done(1); |
205 | 208 | } |
206 | 209 | |
207 | error = regncomp(&access_write, expr_write, strlen(expr_write), | |
208 | REG_ICASE | REG_NOSUB); | |
210 | error = regcomp(&access_write, expr_write, REG_ICASE | REG_NOSUB); | |
209 | 211 | if (error) |
210 | 212 | { |
211 | report(REPORT_ERROR, "host_read: regncomp: %d\n", error); | |
213 | report(REPORT_ERROR, "host_read: regcomp: %d\n", error); | |
212 | 214 | done(1); |
213 | 215 | } |
214 | 216 | |
215 | error = regncomp(&access_execute, expr_execute, strlen(expr_execute), | |
216 | REG_ICASE | REG_NOSUB); | |
217 | error = regcomp(&access_execute, expr_execute, REG_ICASE | REG_NOSUB); | |
217 | 218 | if (error) |
218 | 219 | { |
219 | report(REPORT_ERROR, "host_read: regncomp: %d\n", error); | |
220 | report(REPORT_ERROR, "host_read: regcomp: %d\n", error); | |
220 | 221 | done(1); |
221 | 222 | } |
222 | 223 | |
223 | error = regncomp(&access_monitor, expr_monitor, strlen(expr_monitor), | |
224 | REG_ICASE | REG_NOSUB); | |
224 | error = regcomp(&access_monitor, expr_monitor, REG_ICASE | REG_NOSUB); | |
225 | 225 | if (error) |
226 | 226 | { |
227 | report(REPORT_ERROR, "host_read: regncomp: %d\n", error); | |
227 | report(REPORT_ERROR, "host_read: regcomp: %d\n", error); | |
228 | 228 | done(1); |
229 | 229 | } |
230 | 230 | } |
431 | 431 | done(1); |
432 | 432 | } |
433 | 433 | |
434 | n = regnexec(re, p, strlen(p), 0, 0, 0); | |
434 | n = regexec(re, p, 0, 0, 0); | |
435 | 435 | |
436 | 436 | return !n; |
437 | 437 | } |
332 | 332 | |
333 | 333 | progname = argv[0]; |
334 | 334 | |
335 | /* no need to keep stdin around */ | |
336 | close(0); | |
337 | ||
335 | 338 | servers_file = tilde_expand(RPLAY_SERVERS); |
336 | 339 | #ifdef HAVE_HELPERS |
337 | 340 | helpers_file = tilde_expand(RPLAY_HELPERS); |
1465 | 1468 | char *buf = rplay_audio_buf; |
1466 | 1469 | int size = rplay_audio_size; |
1467 | 1470 | int n; |
1468 | ||
1471 | ||
1469 | 1472 | while (size) |
1470 | 1473 | { |
1471 | 1474 | n = MIN(BUFFER_SIZE - monitor_buffers->offset, size); |
1482 | 1485 | } |
1483 | 1486 | } |
1484 | 1487 | } |
1485 | ||
1488 | ||
1486 | 1489 | rplay_audio_size = 0; |
1487 | 1490 | |
1488 | 1491 | /* Flush when the audio stream has ended. */ |
63 | 63 | #ifdef HAVE_HELPERS |
64 | 64 | #include "helper.h" |
65 | 65 | #endif /* HAVE_HELPERS */ |
66 | #ifdef HAVE_REGEX_H | |
67 | #include <regex.h> | |
68 | #else | |
66 | 69 | #ifdef HAVE_RX_RXPOSIX_H |
67 | 70 | #include <rx/rxposix.h> |
68 | 71 | #else |
71 | 74 | #else |
72 | 75 | #include "rxposix.h" |
73 | 76 | #endif |
77 | #endif | |
78 | #endif | |
79 | ||
80 | /* Make sure MAXPATHLEN is defined. */ | |
81 | #ifndef MAXPATHLEN | |
82 | #define MAXPATHLEN 4096 | |
74 | 83 | #endif |
75 | 84 | |
76 | 85 | SOUND *sounds = NULL; |
142 | 151 | |
143 | 152 | //memset ((char *) &bad_dirs, 0, sizeof (bad_dirs)); |
144 | 153 | |
145 | if (regncomp(&bad_dirs, buf, strlen(buf), REG_ICASE | REG_NOSUB)) | |
146 | { | |
147 | report(REPORT_ERROR, "bad_dirs: regncomp failed\n"); | |
154 | if (regcomp(&bad_dirs, buf, REG_ICASE | REG_NOSUB)) | |
155 | { | |
156 | report(REPORT_ERROR, "bad_dirs: regcomp failed\n"); | |
148 | 157 | done(1); |
149 | 158 | } |
150 | 159 | |
161 | 170 | #endif |
162 | 171 | { |
163 | 172 | /* return 1 if bad */ |
164 | return regnexec(&bad_dirs, dir, strlen(dir), 0, 0, 0) ? 0 : 1; | |
173 | return regexec(&bad_dirs, dir, 0, 0, 0) ? 0 : 1; | |
165 | 174 | } |
166 | 175 | |
167 | 176 | #endif /* BAD_DIRS */ |
169 | 169 | int gsm_bit_frame_bytes; /* Number of bytes in gsm_bit_frame */ |
170 | 170 | int gsm_fixed_buffer_size; |
171 | 171 | #endif /* HAVE_GSM */ |
172 | #ifdef HAVE_CDROM | |
172 | #if defined(HAVE_CDROM) || defined(HAVE_HELPERS) | |
173 | 173 | int pid; |
174 | #endif /* HAVE_CDROM */ | |
174 | #endif /* HAVE_CDROM || HAVE_HELPERS */ | |
175 | 175 | } |
176 | 176 | SINDEX; |
177 | 177 |
42 | 42 | #include "flange.h" |
43 | 43 | #endif |
44 | 44 | |
45 | /* Make sure MAXPATHLEN is defined. */ | |
46 | #ifndef MAXPATHLEN | |
47 | #define MAXPATHLEN 4096 | |
48 | #endif | |
49 | ||
45 | 50 | SPOOL *spool = NULL; /* List of spool entries. */ |
46 | 51 | int spool_size = 0; /* Number of entries in the spool. */ |
47 | 52 | int spool_nplaying = 0; /* Number of playing sounds. */ |
1126 | 1131 | spool_flow_pause(sp); |
1127 | 1132 | } |
1128 | 1133 | } |
1134 | } | |
1129 | 1135 | #endif /* HAVE_CDROM */ |
1130 | } | |
1131 | 1136 | } |
1132 | 1137 | else |
1133 | 1138 | { |
28 | 28 | #include <sys/signal.h> |
29 | 29 | #include <stdio.h> |
30 | 30 | #include <unistd.h> |
31 | #include <errno.h> | |
31 | 32 | #include "rplayd.h" |
32 | 33 | #include "timer.h" |
33 | 34 |
34 | 34 | #include "xhash.h" |
35 | 35 | #include "hash.h" |
36 | 36 | #include "rplayd.h" |
37 | ||
38 | /* Make sure MAXPATHLEN is defined. */ | |
39 | #ifndef MAXPATHLEN | |
40 | #define MAXPATHLEN 4096 | |
41 | #endif | |
37 | 42 | |
38 | 43 | static struct hash_control *htable; |
39 | 44 |
0 | # Generated automatically from Makefile.in by configure. | |
1 | # Makefile for librx | |
2 | # Copyright (C) 1994 Free Software Foundation, Inc. | |
3 | # | |
4 | # This file is part of GNU Rx | |
5 | # | |
6 | # GNU Rx is free software; you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2, or (at your option) | |
9 | # any later version. | |
10 | # | |
11 | # GNU Rx is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with GNU Rx; see the file COPYING.LIB. If not, write to | |
18 | # the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | ||
20 | ||
21 | SHELL = /bin/sh | |
22 | ||
23 | srcdir = . | |
24 | prefix = /usr | |
25 | exec_prefix = ${prefix} | |
26 | bindir = $(exec_prefix)/bin | |
27 | libdir = $(exec_prefix)/lib | |
28 | includedir = $(prefix)/include | |
29 | infodir = $(prefix)/info | |
30 | ||
31 | #### Start of system configuration section. #### | |
32 | ||
33 | CC = gcc | |
34 | INSTALL = /usr/bin/install -c | |
35 | DEFS = -DSTDC_HEADERS=1 | |
36 | CFLAGS = -g -O | |
37 | ALL_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/../libsystas $(CFLAGS) | |
38 | AR = ar | |
39 | AR_FLAGS = rc | |
40 | RANLIB = ranlib | |
41 | opt_objs= | |
42 | ||
43 | source= hashrexp.c rx.c rxanal.c rxbasic.c rxbitset.c rxcset.c rxdbug.c rxgnucomp.c rxhash.c rxnfa.c rxnode.c rxposix.c rxsimp.c rxspencer.c rxstr.c rxsuper.c rxunfa.c rgx.c | |
44 | ||
45 | headers=_rx.h rx.h rxanal.h rxbasic.h rxbitset.h rxcontext.h rxcset.h rxgnucomp.h rxhash.h rxnfa.h rxnode.h inst-rxposix.h rxposix.h rxproto.h rxsimp.h rxspencer.h rxstr.h rxsuper.h rxunfa.h rxall.h | |
46 | ||
47 | ancillery=configure.in Makefile.in configure \ | |
48 | COPYING.LIB ChangeLog PLUGIN \ | |
49 | ../doc/rx.texi ../doc/rx.info ../doc/texinfo.tex | |
50 | distfiles=$(source) $(headers) $(ancillery) | |
51 | libobjs= hashrexp.o rx.o rxanal.o rxbasic.o rxbitset.o rxcset.o rxdbug.o rxgnucomp.o rxhash.o rxnfa.o rxnode.o rxposix.o rxsimp.o rxspencer.o rxstr.o rxsuper.o rxunfa.o | |
52 | gen_c_files=rgx.x | |
53 | ||
54 | .SUFFIXES: | |
55 | .SUFFIXES: .o .c .h .ps .dvi .info .texinfo .scm .cd .x | |
56 | ||
57 | .c.x: | |
58 | $(CC) $(ALL_CFLAGS) -DSCM_MAGIC_SNARFER -E $< | grep "^%%%" | sed -e "s/^%%%//" > $@ ; \ | |
59 | ||
60 | .c.o: | |
61 | $(CC) -c $(ALL_CFLAGS) $(DEFS) -I$(srcdir) $< | |
62 | ||
63 | all: librx.a | |
64 | ||
65 | install: all | |
66 | test -d $(libdir) || mkdir $(libdir) | |
67 | test -d $(includedir) || mkdir $(includedir) | |
68 | $(INSTALL) librx.a $(libdir)/librx.a | |
69 | $(RANLIB) $(libdir)/librx.a | |
70 | $(INSTALL) $(srcdir)/inst-rxposix.h $(includedir)/rxposix.h | |
71 | ||
72 | ||
73 | uninstall: | |
74 | -rm -f $(libdir)/librx.a | |
75 | -rm -f $(includedir)/rxposix.h | |
76 | ||
77 | clean: | |
78 | -rm -f $(libobjs) librx.a $(opt_objs) | |
79 | ||
80 | distclean: clean | |
81 | -rm Makefile config.status config.log rgx.x | |
82 | ||
83 | mostlyclean: clean | |
84 | ||
85 | realclean: distclean | |
86 | ||
87 | TAGS: | |
88 | etags $(source) | |
89 | ||
90 | info: | |
91 | ||
92 | install-info: | |
93 | ||
94 | clean-info: | |
95 | ||
96 | dvi: | |
97 | ||
98 | check: | |
99 | ||
100 | SUBDIR=. | |
101 | manifest: | |
102 | for file in $(distfiles); do echo $(SUBDIR)/$$file; done | |
103 | ||
104 | dist: $(distfiles) | |
105 | echo rx-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q rx.c` > .fname | |
106 | rm -rf `cat .fname` | |
107 | mkdir `cat .fname` | |
108 | ln $(distfiles) `cat .fname` | |
109 | tar chzf `cat .fname`.tar.gz `cat .fname` | |
110 | rm -rf `cat .fname` .fname | |
111 | ||
112 | ||
113 | librx.a: $(libobjs) $(opt_objs) | |
114 | rm -f librx.a | |
115 | $(AR) $(AR_FLAGS) librx.a $(libobjs) $(opt_objs) | |
116 | $(RANLIB) librx.a | |
117 | ||
118 | ||
119 | depends: | |
120 | touch $(gen_c_files) scmconfig.h | |
121 | gcc -MM -I. -I../libsystas $(source) | |
122 | rm $(gen_c_files) scmconfig.h | |
123 | ### | |
124 | hashrexp.o : hashrexp.c rxall.h rxnode.h rxbitset.h rxcset.h rxhash.h | |
125 | rx.o : rx.c rx.h rxhash.h rxbitset.h rxall.h rxnfa.h _rx.h rxcset.h rxnode.h rxsuper.h | |
126 | rxanal.o : rxanal.c rxall.h rxanal.h rxcset.h rxbitset.h rxnode.h rxsuper.h \ | |
127 | rxnfa.h _rx.h rxhash.h | |
128 | rxbasic.o : rxbasic.c rxall.h rxbasic.h rxcontext.h rxnode.h rxbitset.h rxcset.h \ | |
129 | rxspencer.h rxproto.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h \ | |
130 | rxstr.h | |
131 | rxbitset.o : rxbitset.c rxall.h rxbitset.h | |
132 | rxcset.o : rxcset.c rxall.h rxcset.h rxbitset.h | |
133 | rxdbug.o : rxdbug.c rxall.h rxgnucomp.h rxcset.h rxbitset.h rxnode.h rxnfa.h \ | |
134 | _rx.h rxhash.h | |
135 | rxgnucomp.o : rxgnucomp.c rxall.h rxgnucomp.h rxcset.h rxbitset.h rxnode.h | |
136 | rxhash.o : rxhash.c rxall.h rxhash.h rxbitset.h | |
137 | rxnfa.o : rxnfa.c rxall.h rxnfa.h _rx.h rxhash.h rxbitset.h rxcset.h rxnode.h | |
138 | rxnode.o : rxnode.c rxall.h rxnode.h rxbitset.h rxcset.h | |
139 | rxposix.o : rxposix.c rxall.h rxposix.h rxspencer.h rxproto.h rxnode.h rxbitset.h \ | |
140 | rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h rxcontext.h \ | |
141 | rxgnucomp.h rxbasic.h rxsimp.h | |
142 | rxsimp.o : rxsimp.c rxall.h rxsimp.h rxcset.h rxbitset.h rxnode.h | |
143 | rxspencer.o : rxspencer.c rxall.h rxspencer.h rxproto.h rxnode.h rxbitset.h \ | |
144 | rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h | |
145 | rxstr.o : rxstr.c rxall.h rxstr.h rxspencer.h rxproto.h rxnode.h rxbitset.h \ | |
146 | rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h rxcontext.h | |
147 | rxsuper.o : rxsuper.c rxall.h rxsuper.h rxnfa.h _rx.h rxhash.h rxbitset.h rxcset.h \ | |
148 | rxnode.h | |
149 | rxunfa.o : rxunfa.c rxall.h rx.h rxhash.h rxbitset.h rxunfa.h _rx.h rxcset.h \ | |
150 | rxnfa.h rxnode.h | |
151 | rgx.o : rgx.c rgx.x |
0 | This file contains any messages produced by compilers while | |
1 | running configure, to aid debugging if configure makes a mistake. | |
2 | ||
3 | configure:890: gcc -o conftest -g -O conftest.c 1>&5 |
0 | #! /bin/sh | |
1 | # Generated automatically by configure. | |
2 | # Run this file to recreate the current configuration. | |
3 | # This directory was configured as follows, | |
4 | # on host scooter: | |
5 | # | |
6 | # ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x --enable-rplayd-user=nobody --enable-rplayd-group=audio --cache-file=.././config.cache --srcdir=. | |
7 | # | |
8 | # Compiler output produced by configure, useful for debugging | |
9 | # configure, is in ./config.log if it exists. | |
10 | ||
11 | ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]" | |
12 | for ac_option | |
13 | do | |
14 | case "$ac_option" in | |
15 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16 | echo "running ${CONFIG_SHELL-/bin/sh} ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x --enable-rplayd-user=nobody --enable-rplayd-group=audio --cache-file=.././config.cache --srcdir=. --no-create --no-recursion" | |
17 | exec ${CONFIG_SHELL-/bin/sh} ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x --enable-rplayd-user=nobody --enable-rplayd-group=audio --cache-file=.././config.cache --srcdir=. --no-create --no-recursion ;; | |
18 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
19 | echo "./config.status generated by autoconf version 2.10" | |
20 | exit 0 ;; | |
21 | -help | --help | --hel | --he | --h) | |
22 | echo "$ac_cs_usage"; exit 0 ;; | |
23 | *) echo "$ac_cs_usage"; exit 1 ;; | |
24 | esac | |
25 | done | |
26 | ||
27 | ac_given_srcdir=. | |
28 | ac_given_INSTALL="/usr/bin/install -c" | |
29 | ||
30 | trap 'rm -fr Makefile conftest*; exit 1' 1 2 15 | |
31 | ||
32 | # Protect against being on the right side of a sed subst in config.status. | |
33 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g; | |
34 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF | |
35 | /^[ ]*VPATH[ ]*=[^:]*$/d | |
36 | ||
37 | s%@CFLAGS@%-g -O%g | |
38 | s%@CPPFLAGS@%%g | |
39 | s%@CXXFLAGS@%%g | |
40 | s%@DEFS@% -DSTDC_HEADERS=1 %g | |
41 | s%@LDFLAGS@%%g | |
42 | s%@LIBS@%%g | |
43 | s%@exec_prefix@%${prefix}%g | |
44 | s%@prefix@%/usr%g | |
45 | s%@program_transform_name@%s,x,x,%g | |
46 | s%@bindir@%${exec_prefix}/bin%g | |
47 | s%@sbindir@%${exec_prefix}/sbin%g | |
48 | s%@libexecdir@%${exec_prefix}/libexec%g | |
49 | s%@datadir@%${prefix}/share%g | |
50 | s%@sysconfdir@%/etc/rplay%g | |
51 | s%@sharedstatedir@%${prefix}/com%g | |
52 | s%@localstatedir@%${prefix}/var%g | |
53 | s%@libdir@%${exec_prefix}/lib%g | |
54 | s%@includedir@%${prefix}/include%g | |
55 | s%@oldincludedir@%/usr/include%g | |
56 | s%@infodir@%${prefix}/info%g | |
57 | s%@mandir@%${prefix}/man%g | |
58 | s%@CC@%gcc%g | |
59 | s%@CPP@%gcc -E%g | |
60 | s%@RANLIB@%ranlib%g | |
61 | s%@INSTALL_PROGRAM@%${INSTALL}%g | |
62 | s%@INSTALL_DATA@%${INSTALL} -m 644%g | |
63 | s%@opt_objs@%%g | |
64 | s%@opt_cflags@%%g | |
65 | ||
66 | CEOF | |
67 | ||
68 | CONFIG_FILES=${CONFIG_FILES-"Makefile"} | |
69 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
70 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
71 | case "$ac_file" in | |
72 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
73 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
74 | *) ac_file_in="${ac_file}.in" ;; | |
75 | esac | |
76 | ||
77 | # Adjust relative srcdir, etc. for subdirectories. | |
78 | ||
79 | # Remove last slash and all that follows it. Not all systems have dirname. | |
80 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
81 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
82 | # The file is in a subdirectory. | |
83 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
84 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
85 | # A "../" for each directory in $ac_dir_suffix. | |
86 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
87 | else | |
88 | ac_dir_suffix= ac_dots= | |
89 | fi | |
90 | ||
91 | case "$ac_given_srcdir" in | |
92 | .) srcdir=. | |
93 | if test -z "$ac_dots"; then top_srcdir=. | |
94 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
95 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
96 | *) # Relative path. | |
97 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
98 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
99 | esac | |
100 | ||
101 | case "$ac_given_INSTALL" in | |
102 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
103 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
104 | esac | |
105 | echo creating "$ac_file" | |
106 | rm -f "$ac_file" | |
107 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
108 | case "$ac_file" in | |
109 | *Makefile*) ac_comsub="1i\\ | |
110 | # $configure_input" ;; | |
111 | *) ac_comsub= ;; | |
112 | esac | |
113 | sed -e "$ac_comsub | |
114 | s%@configure_input@%$configure_input%g | |
115 | s%@srcdir@%$srcdir%g | |
116 | s%@top_srcdir@%$top_srcdir%g | |
117 | s%@INSTALL@%$INSTALL%g | |
118 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | |
119 | fi; done | |
120 | rm -f conftest.subs | |
121 | ||
122 | ||
123 | ||
124 | exit 0 |