echo"ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2
exit 1
fi
}
DISTRO=
BUILDDIR=.
BUILD=`gcc -dumpmachine`
if test"$#"-ge"1";then
HOST="$1"
TARGET="$1"
else
HOST="$BUILD"
TARGET="$BUILD"
fi
DISTRO=
if test"$#"="2";then
echo"Forcing distro.mak to use $2.mak"
info "Forcing distro.mak to use $2.mak"
DISTRO="$2"
HOST="$1"
TARGET="$1"
fi
rm-f config.mak
config_mak="${BUILDDIR}/config.mak"
rm-f"${config_mak}"
{
echo"# Automatically generated by bootstrap."
echo"# Make changes if you know what you're doing."
}>config.mak
}>"${config_mak}"
rm-f distro.mak
distro_mak="${BUILDDIR}/distro.mak"
rm-f"${distro_mak}"
{
echo"# Automatically generated by bootstrap"
echo"# Make changes if you know what you're doing."
}>distro.mak
if test"$HOST"!="$BUILD";then
CC="${HOST}-gcc"
CXX="${HOST}-g++"
LD="${HOST}-ld"
RANLIB="${HOST}-ranlib"
AR="${HOST}-ar"
STRIP="${HOST}-strip"
}>"${distro_mak}"
if test"$TARGET"!="$BUILD";then
CC="${TARGET}-gcc"
CXX="${TARGET}-g++"
LD="${TARGET}-ld"
RANLIB="${TARGET}-ranlib"
AR="${TARGET}-ar"
STRIP="${TARGET}-strip"
fi
case$HOSTin
case$TARGETin
*powerpc*|*ppc*)
ARCH="ppc"
;;
...
...
@@ -84,166 +114,154 @@ case $HOST in
ARCH="armel"
;;
esac
echo"ARCH = $ARCH">> config.mak
add_makefile_cfg "ARCH = $ARCH"
# Check the HAVE_{OS}
case$HOSTin
case$TARGETin
*darwin*)
echo"HAVE_DARWIN_OS = 1">> config.mak
echo"HAVE_BSD = 1">> config.mak
add_makefile_cfg "HAVE_DARWIN_OS = 1"
add_makefile_cfg "HAVE_BSD = 1"
;;
*linux*)
echo"HAVE_LINUX = 1">> config.mak
add_makefile_cfg "HAVE_LINUX = 1"
;;
*bsd*)
echo"HAVE_BSD = 1">> config.mak
add_makefile_cfg "HAVE_BSD = 1"
;;
*wince*)
echo"HAVE_WINCE = 1">> config.mak
add_makefile_cfg "HAVE_WINCE = 1"
;;
esac
case$HOSTin
ppc-darwin)
# Mac OS X < 10.4
echo"Your version of Mac OS X is too old!">&2
echo"Compiling VLC requires 10.5.x or later">&2
exit 1
;;
*-apple-darwin8)
echo"Your version of Mac OS X is too old!">&2
echo"Compiling and running VLC requires 10.5.x or later">&2
case$TARGETin
ppc-darwin|*-apple-darwin8)
error "Your version of Mac OS X is too old!"
error "Compiling and running VLC requires 10.5.x or later"
echo"ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2
echo"ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2
echo"ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2