#!/bin/sh
#
# MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz
# pontscho@makacs.poliod.hu
#
# Changes in reversed order:
#
# 2001/06/05 by Pontscho
# - added alsa and esd detection
#
# 2001/06/05 by Nick Kurshev
# - added checking of kernel version
#
# 2001/06/04 by Nick Kurshev
# - added hard checking of gcc and soft of assembler
#
# 2001/05/40 by LGB
# - added --prefix support
#
# 2001/05/22 by Nick Kurshev
# - added definition of CPU clone
#
# 2001/04/16 by LGB
# - added libcss stuffs
#
# 2001/04/15 by Pontscho
# - added --disable-select option
# - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug
#
# 2001/03/24 by Mike Graffam:
# - added autodetect code for XF86VidMode, along with explicit --enable-vm
#
# 2001/03/22 by Bivanbi:
# - new option: --cc (to specify C compiler path+name)
#
# 2001/03/08 by LGB:
# - DGA detect-o-matic :)
# - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer
# - line about '--enable-dga' is added to the help message
#
# 2001/02/26 by A'rpi:
# - added DGA option: --enable-dga
# - no notify if --with-win32libdir used [Tibcu]
#
# 2001/02/25 by LGB:
# - TMPDIR or TEMPDIR variable is honored during tests for temporary files
# - ChangeLog inside configure was reversed ;-)
#
# some changes by A'rpi/ESP-team:
# - added 'athlon' target for the new athlongcc [Ian Kumlien]
# - applied _win32libdir=-L patch by Magnus Pfeffer
#
# some changes by LGB:
# - Ehhh, AMD K6-2 returns with cpuid 5 ;-) Changing back Arpi's last change :)
# More info: AMD K6-2 reports with family 5, duron with 6, so I attached
# much finer CPU type detection based on Linux kernel's one :)
# (k5: 5, model<6, k6: 5, model>=6, k7: 6, model=any)
# - On some exit point (error) temporary files were not deleted. Fixed.
# - $TMP and $TMP2 are renamed to $TMPC and $TMPO ;-)
# - Some useless { ... } are removed
#
# some changes by A'rpi/ESP-team:
# - the --with-win32libdir patch by Aaron Hope applied
# - some english bugfix again :)
# - cpu type selection changed:
# ( k7->k6->k5-> ) || (i686->pentiumpro-> ) pentium-> i486 -> i386 -> error!
# - cpu type for AMD/family=5 changed k6->k5
#
# some changes by LGB (Gábor Lénárt):
# - SOME gcc may support 'k7', so I added tests for ALL CPU type optimization
# switches with the ability to find out the best optimization for your CPU.
# - Help moved to the begining to avoid tests if user only wants help.
# - A one lined help to indicate detailed help for users
# - Fixed /tmp race (PIDs can be predicted, I added random numbers as well)
#
# some changes by A'rpi/ESP-team:
# - some english bugfix :)
# - removed _??exists flags, _?? is enough...
# - creating only config.mak files instead of whole Makefiles
#
# --
# Check how echo works in this /bin/sh
case `echo -
|