comparison configure @ 13018:adb93ef6b07f

Improved SPARC CPU detection and SPARC compilation fixes. patch by jb13@gomerbud.com
author diego
date Sat, 14 Aug 2004 15:17:39 +0000
parents 2d188ebe0f3b
children acafeb7e5a93
comparison
equal deleted inserted replaced
13017:5b9c594dc6e9 13018:adb93ef6b07f
447 i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686) host_arch=i386 ;; 447 i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686) host_arch=i386 ;;
448 ia64) host_arch=ia64 ;; 448 ia64) host_arch=ia64 ;;
449 x86_64|amd64) host_arch=x86_64 ;; 449 x86_64|amd64) host_arch=x86_64 ;;
450 macppc|ppc) host_arch=ppc ;; 450 macppc|ppc) host_arch=ppc ;;
451 alpha) host_arch=alpha ;; 451 alpha) host_arch=alpha ;;
452 sparc*) host_arch=sparc ;; 452 sparc) host_arch=sparc ;;
453 sparc64) host_arch=sparc64 ;;
453 parisc*|hppa*|9000*) host_arch=hppa ;; 454 parisc*|hppa*|9000*) host_arch=hppa ;;
454 arm*) host_arch=arm ;; 455 arm*) host_arch=arm ;;
455 s390) host_arch=s390 ;; 456 s390) host_arch=s390 ;;
456 s390x) host_arch=s390x ;; 457 s390x) host_arch=s390x ;;
457 mips) host_arch=mips ;; 458 mips) host_arch=mips ;;
883 884
884 sparc) 885 sparc)
885 _def_arch='#define ARCH_SPARC 1' 886 _def_arch='#define ARCH_SPARC 1'
886 _target_arch='TARGET_ARCH_SPARC = yes' 887 _target_arch='TARGET_ARCH_SPARC = yes'
887 iproc='sparc' 888 iproc='sparc'
888 proc='v8' 889 if sunos ; then
890 echocheck "CPU type"
891 karch=`uname -m`
892 case "`echo $karch`" in
893 sun4) proc=v7 ;;
894 sun4c) proc=v7 ;;
895 sun4d) proc=v8 ;;
896 sun4m) proc=v8 ;;
897 sun4u) proc=v9 _vis='yes' _def_vis='#define HAVE_VIS = yes' ;;
898 *) ;;
899 esac
900 echores "$proc"
901 else
902 proc=v8
903 fi
904 _march=''
905 _mcpu="-mcpu=$proc"
906 _optimizing="$proc"
907 ;;
908
909 sparc64)
910 _def_arch='#define ARCH_SPARC 1'
911 _target_arch='TARGET_ARCH_SPARC = yes'
912 _vis='yes'
913 _def_vis='#define HAVE_VIS = yes'
914 iproc='sparc'
915 proc='v9'
889 _march='' 916 _march=''
890 _mcpu="-mcpu=$proc" 917 _mcpu="-mcpu=$proc"
891 _optimizing="$proc" 918 _optimizing="$proc"
892 ;; 919 ;;
893 920
6263 TARGET_MMX2 = $_mmx2 6290 TARGET_MMX2 = $_mmx2
6264 TARGET_3DNOW = $_3dnow 6291 TARGET_3DNOW = $_3dnow
6265 TARGET_3DNOWEX = $_3dnowex 6292 TARGET_3DNOWEX = $_3dnowex
6266 TARGET_SSE = $_sse 6293 TARGET_SSE = $_sse
6267 TARGET_ALTIVEC = $_altivec 6294 TARGET_ALTIVEC = $_altivec
6295 TARGET_VIS = $_vis
6268 6296
6269 # --- GUI stuff --- 6297 # --- GUI stuff ---
6270 GTKLIB = $_ld_static $_ld_gtk 6298 GTKLIB = $_ld_static $_ld_gtk
6271 GLIBLIB = $_ld_static $_ld_glib 6299 GLIBLIB = $_ld_static $_ld_glib
6272 GTK_LIBS = $_ld_static $_ld_gui 6300 GTK_LIBS = $_ld_static $_ld_gui
6818 6846
6819 $_def_altivec_h // enables usage of altivec.h 6847 $_def_altivec_h // enables usage of altivec.h
6820 6848
6821 6849
6822 $_def_mlib // Sun mediaLib, available only on solaris 6850 $_def_mlib // Sun mediaLib, available only on solaris
6851 $_def_vis // only define if you have VIS ( ultrasparc )
6823 6852
6824 /* libmpeg2 uses a different feature test macro for mediaLib */ 6853 /* libmpeg2 uses a different feature test macro for mediaLib */
6825 #ifdef HAVE_MLIB 6854 #ifdef HAVE_MLIB
6826 #define LIBMPEG2_MLIB 1 6855 #define LIBMPEG2_MLIB 1
6827 #endif 6856 #endif