From e4e27882e722a4e8fa50b3e514088624f5b6a32e Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Wed, 25 Mar 2015 23:52:54 +0100 Subject: [PATCH] old-configure: OpenBSD-specific changes Lua binaries' names and cdrom/dvd device names. --- old-configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/old-configure b/old-configure index 3773cfcc05..0b018d81d7 100755 --- a/old-configure +++ b/old-configure @@ -813,9 +813,11 @@ test_lua() { test_lua "lua >= 5.1.0 lua < 5.2.0" test_lua "lua5.1 >= 5.1.0" # debian +test_lua "lua51 >= 5.1.0" # OpenBSD test_lua "luajit >= 2.0.0" test_lua "lua >= 5.2.0" test_lua "lua5.2 >= 5.2.0" # debian +test_lua "lua52 >= 5.2.0" # OpenBSD test "$_lua" != yes && check_yes_no no LUA @@ -929,8 +931,13 @@ cat > $TMPC << EOF #define HAVE_DXVA2_HWACCEL 0 #define HAVE_FCHMOD 0 +#ifdef __OpenBSD__ +#define DEFAULT_CDROM_DEVICE "/dev/rcd0c" +#define DEFAULT_DVD_DEVICE "/dev/rcd0c" +#else #define DEFAULT_CDROM_DEVICE "/dev/cdrom" #define DEFAULT_DVD_DEVICE "/dev/dvd" +#endif #define PATH_DEV_DSP "/dev/dsp" #define PATH_DEV_MIXER "/dev/mixer"