mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Organize header files and system functions checks
Originally committed as revision 10566 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
79973335d3
commit
a98bb16de2
43
configure
vendored
43
configure
vendored
@ -1487,22 +1487,30 @@ grep -q BIGE $TMPO && enable bigendian
|
||||
# ---
|
||||
# check availability of some header files
|
||||
|
||||
check_header malloc.h
|
||||
if check_func dlopen; then
|
||||
ldl=
|
||||
elif check_func dlopen -ldl; then
|
||||
ldl=-ldl
|
||||
fi
|
||||
|
||||
check_func fork
|
||||
check_func gethrtime
|
||||
check_func getrusage
|
||||
check_func inet_aton
|
||||
check_func memalign
|
||||
check_func mkstemp
|
||||
check_func2 windows.h GetProcessTimes
|
||||
|
||||
check_header byteswap.h
|
||||
check_header conio.h
|
||||
check_header dlfcn.h
|
||||
check_header malloc.h
|
||||
check_header termios.h
|
||||
|
||||
if ! enabled_any memalign memalign_hack && enabled need_memalign ; then
|
||||
die "Error, no memalign() but SSE enabled, disable it or use --enable-memalign-hack."
|
||||
fi
|
||||
|
||||
check_header byteswap.h
|
||||
|
||||
check_func mkstemp
|
||||
check_func gethrtime
|
||||
|
||||
check_header termios.h
|
||||
check_header conio.h
|
||||
|
||||
check_func inet_aton
|
||||
enabled zlib && check_lib zlib.h zlibVersion -lz || disable zlib
|
||||
|
||||
# ffserver uses poll(),
|
||||
@ -1572,21 +1580,6 @@ void foo(char * $restrict_keyword p);
|
||||
EOF
|
||||
done
|
||||
|
||||
# dlopen/dlfcn.h probing
|
||||
|
||||
check_header dlfcn.h
|
||||
|
||||
if check_func dlopen; then
|
||||
ldl=
|
||||
elif check_func dlopen -ldl; then
|
||||
ldl=-ldl
|
||||
fi
|
||||
|
||||
check_func getrusage
|
||||
check_func2 windows.h GetProcessTimes
|
||||
|
||||
check_func fork
|
||||
|
||||
test "$vhook" = "default" && vhook="$dlopen"
|
||||
|
||||
if test "$targetos" = cygwin -o "$targetos" = mingw32 && enabled_all static vhook ; then
|
||||
|
Loading…
Reference in New Issue
Block a user