summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRomain Dolbeau <dolbeau@irisa.fr>2003-01-26 22:31:47 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-26 22:31:47 +0000
commit6852ac95dd5f0a85761fedc6cf26b65bb5d017b4 (patch)
treebf66a3aa89e6f38adb08ebf0a6bac6ba3fa853d5 /configure
parent3b991c54ebf9eb6dc17939576fef9662cae1c16c (diff)
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)
Originally committed as revision 1510 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index b0834dfaac..11e2fb4f05 100755
--- a/configure
+++ b/configure
@@ -206,6 +206,27 @@ os2="yes"
*) ;;
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
# XXX: we assume an absolute path is given when launching configure,
# except in './configure' case.
@@ -617,6 +638,7 @@ echo "LIBPREF=$LIBPREF" >> config.mak
echo "LIBSUF=$LIBSUF" >> config.mak
echo "SLIBPREF=$SLIBPREF" >> config.mak
echo "SLIBSUF=$SLIBSUF" >> config.mak
+echo "TARGET_OS=$TARGET_OS" >> config.mak
if test "$cpu" = "x86" ; then
echo "TARGET_ARCH_X86=yes" >> config.mak
echo "#define ARCH_X86 1" >> $TMPH