diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -124,6 +124,7 @@ _zlib=auto _mpeg2=no _fluidsynth=auto _16bit=auto +_opengl=auto _readline=auto # Default option behaviour yes/no _debug_build=auto @@ -695,6 +696,7 @@ Optional Features: --default-dynamic make plugins dynamic by default --disable-mt32emu don't enable the integrated MT-32 emulator --disable-16bit don't enable 16bit color support + --disable-opengl don't enable OpenGL (ES) --disable-scalers exclude scalers --disable-hq-scalers exclude HQ2x and HQ3x scalers --disable-translation don't build support for translated messages @@ -724,6 +726,9 @@ Optional Libraries: --with-mpeg2-prefix=DIR Prefix where libmpeg2 is installed (optional) --enable-mpeg2 enable mpeg2 codec for cutscenes [no] + --with-opengl-prefix=DIR Prefix where OpenGL (ES) is installed (optional) + --disable-opengl disable OpenGL (ES) support [autodetect] + --disable-indeo3 disable Indeo3 decoder [autodetect] --with-fluidsynth-prefix=DIR Prefix where libfluidsynth is installed (optional) @@ -779,6 +784,8 @@ for ac_option in $@; do --disable-fluidsynth) _fluidsynth=no ;; --enable-readline) _readline=yes ;; --disable-readline) _readline=no ;; + --enable-opengl) _opengl=yes ;; + --disable-opengl) _opengl=no ;; --enable-verbose-build) _verbose_build=yes ;; --enable-plugins) _dynamic_modules=yes ;; --default-dynamic) _plugins_default=dynamic ;; @@ -842,6 +849,11 @@ for ac_option in $@; do READLINE_CFLAGS="-I$arg/include" READLINE_LIBS="-L$arg/lib" ;; + --with-opengl-prefix=*) + arg=`echo $ac_option | cut -d '=' -f 2` + OPENGL_CFLAGS="-I$arg/include" + OPENGL_LIBS="-L$arg/lib" + ;; --backend=*) _backend=`echo $ac_option | cut -d '=' -f 2` ;; @@ -1368,7 +1380,10 @@ case $_host_os in ;; darwin*) DEFINES="$DEFINES -DMACOSX" + CXXFLAGS="$CXXFLAGS" LIBS="$LIBS -framework AudioUnit -framework AudioToolbox -framework Carbon -framework CoreMIDI" + OPENGL_CFLAGS="-I/System/Library/Frameworks/OpenGL.framework/Headers" + OPENGL_LIBS="-framework OpenGL" add_line_to_config_mk 'MACOSX = 1' _unix=yes ;; @@ -1469,6 +1484,14 @@ case $_host_os in ;; esac +# HACK: On non-OSX systems, add the GL library +case $_host_os in + *darwin*) + ;; + *) + OPENGL_LIBS="$OPENGL_LIBS -lGL" +esac + if test -n "$_host"; then # Cross-compiling mode - add your target here if needed echo "Cross-compiling to $_host" @@ -2278,6 +2301,28 @@ define_in_config_h_if_yes "$_readline" 'USE_READLINE' define_in_config_h_if_yes "$_text_console" 'USE_TEXT_CONSOLE' # +# Check for OpenGL (ES) +# +echocheck "OpenGL (ES)" +if test "$_opengl" = auto ; then +# TODO: This is just a quick hack until actual detection is added, which +# will be a pain because of the various directories that OpenGL can have +# its headers in. Maybe we should force the platforms to automatically +# include the directory that includes gl.h? + _opengl=yes +fi +if test "$_opengl" = yes ; then + _def_opengl='#define USE_OPENGL' + LIBS="$LIBS $OPENGL_LIBS" + INCLUDES="$INCLUDES $OPENGL_CFLAGS" + DEFINES="$DEFINES -DUSE_OPENGL" +else + _def_opengl='#undef USE_OPENGL' +fi + +echo "$_opengl" + +# # Check for nasm # if test "$_have_x86" = yes ; then @@ -2773,3 +2818,4 @@ include \$(srcdir)/Makefile EOF fi + |