Alien-SDL

 view release on metacpan or  search on metacpan

patches/SDL-1.2.14-configure  view on Meta::CPAN

EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_shared
enable_static
with_pic
enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
enable_libc
enable_audio
enable_video
enable_events
enable_joystick
enable_cdrom
enable_threads
enable_timers
enable_file
enable_loadso
enable_cpuinfo
enable_assembly
enable_oss
enable_alsa
enable_alsa_shared
enable_esd
with_esd_prefix
with_esd_exec_prefix
enable_esdtest
enable_esd_shared
enable_pulseaudio
enable_pulseaudio_shared
enable_arts
enable_arts_shared
enable_nas
enable_nas_shared
enable_diskaudio
enable_dummyaudio
enable_mintaudio
enable_nasm
enable_altivec
enable_ipod
enable_video_nanox
enable_nanox_debug
enable_nanox_share_memory
enable_nanox_direct_fb
enable_video_x11
with_x
enable_x11_shared
enable_dga
enable_video_dga
enable_video_x11_dgamouse
enable_video_x11_vm
enable_video_x11_xv
enable_video_x11_xinerama
enable_video_x11_xme
enable_video_x11_xrandr
enable_video_photon
enable_video_carbon
enable_video_cocoa
enable_video_fbcon
enable_video_directfb
enable_video_ps2gs
enable_video_ps3
enable_video_ggi
enable_video_svga
enable_video_vgl
enable_video_wscons
enable_video_aalib
enable_video_caca
enable_video_qtopia
enable_video_picogui
enable_xbios
enable_gem
enable_video_dummy
enable_video_opengl
enable_osmesa_shared
enable_screensaver
enable_input_events
enable_input_tslib
enable_pth
enable_pthreads
enable_pthread_sem
enable_stdio_redirect
enable_directx
enable_sdl_dlopen
enable_atari_ldg
enable_clock_gettime
enable_rpath
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
CXXCPP
XMKMF'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'

