aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-07-28 00:48:11 +0000
committerDiego Biurrun <diego@biurrun.de>2006-07-28 00:48:11 +0000
commitb2828252a9e31324f7ca79fccbf5a31d29c9369e (patch)
treeed2a5ee0385471b53caf5d52fed10adfc51617fb /configure
parentabafc9c3f6be0c72808e25500fcbc4a26ca25c99 (diff)
downloadffmpeg-b2828252a9e31324f7ca79fccbf5a31d29c9369e.tar.gz
Remove redundant TARGET_OS setting.
Originally committed as revision 5833 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure35
1 files changed, 9 insertions, 26 deletions
diff --git a/configure b/configure
index a3613b34c2..7aa9f56237 100755
--- a/configure
+++ b/configure
@@ -582,6 +582,7 @@ MINGW32*)
mingw32="yes"
;;
CYGWIN*)
+targetos=CYGWIN
shlibdir='${PREFIX}/bin'
v4l="no"
v4l2="no"
@@ -599,6 +600,7 @@ SHFLAGS='-shared -Wl,--out-implib=lib$(NAME).dll.a'
Linux)
;;
IRIX*)
+targetos=IRIX
ranlib="echo ignoring ranlib"
v4l="no"
v4l2="no"
@@ -630,30 +632,11 @@ vhook="no"
os2="yes"
;;
-*) ;;
+*)
+targetos="${targetos}-UNKNOWN"
+;;
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|BeOS|MorphOS)
- ;;
- 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
source_path="`dirname $0`"
source_path_used="yes"
@@ -1604,7 +1587,7 @@ fi
echo "SLIBPREF=$SLIBPREF" >> config.mak
echo "SLIBSUF=\${BUILDSUF}$SLIBSUF" >> config.mak
echo "EXESUF=\${BUILDSUF}$EXESUF" >> config.mak
-echo "TARGET_OS=$TARGET_OS" >> config.mak
+echo "TARGET_OS=$targetos" >> config.mak
if test "$cpu" = "x86" ; then
echo "TARGET_ARCH_X86=yes" >> config.mak
echo "#define ARCH_X86 1" >> $TMPH
@@ -1949,17 +1932,17 @@ if test "$os2" = "yes" ; then
echo "#define HAVE_THREADS 1" >> $TMPH
fi
-if test "$TARGET_OS" = "SunOS" ; then
+if test "$targetos" = "SunOS" ; then
echo "#define CONFIG_SUNOS 1" >> $TMPH
fi
-if test "$TARGET_OS" = "BeOS" ; then
+if test "$targetos" = "BeOS" ; then
echo "HAVE_BEOSTHREADS=yes" >> config.mak
echo "#define HAVE_BEOSTHREADS 1" >> $TMPH
echo "#define HAVE_THREADS 1" >> $TMPH
fi
-if test "$TARGET_OS" = "Darwin"; then
+if test "$targetos" = "Darwin"; then
echo "#define CONFIG_DARWIN 1" >> $TMPH
echo "CONFIG_DARWIN=yes" >> config.mak
fi