source: roaraudio/configure @ 1104:bfe959698403

Last change on this file since 1104:bfe959698403 was 1101:6db6ae039d6d, checked in by phi, 15 years ago

use test_lib_defmake not test_lib for libm

  • Property exe set to *
File size: 15.5 KB
RevLine 
[353]1#!/bin/sh
2
[693]3# check for bash...
4
5if [ "$(echo -n)" = '-n' ]
6then
[727]7 SHELL=$(which bash sh 2> /dev/null | grep ^/ | head -n 1)
[693]8 exec $SHELL $0 "$@"
9fi
10
11
[353]12#set -x
13
14TF_C=testit.c
[354]15TF_E=./testit
[484]16LDPATH=''
[553]17INCPATH=''
[484]18
[691]19SYSNAME='unknown'
20SHARED='-shared'
[730]21SHARED_CF=''
[725]22PKG_CONFIG=false
[750]23RUNTIME_DETECT=false
[691]24
[863]25PREFIX='/usr/local'
26PREFIX_BIN=''
27PREFIX_LIB=''
28PREFIX_INC=''
29PREFIX_MAN=''
30
[804]31CDROM="none"
[913]32OSS_DEV="none"
[827]33PROC_NET_DECNET="/proc/net/decnet"
[804]34
[927]35DEFAULT_GRP=''
36
[872]37AO_INST_DIR=''
[1062]38XMMS_INST_DIR=''
39
[1092]40LIBAO=true
41XMMS=true
42
[1062]43DEFAULT_RATE=''
44DEFAULT_CHANNELS=''
45DEFAULT_BITS=''
[872]46
[1065]47ALAW=true
48MULAW=true
49ALAW_RW=true
50MULAW_RW=true
51
[1086]52PROXY=true
53
[1072]54TARGET_WIN32=false
55
[1092]56EXEC_HELPER=''
57
[484]58echo -n "checking for C compiler... "
[899]59if [ "$CC" != '' ]
[484]60then
[899]61 echo $CC
62else
63 CC=$(which gcc cc 2> /dev/null | grep ^/ | head -n 1)
64 if [ "$CC" = '' ]
65 then
66  echo 'none'
67  exit 1;
68 fi
69 echo $CC
[484]70fi
71
[725]72echo -n "checking for pkg-config... "
[727]73PKG_CONFIG=$(which pkg-config false 2> /dev/null | grep ^/ | head -n 1)
[725]74if $PKG_CONFIG --help > /dev/null 2> /dev/null
75then
76 echo $PKG_CONFIG
77else
78 echo no
79fi
80
[484]81#Makefile.conf not yet open, write it later
82
[691]83echo -n "checking for sysname... "
84SYSNAME=$(uname -s)
85echo "$SYSNAME"
[353]86
[484]87while [ "$1" != '' ]
88do
89 case "$1" in
90  '--help')
[862]91   echo '--help                      - This Help'
92   echo '--ldpath DIR                - Add DIR to (compile time) search list for libs'
93   echo '--incpath DIR               - Add DIR to search list for headers'
94   echo '--addpath DIR               - Add DIR/lib to lib, DIR/include to header search list'
95   echo '--cdrom DEV                 - Set default CDRum device'
96   echo '--proc-net-decnet FILE      - Set DECnet file for DECnet support auto detecting'
97   echo '                              (ignore this on non-Linux)'
98   echo '--no-LIB                    - disable LIB'
99   echo '--runtime-detect            - do as much as posible auto detecting on runtime (for distributors)'
[872]100   echo '--ao-install-dir DIR'
[1057]101   echo '--xmms-install-dir DIR'
[864]102   echo '--prefix DIR'
103   echo '--prefix-bin DIR'
104   echo '--prefix-lib DIR'
105   echo '--prefix-inc DIR'
106   echo '--prefix-man DIR'
[1062]107   echo '--default-rate RATE'
108   echo '--default-channels CHANNELS'
109   echo '--default-bits BITS'
[1065]110   echo '--without-alaw'
111   echo '--without-alaw-rw'
112   echo '--without-mulaw'
113   echo '--without-mulaw-rw'
[1086]114   echo '--without-proxy'
[1092]115   echo '--without-libao'
116   echo '--without-xmms'
[1071]117   echo '--target-win32'
[1092]118   echo '--exec-helper HELPER'
[484]119   exit 0;
120  ;;
121  '--ldpath')
122   LDPATH="$LDPATH -L$2"
123   shift;
124  ;;
[553]125  '--incpath')
126   INCPATH="$INCPATH -I$2"
127   shift;
128  ;;
129  '--addpath')
130   LDPATH="$LDPATH -L$2/lib/"
131   INCPATH="$INCPATH -I$2/include/"
132   shift;
133  ;;
[899]134  '--cc')
135   CC="$2"
136   shift;
137  ;;
[804]138  '--cdrom')
139   CDROM="$2"
140   shift;
141  ;;
[913]142  '--oss-dev')
143   OSS_DEV="$2"
144   shift;
145  ;;
[927]146  '--audio-group')
147   DEFAULT_GRP="$2"
148   shift;
149  ;;
[696]150  '--no-'*)
151   lib=$(echo "$1" | sed 's/^--no-//')
152   eval no_lib_$lib=true
153  ;;
[750]154  '--runtime-detect')
[864]155   RUNTIME_DETECT=true
156  ;;
[872]157  '--ao-install-dir')
158   AO_INST_DIR="$2"
159   shift;
160  ;;
[1057]161  '--xmms-install-dir')
162   XMMS_INST_DIR="$2"
163   shift;
164  ;;
[1062]165  '--default-rate')
166   DEFAULT_RATE="$2"
167   shift;
168  ;;
169  '--default-channels')
170   DEFAULT_CHANNELS="$2"
171   shift;
172  ;;
173  '--default-bits')
174   DEFAULT_BITS="$2"
175   shift;
176  ;;
[1065]177  '--without-alaw')
178   ALAW=false
179   ALAW_RW=false
180  ;;
181  '--without-alaw-rw')
182   ALAW_RW=false
183  ;;
184  '--without-mulaw')
185   MULAW=false
186   MULAW_RW=false
187  ;;
188  '--without-mulaw-rw')
189   MULAW_RW=false
190  ;;
[1086]191  '--without-proxy')
192   PROXY=false
193  ;;
[1092]194  '--without-libao')
195   LIBAO=false
196   no_lib_ao=true
197  ;;
198  '--without-xmms')
199   XMMS=false
200  ;;
[864]201  '--prefix')
202   PREFIX="$2"
203   shift;
204  ;;
205  '--prefix-bin')
206   PREFIX_BIN="$2"
207   shift;
208  ;;
209  '--prefix-lib')
210   PREFIX_LIB="$2"
211   shift;
212  ;;
213  '--prefix-inc')
214   PREFIX_INC="$2"
215   shift;
216  ;;
217  '--prefix-man')
218   PREFIX_MAN="$2"
219   shift;
[750]220  ;;
[1092]221  '--exec-helper')
222   EXEC_HELPER="$2"
223   shift;
224  ;;
[1071]225  '--target-win32')
226   RUNTIME_DETECT=true
227   no_lib_dnet=true
[1072]228   TARGET_WIN32=true
[1088]229   PROXY=false
[1092]230   XMMS=false
[1071]231  ;;
[484]232 esac;
233
234 shift;
235done
236
237
[714]238CCTF="false"
[353]239
240test_lib () {
241 echo > $TF_C
242
243 echo -n "checking for $1... "
244 shift;
245
246 LIBS=''
247
248 while [ "$1" != '--' ]
249 do
250  LIBS="$LIBS -l$1"
251  shift;
252 done
253
254 shift;
255
[751]256 LIBS=$(echo "$LIBS" | sed 's/-l-l/-l/g; s/-l-L/-L/g;')
[725]257
[353]258 while [ "$1" != '' ]
259 do
260  echo "#include <$1>" >> $TF_C
261  shift;
262 done
263
264 echo 'int main (void) { return 0; }' >> $TF_C
265
266 $CCTF $LIBS 2> /dev/null;
267
268 R=$?
269
270 if [ "$R" = '0' ]
271 then
272  echo 'yes'
273 else
274  echo 'no'
275 fi
276
277 return $R
278}
279
[426]280test_lib_defmake () {
281 def="$1"
282 subdir="$2"
283 shift
284 shift
[725]285 name="$1"
[428]286 lib="$2"
[725]287 shift
[426]288
[429]289 [ "$subdir" = '%' ] && subdir=''
290
[698]291 if [ "$lib" != '--' ]
[696]292 then
[698]293  eval _no="\$no_lib_$lib";
294
295  if [ "$_no" != '' ]
296  then
297    echo "checking for $1... disabled by user"
298   [ "$subdir" != '' ] && \
299    echo "subdir_$subdir=" >&4
300   echo "lib_$lib=" >&4
301   return;
302  fi
[696]303 fi
304
[725]305 LIBS=$($PKG_CONFIG --silence-errors --libs $lib)
306 if [ "$?" != '0' ]
307 then
308  LIBS="-l$lib"
309 fi
310
311 if test_lib "$name" $LIBS "$@"
[426]312 then
[1049]313  subdir_var='subdir_'"`echo $subdir | tr / _`"
[426]314  echo "#define $def"            >&3
315  [ "$subdir" != '' ] && \
[1049]316   echo "$subdir_var=$subdir" >&4
[725]317  echo "lib_$lib=$LIBS" >&4
[426]318 else
319  [ "$subdir" != '' ] && \
320   echo "subdir_$subdir=" >&4
[428]321  echo "lib_$lib=" >&4
[426]322 fi
323}
324
[748]325test_tool_defmake () {
326 DEF="$1"
327 NAME="$2"
328 shift;
329 shift;
330 echo -n "checking for $NAME... "
331
[750]332 if $RUNTIME_DETECT
[748]333 then
[750]334  echo "$1 (runtime detect)"
335 echo "#define $DEF "\""$1"\" >&3
[748]336 else
[750]337
338  LIST=$(which "$@" 2> /dev/null | grep ^/ | head -n 1)
339
340  if [ "$LIST" = '' ]
341  then
342   echo 'no'
343  else
344   echo $LIST
345   echo "#define $DEF "\""$LIST"\" >&3
346  fi
[748]347 fi
348}
349
[426]350exec 3> config.h 4> Makefile.conf
[353]351
[691]352if [ "$SYSNAME" = 'Darwin' ]
353then
354 echo "Adding $SYSNAME shared lib arguments..."
355 SHARED="$SHARED -fno-common -dynamiclib -compatibility_version 0.1 -current_version 0.1.0"
[730]356 SHARED_CF="$SHARED_CF -fno-common"
[713]357elif [ "$SYSNAME" = 'NetBSD' ]
358then
359 echo "Adding $SYSNAME libpath arguments..."
360 LDPATH="$LDPATH -L/usr/local/lib/"
[926]361elif [ "$SYSNAME" = 'FreeBSD' ]
362then
[927]363 echo "Adding $SYSNAME search path arguments..."
[926]364 LDPATH="$LDPATH -L/usr/local/lib/"
365 INCPATH="$INCPATH -I/usr/local/include/"
[927]366 [ "$DEFAULT_GRP" = '' ] && DEFAULT_GRP='wheel'
[691]367fi
368
[863]369[ "$PREFIX_BIN" = '' ] && PREFIX_BIN="$PREFIX/bin/"
370[ "$PREFIX_LIB" = '' ] && PREFIX_LIB="$PREFIX/lib/"
371[ "$PREFIX_INC" = '' ] && PREFIX_INC="$PREFIX/include/"
372[ "$PREFIX_MAN" = '' ] && PREFIX_MAN="$PREFIX/share/man/"
373
[927]374[ "$DEFAULT_GRP" = '' ] && DEFAULT_GRP='audio'
375
[714]376# now write the cc name to Makefile.conf
[863]377{
378 echo "SHARED=$SHARED"
379 echo "SHARED_CF=$SHARED_CF"
380 echo "CC=$CC"
381 echo "LDPATH=$LDPATH"
382 echo "INCPATH=$INCPATH"
383 echo "PREFIX=$PREFIX"
384 echo "PREFIX_BIN=$PREFIX_BIN"
385 echo "PREFIX_LIB=$PREFIX_LIB"
386 echo "PREFIX_INC=$PREFIX_INC"
387 echo "PREFIX_MAN=$PREFIX_MAN"
388} >&4
[714]389
[1055]390CCTF="$CC $LDPATH $INCPATH -Iinclude/ -o $TF_E $TF_C"
[691]391
[353]392cat >&3 << EOF
393//config.h:
394
395#ifndef _ROARAUDIO_CONFIG_H_
396#define _ROARAUDIO_CONFIG_H_
397
398EOF
399
400{
401 echo '/* uname: ' $(uname -a) '*/'
402 echo '/* Date : ' $(date)  '*/'
403 echo
[1062]404 [ "$DEFAULT_RATE"     = '' ] || echo "#define ROAR_RATE_DEFAULT     $DEFAULT_RATE"
405 [ "$DEFAULT_CHANNELS" = '' ] || echo "#define ROAR_CHANNELS_DEFAULT $DEFAULT_CHANNELS"
406 [ "$DEFAULT_BITS"     = '' ] || echo "#define ROAR_BITS_DEFAULT     $DEFAULT_BITS"
407 echo
[1065]408 $ALAW     && echo '#define ROAR_SUPPORT_ALAW'
409 $ALAW_RW  && echo '#define ROAR_SUPPORT_ALAW_RW'
410 $MULAW    && echo '#define ROAR_SUPPORT_MULAW'
411 $MULAW_RW && echo '#define ROAR_SUPPORT_MULAW_RW'
[1086]412 $PROXY    && echo '#define ROAR_SUPPORT_PROXY'
413 echo
[1072]414 $TARGET_WIN32 && echo '#define ROAR_TARGET_WIN32'
[1065]415 echo
[353]416} >&3
417
[803]418#                 #define                  name         cmds...
419test_tool_defmake ROAR_HAVE_BIN_OGG123     ogg123       ogg123
420test_tool_defmake ROAR_HAVE_BIN_FLAC       flac         flac
421test_tool_defmake ROAR_HAVE_BIN_TIMIDITY   TiMidity++   timidity
422test_tool_defmake ROAR_HAVE_BIN_CDPARANOIA cdparanoia   cdparanoia
[860]423test_tool_defmake ROAR_HAVE_BIN_WGET       Wget         wget
[983]424test_tool_defmake ROAR_HAVE_BIN_GNUPLOT    gnuplot      gnuplot
[1063]425test_tool_defmake ROAR_HAVE_BIN_SSH        OpenSSH      ssh
[748]426
427echo >&3
428
[1101]429#                #define                 subdir       name           -lxxx      -- header
430test_lib_defmake ROAR_HAVE_LIBM          %            'Math Library' m          -- math.h
[363]431if test_lib 'realtime Library' rt -- sys/mman.h mqueue.h semaphore.h
432then
433 {
434  echo '#define ROAR_HAVE_LIBRT'
435  echo '#define ROAR_NEED_LIBRT'
436 } >&3
437fi
438
439echo >&3
440
[500]441#                #define                 subdir       name          -lxxx      -- header
442test_lib_defmake ROAR_HAVE_ESD           libroaresd   EsounD        esd        -- esd.h
[1049]443test_lib_defmake ROAR_HAVE_LIBAO         plugins/ao   libao         ao         -- ao/ao.h ao/plugin.h
[500]444test_lib_defmake ROAR_HAVE_LIBVORBIS     %            libvorbis     vorbis     -- vorbis/codec.h
445test_lib_defmake ROAR_HAVE_LIBVORBISFILE %            libvorbisfile vorbisfile -- vorbis/vorbisfile.h
[568]446test_lib_defmake ROAR_HAVE_LIBVORBISENC  %            libvorbisenc  vorbisenc  -- vorbis/vorbisenc.h
[500]447test_lib_defmake ROAR_HAVE_LIBSPEEX      %            libspeex      speex      -- speex/speex.h speex/speex_stereo.h
448test_lib_defmake ROAR_HAVE_LIBCELT       %            libcelt       celt       -- celt/celt.h celt/celt_header.h
449test_lib_defmake ROAR_HAVE_LIBOGGZ       %            liboggz       oggz       -- oggz/oggz.h
450test_lib_defmake ROAR_HAVE_LIBSNDFILE    %            libsndfile    sndfile    -- sndfile.h
451test_lib_defmake ROAR_HAVE_LIBFISHSOUND  roarfish     libfishsound  fishsound  -- fishsound/fishsound.h
[604]452test_lib_defmake ROAR_HAVE_LIBSHOUT      %            libshout      shout      -- shout/shout.h
[500]453test_lib_defmake ROAR_HAVE_LIBPULSE      libroarpulse libpulse      pulse      -- pulse/pulseaudio.h pulse/simple.h
454test_lib_defmake ROAR_HAVE_LIBY2         libroaryiff  libyiff       Y2         -- Y2/Y.h Y2/Ylib.h
455test_lib_defmake ROAR_HAVE_LIBARTSC      libroararts  libartsc      artsc      -- kde/artsc/artsc.h
[921]456test_lib_defmake ROAR_HAVE_LIBOSSAUDIO   %            libossaudio   ossaudio   -- sys/ioctl.h
[500]457test_lib_defmake ROAR_HAVE_LIBDNET       %            libdnet       dnet       -- sys/socket.h netdnet/dn.h netdnet/dnetdb.h
[1089]458test_lib_defmake ROAR_HAVE_UNIX          %            UNIX          c          -- sys/socket.h sys/un.h
[725]459test_lib_defmake ROAR_HAVE_IPX           %            IPX           c          -- netipx/ipx.h
[914]460test_lib_defmake ROAR_HAVE_OSS           %            OSS           c          -- sys/ioctl.h sys/soundcard.h
461test_lib_defmake ROAR_HAVE_OSS_BSD       %            BSDOSS        c          -- sys/ioctl.h soundcard.h
[1091]462test_lib_defmake ROAR_HAVE_LIBWSOCK32    %            WinSockP0     wsock32    -- winsock2.h
463test_lib_defmake ROAR_HAVE_LIBWS2_32     %            WinSockP1     ws2_32     -- winsock2.h
[353]464
465# add a better test here
466test_lib 'linux sendfile()'       -- sys/sendfile.h && echo '#define ROAR_HAVE_LINUX_SENDFILE' >&3
467
468
[890]469echo -n 'checking for IPv6... '
470
471echo '#include <sys/socket.h>'  > $TF_C
472echo '#include <netinet/in.h>' >> $TF_C
473echo 'int main (void) { struct sockaddr_in6 in6; return 0; }' >> $TF_C
474
475if $CCTF 2> /dev/null;
476then
477 echo '#define ROAR_HAVE_IPV6' >&3
478 echo yes
479else
480 echo no
481fi
482
483
[353]484echo -n 'checking for mlock()... '
485
486echo '#include <sys/mman.h>' > $TF_C
487echo 'int main (void) { mlock((void*)0, 0); return 0; }' >> $TF_C
488
489if $CCTF 2> /dev/null;
490then
491 echo '#define ROAR_HAVE_MLOCK' >&3
492 echo yes
493else
494 echo no
495fi
496
[1019]497echo -n 'checking for square root func... '
498
[1034]499echo "$SYSNAME" | if grep CYGWIN > /dev/null
[1019]500then
[1034]501 echo 'sqrt() (cygwin)'
[1019]502else
[1034]503 echo '#include <math.h>' > $TF_C
504 echo 'int main (void) { sqrtl(0); return 0; }' >> $TF_C
505
506 if $CCTF -lm 2> /dev/null;
507 then
508  echo '#define ROAR_HAVE_SQRTL' >&3
509  echo 'sqrtl()'
510 else
511  echo 'sqrt()'
512 fi
[1019]513fi
514
[697]515echo -n 'checking for inline funcs... '
516
517echo 'inline int test (void) { return 0; }' > $TF_C
518echo 'int main (void) { return test(); }'  >> $TF_C
519
520if $CCTF 2> /dev/null;
521then
522 echo '#define ROAR_HAVE_INLINE' >&3
523 echo yes
524else
525 echo no
526fi
527
[1055]528echo -n 'checking for broken peercred... '
529echo '#include <roaraudio.h>' > $TF_C
530echo 'int main (void) { struct ucred cred; return 0; }'  >> $TF_C
531
532if $CCTF 2> /dev/null;
533then
534 echo working
535else
536 echo '#define ROAR_BROKEN_PEERCRED' >&3
537 echo broken
538fi
539
[420]540echo -n 'checking for safe 32 bit integer overflow... '
[354]541
542cat > $TF_C << EOF
543#include <stdio.h>
544#include <stdint.h>
545#define TYPE uint32_t
546#define MAX  ((TYPE)4294967295U)
547
548int main (void) {
549 TYPE a = MAX;
550
551 a += 2;
552
553 if ( a == 1 ) {
554  printf("#define ROAR_HAVE_SAFE_OVERFLOW\n");
555  return 0;
556 }
557
558 return 1;
559}
560EOF
561
562if $CCTF 2> /dev/null;
563then
[1092]564 $EXEC_HELPER $TF_E >&3
[354]565 if [ "$?" = '0' ]
566 then
567  echo yes
568 else
569  echo no
570 fi
571else
572 echo 'no (can not compile!, no stdint.h?)'
573fi
574
[781]575echo -n 'checking for __LP64__... '
576cat > $TF_C << EOF
577#include <stdio.h>
578
579int main (void) {
580#ifdef __LP64__
581 fprintf(stderr, "set by compiler\n");
582#else
583 if ( sizeof(int) == sizeof(void*) ) {
584  fprintf(stderr, "no need to set\n");
585 } else {
586  fprintf(stderr, "need to set\n");
587  printf("\n#ifndef __LP64__\n#define __LP64__\n#endif\n\n");
588 }
589#endif
590 return 0;
591}
592EOF
593if $CCTF 2> /dev/null;
594then
[1092]595 $EXEC_HELPER $TF_E >&3
[781]596else
597 echo 'error, can not compile'
598 exit 1
599fi
600
[853]601echo -n 'checking for 64 bit types... '
602cat > $TF_C << EOF
603#include <stdio.h>
604#include <stdint.h>
605
606int main (void) {
607 char * i64 = NULL, * ui64 = NULL;
608
609 if ( sizeof(int) == 8 ) {
610  i64 = "int"; ui64 = "unsigned int";
611 } else if ( sizeof(long int) == 8 ) {
612  i64 = "long int"; ui64 = "unsigned long int";
613 } else if ( sizeof(long long int) == 8 ) {
614  i64 = "long long int"; ui64 = "unsigned long long int";
615 } else if ( sizeof(int64_t) == 8 ) {
616  i64 = "int64_t"; ui64 = "uint64_t";
617 } else {
618  fprintf(stderr, "none\n");
619  return 0;
620 }
621
622 fprintf(stderr, "%s, %s\n", i64, ui64);
623 printf("#define ROAR_NATIVE_INT64 %s\n#define ROAR_NATIVE_UINT64 %s\n", i64, ui64);
624
625 return 0;
626}
627EOF
628if $CCTF 2> /dev/null;
629then
[1092]630 $EXEC_HELPER $TF_E >&3
[853]631else
632 echo 'error, can not compile'
633 exit 1
634fi
635
636
[475]637echo -n 'checking if cp supports -v... '
638if cp -v --help > /dev/null 2> /dev/null
639then
640 echo "cp_v=-v" >&4
641 echo yes
642else
643 echo "cp_v=" >&4
644 echo no
645fi
646
[804]647echo -n 'checking for cdrom device... '
648if [ -e "$CDROM" ]
649then
650 echo "$CDROM"
[924]651 echo '#define ROAR_DEFAULT_CDROM "'"$CDROM"'"' >&3
[804]652else
653 CDROM=$(ls /dev/cdrom /dev/rcd0c 2> /dev/null | head -n 1);
654 if [ -e "$CDROM" ]
655 then
656  echo "$CDROM"
657  echo '#define ROAR_DEFAULT_CDROM "'"$CDROM"'"' >&3
658 else
659  echo 'none'
660 fi
661fi
[475]662
[913]663echo -n 'checking for OSS device... '
664if [ -e "$OSS_DEV" ]
665then
666 echo "$OSS_DEV"
[924]667 echo '#define ROAR_DEFAULT_OSS_DEV "'"$OSS_DEV"'"' >&3
[913]668else
669 OSS_DEV=$(ls /dev/dsp /dev/audio 2> /dev/null | head -n 1);
670 if [ -e "$OSS_DEV" ]
671 then
672  echo "$OSS_DEV"
673  echo '#define ROAR_DEFAULT_OSS_DEV "'"$OSS_DEV"'"' >&3
674 else
675  echo 'none'
676 fi
677fi
678
[843]679echo 'checking for decnet status file... '"$PROC_NET_DECNET"
[827]680echo '#define ROAR_PROC_NET_DECNET "'"$PROC_NET_DECNET"'"' >&3
681
[927]682
683echo 'checking for default audio group... '"$DEFAULT_GRP"
684echo '#define ROAR_DEFAULT_SOCKGRP "'"$DEFAULT_GRP"'"' >&3
685
[353]686cat >&3 << EOF
687
688#endif
689
690//ll
691EOF
692
[1092]693cd plugins
694
695if $LIBAO
[872]696then
[1092]697 echo 'running libao plugin configure...'
698  cd ao/
699 if [ "$AO_INST_DIR" = '' ]
700 then
701  ./configure --force-have-roar
702 else
703  ./configure --force-have-roar --inst-dir "$AO_INST_DIR"
704 fi
705 cd ..
[872]706else
[1092]707 echo "running libao plugin configure... disabled by user"
[872]708fi
[1057]709
[1092]710if $XMMS
[1057]711then
[1092]712 echo 'running xmms plugin configure...'
713  cd xmms/
714 if [ "$XMMS_INST_DIR" = '' ]
715 then
716  ./configure --force-have-roar
717 else
718  ./configure --force-have-roar --inst-dir "$XMMS_INST_DIR"
719 fi
720 cd ..
[1057]721else
[1092]722 echo "running xmms plugin configure... disabled by user"
[1057]723fi
724
[1092]725cd ..
[872]726
[354]727rm -f $TF_C $TF_E
[353]728
[359]729mv config.h include/roaraudio/
730echo 'config.h created and moved into include/roaraudio/'
731
[898]732echo "$SYSNAME" | if grep CYGWIN > /dev/null
733then
[1034]734 rm -f $TF_E.exe
[898]735 echo 'patching Makefiles for cygwin...'
736 find . -name Makefile -print0 | xargs -0 sed 's/\.so/.dll'/g -i
737fi
738
[353]739#ll
Note: See TracBrowser for help on using the repository browser.