patches/SDL-1.2.14-configure  view on Meta::CPAN

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then

  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-libc           Use the system C library [[default=yes]]
  --enable-audio          Enable the audio subsystem [[default=yes]]
  --enable-video          Enable the video subsystem [[default=yes]]
  --enable-events         Enable the events subsystem [[default=yes]]
  --enable-joystick       Enable the joystick subsystem [[default=yes]]
  --enable-cdrom          Enable the cdrom subsystem [[default=yes]]
  --enable-threads        Enable the threading subsystem [[default=yes]]
  --enable-timers         Enable the timer subsystem [[default=yes]]
  --enable-file           Enable the file subsystem [[default=yes]]
  --enable-loadso         Enable the shared object loading subsystem
                          [[default=yes]]
  --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
  --enable-assembly       Enable assembly routines [[default=yes]]
  --enable-oss            support the OSS audio API [[default=yes]]
  --enable-alsa           support the ALSA audio API [[default=yes]]
  --enable-alsa-shared    dynamically load ALSA audio support [[default=yes]]
  --enable-esd            support the Enlightened Sound Daemon [[default=yes]]
  --disable-esdtest       Do not try to compile and run a test ESD program
  --enable-esd-shared     dynamically load ESD audio support [[default=yes]]
  --enable-pulseaudio     use PulseAudio [[default=yes]]
  --enable-pulseaudio-shared
                          dynamically load PulseAudio support [[default=yes]]
  --enable-arts           support the Analog Real Time Synthesizer
                          [[default=yes]]
  --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
  --enable-nas            support the NAS audio API [[default=yes]]
  --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  --enable-dummyaudio     support the dummy audio driver [[default=yes]]
  --enable-mintaudio      support Atari audio driver [[default=yes]]
  --enable-nasm           use nasm assembly blitters on x86 [[default=yes]]
  --enable-altivec        use altivec assembly blitters on PPC [[default=yes]]
  --enable-ipod           configure SDL to work with iPodLinux [[default=no]]
  --enable-video-nanox    use nanox video driver [[default=no]]
  --enable-nanox-debug    print debug messages [[default=no]]
  --enable-nanox-share-memory
                          use share memory [[default=no]]
  --enable-nanox-direct-fb
                          use direct framebuffer access [[default=no]]
  --enable-video-x11      use X11 video driver [[default=yes]]
  --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  --enable-dga            allow use of X11 DGA code [[default=yes]]
  --enable-video-dga      use DGA 2.0 video driver [[default=yes]]
  --enable-video-x11-dgamouse
                          use X11 DGA for mouse events [[default=yes]]
  --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
  --enable-video-x11-xv   use X11 XvImage extension for video [[default=yes]]
  --enable-video-x11-xinerama
                          enable X11 Xinerama support [[default=yes]]
  --enable-video-x11-xme  enable Xi Graphics XME for fullscreen
                          [[default=yes]]
  --enable-video-x11-xrandr
                          enable X11 Xrandr extension for fullscreen
                          [[default=yes]]
  --enable-video-photon   use QNX Photon video driver [[default=yes]]
  --enable-video-carbon   use Carbon/QuickDraw video driver [[default=no]]
  --enable-video-cocoa    use Cocoa/Quartz video driver [[default=yes]]
  --enable-video-fbcon    use framebuffer console video driver [[default=yes]]
  --enable-video-directfb use DirectFB video driver [[default=yes]]
  --enable-video-ps2gs    use PlayStation 2 GS video driver [[default=yes]]
  --enable-video-ps3      use PlayStation 3 Cell driver [[default=yes]]
  --enable-video-ggi      use GGI video driver [[default=no]]
  --enable-video-svga     use SVGAlib video driver [[default=yes]]
  --enable-video-vgl      use VGL video driver [[default=yes]]
  --enable-video-wscons   use wscons video driver [[default=yes]]
  --enable-video-aalib    use AAlib video driver [[default=no]]
  --enable-video-caca     use libcaca video driver [[default=no]]
  --enable-video-qtopia   use Qtopia video driver [[default=no]]
  --enable-video-picogui  use PicoGUI video driver [[default=no]]
  --enable-video-xbios    use Atari Xbios video driver [[default=yes]]
  --enable-video-gem      use Atari Gem video driver [[default=yes]]
  --enable-video-dummy    use dummy video driver [[default=yes]]
  --enable-video-opengl   include OpenGL context creation [[default=yes]]
  --enable-osmesa-shared  dynamically load OSMesa OpenGL support
                          [[default=yes]]
  --enable-screensaver    enable screensaver by default while any SDL
                          application is running [[default=no]]
  --enable-input-events   use Linux 2.4 unified input interface
                          [[default=yes]]
  --enable-input-tslib    use the Touchscreen library for input
                          [[default=yes]]
  --enable-pth            use GNU pth library for multi-threading
                          [[default=yes]]
  --enable-pthreads       use POSIX threads for multi-threading
                          [[default=yes]]
  --enable-pthread-sem    use pthread semaphores [[default=yes]]
  --enable-stdio-redirect Redirect STDIO to files on Win32 [[default=yes]]
  --enable-directx        use DirectX for Win32 audio/video [[default=yes]]
  --enable-sdl-dlopen     use dlopen for shared object loading [[default=yes]]
  --enable-atari-ldg      use Atari LDG for shared object loading
                          [[default=yes]]
  --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
                          UNIX [[default=no]]
  --enable-rpath          use an rpath when linking SDL [[default=yes]]

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  --with-x                use the X Window System

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  XMKMF       Path to xmkmf, Makefile generator for X Window System

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;

patches/SDL-1.2.14-configure  view on Meta::CPAN

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes

  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac

