I tried adding two things to ./configure, which got me further, but still not enough:
~/libretro/libretro-super/RetroArch> ./configure --prefix=/boot/common/ --target=i586-pc-haiku
Quickbuild script
Package: retroarch
Version: 0.9.8-beta3
General environment variables:
CC: C compiler
CFLAGS: C compiler flags
CXX: C++ compiler
CXXFLAGS: C++ compiler flags
LDFLAGS: Linker flags
General options:
–prefix=$path: Install path prefix
–host=HOST: cross-compile to build programs to run on HOST
–help: Show this help
Custom options:
–disable-dynamic: Disable dynamic loading of libretro library
–enable-sdl: SDL support
–disable-sdl
–with-libretro: libretro library used
–with-man_dir: Manpage install directory
–enable-threads: Threading support
–disable-threads
–enable-ffmpeg: Enable FFmpeg recording support
–disable-ffmpeg
–enable-dylib: Enable dynamic loading support
–disable-dylib
–enable-netplay: Enable netplay support
–disable-netplay
–disable-configfile: Disable support for config file
–disable-opengl: Disable OpenGL support
–enable-gles: Use GLESv2 instead of desktop GL
–enable-x11: Disable everything X11.
–disable-x11
–enable-xinerama: Disable Xinerama support.
–disable-xinerama
–enable-kms: Enable KMS context support
–disable-kms
–enable-egl: Enable EGL context support
–disable-egl
–enable-vg: Enable OpenVG support
–disable-vg
–enable-cg: Enable Cg shader support
–disable-cg
–enable-xml: Enable bSNES-style XML shader support
–disable-xml
–enable-fbo: Enable render-to-texture (FBO) support
–disable-fbo
–enable-alsa: Enable ALSA support
–disable-alsa
–enable-oss: Enable OSS support
–disable-oss
–enable-rsound: Enable RSound support
–disable-rsound
–enable-roar: Enable RoarAudio support
–disable-roar
–enable-al: Enable OpenAL support
–disable-al
–enable-jack: Enable JACK support
–disable-jack
–enable-coreaudio: Enable CoreAudio support
–disable-coreaudio
–enable-pulse: Enable PulseAudio support
–disable-pulse
–enable-freetype: Enable FreeType support
–disable-freetype
–enable-xvideo: Enable XVideo support
–disable-xvideo
–enable-sdl_image: Enable SDL_image support
–disable-sdl_image
–enable-libpng: Enable libpng support
–disable-libpng
–enable-python: Enable Python 3 support for shaders
–disable-python
–disable-sinc: Disable SINC resampler
–disable-bsv_movie: Disable BSV movie support
~/libretro/libretro-super/RetroArch> make
Makefile:1: config.mk: No such file or directory
config.mk is outdated or non-existing. Run ./configure again.
make: *** [config.mk] Error 1