diff -ur xine-ui-0.99.2/configure xine-ui-0.99.2-patched/configure --- xine-ui-0.99.2/configure 2004-07-04 18:26:08.000000000 +0200 +++ xine-ui-0.99.2-patched/configure 2004-07-09 12:19:19.595146120 +0200 @@ -28788,306 +28788,6 @@ ;; i?86-*-linux* | i386-*-solaris* | i?86-* | k?-* | athlon-* | pentium*) - if test "$GCC" = yes -o "${CC##*/}x" = "iccx" ; then - - if test "$GCC" = yes ; then - echo "$as_me:$LINENO: checking if $CC supports \"-mtune=i386\" flags" >&5 -echo $ECHO_N "checking if $CC supports \"-mtune=i386\" flags... $ECHO_C" >&6 - SAVE_CFLAGS="$CFLAGS" - CFLAGS=""-mtune=i386"" - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_try_cflags_ok=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_try_cflags_ok=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext - CFLAGS="$SAVE_CFLAGS" - echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 -echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 - if test x"$ac_cv_try_cflags_ok" = x"yes"; then - sarchopt="-mtune" - else - echo "$as_me:$LINENO: checking if $CC supports \"-mcpu=i386\" flags" >&5 -echo $ECHO_N "checking if $CC supports \"-mcpu=i386\" flags... $ECHO_C" >&6 - SAVE_CFLAGS="$CFLAGS" - CFLAGS=""-mcpu=i386"" - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_try_cflags_ok=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_try_cflags_ok=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext - CFLAGS="$SAVE_CFLAGS" - echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 -echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 - if test x"$ac_cv_try_cflags_ok" = x"yes"; then - sarchopt="-mcpu" - else - echo "$as_me:$LINENO: checking if $CC supports \"-march=i386\" flags" >&5 -echo $ECHO_N "checking if $CC supports \"-march=i386\" flags... $ECHO_C" >&6 - SAVE_CFLAGS="$CFLAGS" - CFLAGS=""-march=i386"" - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_try_cflags_ok=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_try_cflags_ok=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext - CFLAGS="$SAVE_CFLAGS" - echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 -echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 - if test x"$ac_cv_try_cflags_ok" = x"yes"; then - sarchopt="-march" - else - echo "$as_me:$LINENO: result: ** no cpu optimization supports **" >&5 -echo "${ECHO_T}** no cpu optimization supports **" >&6 - sarchopt=no - - - fi - - fi - - fi - - echo "$as_me:$LINENO: checking if $CC supports \"$sarchopt=athlon\" flags" >&5 -echo $ECHO_N "checking if $CC supports \"$sarchopt=athlon\" flags... $ECHO_C" >&6 - SAVE_CFLAGS="$CFLAGS" - CFLAGS=""$sarchopt=athlon"" - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_try_cflags_ok=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_try_cflags_ok=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext - CFLAGS="$SAVE_CFLAGS" - echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 -echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 - if test x"$ac_cv_try_cflags_ok" = x"yes"; then - k7cpu="athlon" - else - k7cpu="i686" - fi - - CFLAGS="-O3 -pipe -fomit-frame-pointer $f_af $f_al $f_aj $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -finline-functions $CFLAGS" - - DEBUG_CFLAGS="-O $DEBUG_CFLAGS" - - if test x"$sarchopt" != "xno"; then - - archopt_val= - - case "$host_or_hostalias" in - i386-*) # *BSD return this even on a P III #-)) - archopt_val="i386" ;; - i486-*) # oh dear! - archopt_val="i486" ;; - i586-*) - archopt_val="pentium" - ;; - pentium-mmx-*) - archopt_val="pentium-mmx" - ;; - pentiumpro-* | pentium2-* | i686-*) - archopt_val="pentiumpro" - if test x"$check_athlon" = "xyes"; then - if test -f /proc/cpuinfo; then - modelname=`cat /proc/cpuinfo | grep "model\ name\ :" | sed -e 's/ //g' | cut -d':' -f2` - case "$modelname" in - *Athlon* | *Duron* | *K7*) - archopt_val="$k7cpu" - ;; - VIAEzra) - archopt_val="c3" - ;; - esac - fi - fi - ;; - k6-2-* | k6-3-*) - archopt_val="k6-2" - ;; - k6-*) - archopt_val="k6" - ;; - pentium3-*) - archopt_val="pentium3" - ;; - pentium4-*) - archopt_val="pentium4" - ;; - athlon-4-* | athlon-xp-* | athlon-mp-*) - archopt_val="athlon-4" - ;; - k7-* | athlon-tbird-* | athlon-*) - archopt_val="athlon" - ;; - - esac - if test x"$archopt_val" != x; then - CFLAGS="$sarchopt=$archopt_val $CFLAGS" - DEBUG_CFLAGS="$sarchopt=$archopt_val $DEBUG_CFLAGS" - fi - - fi - else - CFLAGS="-unroll -ipo -ipo_obj -O3 $CFLAGS" - PASS1_CFLAGS="-prof_genx -prof_dir \$(PWD)/\$(top_builddir)/ $PASS1_CFLAGS" - PASS2_CFLAGS="-prof_use -prof_dir \$(PWD)/\$(top_builddir)/ $PASS2_CFLAGS" - - - fi - - -cat >>confdefs.h <<_ACEOF -#define ARCH_X86 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define FPM_INTEL 1 -_ACEOF - - enable_ffmmx="yes" - enable_w32dll="yes" - - case "$host_or_hostalias" in - *-*-cygwin) - enable_w32dll="no" - LDFLAGS="-no-undefined @INTLLIBS@ $LDFLAGS" - ;; - esac - else - CFLAGS="-O $CFLAGS" - DEBUG_CFLAGS="-O $DEBUG_CFLAGS" - -cat >>confdefs.h <<_ACEOF -#define FPM_64BIT -_ACEOF - - fi - - cat >>confdefs.h <<\_ACEOF #define __i386__ 1 _ACEOF