patches/SDL-1.2.14-configure  view on Meta::CPAN

        $as_echo "#define uint8_t unsigned char" >>confdefs.h

    fi
    if test x$ac_cv_sizeof_short = x2; then
        $as_echo "#define int16_t signed short" >>confdefs.h

        $as_echo "#define uint16_t unsigned short" >>confdefs.h

    else
        if test x$ac_cv_sizeof_int = x2; then
            $as_echo "#define int16_t signed int" >>confdefs.h

            $as_echo "#define uint16_t unsigned int" >>confdefs.h

        fi
    fi
    if test x$ac_cv_sizeof_int = x4; then
        $as_echo "#define int32_t signed int" >>confdefs.h

        $as_echo "#define uint32_t unsigned int" >>confdefs.h

    else
        if test x$ac_cv_sizeof_long = x4; then
            $as_echo "#define int32_t signed long" >>confdefs.h

            $as_echo "#define uint32_t unsigned long" >>confdefs.h

        fi
    fi
    if test x$ac_cv_sizeof_long = x8; then
        $as_echo "#define int64_t signed long" >>confdefs.h

        $as_echo "#define uint64_t unsigned long" >>confdefs.h

        $as_echo "#define SDL_HAS_64BIT_TYPE 1" >>confdefs.h

    else
        if test x$ac_cv_sizeof_long_long = x8; then
            $as_echo "#define int64_t signed long long" >>confdefs.h

            $as_echo "#define uint64_t unsigned long long" >>confdefs.h

            $as_echo "#define SDL_HAS_64BIT_TYPE 1" >>confdefs.h

        fi
    fi
    $as_echo "#define size_t unsigned int" >>confdefs.h

    $as_echo "#define uintptr_t unsigned long" >>confdefs.h

fi

# Standard C sources
SOURCES="$SOURCES $srcdir/src/*.c"
SOURCES="$SOURCES $srcdir/src/audio/*.c"
SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
SOURCES="$SOURCES $srcdir/src/events/*.c"
SOURCES="$SOURCES $srcdir/src/file/*.c"
SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
SOURCES="$SOURCES $srcdir/src/thread/*.c"
SOURCES="$SOURCES $srcdir/src/timer/*.c"
SOURCES="$SOURCES $srcdir/src/video/*.c"


# Check whether --enable-audio was given.
if test "${enable_audio+set}" = set; then :
  enableval=$enable_audio;
else
  enable_audio=yes
fi

if test x$enable_audio != xyes; then
    $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-video was given.
if test "${enable_video+set}" = set; then :
  enableval=$enable_video;
else
  enable_video=yes
fi

if test x$enable_video != xyes; then
    $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-events was given.
if test "${enable_events+set}" = set; then :
  enableval=$enable_events;
else
  enable_events=yes
fi

if test x$enable_events != xyes; then
    $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-joystick was given.
if test "${enable_joystick+set}" = set; then :
  enableval=$enable_joystick;
else
  enable_joystick=yes
fi

if test x$enable_joystick != xyes; then
    $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h

else
    SOURCES="$SOURCES $srcdir/src/joystick/*.c"
fi
# Check whether --enable-cdrom was given.
if test "${enable_cdrom+set}" = set; then :
  enableval=$enable_cdrom;
else
  enable_cdrom=yes
fi

if test x$enable_cdrom != xyes; then
    $as_echo "#define SDL_CDROM_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-threads was given.
if test "${enable_threads+set}" = set; then :
  enableval=$enable_threads;
else
  enable_threads=yes
fi

if test x$enable_threads != xyes; then
    $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-timers was given.
if test "${enable_timers+set}" = set; then :
  enableval=$enable_timers;
else
  enable_timers=yes
fi

if test x$enable_timers != xyes; then
    $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-file was given.
if test "${enable_file+set}" = set; then :
  enableval=$enable_file;
else
  enable_file=yes
fi

if test x$enable_file != xyes; then
    $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-loadso was given.
if test "${enable_loadso+set}" = set; then :
  enableval=$enable_loadso;
else
  enable_loadso=yes
fi

if test x$enable_loadso != xyes; then
    $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-cpuinfo was given.
if test "${enable_cpuinfo+set}" = set; then :
  enableval=$enable_cpuinfo;
else
  enable_cpuinfo=yes
fi

if test x$enable_cpuinfo != xyes; then
    $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h

