3 if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
5 echo "Usage: ./configure [options]"
7 echo "available options:"
9 echo " --help print this message"
10 echo " --disable-avs disables avisynth support (windows only)"
11 echo " --disable-lavf disables libavformat support"
12 echo " --disable-ffms disables ffmpegsource support"
13 echo " --disable-gpac disables gpac support"
14 echo " --disable-gpl disables GPL-only features"
15 echo " --disable-thread disables multithreaded encoding"
16 echo " --enable-win32thread use win32threads (windows only)"
17 echo " --disable-swscale disables swscale support"
18 echo " --disable-asm disables platform-specific assembly optimizations"
19 echo " --enable-debug adds -g, doesn't strip"
20 echo " --enable-gprof adds -pg, doesn't strip"
21 echo " --enable-visualize enables visualization (X11 only)"
22 echo " --enable-pic build position-independent code"
23 echo " --enable-shared build libx264.so"
24 echo " --bit-depth=BIT_DEPTH sets output bit depth (8-10), default 8"
25 echo " --extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS"
26 echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS"
27 echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS"
28 echo " --host=HOST build programs to run on HOST"
29 echo " --cross-prefix=PREFIX use PREFIX for compilation tools"
30 echo " --sysroot=SYSROOT root of cross-build tree"
36 echo -n "checking $1... " >> config.log
40 echo "yes" >> config.log
44 echo "no" >> config.log
48 echo "$1" >> config.log
53 if [ -z "$1$2" ]; then
54 log_check "whether $CC works"
55 elif [ -z "$1" ]; then
60 elif [ -z "$1" ]; then
61 log_check "whether $CC supports $3"
63 log_check "for $3 in $1";
66 [ -n "$1" ] && echo "#include <$1>" > conftest.c
67 echo "int main () { $3 return 0; }" >> conftest.c
68 if $CC conftest.c $CFLAGS $2 $LDFLAGSCLI $LDFLAGS -o conftest >conftest.log 2>&1; then
74 log_msg "Failed commandline was:"
75 log_msg "--------------------------------------------------"
76 log_msg "$CC conftest.c $CFLAGS $2 $LDFLAGSCLI $LDFLAGS"
77 cat conftest.log >> config.log
78 log_msg "--------------------------------------------------"
79 log_msg "Failed program was:"
80 log_msg "--------------------------------------------------"
81 cat conftest.c >> config.log
82 log_msg "--------------------------------------------------"
88 log_check "whether $3 is true"
90 [ -n "$1" ] && echo "#include <$1>" > conftest.c
91 echo -e "#if !($3) \n#error $4 \n#endif " >> conftest.c
93 if $CC conftest.c $CFLAGS $2 -E -o conftest >conftest.log 2>&1; then
99 log_msg "--------------------------------------------------"
100 cat conftest.log >> config.log
101 log_msg "--------------------------------------------------"
102 log_msg "Failed program was:"
103 log_msg "--------------------------------------------------"
104 cat conftest.c >> config.log
105 log_msg "--------------------------------------------------"
111 log_check "whether $AS supports $1"
112 echo "$1" > conftest.asm
113 if $AS conftest.asm $ASFLAGS $2 -o conftest.o >conftest.log 2>&1; then
119 log_msg "Failed commandline was:"
120 log_msg "--------------------------------------------------"
121 log_msg "$AS conftest.asm $ASFLAGS $2 -o conftest.o"
122 cat conftest.log >> config.log
123 log_msg "--------------------------------------------------"
124 log_msg "Failed program was:"
125 log_msg "--------------------------------------------------"
126 cat conftest.asm >> config.log
127 log_msg "--------------------------------------------------"
133 echo "#define $1$([ -n "$2" ] && echo " $2" || echo " 1")" >> config.h
142 rm -f x264_config.h config.h config.mak config.log x264.pc conftest*
145 exec_prefix='${prefix}'
146 bindir='${exec_prefix}/bin'
147 libdir='${exec_prefix}/lib'
148 includedir='${prefix}/include'
166 CFLAGS="$CFLAGS -Wall -I."
168 LDFLAGSCLI="$LDFLAGSCLI"
175 # list of all preprocessor HAVE values we can define
176 CONFIG_HAVE="MALLOC_H ALTIVEC ALTIVEC_H MMX ARMV6 ARMV6T2 NEON BEOSTHREAD POSIXTHREAD WIN32THREAD THREAD LOG2F VISUALIZE SWSCALE LAVF FFMS GPAC GF_MALLOC AVS GPL"
187 exec_prefix="$optarg"
217 ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"
220 CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
223 LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
228 --enable-win32thread)
239 LDFLAGS="$LDFLAGS -pg"
252 host="${opt#--host=}"
255 cross_prefix="${opt#--cross-prefix=}"
258 CFLAGS="$CFLAGS --sysroot=${opt#--sysroot=}"
259 LDFLAGS="$LDFLAGS --sysroot=${opt#--sysroot=}"
262 bit_depth="${opt#--bit-depth=}"
263 if [ "$bit_depth" -lt "8" -o "$bit_depth" -gt "10" ]; then
264 echo "Supplied bit depth must be in range [8,10]."
267 bit_depth=`expr $bit_depth + 0`
270 echo "Unknown option $opt, ignored"
275 CC="${CC-${cross_prefix}gcc}"
276 AR="${AR-${cross_prefix}ar}"
277 RANLIB="${RANLIB-${cross_prefix}ranlib}"
278 STRIP="${STRIP-${cross_prefix}strip}"
280 if [ "x$host" = x ]; then
281 host=`./config.guess`
283 # normalize a triplet into a quadruplet
284 host=`./config.sub $host`
287 host_cpu="${host%%-*}"
289 host_vendor="${host%%-*}"
299 CFLAGS="$CFLAGS -falign-loops=16"
300 LDFLAGS="$LDFLAGS -lm"
301 if [ "$pic" = "no" ]; then
302 cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
307 LDFLAGS="$LDFLAGS -lm"
312 LDFLAGS="$LDFLAGS -lm"
316 LDFLAGS="$LDFLAGS -lm"
320 LDFLAGS="$LDFLAGS -lm"
325 LDFLAGS="$LDFLAGS -lm"
331 if cc_check "" -mno-cygwin; then
332 CFLAGS="$CFLAGS -mno-cygwin"
333 LDFLAGS="$LDFLAGS -mno-cygwin"
344 LDFLAGS="$LDFLAGS -lm"
348 die "Unknown system $host, edit the configure"
356 ASFLAGS="$ASFLAGS -O2"
357 if [[ "$asm" == auto && "$CFLAGS" != *-march* ]]; then
358 CFLAGS="$CFLAGS -march=i686"
360 if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then
361 CFLAGS="$CFLAGS -mfpmath=sse -msse"
363 if [ "$SYS" = MACOSX ]; then
364 ASFLAGS="$ASFLAGS -f macho -DPREFIX"
365 elif [ "$SYS" = MINGW ]; then
366 ASFLAGS="$ASFLAGS -f win32 -DPREFIX"
367 LDFLAGS="$LDFLAGS -Wl,--large-address-aware"
369 ASFLAGS="$ASFLAGS -f elf"
375 if [ "$SYS" = MACOSX ]; then
376 ASFLAGS="$ASFLAGS -f macho64 -m amd64 -DPIC -DPREFIX"
377 if cc_check '' "-arch x86_64"; then
378 CFLAGS="$CFLAGS -arch x86_64"
379 LDFLAGS="$LDFLAGS -arch x86_64"
381 elif [ "$SYS" = MINGW ]; then
382 ASFLAGS="$ASFLAGS -f win32 -m amd64"
383 cc_check "" "-S" && grep -q "_main:" conftest && ASFLAGS="$ASFLAGS -DPREFIX"
385 ASFLAGS="$ASFLAGS -f elf -m amd64"
390 if [ $asm = auto ] ; then
392 AS="${AS-${cross_prefix}gcc}"
393 if [ $SYS = MACOSX ] ; then
394 CFLAGS="$CFLAGS -faltivec -fastf -mcpu=G4"
396 CFLAGS="$CFLAGS -maltivec -mabi=altivec"
397 define HAVE_ALTIVEC_H
405 if [ $asm = auto ]; then
407 if ! echo $CFLAGS | grep -Eq '\-mcpu' ; then
408 CFLAGS="$CFLAGS -mcpu=ultrasparc"
409 LDFLAGS="$LDFLAGS -mcpu=ultrasparc"
411 AS="${AS-${cross_prefix}as}"
412 ASFLAGS="$ASFLAGS -xarch=v8plusa"
417 mips|mipsel|mips64|mips64el)
422 if [ "$SYS" = MACOSX ] ; then
423 AS="${AS-extras/gas-preprocessor.pl $CC}"
424 ASFLAGS="$ASFLAGS -DPREFIX -DPIC" # apple's ld doesn't support movw/movt relocations at all
425 # build for armv7 by default
426 if ! echo $CFLAGS | grep -Eq '\-arch' ; then
427 CFLAGS="$CFLAGS -arch armv7"
428 LDFLAGS="$LDFLAGS -arch armv7"
431 AS="${AS-${cross_prefix}gcc}"
444 ARCH="$(echo $host_cpu | tr a-z A-Z)"
448 log_msg "x264 configure script"
450 msg="Command line options:"
460 cc_check || die "No working C compiler found."
462 if cc_check '' -std=gnu99 ; then
463 CFLAGS="$CFLAGS -std=gnu99"
464 elif cc_check '' -std=c99 ; then
465 CFLAGS="$CFLAGS -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE"
468 if [ $shared = yes -a \( $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" -o $ARCH = "ARM" -o $ARCH = "IA64" \) ] ; then
472 if [ $asm = auto -a \( $ARCH = X86 -o $ARCH = X86_64 \) ] ; then
473 if ! as_check "vpaddw xmm0, xmm0, xmm0" ; then
474 VER=`($AS --version || echo no assembler) 2>$DEVNULL | head -n 1`
476 echo "Minimum version is yasm-0.7.0"
477 echo "If you really want to compile without asm, configure with --disable-asm."
480 if ! cc_check '' '' '__asm__("pabsw %xmm0, %xmm0");' ; then
481 VER=`(${cross_prefix}as --version || echo no gnu as) 2>$DEVNULL | head -n 1`
483 echo "Minimum version is binutils-2.17"
484 echo "Your compiler can't handle inline SSSE3 asm."
485 echo "If you really want to compile without asm, configure with --disable-asm."
491 if [ $asm = auto -a $ARCH = ARM ] ; then
492 # set flags so neon is built by default
493 echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu|-mfloat-abi)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
495 if cc_check '' '' '__asm__("rev ip, ip");' ; then define HAVE_ARMV6
496 cc_check '' '' '__asm__("movt r0, #0");' && define HAVE_ARMV6T2
497 cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON
498 ASFLAGS="$ASFLAGS $CFLAGS -c"
500 echo "You specified a pre-ARMv6 or Thumb-1 CPU in your CFLAGS."
501 echo "If you really want to run on such a CPU, configure with --disable-asm."
506 [ $asm = no ] && AS=""
507 [ "x$AS" = x ] && asm="no" || asm="yes"
512 echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c
513 $CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test failed"
514 if (${cross_prefix}strings -a conftest.o | grep -q BIGE) && (${cross_prefix}strings -a conftest.o | grep -q FPendian) ; then
515 define WORDS_BIGENDIAN
516 elif !(${cross_prefix}strings -a conftest.o | grep -q EGIB && ${cross_prefix}strings -a conftest.o | grep -q naidnePF) ; then
517 die "endian test failed"
520 # autodetect options that weren't forced nor disabled
522 # pthread-win32 is lgpl, prevent its use if --disable-gpl is specified and targeting windows
523 [ "$SYS" = "MINGW" -a "$gpl" = "no" -a "$thread" = "auto" ] && thread="win32"
526 if [ "$thread" = "auto" ]; then
531 define HAVE_BEOSTHREAD
534 if cc_check pthread.h -lpthread "pthread_create(0,0,0,0);" ; then
536 libpthread="-lpthread"
537 elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0);" ; then
539 libpthread="-lpthreadGC2"
540 elif cc_check pthread.h "-lpthreadGC2 -lwsock32 -DPTW32_STATIC_LIB" "pthread_create(0,0,0,0);" ; then
542 libpthread="-lpthreadGC2 -lwsock32"
543 define PTW32_STATIC_LIB
544 elif cc_check pthread.h "-lpthreadGC2 -lws2_32 -DPTW32_STATIC_LIB" "pthread_create(0,0,0,0);" ; then
546 libpthread="-lpthreadGC2 -lws2_32"
547 define PTW32_STATIC_LIB
549 # default to native threading if pthread-win32 is unavailable
554 cc_check pthread.h -pthread && thread="posix" && libpthread="-pthread"
557 cc_check pthread.h -lpthread && thread="posix" && libpthread="-lpthread"
561 if [ "$thread" = "posix" ]; then
562 LDFLAGS="$LDFLAGS $libpthread"
563 define HAVE_POSIXTHREAD
565 if [ "$thread" = "win32" ]; then
566 if [ "$SYS" = "MINGW" ]; then
567 define HAVE_WIN32THREAD
572 [ "$thread" != "no" ] && define HAVE_THREAD
574 if cc_check "math.h" "-Werror" "return log2f(2);" ; then
578 if [ "$vis" = "yes" ] ; then
579 save_CFLAGS="$CFLAGS"
580 CFLAGS="$CFLAGS -I/usr/X11R6/include"
581 if cc_check "X11/Xlib.h" "-L/usr/X11R6/lib -lX11" "XOpenDisplay(0);" ; then
582 LDFLAGS="-L/usr/X11R6/lib -lX11 $LDFLAGS"
583 define HAVE_VISUALIZE
586 CFLAGS="$save_CFLAGS"
590 if [ "$swscale" = "auto" ] ; then
592 if ${cross_prefix}pkg-config --exists libswscale 2>$DEVNULL; then
593 SWSCALE_LIBS="$SWSCALE_LIBS $(${cross_prefix}pkg-config --libs libswscale)"
594 SWSCALE_CFLAGS="$SWSCALE_CFLAGS $(${cross_prefix}pkg-config --cflags libswscale)"
596 [ -z "$SWSCALE_LIBS" ] && SWSCALE_LIBS="-lswscale -lavutil"
598 error="swscale must be at least version 0.9.0"
599 if cc_check "libswscale/swscale.h" "$SWSCALE_CFLAGS $SWSCALE_LIBS" "sws_getContext(0,0,0,0,0,0,0,0,0,0);" ; then
600 if cpp_check "libswscale/swscale.h" "$SWSCALE_CFLAGS" "LIBSWSCALE_VERSION_INT >= AV_VERSION_INT(0,9,0)" "$error"; then
601 # we use colorspaces that were defined in libavutil r19775
602 if cc_check "libavutil/pixfmt.h" "$SWSCALE_CFLAGS" "enum PixelFormat pixfmt = PIX_FMT_YUV422P16LE;" ; then
605 echo "Warning: libavutil is too old, update to ffmpeg r19775+"
608 echo "Warning: ${error}"
613 if [ "$lavf" = "auto" ] ; then
615 if ${cross_prefix}pkg-config --exists libavformat libavcodec libswscale 2>$DEVNULL; then
616 LAVF_LIBS="$LAVF_LIBS $(${cross_prefix}pkg-config --libs libavformat libavcodec libavutil libswscale)"
617 LAVF_CFLAGS="$LAVF_CFLAGS $(${cross_prefix}pkg-config --cflags libavformat libavcodec libavutil libswscale)"
619 if [ -z "$LAVF_LIBS" -a -z "$LAVF_CFLAGS" ]; then
620 LAVF_LIBS="-lavformat"
621 for lib in -lpostproc -lavcodec -lavcore -lswscale -lavutil -lm -lz -lbz2 $libpthread -lavifil32; do
622 cc_check "" $lib && LAVF_LIBS="$LAVF_LIBS $lib"
625 LAVF_LIBS="-L. $LAVF_LIBS"
626 if cc_check libavformat/avformat.h "$LAVF_CFLAGS $LAVF_LIBS" "avcodec_decode_video2(0,0,0,0);" ; then
627 # libvautil/pixdesc.h included the private header intreadwrite.h until r21854
628 if cc_check libavutil/pixdesc.h "$LAVF_CFLAGS $LAVF_LIBS" ; then
629 if [ "$swscale" = "yes" ]; then
632 echo "Warning: libavformat is not supported without swscale support"
635 echo "Warning: libavutil is too old, update to ffmpeg r21854+"
640 if [ "$ffms" = "auto" ] ; then
641 ffms_major="2"; ffms_minor="14"; ffms_micro="0"; ffms_bump="0"
644 if ${cross_prefix}pkg-config --exists ffms2 2>$DEVNULL; then
645 FFMS2_LIBS="$FFMS2_LIBS $(${cross_prefix}pkg-config --libs ffms2)"
646 FFMS2_CFLAGS="$FFMS2_CFLAGS $(${cross_prefix}pkg-config --cflags ffms2)"
648 [ -z "$FFMS2_LIBS" ] && FFMS2_LIBS="-lffms2"
650 if cc_check ffms.h "$FFMS2_CFLAGS $FFMS2_LIBS" "FFMS_DestroyVideoSource(0);" ; then
652 elif cc_check ffms.h "$FFMS2_CFLAGS $FFMS2_LIBS -lstdc++ $LAVF_LIBS" "FFMS_DestroyVideoSource(0);" ; then
654 FFMS2_LIBS="$FFMS2_LIBS -lstdc++ $LAVF_LIBS"
657 error="ffms must be at least version $ffms_major.$ffms_minor.$ffms_micro.$ffms_bump"
658 if [ $ffms = "yes" ] && ! cpp_check "ffms.h" "$FFMS2_CFLAGS" "FFMS_VERSION >= (($ffms_major << 24) | ($ffms_minor << 16) | ($ffms_micro << 8) | $ffms_bump)" "$error"; then
660 echo "Warning: $error"
662 if [ "$ffms" = "yes" -a "$swscale" = "no" ]; then
663 echo "Warning: ffms is not supported without swscale support"
668 if [ "$swscale" = "yes" ]; then
669 LDFLAGSCLI="$SWSCALE_LIBS $LDFLAGSCLI"
670 CFLAGS="$CFLAGS $SWSCALE_CFLAGS"
672 if [ "$lavf" = "yes" ]; then
673 LDFLAGSCLI="$LAVF_LIBS $LDFLAGSCLI"
674 CFLAGS="$CFLAGS $LAVF_CFLAGS"
677 if [ "$ffms" = "yes" ]; then
678 LDFLAGSCLI="$FFMS2_LIBS $LDFLAGSCLI"
679 CFLAGS="$CFLAGS $FFMS2_CFLAGS"
684 GPAC_LIBS="-lgpac_static"
685 if [ $SYS = MINGW ]; then
686 GPAC_LIBS="$GPAC_LIBS -lwinmm"
688 if [ "$gpac" = "auto" ] ; then
690 if cc_check gpac/isomedia.h "$GPAC_LIBS" ; then
691 if cc_check gpac/isomedia.h "$GPAC_LIBS" "gf_isom_set_pixel_aspect_ratio(0,0,0,0,0);" ; then
694 echo "Warning: gpac is too old, update to 2007-06-21 UTC or later"
698 if [ "$gpac" = "yes" ] ; then
700 if cc_check gpac/isomedia.h "-Werror $GPAC_LIBS" "gf_malloc(1); gf_free(NULL);" ; then
701 define HAVE_GF_MALLOC
703 LDFLAGSCLI="$GPAC_LIBS $LDFLAGSCLI"
706 if [ "$avs" = "auto" ] ; then
708 if [ $SYS = MINGW ] && cc_check extras/avisynth_c.h ; then
714 if [ "$pic" = "yes" ] ; then
715 CFLAGS="$CFLAGS -fPIC"
716 ASFLAGS="$ASFLAGS -DPIC"
717 # resolve textrels in the x86 asm
718 cc_check stdio.h -Wl,-Bsymbolic && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
721 if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
722 CFLAGS="$CFLAGS -s -fomit-frame-pointer"
723 LDFLAGS="$LDFLAGS -s"
726 if [ "$debug" = "yes" ]; then
727 CFLAGS="-O1 -g $CFLAGS"
728 elif [ $ARCH = ARM ]; then
729 # arm-gcc-4.2 produces incorrect output with -ffast-math
730 # and it doesn't save any speed anyway on 4.4, so disable it
731 CFLAGS="-O3 -fno-fast-math $CFLAGS"
733 CFLAGS="-O3 -ffast-math $CFLAGS"
736 if cc_check '' -fno-tree-vectorize ; then
737 CFLAGS="$CFLAGS -fno-tree-vectorize"
740 if [ $SYS = MINGW -a $ARCH = X86 ] ; then
741 # workaround gcc/ld bug with alignment of static variables/arrays that are initialized to zero
742 cc_check '' -fno-zero-initialized-in-bss && CFLAGS="$CFLAGS -fno-zero-initialized-in-bss"
745 if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
748 elif cc_check "stdio.h" "" "fseeko64(stdin,0,0);" ; then
749 define fseek fseeko64
750 define ftell ftello64
753 if cc_check '' -Wshadow ; then
754 CFLAGS="-Wshadow $CFLAGS"
757 if [ "$bit_depth" -gt "8" ]; then
758 define HIGH_BIT_DEPTH
759 ASFLAGS="$ASFLAGS -DHIGH_BIT_DEPTH"
762 ASFLAGS="$ASFLAGS -DBIT_DEPTH=$bit_depth"
764 [ $gpl = yes ] && define HAVE_GPL && x264_gpl=1 || x264_gpl=0
766 #define undefined vars as 0
767 for var in $CONFIG_HAVE; do
768 grep -q "HAVE_$var 1" config.h || define HAVE_$var 0
773 # generate exported config file
775 cat > x264_config.h << EOF
776 #define X264_BIT_DEPTH $bit_depth
777 #define X264_GPL $x264_gpl
780 # generate config files
782 cat > config.mak << EOF
784 exec_prefix=$exec_prefix
787 includedir=$includedir
793 LDFLAGSCLI=$LDFLAGSCLI
800 HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
804 if [ "$shared" = "yes" ]; then
805 API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ')
806 if [ "$SYS" = "MINGW" ]; then
807 echo "SONAME=libx264-$API.dll" >> config.mak
808 echo 'IMPLIBNAME=libx264.dll.a' >> config.mak
809 echo 'SOFLAGS=-Wl,--out-implib,$(IMPLIBNAME) -Wl,--enable-auto-image-base' >> config.mak
810 elif [ "$SYS" = "MACOSX" ]; then
811 echo "SOSUFFIX=dylib" >> config.mak
812 echo "SONAME=libx264.$API.dylib" >> config.mak
813 echo 'SOFLAGS=-dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress -install_name $(DESTDIR)$(libdir)/$(SONAME)' >> config.mak
814 elif [ "$SYS" = "SunOS" ]; then
815 echo "SOSUFFIX=so" >> config.mak
816 echo "SONAME=libx264.so.$API" >> config.mak
817 echo 'SOFLAGS=-Wl,-h,$(SONAME)' >> config.mak
819 echo "SOSUFFIX=so" >> config.mak
820 echo "SONAME=libx264.so.$API" >> config.mak
821 echo 'SOFLAGS=-Wl,-soname,$(SONAME)' >> config.mak
823 echo 'default: $(SONAME)' >> config.mak
826 ./version.sh >> config.h
828 pclibs="-L$libdir -lx264 $libpthread"
832 exec_prefix=$exec_prefix
834 includedir=$includedir
837 Description: H.264 (MPEG4 AVC) encoder library
838 Version: $(grep POINTVER < config.h | sed -e 's/.* "//; s/".*//')
840 Cflags: -I$includedir
843 filters="crop select_every"
845 [ $swscale = yes ] && filters="resize $filters"
846 [ $gpl = yes ] && filters="$filters $gpl_filters"
848 cat > conftest.log <<EOF
864 bit depth: $bit_depth
868 cat conftest.log >> config.log
873 echo "You can run 'make' or 'make fprofiled' now."