mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
indent
Originally committed as revision 7862 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8a608357d1
commit
d474299a0d
342
configure
vendored
342
configure
vendored
@ -774,177 +774,177 @@ LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(libdir)/$(LIB)"'
|
|||||||
# OS specific
|
# OS specific
|
||||||
targetos=`uname -s`
|
targetos=`uname -s`
|
||||||
case $targetos in
|
case $targetos in
|
||||||
BeOS)
|
BeOS)
|
||||||
PREFIX="/boot/home/config"
|
PREFIX="/boot/home/config"
|
||||||
# helps building libavcodec
|
# helps building libavcodec
|
||||||
add_cflags "-DPIC -fomit-frame-pointer"
|
add_cflags "-DPIC -fomit-frame-pointer"
|
||||||
# 3 gcc releases known for BeOS, each with ugly bugs
|
# 3 gcc releases known for BeOS, each with ugly bugs
|
||||||
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
|
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
|
||||||
case "$gcc_version" in
|
case "$gcc_version" in
|
||||||
2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
|
2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
|
||||||
mmx="no"
|
mmx="no"
|
||||||
;;
|
;;
|
||||||
*20010315*) echo "BeBits gcc"
|
*20010315*) echo "BeBits gcc"
|
||||||
add_cflags "-fno-expensive-optimizations"
|
add_cflags "-fno-expensive-optimizations"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
SHFLAGS=-nostart
|
SHFLAGS=-nostart
|
||||||
# disable Linux things
|
# disable Linux things
|
||||||
audio_oss="no"
|
audio_oss="no"
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
# enable BeOS things
|
# enable BeOS things
|
||||||
audio_beos="yes"
|
audio_beos="yes"
|
||||||
# no need for libm, but the inet stuff
|
# no need for libm, but the inet stuff
|
||||||
# Check for BONE
|
# Check for BONE
|
||||||
if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
|
if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
|
||||||
extralibs="-lbind -lsocket"
|
extralibs="-lbind -lsocket"
|
||||||
else
|
else
|
||||||
beos_netserver="yes"
|
beos_netserver="yes"
|
||||||
extralibs="-lnet"
|
extralibs="-lnet"
|
||||||
fi ;;
|
fi ;;
|
||||||
SunOS)
|
SunOS)
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
audio_oss="no"
|
audio_oss="no"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
make="gmake"
|
make="gmake"
|
||||||
FFLDFLAGS=""
|
FFLDFLAGS=""
|
||||||
FFSERVERLDFLAGS=""
|
FFSERVERLDFLAGS=""
|
||||||
SHFLAGS="-shared -Wl,-h,\$@"
|
SHFLAGS="-shared -Wl,-h,\$@"
|
||||||
add_extralibs "-lsocket -lnsl"
|
add_extralibs "-lsocket -lnsl"
|
||||||
;;
|
;;
|
||||||
NetBSD)
|
NetBSD)
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
bktr="yes"
|
bktr="yes"
|
||||||
audio_oss="yes"
|
audio_oss="yes"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
make="gmake"
|
make="gmake"
|
||||||
add_extralibs "-lossaudio"
|
add_extralibs "-lossaudio"
|
||||||
;;
|
;;
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
bktr="yes"
|
bktr="yes"
|
||||||
audio_oss="yes"
|
audio_oss="yes"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
need_memalign="no"
|
need_memalign="no"
|
||||||
make="gmake"
|
make="gmake"
|
||||||
LIBOBJFLAGS="\$(PIC)"
|
LIBOBJFLAGS="\$(PIC)"
|
||||||
LDCONFIG="ldconfig -m \$(shlibdir)"
|
LDCONFIG="ldconfig -m \$(shlibdir)"
|
||||||
SHFLAGS='-shared'
|
SHFLAGS='-shared'
|
||||||
SLIBNAME='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBVERSION)'
|
SLIBNAME='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBVERSION)'
|
||||||
SLIBNAME_WITH_VERSION='$(SLIBNAME)'
|
SLIBNAME_WITH_VERSION='$(SLIBNAME)'
|
||||||
SLIBNAME_WITH_MAJOR='$(SLIBNAME)'
|
SLIBNAME_WITH_MAJOR='$(SLIBNAME)'
|
||||||
add_extralibs "-lossaudio"
|
add_extralibs "-lossaudio"
|
||||||
;;
|
;;
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
bktr="yes"
|
bktr="yes"
|
||||||
audio_oss="yes"
|
audio_oss="yes"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
make="gmake"
|
make="gmake"
|
||||||
need_memalign="no"
|
need_memalign="no"
|
||||||
add_cflags "-pthread"
|
add_cflags "-pthread"
|
||||||
;;
|
;;
|
||||||
GNU/kFreeBSD)
|
GNU/kFreeBSD)
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
bktr="yes"
|
bktr="yes"
|
||||||
audio_oss="yes"
|
audio_oss="yes"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
add_cflags "-pthread"
|
add_cflags "-pthread"
|
||||||
;;
|
;;
|
||||||
BSD/OS)
|
BSD/OS)
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
bktr="yes"
|
bktr="yes"
|
||||||
audio_oss="yes"
|
audio_oss="yes"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
extralibs="-lpoll -lgnugetopt -lm"
|
extralibs="-lpoll -lgnugetopt -lm"
|
||||||
make="gmake"
|
make="gmake"
|
||||||
strip="strip -d"
|
strip="strip -d"
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
cc="cc"
|
cc="cc"
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
audio_oss="no"
|
audio_oss="no"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
need_memalign="no"
|
need_memalign="no"
|
||||||
SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(shlibdir)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION) -Wl,-read_only_relocs,suppress"
|
SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(shlibdir)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION) -Wl,-read_only_relocs,suppress"
|
||||||
VHOOKSHFLAGS='-dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(shlibdir)/vhook/$@'
|
VHOOKSHFLAGS='-dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(shlibdir)/vhook/$@'
|
||||||
extralibs=""
|
extralibs=""
|
||||||
strip="strip -x"
|
strip="strip -x"
|
||||||
FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
|
FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
|
||||||
SLIBSUF=".dylib"
|
SLIBSUF=".dylib"
|
||||||
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME).$(LIBVERSION)$(SLIBSUF)'
|
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME).$(LIBVERSION)$(SLIBSUF)'
|
||||||
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)'
|
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)'
|
||||||
FFSERVERLDFLAGS=-Wl,-bind_at_load
|
FFSERVERLDFLAGS=-Wl,-bind_at_load
|
||||||
;;
|
;;
|
||||||
MINGW32*)
|
MINGW32*)
|
||||||
# Note: the rest of the mingw32 config is done afterwards as mingw32
|
# Note: the rest of the mingw32 config is done afterwards as mingw32
|
||||||
# can be forced on the command line for Linux cross compilation.
|
# can be forced on the command line for Linux cross compilation.
|
||||||
mingw32="yes"
|
mingw32="yes"
|
||||||
;;
|
;;
|
||||||
CYGWIN*)
|
CYGWIN*)
|
||||||
targetos=CYGWIN
|
targetos=CYGWIN
|
||||||
shlibdir="$bindir"
|
shlibdir="$bindir"
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
audio_oss="yes"
|
audio_oss="yes"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
|
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
|
||||||
VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
|
VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
|
||||||
extralibs=""
|
extralibs=""
|
||||||
EXESUF=".exe"
|
EXESUF=".exe"
|
||||||
SLIBPREF="cyg"
|
SLIBPREF="cyg"
|
||||||
SLIBSUF=".dll"
|
SLIBSUF=".dll"
|
||||||
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
|
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
|
||||||
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
|
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
|
||||||
SHFLAGS='-shared -Wl,--out-implib=lib$(NAME).dll.a'
|
SHFLAGS='-shared -Wl,--out-implib=lib$(NAME).dll.a'
|
||||||
;;
|
;;
|
||||||
Linux)
|
Linux)
|
||||||
LDLATEFLAGS="-Wl,--as-needed $LDLATEFLAGS"
|
LDLATEFLAGS="-Wl,--as-needed $LDLATEFLAGS"
|
||||||
;;
|
;;
|
||||||
IRIX*)
|
IRIX*)
|
||||||
targetos=IRIX
|
targetos=IRIX
|
||||||
ranlib="echo ignoring ranlib"
|
ranlib="echo ignoring ranlib"
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
audio_oss="no"
|
audio_oss="no"
|
||||||
make="gmake"
|
make="gmake"
|
||||||
;;
|
;;
|
||||||
OS/2)
|
OS/2)
|
||||||
TMPE=$TMPE".exe"
|
TMPE=$TMPE".exe"
|
||||||
ar="emxomfar -p128"
|
ar="emxomfar -p128"
|
||||||
ranlib="echo ignoring ranlib"
|
ranlib="echo ignoring ranlib"
|
||||||
strip="echo ignoring strip"
|
strip="echo ignoring strip"
|
||||||
add_cflags "-Zomf"
|
add_cflags "-Zomf"
|
||||||
FFLDFLAGS="-Zomf -Zstack 16384 -s"
|
FFLDFLAGS="-Zomf -Zstack 16384 -s"
|
||||||
SHFLAGS="-Zdll -Zomf"
|
SHFLAGS="-Zdll -Zomf"
|
||||||
FFSERVERLDFLAGS=""
|
FFSERVERLDFLAGS=""
|
||||||
LIBPREF=""
|
LIBPREF=""
|
||||||
LIBSUF=".lib"
|
LIBSUF=".lib"
|
||||||
SLIBPREF=""
|
SLIBPREF=""
|
||||||
SLIBSUF=".dll"
|
SLIBSUF=".dll"
|
||||||
EXESUF=".exe"
|
EXESUF=".exe"
|
||||||
extralibs=""
|
extralibs=""
|
||||||
pkg_requires=""
|
pkg_requires=""
|
||||||
video4linux="no"
|
video4linux="no"
|
||||||
video4linux2="no"
|
video4linux2="no"
|
||||||
audio_oss="no"
|
audio_oss="no"
|
||||||
dv1394="no"
|
dv1394="no"
|
||||||
ffserver="no"
|
ffserver="no"
|
||||||
vhook="no"
|
vhook="no"
|
||||||
os2="yes"
|
os2="yes"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
targetos="${targetos}-UNKNOWN"
|
targetos="${targetos}-UNKNOWN"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# find source path
|
# find source path
|
||||||
|
Loading…
Reference in New Issue
Block a user