Commit 412371fb authored by bellard's avatar bellard

Altivec on non darwin systems patch by Romain Dolbeau (NOTE: I would prefer...

Altivec on non darwin systems patch by Romain Dolbeau (NOTE: I would prefer using the existing CONFIG_DARWIN Makefile variable and suppress the redundant TARGET_OS variable, but it would break the current mplayer patch)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1510 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 643b0bf7
...@@ -206,6 +206,27 @@ os2="yes" ...@@ -206,6 +206,27 @@ os2="yes"
*) ;; *) ;;
esac esac
# From mplayer configure. We need TARGET_OS available
# to the Makefile, so it can distinguish between flavors
# of AltiVec on PowerPC
TARGET_OS=`( uname -s ) 2>&1`
case "$TARGET_OS" in
Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU)
;;
IRIX*)
TARGET_OS=IRIX
;;
HP-UX*)
TARGET_OS=HP-UX
;;
[cC][yY][gG][wW][iI][nN]*)
TARGET_OS=CYGWIN
;;
*)
TARGET_OS="$TARGET_OS-UNKNOWN"
;;
esac
# find source path # find source path
# XXX: we assume an absolute path is given when launching configure, # XXX: we assume an absolute path is given when launching configure,
# except in './configure' case. # except in './configure' case.
...@@ -617,6 +638,7 @@ echo "LIBPREF=$LIBPREF" >> config.mak ...@@ -617,6 +638,7 @@ echo "LIBPREF=$LIBPREF" >> config.mak
echo "LIBSUF=$LIBSUF" >> config.mak echo "LIBSUF=$LIBSUF" >> config.mak
echo "SLIBPREF=$SLIBPREF" >> config.mak echo "SLIBPREF=$SLIBPREF" >> config.mak
echo "SLIBSUF=$SLIBSUF" >> config.mak echo "SLIBSUF=$SLIBSUF" >> config.mak
echo "TARGET_OS=$TARGET_OS" >> config.mak
if test "$cpu" = "x86" ; then if test "$cpu" = "x86" ; then
echo "TARGET_ARCH_X86=yes" >> config.mak echo "TARGET_ARCH_X86=yes" >> config.mak
echo "#define ARCH_X86 1" >> $TMPH echo "#define ARCH_X86 1" >> $TMPH
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment