comparison configure @ 1:3b5f5d1c5041

Initial revision
author arpi_esp
date Sat, 24 Feb 2001 20:28:24 +0000
parents
children ad89e009076b
comparison
equal deleted inserted replaced
0:c1bb2c071d63 1:3b5f5d1c5041
1 #!/bin/sh
2
3 #
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz
5 # pontscho@makacs.poliod.hu
6 #
7 # some changes by A'rpi/ESP-team:
8 # - some english bugfix :)
9 # - removed _??exists flags, _?? is enough...
10 # - creating only config.mak files instead of whole Makefiles
11 #
12 # some changes by LGB (Gábor Lénárt):
13 # - SOME gcc may support 'k7', so I added tests for ALL CPU type optimization
14 # switches with the ability to find out the best optimization for your CPU.
15 # - Help moved to the begining to avoid tests if user only wants help.
16 # - A one lined help to indicate detailed help for users
17 # - Fixed /tmp race (PIDs can be predicted, I added random numbers as well)
18 #
19 # some changes by A'rpi/ESP-team:
20 # - the --win32libdir patch by Aaron Hope applied
21 # - some english bugfix again :)
22 # - cpu type selection changed:
23 # ( k7->k6->k5-> ) || (i686->pentiumpro-> ) pentium-> i486 -> i386 -> error!
24 # - cpu type for AMD/family=5 changed k6->k5
25 #
26 # some changes by LGB:
27 # - Ehhh, AMD K6-2 returns with cpuid 5 ;-) Changing back Arpi's last change :)
28 # More info: AMD K6-2 reports with family 5, duron with 6, so I attached
29 # much finer CPU type detection based on Linux kernel's one :)
30 # (k5: 5, model<6, k6: 5, model>=6, k7: 6, model=any)
31 # - On some exit point (error) temporary files were not deleted. Fixed.
32 # - $TMP and $TMP2 are renamed to $TMPC and $TMPO ;-)
33 # - Some useless { ... } are removed
34 #
35 # some changes by A'rpi/ESP-team:
36 # - added 'athlon' target for the new athlongcc [Ian Kumlien]
37 # - applied _win32libdir=-L patch by Magnus Pfeffer
38 #
39 # --
40
41
42 # LGB: Help moved here.
43
44 if [ "$1" = "--help" -o "$1" = "-help" -o "$1" = "-h" ]; then
45 cat << EOF
46
47 usage: $0 [options]
48
49 params:
50 --enable-mmx build with mmx support [autodetect]
51 --enable-3dnow build with 3dnow! support [autodetect]
52 --enable-sse build with sse support [autodetect]
53 --enable-gl build with OpenGL render support [autodetect]
54 --enable-sdl build with SDL render support [def.: disabled!]
55 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid
56 is available]
57 --enable-xmga build with mga_vid X Window support [autodetect,
58 if both /dev/mga_vid and x11 are available]
59 --enable-xv build with Xv render support for X 4.x [autodetect]
60 --enable-x11 build with X11 render support [autodetect]
61 --enable-mlib build with MLIB support ( only Solaris )
62
63 --enable-termcap use termcap database for key codes
64 --enable-xmmp use XMMP audio drivers
65 --enable-lirc enable LIRC (remote control) support
66
67 --with-x11libdir=DIR X library files are in DIR
68 --with-win32libdir=DIR windows codec files
69
70 --size-x=SIZE default screen width
71 --size-y=SIZE default screen height
72 EOF
73 exit 0
74 fi
75
76 # LGB: Some inital help
77
78 echo "You can get detailed help on configure with: $0 --help"
79 echo "Please wait while ./configure discovers your software and hardware environment!"
80
81 # LGB: temporary files
82
83 TMPC="/tmp/mplayer-conf-${RANDOM}-$$-${RANDOM}.c"
84 TMPO="/tmp/mplayer-conf-${RANDOM}-$$-${RANDOM}.o"
85
86
87 # ---
88
89 # config files
90 CCONF='config.h'
91 MCONF='config.mak'
92
93 # ---
94
95 TAB=`echo -n -e "\t"`
96 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2`
97 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2`
98 if [ -z "$pparam" ]; then
99 pparam=`cat /proc/cpuinfo | grep 'flags' | cut -d ':' -f 2`
100 fi
101 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2`
102 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2`
103 pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2`
104 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2`
105
106 _mmx=no
107 _3dnow=no
108 _mtrr=no
109 _sse=no
110 _mga=no
111 _gl=no
112 _sdl=no
113 _xv=no
114 _x11=no
115 _3dfx=no
116 _syncfb=no
117 _mlib=no
118 _mpg123=no
119 _xmga=no
120 _lirc=no
121
122 _x=1
123 _y=1
124
125 _gllib=
126 _sdllib=
127 _x11lib=
128 _xvlib=
129 _xlibdir=
130
131 for i in `echo $pparam`; do
132
133 case "$i" in
134 3dnow)
135 _3dnow=yes
136 _mpg123=yes
137 ;;
138 mmx)
139 _mmx=yes
140 ;;
141 mtrr)
142 _mtrr=yes
143 ;;
144 k6_mtrr)
145 _mtrr=yes
146 ;;
147 xmm)
148 _sse=yes
149 ;;
150 sse)
151 _sse=yes
152 ;;
153 kni)
154 _sse=yes
155 ;;
156 esac
157
158 done
159
160 if [ -e /usr/X11R6 ]; then
161 _x11libdir=-L/usr/X11R6/lib
162 else
163 if [ -e /usr/X11 ]; then
164 _x11libdir=-L/usr/X11/lib
165 fi
166 fi
167
168 _win32libdirnotify=no
169 if [ -e /usr/lib/win32 ]; then
170 _win32libdir=/usr/lib/win32
171 else
172 if [ -e /usr/local/lib/win32 ]; then
173 _win32libdir=/usr/local/lib/win32
174 else
175 # This is our default:
176 _win32libdir=/usr/lib/win32
177 _win32libdirnotify=yes
178 fi
179 fi
180
181
182 if [ -e /dev/mga_vid ]; then
183 _mga=yes
184 _syncfb=yes
185 fi
186
187 proc=pentium
188
189 case "$pvendor" in
190 AuthenticAMD)
191 case "$pfamily" in
192 3)
193 proc=i386
194 ;;
195 4)
196 proc=i486
197 ;;
198 5)
199 if [ $pmodel -ge 6 ]; then # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3
200 proc=k6
201 else
202 proc=k5
203 fi
204 ;;
205 6|7) # LGB: Though it seems Athlon CPUs returns with "6"
206 proc=k7
207 ;;
208 *)
209 proc=pentium
210 ;;
211 esac
212 ;;
213 GenuineIntel)
214 case "$pfamily" in
215 3)
216 proc=i386
217 ;;
218 4)
219 proc=i486
220 ;;
221 5)
222 proc=pentium
223 ;;
224 6)
225 proc=i686
226 ;;
227 *)
228 proc=pentium
229 ;;
230 esac
231 ;;
232 unknown) # added by Gabucino - upon Tibcu's request
233 case "$pfamily" in
234 3)
235 proc=i386
236 ;;
237 4)
238 proc=i486
239 ;;
240 *)
241 proc=pentium
242 ;;
243 esac
244 ;;
245 *)
246 proc=pentium
247 ;;
248 esac
249
250 # ---
251
252 cat > $TMPC << EOF
253 int main( void ) { return 0; }
254 EOF
255
256 # check that gcc supports our cpu, if not, fallback to pentium
257 # LGB: check -mcpu and -march swithing step by step with enabling
258 # to fall back till 386.
259
260 #echo -n "Checking your GCC CPU optimalization abilities: "
261 if [ "$proc" = "k7" ]; then
262 # echo -n "trying k7 "
263 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=athlon
264 fi
265 if [ "$proc" = "athlon" ]; then
266 # echo -n "trying athlon "
267 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k6
268 fi
269 if [ "$proc" = "k6" ]; then
270 # echo -n "trying k6 "
271 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k5
272 fi
273 if [ "$proc" = "k5" ]; then
274 # echo -n "trying k5 "
275 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium
276 fi
277 if [ "$proc" = "i686" ]; then
278 # echo -n "trying i686 "
279 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentiumpro
280 fi
281 if [ "$proc" = "pentiumpro" ]; then
282 # echo -n "trying pentiumpro "
283 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium
284 fi
285 if [ "$proc" = "pentium" ]; then
286 # echo -n "trying pentium "
287 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i486
288 fi
289 if [ "$proc" = "i486" ]; then
290 # echo -n "trying i486 "
291 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i386
292 fi
293 if [ "$proc" = "i386" ]; then
294 # echo -n "trying i386 "
295 gcc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=error
296 fi
297 if [ "$proc" = "error" ]; then
298 echo
299 echo "Your gcc does not support even \"i386\" for '-march' and '-mcpu'." >&2
300 rm -f $TMPC $TMPO
301 exit
302 fi
303 #echo "DONE (${proc})."
304
305
306 # check GL & X11 & Xext & Xv & SDL & termcap libs
307
308 gcc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes
309 gcc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes
310 gcc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes
311 gcc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \
312 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; }
313
314 # SDL disabled by default (0.11pre22-) because of the compilation problems
315 # this is very buggy & experimental code, use it only if you really need it!!
316 _have_sdl=no
317 gcc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes
318
319 _termcap=no
320 gcc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes
321
322 _binutils=no
323 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes
324
325 cat > $TMPC << EOF
326 #include <GL/gl.h>
327 int main( void ) { return 0; }
328 EOF
329
330 gcc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null || \
331 { _gl=no; echo "GL includes not found!";}
332
333 rm -f $TMPC $TMPO
334
335
336 if [ $_x11 = 'yes' ]; then
337 if [ $_mga = 'yes' ]; then
338 _xmga=yes
339 fi
340 fi
341
342 # ---
343
344 # check for the parameters.
345
346 for ac_option
347 do
348 case "$ac_option" in
349 --enable-sse)
350 _sse=yes
351 ;;
352 --enable-3dnow)
353 _3dnow=yes
354 ;;
355 --enable-mmx)
356 _mmx=yes
357 ;;
358 --enable-gl)
359 _gl=yes
360 ;;
361 --enable-sdl)
362 _sdl=yes
363 ;;
364 --enable-mga)
365 _mga=yes
366 ;;
367 --enable-xmga)
368 _xmga=yes
369 ;;
370 --enable-xv)
371 _xv=yes
372 ;;
373 --enable-x11)
374 _x11=yes
375 ;;
376 --enable-3dfx)
377 _3dfx=yes
378 ;;
379 --enable-syncfb)
380 _syncfb=yes
381 ;;
382 --enable-mlib)
383 _mlib=yes
384 ;;
385 --enable-termcap)
386 _termcap=yes
387 ;;
388 --enable-xmmp)
389 _xmmp=yes
390 ;;
391 --enable-lirc)
392 _lirc=yes
393 ;;
394 --disable-sse)
395 _sse=no
396 ;;
397 --disable-3dnow)
398 _3dnow=no
399 ;;
400 --disable-mmx)
401 _mmx=no
402 ;;
403 --disable-gl)
404 _gl=no
405 ;;
406 --disable-sdl)
407 _sdl=no
408 ;;
409 --disable-mga)
410 _mga=no
411 ;;
412 --disable-xmga)
413 _xmga=no
414 ;;
415 --disable-xv)
416 _xv=no
417 ;;
418 --disable-x11)
419 _x11=no
420 ;;
421 --disable-mlib)
422 _mlib=no
423 ;;
424 --disable-termcap)
425 _termcap=no
426 ;;
427 --with-x11libdir=*)
428 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2`
429 ;;
430 --with-win32libdir=*)
431 _win32libdir=`echo $ac_option | cut -d '=' -f 2`
432 ;;
433 --size-x=*)
434 _x=`echo $ac_option | cut -d '=' -f 2`
435 ;;
436 --size-y=*)
437 _y=`echo $ac_option | cut -d '=' -f 2`
438 ;;
439 esac
440 done
441
442 # to screen.
443
444 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
445 echo "Checking for cpu type ... $pname"
446 echo "Optimizing to ... $proc"
447 echo "Checking for mmx support ... $_mmx"
448 echo "Checking for 3dnow support ... $_3dnow"
449 echo "Checking for sse support ... $_sse"
450 echo "Checking for mtrr support ... $_mtrr"
451 echo "Screen size ... ${_x}x${_y}"
452 echo "Checking for X11 libs ... $_x11libdir"
453 echo "Checking mga_vid device ... $_mga"
454 echo "Checking for xmga ... $_xmga"
455 echo "Checking for SDL ... $_sdl"
456 echo "Checking for OpenGL ... $_gl"
457 echo "Checking for Xv ... $_xv"
458 echo "Checking for X11 ... $_x11"
459
460 # write conf files.
461
462 if [ $_gl = yes ]; then
463 _gllib='-lGL'
464 fi
465
466 if [ $_x11 = yes ]; then
467 _x11lib='-lX11 -lXext'
468 fi
469
470 if [ $_xv = yes ]; then
471 _xvlib='-lXv'
472 fi
473
474 if [ $_sdl = yes ]; then
475 _sdllib='-lSDL -lpthread'
476 fi
477
478 if [ "$_termcap" = "yes" ]; then
479 _termcap='#define USE_TERMCAP'
480 _libtermcap='-ltermcap'
481 else
482 _termcap='#undef USE_TERMCAP'
483 _libtermcap=''
484 fi
485
486 if [ "$_xmmp" = "yes" ]; then
487 _xmmpaudio='#define USE_XMMP_AUDIO'
488 _xmmplibs='-Llibxmm -lxmm'
489 else
490 _xmmpaudio='#undef USE_XMMP_AUDIO'
491 fi
492
493 if [ "$_lirc" = "yes" ]; then
494 _lircdefs='#define HAVE_LIRC'
495 _lirclibs='-llirc_client'
496 else
497 _lircdefs='#undef HAVE_LIRC'
498 _lirclibs=''
499 fi
500
501
502 echo
503 echo "Creating $MCONF"
504 cat > $MCONF << EOF
505
506 # -------- Generated by ./configure -----------
507
508 AR=ar
509 CC=gcc
510 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
511 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math
512 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_x11lib $_xvlib
513 X_LIBS=$_x11libdir $_gllib $_sdllib $_x11lib $_xvlib
514 TERMCAP_LIB=$_libtermcap
515 XMM_LIBS = $_xmmplibs
516 LIRC_LIBS = $_lirclibs
517 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\"
518
519 EOF
520 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak
521
522 echo "Creating $CCONF"
523
524 if [ "$_mmx" = "yes" ]; then
525 _mmx='#define HAVE_MMX'
526 else
527 _mmx='#undef HAVE_MMX'
528 fi
529
530 if [ $_3dnow = yes ]; then
531 _3dnowm='#define HAVE_3DNOW'
532 else
533 _3dnowm='#undef HAVE_3DNOW'
534 fi
535
536 if [ $_sse = yes ]; then
537 _ssem='#define HAVE_SSE'
538 else
539 _ssem='#undef HAVE_SSE'
540 fi
541
542 # ---
543
544 _vosrc=''
545
546 if [ $_mlib = yes ]; then
547 _mlib='#define HAVE_MLIB'
548 _vosrc=$_vosrc' yuv2rgb_mlib.c'
549 else
550 _mlib='#undef HAVE_MLIB'
551 fi
552
553 # ---
554
555 if [ $_gl = yes ]; then
556 _gl='#define HAVE_GL'
557 _vosrc=$_vosrc' vo_gl.c'
558 else
559 _gl='#undef HAVE_GL'
560 fi
561
562 if [ $_sdl = yes ]; then
563 _sdldef='#define HAVE_SDL'
564 _vosrc=$_vosrc' vo_sdl.c'
565 else
566 _sdldef='#undef HAVE_SDL'
567 fi
568
569 if [ $_x11 = yes ]; then
570 _x11='#define HAVE_X11'
571 _vosrc=$_vosrc' vo_x11.c'
572 else
573 _x11='#undef HAVE_X11'
574 fi
575
576 if [ $_xv = yes ]; then
577 _xv='#define HAVE_XV'
578 _vosrc=$_vosrc' vo_xv.c'
579 else
580 _xv='#undef HAVE_XV'
581 fi
582
583 # ---
584
585 if [ $_mga = yes ]; then
586 _mga='#define HAVE_MGA'
587 _vosrc=$_vosrc' vo_mga.c'
588 else
589 _mga='#undef HAVE_MGA'
590 fi
591 if [ $_xmga = yes ]; then
592 _vosrc=$_vosrc' vo_xmga.c'
593 fi
594
595 if [ $_syncfb = yes ]; then
596 _syncfb='#define HAVE_SYNCFB'
597 _vosrc=$_vosrc' vo_syncfb.c'
598 else
599 _syncfb='#undef HAVE_SYNCFB'
600 fi
601
602 if [ $_3dfx = yes ]; then
603 _3dfx='#define HAVE_3DFX'
604 _vosrc=$_vosrc' vo_3dfx.c'
605 else
606 _3dfx='#undef HAVE_3DFX'
607 fi
608
609 if [ $_mpg123 = yes ]; then
610 _mpg123='#define DEFAULT_MPG123'
611 else
612 _mpg123='#undef DEFAULT_MPG123'
613 fi
614
615 cat > $CCONF << EOF
616
617 /* -------- Generated by ./configure ----------- */
618
619 /* Define this to enable avg. byte/sec-based AVI sync method by default:
620 (use -bps or -nobps commandline option for run-time method selection) */
621 #undef AVI_SYNC_BPS
622
623 /* Undefine this if you want soundcard-only timing by default:
624 You can still change this with the -alsa or -noalsa command-line option!
625 (This function was originally impemented to solve ALSA driver's big
626 buffer problems, but it seems to be useful for every soundcard drivers) */
627 #define ALSA_TIMER
628
629 /* Undefine this if your soundcard driver has no working select().
630 If you have kernel Oops, player hangups, or just no audio, you should
631 try to recompile MPlayer with this option disabled! */
632 #define HAVE_AUDIO_SELECT
633
634 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm)
635 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm
636 (with mmx/sse optimizations)
637 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/
638 $_mpg123
639
640 /* XMMP support: (test code) */
641 $_xmmpaudio
642 #define LIBDIR "/usr/local/lib"
643 #define PLUGINDIR LIBDIR "/xmmp/Plugins"
644 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so"
645
646 /* LIRC (remote control, see www.lirc.org) support: */
647 $_lircdefs
648
649 /* Define if your processor stores words with the most significant
650 byte first (like Motorola and SPARC, unlike Intel and VAX). */
651 /* #define WORDS_BIGENDIAN */
652
653 #define ARCH_X86
654
655 /////////////////////////////////////////////////////////////////////////////
656 //
657 // NOTE: Instead of modifying these here, use the --enable/--disable options
658 // of the ./configure script! See ./configure --help for details.
659 //
660 /////////////////////////////////////////////////////////////////////////////
661
662 /* termcap flag for getch2.c */
663 $_termcap
664
665 /* Extension defines */
666 $_mlib // available only on solaris
667 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.)
668 $_mmx // only define if you have MMX
669 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II)
670
671 /* libvo options */
672 #define SCREEN_SIZE_X $_x
673 #define SCREEN_SIZE_Y $_y
674 $_x11
675 $_xv
676 $_gl
677 $_sdldef
678 $_3dfx
679 $_mga
680 $_syncfb
681
682 #if defined(HAVE_GL)||defined(HAVE_X11)|defined(HAVE_XV)
683 #define X11_FULLSCREEN
684 #endif
685
686 EOF
687
688 echo "Creating libvo/config.mak"
689
690 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'`
691
692 cat > libvo/config.mak << EOF
693
694 include ../config.mak
695
696 OPTIONAL_SRCS=$_vosrc
697 OPTIONAL_OBJS=$_voobj
698
699 EOF
700
701 echo "Creating libac3/config.mak"
702
703 if [ $_sse = yes ]; then
704 _downmixc='downmix/downmix_kni.S'
705 _downmixo='downmix/downmix_kni.o'
706 else
707 if [ $_binutils = yes ]; then
708 _downmixc='downmix/downmix_i386.S'
709 _downmixo='downmix/downmix_i386.o'
710 else
711 _downmixc='downmix/downmix.c'
712 _downmixo='downmix/downmix.o'
713 cat << EOF
714
715 !!! Warning! fallback to slow downmix.c due the old binutils.
716 !!! Upgrade for better audio decoding performance.
717
718 EOF
719 fi
720 fi
721
722 cat > libac3/config.mak << EOF
723
724 include ../config.mak
725
726 OPTIONAL_SRCS = $_downmixc
727 OPTIONAL_OBJS = $_downmixo
728
729 EOF
730
731 echo "Creating mp3lib/config.mak"
732
733 if [ $_3dnow = yes ]; then
734 _3dnowobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s'
735 _3dnowobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o'
736 else
737 _3dnowobjectsrcs=
738 _3dnowobjectobjs=
739 fi
740
741 cat > mp3lib/config.mak << EOF
742
743 include ../config.mak
744
745 OPTIONAL_SRCS = $_3dnowobjectsrcs
746 OPTIONAL_OBJS = $_3dnowobjectobjs
747
748 EOF
749
750 cat << EOF
751
752 Config files successfully generated by ./configure !
753 Please check config.h and config.mak files, tune CPU
754 and optimization flags if you don't like these defaults.
755 You can compile the program with 'make dep;make' and
756 install with 'make install'. Good luck!
757
758 EOF
759
760 if [ $_mtrr = yes ]; then
761 echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)"
762 echo
763 fi
764
765 if [ $_sdl = no ]; then
766 if [ $_have_sdl = yes ]; then
767 echo "You have libSDL installed, but SDL support is disabled by default."
768 echo "If you want to compile MPlayer with SDL support, re-run ./configure"
769 echo "with --enable-sdl. But it's very buggy & experimental code, use it"
770 echo "only if you really need it! And it works(?) *ONLY* with SDL v1.1.7 !"
771 echo "(SDL driver is NOT supported, so do NOT report bugs relating to SDL!)"
772 echo
773 fi
774 fi
775
776 if [ $_win32libdirnotify = yes ]; then
777 echo "Missing WIN32 codecs dir at $_win32libdir !"
778 echo "Make it and copy DLL files to there! (You can get them from your windows"
779 echo "directory or download ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip"
780 else
781 echo "Ok, Win32 codecs directory at $_win32libdir already exists."
782 fi
783