fi
# Check whether --enable-assembly was given.
if test "${enable_assembly+set}" = set; then :
  enableval=$enable_assembly;
else
  enable_assembly=yes
fi

if test x$enable_assembly = xyes; then
    $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h

fi

CheckOSS()

patches/SDL-1.2.14-configure  view on Meta::CPAN

$as_echo "$use_input_events" >&6; }
        if test x$use_input_events = xyes; then
            $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h

        fi
    fi
}

CheckTslib()
{
    # Check whether --enable-input-tslib was given.
if test "${enable_input_tslib+set}" = set; then :
  enableval=$enable_input_tslib;
else
  enable_input_tslib=yes
fi

    if test x$enable_input_tslib = xyes; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
$as_echo_n "checking for Touchscreen library support... " >&6; }
        enable_input_tslib=no
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          #include "tslib.h"

int
main ()
{


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

        enable_input_tslib=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
$as_echo "$enable_input_tslib" >&6; }
        if test x$enable_input_tslib = xyes; then
            $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h

            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
        fi
    fi
}

CheckPTH()
{
        # Check whether --enable-pth was given.
if test "${enable_pth+set}" = set; then :
  enableval=$enable_pth;
else
  enable_pth=yes
fi

    if test x$enable_threads = xyes -a x$enable_pth = xyes; then
        # Extract the first word of "pth-config", so it can be a program name with args.
set dummy pth-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PTH_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PTH_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
  ;;
esac
fi
PTH_CONFIG=$ac_cv_path_PTH_CONFIG
if test -n "$PTH_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
$as_echo "$PTH_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


        if test "$PTH_CONFIG" = "no"; then
            use_pth=no
        else
            use_pth=yes
        fi
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pth" >&5
$as_echo_n "checking pth... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pth" >&5
$as_echo "$use_pth" >&6; }
        if test "x$use_pth" = xyes; then
            $as_echo "#define SDL_THREAD_PTH 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
            SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
            SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`"
            have_threads=yes
        fi
    fi
}

CheckPTHREAD()
{
        # Check whether --enable-pthreads was given.
if test "${enable_pthreads+set}" = set; then :
  enableval=$enable_pthreads;
else
  enable_pthreads=yes
fi

        # Check whether --enable-pthread-sem was given.
if test "${enable_pthread_sem+set}" = set; then :
  enableval=$enable_pthread_sem;
else
  enable_pthread_sem=yes
fi

    case "$host" in
        *-*-linux*|*-*-uclinux*)
            pthread_cflags="-D_REENTRANT"
            pthread_lib="-lpthread"
            ;;
        *-*-bsdi*)
            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
            pthread_lib=""
            ;;
        *-*-darwin*)
            pthread_cflags="-D_THREAD_SAFE"
# causes Carbon.p complaints?
#            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
            ;;
        *-*-freebsd*|*-*-dragonfly*)
            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
            pthread_lib="-pthread"
            ;;
        *-*-netbsd*)
            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
            pthread_lib="-lpthread"
            ;;
        *-*-openbsd*)
            pthread_cflags="-D_REENTRANT"
            pthread_lib="-pthread"
            ;;
        *-*-solaris*)
            pthread_cflags="-D_REENTRANT"
            pthread_lib="-lpthread -lposix4"
            ;;
        *-*-sysv5*)
            pthread_cflags="-D_REENTRANT -Kthread"
            pthread_lib=""
            ;;
        *-*-irix*)
            pthread_cflags="-D_SGI_MP_SOURCE"
            pthread_lib="-lpthread"
            ;;
        *-*-aix*)
            pthread_cflags="-D_REENTRANT -mthreads"
            pthread_lib="-lpthread"
            ;;
        *-*-hpux11*)
            pthread_cflags="-D_REENTRANT"
            pthread_lib="-L/usr/lib -lpthread"
            ;;
        *-*-qnx*)
            pthread_cflags=""
            pthread_lib=""
            ;;
        *-*-osf*)
            pthread_cflags="-D_REENTRANT"
            if test x$ac_cv_c_compiler_gnu = xyes; then
                pthread_lib="-lpthread -lrt"
            else
                pthread_lib="-lpthread -lexc -lrt"
            fi
            ;;
        *)
            pthread_cflags="-D_REENTRANT"
            pthread_lib="-lpthread"
            ;;
    esac
    if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then
        # Save the original compiler flags and libraries
        ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
        # Add the pthread compiler flags and libraries
        CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
        # Check to see if we have pthread support on this system
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
$as_echo_n "checking for pthreads... " >&6; }
        use_pthreads=no
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         #include <pthread.h>

int
main ()
{

         pthread_attr_t type;
         pthread_attr_init(&type);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        use_pthreads=yes

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
$as_echo "$use_pthreads" >&6; }
        # Restore the compiler flags and libraries
        CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"

        # Do futher testing if we have pthread support...
        if test x$use_pthreads = xyes; then
            $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h

            EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
            SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
            SDL_LIBS="$SDL_LIBS $pthread_lib"

            # Save the original compiler flags and libraries
            ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
            # Add the pthread compiler flags and libraries
            CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"

            # Check to see if recursive mutexes are available
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
$as_echo_n "checking for recursive mutexes... " >&6; }
            has_recursive_mutexes=no
            if test x$has_recursive_mutexes = xno; then
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                  #include <pthread.h>

int
main ()
{

                  pthread_mutexattr_t attr;
                  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                has_recursive_mutexes=yes
                $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            fi
            if test x$has_recursive_mutexes = xno; then
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                  #include <pthread.h>

int
main ()
{

                  pthread_mutexattr_t attr;
                  pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                has_recursive_mutexes=yes
                $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            fi
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
$as_echo "$has_recursive_mutexes" >&6; }

            # Check to see if pthread semaphore support is missing
            if test x$enable_pthread_sem = xyes; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
$as_echo_n "checking for pthread semaphores... " >&6; }
                have_pthread_sem=no
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                  #include <pthread.h>
                  #include <semaphore.h>

int
main ()
{


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                have_pthread_sem=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
$as_echo "$have_pthread_sem" >&6; }
            fi

            # Restore the compiler flags and libraries
            CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"

            # Basic thread creation functions
            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"

            # Semaphores
            # We can fake these with mutexes and condition variables if necessary
            if test x$have_pthread_sem = xyes; then
                SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
            else
                SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
            fi

            # Mutexes
            # We can fake these with semaphores if necessary
            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"

            # Condition variables
            # We can fake these with semaphores and mutexes if necessary
            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"

            have_threads=yes
        else
            CheckPTH
        fi
    fi
}

CheckWIN32()
{
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Win32 compiler" >&5
$as_echo_n "checking Win32 compiler... " >&6; }
    have_win32_gcc=no
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

     #include <windows.h>

int
main ()
{


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

    have_win32_gcc=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
$as_echo "$have_win32_gcc" >&6; }
    if test x$have_win32_gcc != xyes; then
       as_fn_error $? "
*** Your compiler ($CC) does not produce Win32 executables!
       " "$LINENO" 5
    fi

        # Check whether --enable-stdio-redirect was given.
if test "${enable_stdio_redirect+set}" = set; then :
  enableval=$enable_stdio_redirect;
else
  enable_stdio_redirect=yes
fi

    if test x$enable_stdio_redirect != xyes; then
        EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
    fi

    if test x$enable_video = xyes; then
        $as_echo "#define SDL_VIDEO_DRIVER_WINDIB 1" >>confdefs.h

        SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
        SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
        have_video=yes
    fi
}

CheckDIRECTX()

patches/SDL-1.2.14-configure  view on Meta::CPAN

            aix)
                $as_echo "#define SDL_AUDIO_DRIVER_PAUD 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
                have_audio=yes
            ;;
          esac
        fi
        # Set up files for the joystick library
        if test x$enable_joystick = xyes; then
          case $ARCH in
            linux)
                $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
                have_joystick=yes
            ;;
          esac
        fi
        # Set up files for the cdrom library
        if test x$enable_cdrom = xyes; then
          case $ARCH in
            linux|solaris)
                $as_echo "#define SDL_CDROM_LINUX 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
                have_cdrom=yes
            ;;
            *freebsd*)
                $as_echo "#define SDL_CDROM_FREEBSD 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
                have_cdrom=yes
            ;;
            *openbsd*|*netbsd*)
                $as_echo "#define SDL_CDROM_OPENBSD 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
                have_cdrom=yes
            ;;
            bsdi)
                $as_echo "#define SDL_CDROM_BSDI 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
                have_cdrom=yes
            ;;
            aix)
                $as_echo "#define SDL_CDROM_AIX 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
                have_cdrom=yes
            ;;
            osf)
                $as_echo "#define SDL_CDROM_OSF 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
                have_cdrom=yes
            ;;
          esac
        fi
        # Set up files for the thread library
        if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
            $as_echo "#define SDL_THREAD_SPROC 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
            have_threads=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
            have_timers=yes
        fi
        ;;
    *-*-qnx*)
        ARCH=qnx
        CheckDummyVideo
        CheckDiskAudio
        CheckDummyAudio
        # CheckNASM
        CheckDLOPEN
        CheckNAS
        CheckPHOTON
        CheckX11
        CheckOpenGLX11
        CheckPTHREAD
        # Set up files for the audio library
        if test x$enable_audio = xyes; then
            $as_echo "#define SDL_AUDIO_DRIVER_QNXNTO 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
            have_audio=yes
        fi
        # Set up files for the cdrom library
        if test x$enable_cdrom = xyes; then
            $as_echo "#define SDL_CDROM_QNX 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
            have_cdrom=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
            have_timers=yes
        fi
        ;;
    *-*-mingw32*)
        ARCH=win32
        if test "$build" != "$host"; then # cross-compiling
            # Default cross-compile location
            ac_default_prefix=/usr/local/cross-tools/i386-mingw32
        else
            # Look for the location of the tools and install there
            if test "$BUILD_PREFIX" != ""; then
                ac_default_prefix=$BUILD_PREFIX
            fi
        fi
        CheckDummyVideo
        CheckDiskAudio
        CheckDummyAudio
        CheckWIN32
        CheckWIN32GL
        CheckDIRECTX
        CheckNASM
        # Set up files for the audio library
        if test x$enable_audio = xyes; then
            $as_echo "#define SDL_AUDIO_DRIVER_WAVEOUT 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
            if test x$have_directx = xyes; then
                $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
            fi
            have_audio=yes
        fi
        # Set up files for the joystick library
        if test x$enable_joystick = xyes; then
            $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
            have_joystick=yes
        fi
        # Set up files for the cdrom library
        if test x$enable_cdrom = xyes; then
            $as_echo "#define SDL_CDROM_WIN32 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
            have_cdrom=yes
        fi
        # Set up files for the thread library
        if test x$enable_threads = xyes; then
            $as_echo "#define SDL_THREAD_WIN32 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
            have_threads=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_WIN32 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
            have_timers=yes
        fi
        # Set up files for the shared object loading library
        if test x$enable_loadso = xyes; then
            $as_echo "#define SDL_LOADSO_WIN32 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
            have_loadso=yes
        fi
        # Set up the system libraries we need
        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
        if test x$have_directx = xyes; then
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
        fi
        # The Win32 platform requires special setup
        SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
        SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
        SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
        ;;
    *-*-cygwin*)
        ARCH=cygwin
        CheckDummyVideo
        CheckDiskAudio
        CheckDummyAudio
        CheckDLOPEN
        CheckNASM
        CheckOSS
        CheckARTSC
        CheckESD
        CheckNAS
        CheckX11
        CheckGGI
        CheckAAlib
        CheckCaca
        CheckOpenGLX11
        CheckPTHREAD
        # Set up files for the joystick library
        if test x$enable_joystick = xyes; then
            $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
            have_joystick=yes
        fi
        # Set up files for the cdrom library
        if test x$enable_cdrom = xyes; then
            $as_echo "#define SDL_CDROM_WIN32 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
            have_cdrom=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
            have_timers=yes
        fi
        # Set up the system libraries we need
        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm"
        ;;
    *-wince*)
        ARCH=win32
        CheckDummyVideo
        CheckDiskAudio
        CheckDummyAudio
        CheckWIN32
        CheckNASM
        SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
        EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420"
        if test x$enable_audio = xyes; then
            $as_echo "#define SDL_AUDIO_DRIVER_WAVEOUT 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
            have_audio=yes
        fi
        # Set up files for the thread library
        if test x$enable_threads = xyes; then
            $as_echo "#define SDL_THREAD_WIN32 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
            have_threads=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_WINCE 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
            have_timers=yes
        fi
        # Set up files for the shared object loading library
        if test x$enable_loadso = xyes; then
            $as_echo "#define SDL_LOADSO_WIN32 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
            have_loadso=yes
        fi
        # Set up the system libraries we need
        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
        # The Win32 platform requires special setup
        SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
        SDL_LIBS="-lSDLmain $SDL_LIBS"
        ;;
    *-*-beos* | *-*-haiku*)
        ARCH=beos
        ac_default_prefix=/boot/develop/tools/gnupro
        CheckDummyVideo
        CheckDiskAudio
        CheckDummyAudio
        CheckNASM
        CheckBWINDOW
        CheckBeGL
        # Set up files for the audio library
        if test x$enable_audio = xyes; then
            $as_echo "#define SDL_AUDIO_DRIVER_BAUDIO 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
            have_audio=yes
        fi
        # Set up files for the joystick library
        if test x$enable_joystick = xyes; then
            $as_echo "#define SDL_JOYSTICK_BEOS 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
            have_joystick=yes
        fi
        # Set up files for the cdrom library
        if test x$enable_cdrom = xyes; then
            $as_echo "#define SDL_CDROM_BEOS 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
            have_cdrom=yes
        fi
        # Set up files for the thread library
        if test x$enable_threads = xyes; then
            $as_echo "#define SDL_THREAD_BEOS 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
            have_threads=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_BEOS 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
            have_timers=yes
        fi
        # Set up files for the shared object loading library
        if test x$enable_loadso = xyes; then
            case "$host" in
                *-*-beos*)
                    $as_echo "#define SDL_LOADSO_BEOS 1" >>confdefs.h

                    SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
                ;;
                *-*-haiku*)
                    $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h

                    SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
                ;;
            esac
            have_loadso=yes
        fi
        # The BeOS platform requires special setup.
        SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
        ;;
    *-*-darwin* )
        # This could be either full "Mac OS X", or plain "Darwin" which is
        # just the OS X kernel sans upper layers like Carbon and Cocoa.
        # Next line is broken, and a few files below require Mac OS X (full)
        ARCH=macosx

        # Mac OS X builds with both the Carbon and OSX APIs at the moment
        EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
        EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"

        # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
        # is -lm which is not needed under Mac OS X. But for some reasons it
        # also tends to contain spurious -L switches, which we don't want to
        # use here or in sdl-config. Hence we reset it.
        EXTRA_LDFLAGS=""

        CheckVisibilityHidden
        CheckDummyVideo
        CheckDiskAudio
        CheckDummyAudio
        CheckDLOPEN
        CheckNASM

        # Set up files for the shared object loading library
        # (this needs to be done before the dynamic X11 check)
        if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
            $as_echo "#define SDL_LOADSO_DLCOMPAT 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
            have_loadso=yes
        fi

patches/SDL-1.2.14-configure  view on Meta::CPAN

            SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
            have_audio=yes
        fi
        # Set up files for the joystick library
        if test x$enable_joystick = xyes; then
            $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
            have_joystick=yes
            need_iokit_framework=yes
        fi
        # Set up files for the cdrom library
        if test x$enable_cdrom = xyes; then
            $as_echo "#define SDL_CDROM_MACOSX 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
            have_cdrom=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
            have_timers=yes
        fi
        # The Mac OS X platform requires special setup.
        SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
        EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
        SDL_LIBS="-lSDLmain $SDL_LIBS"
        if test x$enable_video_cocoa = xyes; then
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
            need_iokit_framework=yes
        fi
        if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then
            # The Cocoa backend still needs Carbon
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ApplicationServices"
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
        fi
        # If either the audio or CD driver is used, add the AudioUnit framework
        if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
        fi
        # Some subsystems reference IOKit...
        if test x$need_iokit_framework = xyes; then
            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
        fi
        ;;
    *-*-mint*)
        ARCH=mint
        CheckDummyVideo
        CheckDiskAudio
        CheckDummyAudio
        CheckAtariBiosEvent
        CheckAtariXbiosVideo
        CheckAtariGemVideo
        CheckAtariAudio
        CheckAtariLdg
        CheckAtariOSMesa
        CheckPTH
        # Set up files for the audio library
        if test x$enable_threads = xyes -a x$enable_pth = xyes; then
            if test x$enable_audio = xyes; then
                $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
                have_audio=yes
            fi
        fi
        # Set up files for the joystick library
        if test x$enable_joystick = xyes; then
            $as_echo "#define SDL_JOYSTICK_MINT 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
            have_joystick=yes
        fi
        # Set up files for the cdrom library
        if test x$enable_cdrom = xyes; then
            $as_echo "#define SDL_CDROM_MINT 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
            have_cdrom=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            if test x$enable_threads = xyes -a x$enable_pth = xyes; then
                $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
            else
                $as_echo "#define SDL_TIMER_MINT 1" >>confdefs.h

                SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
                SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
            fi
            have_timers=yes
        fi
        ;;
    *-riscos)
        ARCH=riscos
        CheckOSS
        CheckPTHREAD
        # Set up files for the video library
        if test x$enable_video = xyes; then
            $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
            SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
            have_video=yes
        fi
        # Set up files for the joystick library
        if test x$enable_joystick = xyes; then
            $as_echo "#define SDL_JOYSTICK_RISCOS 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
            have_joystick=yes
        fi
        # Set up files for the timer library
        if test x$enable_timers = xyes; then
            $as_echo "#define SDL_TIMER_RISCOS 1" >>confdefs.h

            SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
            have_timers=yes
        fi
        # The RISC OS platform requires special setup.
        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
        ;;
    *)
        as_fn_error $? "
*** Unsupported host:  Please add to configure.in
        " "$LINENO" 5
        ;;
esac

# Verify that we have all the platform specific files we need

if test x$enable_joystick = xyes; then
  if test x$have_joystick != xyes; then
    # Wants joystick subsystem, but doesn't have a platform-specific backend...
    $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h

    SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  fi
fi
if test x$have_cdrom != xyes; then
    if test x$enable_cdrom = xyes; then
        $as_echo "#define SDL_CDROM_DISABLED 1" >>confdefs.h

    fi
    SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
fi
if test x$have_threads != xyes; then
    if test x$enable_threads = xyes; then
        $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h

    fi
    SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
fi
if test x$have_timers != xyes; then
    if test x$enable_timers = xyes; then
        $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h

    fi
    SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
fi
if test x$have_loadso != xyes; then
    if test x$enable_loadso = xyes; then
        $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h

    fi
    SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
fi
if test x$SDLMAIN_SOURCES = x; then
    SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
fi

OBJECTS=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'`
OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'`
OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`

SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.o,g'`
SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.o,g'`
SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`

# Set runtime shared library paths as needed

if test "x$enable_rpath" = "xyes"; then
  if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
    SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  fi
  if test $ARCH = solaris; then
    SDL_RLD_FLAGS="-R\${libdir}"
  fi
else
  SDL_RLD_FLAGS=""
fi

case "$ARCH" in
  macosx)
    if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
      SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa"
    fi
    if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
      SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
    fi
    # Evil hack to allow static linking on Mac OS X
    SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
    ;;
  *)
    SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
    ;;
esac




( run in 2.480 seconds using v1.01-cache-2.11-cpan-df04353d9ac )