2012-06-12 22:16:16 +02:00
check_switch_c C99 -std= gnu99 "Cannot find C99 compatible compiler."
2010-12-30 02:52:02 +01:00
2012-05-01 23:00:37 +02:00
check_switch_c NOUNUSED -Wno-unused-result
2012-06-12 22:16:16 +02:00
add_define_make NOUNUSED " $HAVE_NOUNUSED "
2013-03-16 12:24:53 +01:00
check_switch_c NOUNUSED_VARIABLE -Wno-unused-variable
add_define_make NOUNUSED_VARIABLE " $HAVE_NOUNUSED_VARIABLE "
2012-05-01 23:00:37 +02:00
2011-08-24 16:12:38 +02:00
# There are still broken 64-bit Linux distros out there. :)
2012-12-09 01:20:55 +02:00
[ -z " $CROSS_COMPILE " ] && [ -d /usr/lib64 ] && add_library_dirs /usr/lib64
2011-08-24 16:12:38 +02:00
2012-12-09 01:20:55 +02:00
[ -z " $CROSS_COMPILE " ] && [ -d /opt/local/lib ] && add_library_dirs /opt/local/lib
2011-09-02 16:12:34 +02:00
2014-08-28 13:41:12 -03:00
DYLIB = -ldl;
CLIB = -lc
PTHREADLIB = -lpthread
SOCKETLIB = -lc
2014-10-28 22:30:12 -02:00
SOCKETHEADER =
2014-08-28 13:41:12 -03:00
2012-12-22 23:52:05 +01:00
if [ " $OS " = 'BSD' ] ; then
DYLIB = -lc;
elif [ " $OS " = 'Haiku' ] ; then
2014-08-28 13:41:12 -03:00
DYLIB = ""
CLIB = -lroot
PTHREADLIB = -lroot
SOCKETLIB = -lnetwork
2014-08-29 16:35:56 -03:00
elif [ " $OS " = 'Win32' ] ; then
SOCKETLIB = -lws2_32
2014-10-28 22:30:12 -02:00
SOCKETHEADER = "#include <winsock2.h>"
2014-08-29 16:35:56 -03:00
DYLIB =
2012-12-22 23:52:05 +01:00
fi
add_define_make DYLIB_LIB " $DYLIB "
2012-10-11 21:00:16 +02:00
[ " $OS " = 'Darwin' ] && HAVE_X11 = no # X11 breaks on recent OSXes even if present.
2011-09-02 16:12:34 +02:00
2012-06-19 12:42:32 -04:00
[ -d /opt/vc/lib ] && add_library_dirs /opt/vc/lib
2014-07-24 21:24:34 +02:00
check_lib VIDEOCORE -lbcm_host bcm_host_init "-lvcos -lvchiq_arm"
2012-06-19 12:42:32 -04:00
2012-09-18 19:41:58 -04:00
if [ " $HAVE_VIDEOCORE " = 'yes' ] ; then
2012-06-19 12:42:32 -04:00
[ -d /opt/vc/include ] && add_include_dirs /opt/vc/include
[ -d /opt/vc/include/interface/vcos/pthreads ] && add_include_dirs /opt/vc/include/interface/vcos/pthreads
2013-01-26 11:53:30 +00:00
[ -d /opt/vc/include/interface/vmcs_host/linux ] && add_include_dirs /opt/vc/include/interface/vmcs_host/linux
2012-12-12 02:34:01 +02:00
HAVE_GLES = 'auto'
2014-07-24 21:24:34 +02:00
EXTRA_GL_LIBS = "-lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm"
2012-12-12 02:34:01 +02:00
fi
2013-07-13 04:07:38 +02:00
if [ " $HAVE_NEON " = "yes" ] ; then
2013-07-13 15:03:35 +02:00
CFLAGS = " $CFLAGS -mfpu=neon -marm "
CXXFLAGS = " $CXXFLAGS -mfpu=neon -marm "
2013-07-13 04:07:38 +02:00
ASFLAGS = " $ASFLAGS -mfpu=neon "
fi
2014-09-02 16:39:38 +02:00
if [ " $HAVE_7ZIP " = "yes" ] ; then
add_include_dirs ./decompress/7zip/
fi
2014-09-02 21:12:24 +01:00
if [ " $HAVE_PRESERVE_DYLIB " = "yes" ] ; then
2015-01-27 20:50:55 -03:00
echo "Notice: Disabling dlclose() of shared objects for Valgrind support."
2014-09-02 21:12:24 +01:00
add_define_make HAVE_PRESERVE_DYLIB "1"
fi
2013-07-13 03:48:02 +02:00
if [ " $HAVE_FLOATHARD " = "yes" ] ; then
CFLAGS = " $CFLAGS -mfloat-abi=hard "
2013-07-13 03:52:22 +02:00
CXXFLAGS = " $CXXFLAGS -mfloat-abi=hard "
ASFLAGS = " $ASFLAGS -mfloat-abi=hard "
2013-07-13 03:48:02 +02:00
fi
if [ " $HAVE_FLOATSOFTFP " = "yes" ] ; then
CFLAGS = " $CFLAGS -mfloat-abi=softfp "
2013-07-13 03:52:22 +02:00
CXXFLAGS = " $CXXFLAGS -mfloat-abi=softfp "
ASFLAGS = " $ASFLAGS -mfloat-abi=softfp "
2013-07-13 03:48:02 +02:00
fi
2013-07-13 04:07:38 +02:00
if [ " $HAVE_NEON " = "yes" ] ; then
2013-07-13 15:03:35 +02:00
CFLAGS = " $CFLAGS -mfpu=neon -marm "
CXXFLAGS = " $CXXFLAGS -mfpu=neon -marm "
2013-07-13 04:07:38 +02:00
ASFLAGS = " $ASFLAGS -mfpu=neon "
fi
2013-07-13 03:48:02 +02:00
if [ " $HAVE_FLOATHARD " = "yes" ] ; then
CFLAGS = " $CFLAGS -mfloat-abi=hard "
2013-07-13 03:52:22 +02:00
CXXFLAGS = " $CXXFLAGS -mfloat-abi=hard "
ASFLAGS = " $ASFLAGS -mfloat-abi=hard "
2013-07-13 03:48:02 +02:00
fi
if [ " $HAVE_FLOATSOFTFP " = "yes" ] ; then
CFLAGS = " $CFLAGS -mfloat-abi=softfp "
2013-07-13 03:52:22 +02:00
CXXFLAGS = " $CXXFLAGS -mfloat-abi=softfp "
ASFLAGS = " $ASFLAGS -mfloat-abi=softfp "
2013-07-13 03:48:02 +02:00
fi
2013-05-04 15:08:04 +02:00
if [ " $HAVE_SSE " = "yes" ] ; then
CFLAGS = " $CFLAGS -msse -msse2 "
CXXFLAGS = " $CXXFLAGS -msse -msse2 "
fi
2012-12-12 02:34:01 +02:00
if [ " $HAVE_EGL " != "no" ] ; then
2012-10-01 22:57:33 +02:00
check_pkgconf EGL egl
2012-12-12 02:34:01 +02:00
# some systems have EGL libs, but no pkgconfig
if [ " $HAVE_EGL " = "no" ] ; then
HAVE_EGL = auto && check_lib EGL " -lEGL $EXTRA_GL_LIBS "
[ " $HAVE_EGL " = "yes" ] && EGL_LIBS = -lEGL
2014-06-17 21:01:19 +02:00
else
2014-06-15 12:02:34 +02:00
EGL_LIBS = " $EGL_LIBS $EXTRA_GL_LIBS "
2014-06-17 21:01:19 +02:00
fi
2012-05-23 02:31:29 -04:00
fi
2013-11-24 17:28:21 +01:00
if [ " $HAVE_EXYNOS " != "no" ] ; then
check_pkgconf EXYNOS libdrm_exynos
check_pkgconf DRM libdrm
fi
2015-03-13 05:59:52 +01:00
if [ " $HAVE_DISPMANX " != "no" ] ; then
2015-03-15 16:20:03 +01:00
PKG_CONF_USED = " $PKG_CONF_USED DISPMANX "
2015-03-13 05:59:52 +01:00
fi
2012-06-12 22:16:16 +02:00
if [ " $LIBRETRO " ] ; then
2015-01-27 20:50:55 -03:00
echo "Notice: Explicit libretro used, disabling dynamic libretro loading ..."
2012-06-12 22:16:16 +02:00
HAVE_DYNAMIC = 'no'
else LIBRETRO = "-lretro"
2011-11-02 16:50:34 +01:00
fi
2012-06-12 22:16:16 +02:00
[ " $HAVE_DYNAMIC " = 'yes' ] || {
check_lib_cxx RETRO " $LIBRETRO " retro_init " $DYLIB " "Cannot find libretro."
add_define_make libretro " $LIBRETRO "
}
2010-12-30 02:52:02 +01:00
2012-12-02 10:59:48 +01:00
if [ " $MAN_DIR " ] ; then
add_define_make MAN_DIR " $MAN_DIR "
else
add_define_make MAN_DIR " ${ PREFIX } /share/man/man1 "
fi
2014-08-29 16:35:56 -03:00
if [ " $OS " = 'Win32' ] ; then
HAVE_THREADS = yes
HAVE_DYLIB = yes
else
check_lib THREADS " $PTHREADLIB " pthread_create
check_lib DYLIB " $DYLIB " dlopen
fi
2012-01-24 21:00:30 +01:00
2015-01-27 20:49:43 -03:00
check_lib NETWORKING " $SOCKETLIB " socket "" " $SOCKETHEADER "
2014-10-28 22:30:12 -02:00
2015-01-27 20:49:43 -03:00
if [ " $HAVE_NETWORKING " = 'yes' ] ; then
2012-01-24 21:00:30 +01:00
HAVE_GETADDRINFO = auto
2015-03-20 17:40:27 -03:00
HAVE_SOCKET_LEGACY = no
# WinXP+ implements getaddrinfo()
if [ " $OS " = 'Win32' ] ; then
HAVE_GETADDRINFO = yes
2012-01-24 21:00:30 +01:00
else
2015-03-20 17:40:27 -03:00
check_lib GETADDRINFO " $SOCKETLIB " getaddrinfo
if [ " $HAVE_GETADDRINFO " != 'yes' ] ; then
HAVE_SOCKET_LEGACY = yes
echo "Notice: RetroArch will use legacy socket support"
fi
2012-01-24 21:00:30 +01:00
fi
2015-03-20 17:40:27 -03:00
HAVE_NETWORK_CMD = yes
2015-02-02 16:58:00 -03:00
[ " $HAVE_NETPLAY " != 'no' ] && HAVE_NETPLAY = 'yes'
2012-05-27 14:23:30 +02:00
else
2015-01-27 20:50:55 -03:00
echo "Warning: All networking features have been disabled."
2012-06-12 22:16:16 +02:00
HAVE_NETWORK_CMD = 'no'
2015-01-27 20:29:47 -03:00
HAVE_NETPLAY = 'no'
2012-01-24 21:00:30 +01:00
fi
2014-08-28 13:41:12 -03:00
check_lib STDIN_CMD " $CLIB " fcntl
2012-07-24 02:47:28 +02:00
if [ " $HAVE_NETWORK_CMD " = "yes" ] || [ " $HAVE_STDIN_CMD " = "yes" ] ; then
HAVE_COMMAND = 'yes'
else
HAVE_COMMAND = 'no'
fi
2014-08-28 13:41:12 -03:00
check_lib GETOPT_LONG " $CLIB " getopt_long
2011-03-07 20:22:55 +01:00
2012-06-12 22:16:16 +02:00
if [ " $HAVE_DYLIB " = 'no' ] && [ " $HAVE_DYNAMIC " = 'yes' ] ; then
2015-01-27 20:50:55 -03:00
echo "Error: Dynamic loading of libretro is enabled, but your platform does not appear to have dlopen(), use --disable-dynamic or --with-libretro=\"-lretro\"" .
2011-11-02 16:50:34 +01:00
exit 1
fi
2011-06-25 17:15:58 +02:00
check_pkgconf ALSA alsa
2010-12-30 02:52:02 +01:00
check_header OSS sys/soundcard.h
2011-06-16 23:20:12 +02:00
check_header OSS_BSD soundcard.h
check_lib OSS_LIB -lossaudio
2012-10-11 21:00:16 +02:00
if [ " $OS " = 'Darwin' ] ; then
2011-02-04 07:42:26 -06:00
check_lib AL "-framework OpenAL" alcOpenDevice
2013-07-17 22:38:25 +02:00
HAVE_SDL = no
2011-02-04 07:42:26 -06:00
else
check_lib AL -lopenal alcOpenDevice
fi
2011-02-06 23:55:17 +01:00
check_pkgconf RSOUND rsound 1.1
2011-06-25 17:15:58 +02:00
check_pkgconf ROAR libroar
2011-03-13 18:09:27 +01:00
check_pkgconf JACK jack 0.120.1
2011-01-29 01:15:09 +01:00
check_pkgconf PULSE libpulse
2010-12-30 02:52:02 +01:00
2015-04-20 11:33:32 +02:00
if [ " $OS " = 'Darwin' ] ; then
2011-08-08 17:27:52 +02:00
check_lib COREAUDIO "-framework AudioUnit" AudioUnitInitialize
2015-04-20 00:13:02 +02:00
check_lib CORETEXT "-framework CoreText" CTFontCreateWithName
2015-04-20 00:38:55 +02:00
check_lib COCOA "-framework AppKit" NSApplicationMain
2015-04-20 11:33:32 +02:00
check_lib AVFOUNDATION "-framework AVFoundation"
2015-04-20 11:41:33 +02:00
check_lib CORELOCATION "-framework CoreLocation"
2015-04-20 12:04:31 +02:00
check_lib IOHIDMANAGER "-framework IOKit" IOHIDManagerCreate
2015-04-20 11:33:32 +02:00
fi
2015-04-20 00:38:55 +02:00
2012-09-28 23:34:19 +02:00
check_pkgconf SDL sdl 1.2.10
2014-08-11 06:56:44 +02:00
check_pkgconf SDL2 sdl2 2.0.0
2010-12-30 02:52:02 +01:00
2014-08-11 18:03:51 +02:00
if [ " $HAVE_SDL2 " = 'yes' ] ; then
if [ " $HAVE_SDL2 " = 'yes' ] && [ " $HAVE_SDL " = 'yes' ] ; then
2015-01-27 20:50:55 -03:00
echo "Notice: SDL drivers will be replaced by SDL2 ones."
2014-08-10 13:35:18 -03:00
HAVE_SDL = no
2014-08-11 18:03:51 +02:00
elif [ " $HAVE_SDL2 " = 'no' ] ; then
2015-01-27 20:50:55 -03:00
echo "Warning: SDL2 not found, skipping."
2014-08-10 13:35:18 -03:00
HAVE_SDL2 = no
fi
fi
2015-05-17 15:30:16 -07:00
check_pkgconf LIBUSB libusb-1.0 1.0.16
2015-04-07 06:34:49 +02:00
2014-08-29 16:35:56 -03:00
if [ " $OS " = 'Win32' ] ; then
check_lib DINPUT -ldinput8
check_lib D3D9 -ld3d9
check_lib DSOUND -ldsound
if [ " $HAVE_DINPUT " != 'no' ] ; then
2015-04-05 20:54:46 +02:00
HAVE_XINPUT = yes
2014-08-29 16:35:56 -03:00
fi
HAVE_XAUDIO = yes
2014-10-22 14:18:56 -03:00
else
HAVE_D3D9 = no
2014-08-29 16:35:56 -03:00
fi
2013-07-05 18:15:42 +02:00
if [ " $HAVE_OPENGL " != 'no' ] && [ " $HAVE_GLES " != 'yes' ] ; then
2012-10-14 15:54:48 +02:00
if [ " $OS " = 'Darwin' ] ; then
2015-06-17 11:58:30 -03:00
check_header OPENGL "OpenGL/gl.h"
check_lib OPENGL "-framework OpenGL"
2014-09-16 17:45:45 -03:00
elif [ " $OS " = 'Win32' ] ; then
2015-06-17 11:58:30 -03:00
check_header OPENGL "GL/gl.h"
check_lib OPENGL -lopengl32
2012-10-14 15:54:48 +02:00
else
2015-06-16 21:25:55 -03:00
check_header OPENGL "GL/gl.h"
2015-06-17 11:58:30 -03:00
check_lib OPENGL -lGL
2012-10-14 15:54:48 +02:00
fi
2014-09-16 18:00:12 -03:00
2015-06-17 11:58:30 -03:00
if [ " $HAVE_OPENGL " = 'yes' ] ; then
if [ " $OS " = 'Darwin' ] ; then
check_lib CG "-framework Cg" cgCreateContext
[ " $HAVE_CG " = 'yes' ] && CG_LIBS = '-framework Cg'
elif [ " $OS " = 'Win32' ] ; then
check_lib_cxx CG -lcg cgCreateContext
[ " $HAVE_CG " = 'yes' ] && CG_LIBS = '-lcg -lcgGL'
else
# On some distros, -lCg doesn't link against -lstdc++ it seems ...
check_lib_cxx CG -lCg cgCreateContext
[ " $HAVE_CG " = 'yes' ] && CG_LIBS = '-lCg -lCgGL'
fi
# fix undefined variables
PKG_CONF_USED = " $PKG_CONF_USED CG "
else
echo "Notice: Ignoring Cg. Desktop OpenGL is not enabled."
HAVE_CG = 'no'
fi
2011-11-01 18:24:43 +01:00
fi
2011-08-24 16:12:38 +02:00
2015-04-20 01:56:48 +02:00
if [ " $OS " = 'Darwin' ] ; then
2015-04-20 01:58:03 +02:00
check_lib ZLIB "-lz"
2015-04-20 01:56:48 +02:00
else
check_pkgconf ZLIB zlib
fi
2010-12-30 03:02:30 +01:00
2012-06-12 22:16:16 +02:00
if [ " $HAVE_THREADS " != 'no' ] ; then
if [ " $HAVE_FFMPEG " != 'no' ] ; then
2012-11-25 00:25:57 +01:00
check_pkgconf AVCODEC libavcodec 54
check_pkgconf AVFORMAT libavformat 54
2015-06-21 00:03:27 +02:00
check_pkgconf SWRESAMPLE libswresample
2012-11-25 00:25:57 +01:00
check_pkgconf AVUTIL libavutil 51
check_pkgconf SWSCALE libswscale 2.1
2014-04-01 00:09:18 +02:00
check_header AV_CHANNEL_LAYOUT libavutil/channel_layout.h
2015-04-19 10:46:42 -03:00
HAVE_FFMPEG = 'yes'
2015-06-21 00:03:27 +02:00
if [ " $HAVE_AVCODEC " = 'no' ] || [ " $HAVE_SWRESAMPLE " = 'no' ] || [ " $HAVE_AVFORMAT " = 'no' ] || [ " $HAVE_AVUTIL " = 'no' ] || [ " $HAVE_SWSCALE " = 'no' ] ; then
2015-04-19 10:46:42 -03:00
HAVE_FFMPEG = 'no'
echo "Notice: FFmpeg recording disabled due to missing or unsuitable packages."
fi
2011-11-30 17:46:58 +01:00
fi
else
2015-01-27 20:50:55 -03:00
echo "Notice: Not building with threading support. Will skip FFmpeg."
2012-06-12 22:16:16 +02:00
HAVE_FFMPEG = 'no'
2011-11-02 16:54:45 +01:00
fi
2014-08-29 16:35:56 -03:00
if [ " $OS " != 'Win32' ] ; then
check_lib DYNAMIC " $DYLIB " dlopen
fi
2010-12-30 13:54:49 +01:00
2012-09-25 01:26:22 +02:00
if [ " $HAVE_KMS " != "no" ] ; then
2012-10-13 21:44:25 +02:00
check_pkgconf GBM gbm 9.0
2012-09-25 12:58:45 +02:00
check_pkgconf DRM libdrm
2012-10-01 22:57:33 +02:00
if [ " $HAVE_GBM " = "yes" ] && [ " $HAVE_DRM " = "yes" ] && [ " $HAVE_EGL " = "yes" ] ; then
2012-09-16 21:39:40 +02:00
HAVE_KMS = yes
2012-09-25 01:26:22 +02:00
elif [ " $HAVE_KMS " = "yes" ] ; then
2015-01-27 20:50:55 -03:00
echo "Error: Cannot find libgbm, libdrm and EGL libraries required for KMS. Compile without --enable-kms."
2012-09-25 01:26:22 +02:00
exit 1
else
HAVE_KMS = no
2012-09-16 21:39:40 +02:00
fi
fi
2012-09-18 12:16:27 +02:00
2013-01-02 15:05:55 +01:00
check_pkgconf LIBXML2 libxml-2.0
2012-09-25 12:58:45 +02:00
2012-12-12 02:34:01 +02:00
if [ " $HAVE_EGL " = "yes" ] ; then
if [ " $HAVE_GLES " != "no" ] ; then
2013-12-13 17:54:28 +01:00
if [ " $GLES_LIBS " ] || [ " $GLES_CFLAGS " ] ; then
2015-01-27 20:50:55 -03:00
echo " Notice: Using custom OpenGLES CFLAGS ( $GLES_CFLAGS ) and LDFLAGS ( $GLES_LIBS ). "
2013-12-13 17:54:28 +01:00
add_define_make GLES_LIBS " $GLES_LIBS "
add_define_make GLES_CFLAGS " $GLES_CFLAGS "
else
HAVE_GLES = auto check_pkgconf GLES glesv2
[ " $HAVE_GLES " = "no" ] && HAVE_GLES = auto check_lib GLES " -lGLESv2 $EXTRA_GL_LIBS " && add_define_make GLES_LIBS " -lGLESv2 $EXTRA_GL_LIBS "
fi
2012-12-12 02:34:01 +02:00
fi
if [ " $HAVE_VG " != "no" ] ; then
check_pkgconf VG vg
if [ " $HAVE_VG " = "no" ] ; then
HAVE_VG = auto check_lib VG " -lOpenVG $EXTRA_GL_LIBS "
[ " $HAVE_VG " = "yes" ] && VG_LIBS = -lOpenVG
fi
fi
else
2012-10-01 22:57:33 +02:00
HAVE_VG = no
HAVE_GLES = no
2012-09-18 19:41:58 -04:00
fi
2012-09-16 21:39:40 +02:00
2013-11-10 16:05:21 +01:00
check_pkgconf V4L2 libv4l2
2013-05-18 14:29:42 +01:00
if [ " $OS " = 'Darwin' ] ; then
check_lib FBO "-framework OpenGL" glFramebufferTexture2D
2014-08-29 16:35:56 -03:00
elif [ " $OS " = 'Win32' ] ; then
HAVE_FBO = yes
2013-05-18 14:29:42 +01:00
else
if [ " $HAVE_GLES " = "yes" ] ; then
[ $HAVE_FBO != "no" ] && HAVE_FBO = yes
else
check_lib FBO -lGL glFramebufferTexture2D
fi
fi
2011-01-23 00:27:20 +01:00
check_pkgconf FREETYPE freetype2
2011-10-23 12:48:44 +02:00
check_pkgconf X11 x11
2015-10-11 09:50:01 +02:00
[ " $HAVE_X11 " = "no" ] && HAVE_XEXT = no && HAVE_XF86VM = no && HAVE_XINERAMA = no && HAVE_XSHM = no
2012-09-28 23:43:58 +02:00
2014-08-09 21:35:27 +02:00
check_pkgconf WAYLAND wayland-egl
2014-05-22 16:53:33 +02:00
check_pkgconf XKBCOMMON xkbcommon 0.3.2
2011-10-23 12:48:44 +02:00
check_pkgconf XEXT xext
2012-09-29 10:47:55 +02:00
check_pkgconf XF86VM xxf86vm
2012-10-12 19:05:29 +02:00
check_pkgconf XINERAMA xinerama
2012-09-29 10:47:55 +02:00
if [ " $HAVE_X11 " = 'yes' ] && [ " $HAVE_XEXT " = 'yes' ] && [ " $HAVE_XF86VM " = 'yes' ] ; then
2011-10-23 12:48:44 +02:00
check_pkgconf XVIDEO xv
else
2015-01-27 20:50:55 -03:00
echo "Notice: X11, Xext or xf86vm not present. Skipping X11 code paths."
2012-09-29 10:47:55 +02:00
HAVE_X11 = 'no'
2012-06-12 22:16:16 +02:00
HAVE_XVIDEO = 'no'
2011-10-23 12:48:44 +02:00
fi
2011-01-23 00:27:20 +01:00
2014-06-24 20:16:31 +02:00
if [ " $HAVE_UDEV " != "no" ] ; then
check_pkgconf UDEV libudev
if [ " $HAVE_UDEV " = "no" ] ; then
HAVE_UDEV = auto && check_lib UDEV "-ludev"
[ " $HAVE_UDEV " = "yes" ] && UDEV_LIBS = -ludev
fi
2014-06-05 14:21:17 +02:00
fi
2013-09-25 19:32:18 +02:00
2015-10-11 16:06:06 +02:00
check_header XSHM X11/Xlib.h X11/extensions/XShm.h
2015-10-11 09:50:01 +02:00
2014-10-04 22:04:38 +01:00
check_header PARPORT linux/parport.h
check_header PARPORT linux/ppdev.h
2015-09-05 14:14:10 +02:00
if [ " $OS " != 'Win32' ] ; then
check_lib STRL " $CLIB " strlcpy
fi
2014-08-28 13:41:12 -03:00
check_lib STRCASESTR " $CLIB " strcasestr
check_lib MMAP " $CLIB " mmap
2011-04-03 22:16:59 +02:00
2011-06-06 17:44:05 +02:00
check_pkgconf PYTHON python3
2015-10-02 02:15:23 +02:00
if [ " $HAVE_GLUI " != 'no' ] || [ " $HAVE_XMB " != 'no' ] || [ " $HAVE_ZARCH " != 'no' ] ; then
2015-06-26 11:55:06 -03:00
if [ " $HAVE_RGUI " = 'no' ] ; then
HAVE_GLUI = no
HAVE_XMB = no
2015-10-02 02:15:23 +02:00
HAVE_ZARCH = no
echo "Notice: RGUI not available, GLUI, XMB and ZARCH will be disabled."
2015-06-26 11:55:06 -03:00
elif [ " $HAVE_OPENGL " = 'no' ] && [ " $HAVE_GLES " = 'no' ] ; then
HAVE_GLUI = no
HAVE_XMB = no
2015-10-02 02:15:23 +02:00
HAVE_ZARCH = no
echo "Notice: GL/GLES not available, XMB, GLUI and ZARCH will be disabled."
2015-06-26 11:55:06 -03:00
fi
fi
2012-12-09 17:28:49 +02:00
check_macro NEON __ARM_NEON__
2012-06-12 22:16:16 +02:00
add_define_make OS " $OS "
2011-06-25 17:22:47 +02:00
2011-01-05 19:51:19 +01:00
# Creates config.mk and config.h.
2013-05-28 01:59:06 +02:00
add_define_make GLOBAL_CONFIG_DIR " $GLOBAL_CONFIG_DIR "
2015-10-11 16:29:07 +02:00
VARS = $( eval set | grep ^HAVE_ | sed s/= .*// | sed s/^HAVE_//)
2010-12-30 02:52:02 +01:00
create_config_make config.mk $VARS
2012-06-17 13:11:12 +02:00
create_config_header config.h $VARS