comparison configure @ 5872:02576893af2a

OpenBSD, NetBSD portability patches by Bj«Órn Sandell <biorn@dce.chalmers.se> Marcus <core@antbear.org> Bernd Ernesti <mplayer@lists.veego.de>
author arpi
date Sat, 27 Apr 2002 22:42:27 +0000
parents e03dc14d3f2f
children a04a7dc31ebb
comparison
equal deleted inserted replaced
5871:c03422eaaadf 5872:02576893af2a
262 --with-extraincdir=*) 262 --with-extraincdir=*)
263 _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` 263 _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
264 ;; 264 ;;
265 --with-extralibdir=*) 265 --with-extralibdir=*)
266 _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` 266 _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
267 # _ld_extra="${_ld_extra} -Wl,-R"`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -Wl\,-R,g'`" -L"`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
267 ;; 268 ;;
268 --enable-runtime-cpudetection) 269 --enable-runtime-cpudetection)
269 _runtime_cpudetection=yes 270 _runtime_cpudetection=yes
270 ;; 271 ;;
271 --disable-runtime-cpudetection) 272 --disable-runtime-cpudetection)
1525 EOF 1526 EOF
1526 _sys_soundcard=no 1527 _sys_soundcard=no
1527 cc_check && _sys_soundcard=yes 1528 cc_check && _sys_soundcard=yes
1528 if test "$_sys_soundcard" = yes ; then 1529 if test "$_sys_soundcard" = yes ; then
1529 _def_sys_soundcard='#define HAVE_SYS_SOUNDCARD_H 1' 1530 _def_sys_soundcard='#define HAVE_SYS_SOUNDCARD_H 1'
1531 _inc_soundcard='#include <sys/soundcard.h>'
1530 else 1532 else
1531 _def_sys_soundcard='#undef HAVE_SYS_SOUNDCARD_H' 1533 _def_sys_soundcard='#undef HAVE_SYS_SOUNDCARD_H'
1532 fi 1534 fi
1533 echores "$_sys_soundcard" 1535 echores "$_sys_soundcard"
1534 1536
1537 if test "$_sys_soundcard" != yes ; then
1538 echocheck "soundcard.h"
1539 cat > $TMPC << EOF
1540 #include <soundcard.h>
1541 int main(void) { return 0; }
1542 EOF
1543 _soundcard=no
1544 cc_check && _soundcard=yes
1545 if test "$_soundcard" = yes ; then
1546 _def_soundcard='#define HAVE_SOUNDCARD_H 1'
1547 _inc_soundcard='#include <soundcard.h>'
1548 else
1549 _def_soundcard='#undef HAVE_SOUNDCARD_H'
1550 fi
1551 echores "$_soundcard"
1552 fi
1535 1553
1536 echocheck "sys/dvdio.h" 1554 echocheck "sys/dvdio.h"
1537 cat > $TMPC << EOF 1555 cat > $TMPC << EOF
1538 #include <unistd.h> 1556 #include <unistd.h>
1539 #include <sys/dvdio.h> 1557 #include <sys/dvdio.h>
2432 2450
2433 2451
2434 echocheck "OSS Audio" 2452 echocheck "OSS Audio"
2435 if test "$_ossaudio" = auto ; then 2453 if test "$_ossaudio" = auto ; then
2436 cat > $TMPC << EOF 2454 cat > $TMPC << EOF
2437 #include <sys/soundcard.h> 2455 $_inc_soundcard
2438 int main(void) { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; } 2456 int main(void) { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; }
2439 EOF 2457 EOF
2440 _ossaudio=no 2458 _ossaudio=no
2441 cc_check && _ossaudio=yes 2459 cc_check && _ossaudio=yes
2442 fi 2460 fi
2446 _aomodules="oss $_aomodules" 2464 _aomodules="oss $_aomodules"
2447 if test "$_linux_devfs" = yes; then 2465 if test "$_linux_devfs" = yes; then
2448 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"' 2466 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"'
2449 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"' 2467 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"'
2450 else 2468 else
2451 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' 2469 if netbsd || openbsd ; then
2470 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"'
2471 else
2472 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
2473 fi
2452 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' 2474 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"'
2453 fi 2475 fi
2454 else 2476 else
2455 _def_ossaudio='#undef USE_OSS_AUDIO' 2477 _def_ossaudio='#undef USE_OSS_AUDIO'
2456 _def_ossaudio_devdsp='#define PATH_DEV_DSP ""' 2478 _def_ossaudio_devdsp='#define PATH_DEV_DSP ""'
2573 fi 2595 fi
2574 echores "$_sgiaudio" 2596 echores "$_sgiaudio"
2575 2597
2576 2598
2577 echocheck "VCD support" 2599 echocheck "VCD support"
2578 if linux || bsdos || freebsd || sunos ; then 2600 if linux || bsdos || freebsd || netbsd || sunos ; then
2579 _inputmodules="vcd $_inputmodules" 2601 _inputmodules="vcd $_inputmodules"
2580 _def_vcd='#define HAVE_VCD 1' 2602 _def_vcd='#define HAVE_VCD 1'
2581 echores "ok" 2603 echores "ok"
2582 else 2604 else
2583 _def_vcd='#undef HAVE_VCD' 2605 _def_vcd='#undef HAVE_VCD'
3252 if test "$_tv_bsdbt848" = auto ; then 3274 if test "$_tv_bsdbt848" = auto ; then
3253 _tv_bsdbt848=no 3275 _tv_bsdbt848=no
3254 if test "$_tv" = yes ; then 3276 if test "$_tv" = yes ; then
3255 cat > $TMPC <<EOF 3277 cat > $TMPC <<EOF
3256 #include <sys/types.h> 3278 #include <sys/types.h>
3279 #ifdef __NetBSD__
3280 #include <dev/ic/bt8xx.h>
3281 #else
3257 #include <machine/ioctl_bt848.h> 3282 #include <machine/ioctl_bt848.h>
3283 #endif
3258 int main(void) { return 0; } 3284 int main(void) { return 0; }
3259 EOF 3285 EOF
3260 cc_check && _tv_bsdbt848=yes 3286 cc_check && _tv_bsdbt848=yes
3261 fi 3287 fi
3262 fi 3288 fi
3480 bsd && _ld_dl_dynamic='-rdynamic' 3506 bsd && _ld_dl_dynamic='-rdynamic'
3481 test "$_xanim" = yes && _ld_dl_dynamic='-rdynamic' 3507 test "$_xanim" = yes && _ld_dl_dynamic='-rdynamic'
3482 3508
3483 _ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic" 3509 _ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic"
3484 bsdos && _ld_arch="$_ld_arch -ldvd" 3510 bsdos && _ld_arch="$_ld_arch -ldvd"
3511 netbsd && _ld_arch="$_ld_arch -li386 -lossaudio"
3485 3512
3486 _def_debug='#undef MP_DEBUG' 3513 _def_debug='#undef MP_DEBUG'
3487 test "$_debug" && _def_debug='#define MP_DEBUG 1' 3514 test "$_debug" && _def_debug='#define MP_DEBUG 1'
3488 3515
3489 _def_linux='#undef TARGET_LINUX' 3516 _def_linux='#undef TARGET_LINUX'
3753 /* set up audio OUTBURST. Do not change this! */ 3780 /* set up audio OUTBURST. Do not change this! */
3754 #define OUTBURST 512 3781 #define OUTBURST 512
3755 3782
3756 /* Define this if your system has the header file for the OSS sound interface */ 3783 /* Define this if your system has the header file for the OSS sound interface */
3757 $_def_sys_soundcard 3784 $_def_sys_soundcard
3785
3786 /* Define this if you system has the header file for the OSS sound interface
3787 * in /usr/include */
3788 $_def_soundcard
3758 3789
3759 /* Define this if your system uses ftello() for off_t seeking */ 3790 /* Define this if your system uses ftello() for off_t seeking */
3760 3791
3761 $_def_ftello 3792 $_def_ftello
3762 #ifndef HAVE_FTELLO 3793 #ifndef HAVE_FTELLO