summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2002-03-08 09:09:57 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-03-08 09:09:57 +0000
commitef0bc4c97f1ad704c0d6322775902c5d62adf546 (patch)
treec672090feb047ee57a31a9c4dd77485bdb478c5a /configure
parent73c8e5144af3f90ccb21fa1d058ae02b3394aab0 (diff)
* BeOS patch by François Revol <revol@free.fr>
fixing some compilation problems Originally committed as revision 319 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 22 insertions, 1 deletions
diff --git a/configure b/configure
index 07599b03f2..4501b6af5d 100755
--- a/configure
+++ b/configure
@@ -27,7 +27,7 @@ cc="gcc"
ar="ar"
cpu=`uname -m`
case "$cpu" in
- i386|i486|i586|i686|i86pc)
+ i386|i486|i586|i686|i86pc|BePC)
cpu="x86"
mmx="yes"
;;
@@ -46,6 +46,26 @@ esac
gprof="no"
grab="yes"
win32="no"
+extralibs="-lm"
+
+# OS specific
+targetos=`uname -s`
+case $targetos in
+BeOS)
+prefix="/boot/home/config"
+# helps building libavcodec
+grab="no"
+CFLAGS="-O2 -DPIC"
+# no need for libm, but the inet stuff
+# Check for BONE
+if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
+extralibs="-lbind -lsocket"
+else
+echo "Not sure building for net_server will succeed... good luck."
+extralibs="-lsocket"
+fi ;;
+*) ;;
+esac
if [ "$1" = "-h" -o "$1" = "--help" ] ; then
cat << EOF
@@ -167,6 +187,7 @@ if [ "$lshared" = "yes" ] ; then
else
echo "BUILD_SHARED=no" >> config.mak
fi
+echo "EXTRALIBS=$extralibs" >> config.mak
echo -n "VERSION=" >>config.mak
head VERSION >>config.mak
echo "" >>config.mak