3 if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
5 Usage: ./configure [options]
9 --help print this message
10 --disable-avs disables avisynth support (windows only)
11 --disable-lavf disables libavformat support
12 --disable-ffms disables ffmpegsource support
13 --disable-gpac disables gpac support
14 --disable-gpl disables GPL-only features
15 --disable-thread disables multithreaded encoding
16 --enable-win32thread use win32threads (windows only)
17 --disable-swscale disables swscale support
18 --disable-asm disables platform-specific assembly optimizations
19 --enable-debug adds -g, doesn't strip
20 --enable-gprof adds -pg, doesn't strip
21 --enable-visualize enables visualization (X11 only)
22 --enable-pic build position-independent code
23 --enable-shared build shared library
24 --bit-depth=BIT_DEPTH sets output bit depth (8-10), default 8
25 --extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS
26 --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS
27 --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS
28 --host=HOST build programs to run on HOST
29 --cross-prefix=PREFIX use PREFIX for compilation tools
30 --sysroot=SYSROOT root of cross-build tree
37 echo -n "checking $1... " >> config.log
41 echo "yes" >> config.log
45 echo "no" >> config.log
49 echo "$1" >> config.log
54 if [ -z "$1$2" ]; then
55 log_check "whether $CC works"
56 elif [ -z "$1" ]; then
61 elif [ -z "$1" ]; then
62 log_check "whether $CC supports $3"
64 log_check "for $3 in $1";
67 [ -n "$1" ] && echo "#include <$1>" > conftest.c
68 echo "int main () { $3 return 0; }" >> conftest.c
69 if $CC conftest.c $CFLAGS $2 $LDFLAGSCLI $LDFLAGS -o conftest >conftest.log 2>&1; then
75 log_msg "Failed commandline was:"
76 log_msg "--------------------------------------------------"
77 log_msg "$CC conftest.c $CFLAGS $2 $LDFLAGSCLI $LDFLAGS"
78 cat conftest.log >> config.log
79 log_msg "--------------------------------------------------"
80 log_msg "Failed program was:"
81 log_msg "--------------------------------------------------"
82 cat conftest.c >> config.log
83 log_msg "--------------------------------------------------"
89 log_check "whether $3 is true"
91 [ -n "$1" ] && echo "#include <$1>" > conftest.c
92 echo -e "#if !($3) \n#error $4 \n#endif " >> conftest.c
94 if $CC conftest.c $CFLAGS $2 -E -o conftest >conftest.log 2>&1; then
100 log_msg "--------------------------------------------------"
101 cat conftest.log >> config.log
102 log_msg "--------------------------------------------------"
103 log_msg "Failed program was:"
104 log_msg "--------------------------------------------------"
105 cat conftest.c >> config.log
106 log_msg "--------------------------------------------------"
112 log_check "whether $AS supports $1"
113 echo "$1" > conftest.asm
114 if $AS conftest.asm $ASFLAGS $2 -o conftest.o >conftest.log 2>&1; then
120 log_msg "Failed commandline was:"
121 log_msg "--------------------------------------------------"
122 log_msg "$AS conftest.asm $ASFLAGS $2 -o conftest.o"
123 cat conftest.log >> config.log
124 log_msg "--------------------------------------------------"
125 log_msg "Failed program was:"
126 log_msg "--------------------------------------------------"
127 cat conftest.asm >> config.log
128 log_msg "--------------------------------------------------"
134 echo "#define $1$([ -n "$2" ] && echo " $2" || echo " 1")" >> config.h
143 rm -f x264_config.h config.h config.mak config.log x264.pc conftest*
146 exec_prefix='${prefix}'
147 bindir='${exec_prefix}/bin'
148 libdir='${exec_prefix}/lib'
149 includedir='${prefix}/include'
167 CFLAGS="$CFLAGS -Wall -I."
169 LDFLAGSCLI="$LDFLAGSCLI"
176 # list of all preprocessor HAVE values we can define
177 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"
188 exec_prefix="$optarg"
218 ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"
221 CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
224 LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
229 --enable-win32thread)
240 LDFLAGS="$LDFLAGS -pg"
253 host="${opt#--host=}"
256 cross_prefix="${opt#--cross-prefix=}"
259 CFLAGS="$CFLAGS --sysroot=${opt#--sysroot=}"
260 LDFLAGS="$LDFLAGS --sysroot=${opt#--sysroot=}"
263 bit_depth="${opt#--bit-depth=}"
264 if [ "$bit_depth" -lt "8" -o "$bit_depth" -gt "10" ]; then
265 echo "Supplied bit depth must be in range [8,10]."
268 bit_depth=`expr $bit_depth + 0`
271 echo "Unknown option $opt, ignored"
276 CC="${CC-${cross_prefix}gcc}"
277 AR="${AR-${cross_prefix}ar}"
278 RANLIB="${RANLIB-${cross_prefix}ranlib}"
279 STRIP="${STRIP-${cross_prefix}strip}"
281 if [ "x$host" = x ]; then
282 host=`./config.guess`
284 # normalize a triplet into a quadruplet
285 host=`./config.sub $host`
288 host_cpu="${host%%-*}"
290 host_vendor="${host%%-*}"
300 CFLAGS="$CFLAGS -falign-loops=16"
301 LDFLAGS="$LDFLAGS -lm"
302 if [ "$pic" = "no" ]; then
303 cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
308 LDFLAGS="$LDFLAGS -lm"
313 LDFLAGS="$LDFLAGS -lm"
317 LDFLAGS="$LDFLAGS -lm"
321 LDFLAGS="$LDFLAGS -lm"
326 LDFLAGS="$LDFLAGS -lm"
332 if cc_check "" -mno-cygwin; then
333 CFLAGS="$CFLAGS -mno-cygwin"
334 LDFLAGS="$LDFLAGS -mno-cygwin"
345 LDFLAGS="$LDFLAGS -lm"
349 die "Unknown system $host, edit the configure"
357 ASFLAGS="$ASFLAGS -O2"
358 if [[ "$asm" == auto && "$CFLAGS" != *-march* ]]; then
359 CFLAGS="$CFLAGS -march=i686"
361 if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then
362 CFLAGS="$CFLAGS -mfpmath=sse -msse"
364 if [ "$SYS" = MACOSX ]; then
365 ASFLAGS="$ASFLAGS -f macho -DPREFIX"
366 elif [ "$SYS" = MINGW ]; then
367 ASFLAGS="$ASFLAGS -f win32 -DPREFIX"
368 LDFLAGS="$LDFLAGS -Wl,--large-address-aware"
370 ASFLAGS="$ASFLAGS -f elf"
376 if [ "$SYS" = MACOSX ]; then
377 ASFLAGS="$ASFLAGS -f macho64 -m amd64 -DPIC -DPREFIX"
378 if cc_check '' "-arch x86_64"; then
379 CFLAGS="$CFLAGS -arch x86_64"
380 LDFLAGS="$LDFLAGS -arch x86_64"
382 elif [ "$SYS" = MINGW ]; then
383 ASFLAGS="$ASFLAGS -f win32 -m amd64"
384 cc_check "" "-S" && grep -q "_main:" conftest && ASFLAGS="$ASFLAGS -DPREFIX"
386 ASFLAGS="$ASFLAGS -f elf -m amd64"
391 if [ $asm = auto ] ; then
393 AS="${AS-${cross_prefix}gcc}"
394 if [ $SYS = MACOSX ] ; then
395 CFLAGS="$CFLAGS -faltivec -fastf -mcpu=G4"
397 CFLAGS="$CFLAGS -maltivec -mabi=altivec"
398 define HAVE_ALTIVEC_H
406 if [ $asm = auto ]; then
408 if ! echo $CFLAGS | grep -Eq '\-mcpu' ; then
409 CFLAGS="$CFLAGS -mcpu=ultrasparc"
410 LDFLAGS="$LDFLAGS -mcpu=ultrasparc"
412 AS="${AS-${cross_prefix}as}"
413 ASFLAGS="$ASFLAGS -xarch=v8plusa"
418 mips|mipsel|mips64|mips64el)
423 if [ "$SYS" = MACOSX ] ; then
424 AS="${AS-extras/gas-preprocessor.pl $CC}"
425 ASFLAGS="$ASFLAGS -DPREFIX -DPIC" # apple's ld doesn't support movw/movt relocations at all
426 # build for armv7 by default
427 if ! echo $CFLAGS | grep -Eq '\-arch' ; then
428 CFLAGS="$CFLAGS -arch armv7"
429 LDFLAGS="$LDFLAGS -arch armv7"
432 AS="${AS-${cross_prefix}gcc}"
445 ARCH="$(echo $host_cpu | tr a-z A-Z)"
449 log_msg "x264 configure script"
451 msg="Command line options:"
461 cc_check || die "No working C compiler found."
463 if cc_check '' -std=gnu99 ; then
464 CFLAGS="$CFLAGS -std=gnu99"
465 elif cc_check '' -std=c99 ; then
466 CFLAGS="$CFLAGS -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE"
469 if [ $shared = yes -a \( $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" -o $ARCH = "ARM" -o $ARCH = "IA64" \) ] ; then
473 if [ $asm = auto -a \( $ARCH = X86 -o $ARCH = X86_64 \) ] ; then
474 if ! as_check "vpaddw xmm0, xmm0, xmm0" ; then
475 VER=`($AS --version || echo no assembler) 2>$DEVNULL | head -n 1`
477 echo "Minimum version is yasm-0.7.0"
478 echo "If you really want to compile without asm, configure with --disable-asm."
481 if ! cc_check '' '' '__asm__("pabsw %xmm0, %xmm0");' ; then
482 VER=`(${cross_prefix}as --version || echo no gnu as) 2>$DEVNULL | head -n 1`
484 echo "Minimum version is binutils-2.17"
485 echo "Your compiler can't handle inline SSSE3 asm."
486 echo "If you really want to compile without asm, configure with --disable-asm."
492 if [ $asm = auto -a $ARCH = ARM ] ; then
493 # set flags so neon is built by default
494 echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu|-mfloat-abi)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
496 if cc_check '' '' '__asm__("rev ip, ip");' ; then define HAVE_ARMV6
497 cc_check '' '' '__asm__("movt r0, #0");' && define HAVE_ARMV6T2
498 cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON
499 ASFLAGS="$ASFLAGS $CFLAGS -c"
501 echo "You specified a pre-ARMv6 or Thumb-1 CPU in your CFLAGS."
502 echo "If you really want to run on such a CPU, configure with --disable-asm."
507 [ $asm = no ] && AS=""
508 [ "x$AS" = x ] && asm="no" || asm="yes"
513 echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c
514 $CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test failed"
515 if (${cross_prefix}strings -a conftest.o | grep -q BIGE) && (${cross_prefix}strings -a conftest.o | grep -q FPendian) ; then
516 define WORDS_BIGENDIAN
517 elif !(${cross_prefix}strings -a conftest.o | grep -q EGIB && ${cross_prefix}strings -a conftest.o | grep -q naidnePF) ; then
518 die "endian test failed"
521 # autodetect options that weren't forced nor disabled
523 # pthread-win32 is lgpl, prevent its use if --disable-gpl is specified and targeting windows
524 [ "$SYS" = "MINGW" -a "$gpl" = "no" -a "$thread" = "auto" ] && thread="win32"
527 if [ "$thread" = "auto" ]; then
532 define HAVE_BEOSTHREAD
535 if cc_check pthread.h -lpthread "pthread_create(0,0,0,0);" ; then
537 libpthread="-lpthread"
538 elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0);" ; then
540 libpthread="-lpthreadGC2"
541 elif cc_check pthread.h "-lpthreadGC2 -lwsock32 -DPTW32_STATIC_LIB" "pthread_create(0,0,0,0);" ; then
543 libpthread="-lpthreadGC2 -lwsock32"
544 define PTW32_STATIC_LIB
545 elif cc_check pthread.h "-lpthreadGC2 -lws2_32 -DPTW32_STATIC_LIB" "pthread_create(0,0,0,0);" ; then
547 libpthread="-lpthreadGC2 -lws2_32"
548 define PTW32_STATIC_LIB
550 # default to native threading if pthread-win32 is unavailable
555 cc_check pthread.h -pthread && thread="posix" && libpthread="-pthread"
558 cc_check pthread.h -lpthread && thread="posix" && libpthread="-lpthread"
562 if [ "$thread" = "posix" ]; then
563 LDFLAGS="$LDFLAGS $libpthread"
564 define HAVE_POSIXTHREAD
566 if [ "$thread" = "win32" ]; then
567 if [ "$SYS" = "MINGW" ]; then
568 define HAVE_WIN32THREAD
573 [ "$thread" != "no" ] && define HAVE_THREAD
575 if cc_check "math.h" "-Werror" "return log2f(2);" ; then
579 if [ "$vis" = "yes" ] ; then
580 save_CFLAGS="$CFLAGS"
581 CFLAGS="$CFLAGS -I/usr/X11R6/include"
582 if cc_check "X11/Xlib.h" "-L/usr/X11R6/lib -lX11" "XOpenDisplay(0);" ; then
583 LDFLAGS="-L/usr/X11R6/lib -lX11 $LDFLAGS"
584 define HAVE_VISUALIZE
587 CFLAGS="$save_CFLAGS"
591 if [ "$swscale" = "auto" ] ; then
593 if ${cross_prefix}pkg-config --exists libswscale 2>$DEVNULL; then
594 SWSCALE_LIBS="$SWSCALE_LIBS $(${cross_prefix}pkg-config --libs libswscale)"
595 SWSCALE_CFLAGS="$SWSCALE_CFLAGS $(${cross_prefix}pkg-config --cflags libswscale)"
597 [ -z "$SWSCALE_LIBS" ] && SWSCALE_LIBS="-lswscale -lavutil"
599 error="swscale must be at least version 0.9.0"
600 if cc_check "libswscale/swscale.h" "$SWSCALE_CFLAGS $SWSCALE_LIBS" "sws_getContext(0,0,0,0,0,0,0,0,0,0);" ; then
601 if cpp_check "libswscale/swscale.h" "$SWSCALE_CFLAGS" "LIBSWSCALE_VERSION_INT >= AV_VERSION_INT(0,9,0)" "$error"; then
602 # we use colorspaces that were defined in libavutil r19775
603 if cc_check "libavutil/pixfmt.h" "$SWSCALE_CFLAGS" "enum PixelFormat pixfmt = PIX_FMT_YUV422P16LE;" ; then
606 echo "Warning: libavutil is too old, update to ffmpeg r19775+"
609 echo "Warning: ${error}"
614 if [ "$lavf" = "auto" ] ; then
616 if ${cross_prefix}pkg-config --exists libavformat libavcodec libswscale 2>$DEVNULL; then
617 LAVF_LIBS="$LAVF_LIBS $(${cross_prefix}pkg-config --libs libavformat libavcodec libavutil libswscale)"
618 LAVF_CFLAGS="$LAVF_CFLAGS $(${cross_prefix}pkg-config --cflags libavformat libavcodec libavutil libswscale)"
620 if [ -z "$LAVF_LIBS" -a -z "$LAVF_CFLAGS" ]; then
621 LAVF_LIBS="-lavformat"
622 for lib in -lpostproc -lavcodec -lavcore -lswscale -lavutil -lm -lz -lbz2 $libpthread -lavifil32; do
623 cc_check "" $lib && LAVF_LIBS="$LAVF_LIBS $lib"
626 LAVF_LIBS="-L. $LAVF_LIBS"
627 if cc_check libavformat/avformat.h "$LAVF_CFLAGS $LAVF_LIBS" "avcodec_decode_video2(0,0,0,0);" ; then
628 # libvautil/pixdesc.h included the private header intreadwrite.h until r21854
629 if cc_check libavutil/pixdesc.h "$LAVF_CFLAGS $LAVF_LIBS" ; then
630 if [ "$swscale" = "yes" ]; then
633 echo "Warning: libavformat is not supported without swscale support"
636 echo "Warning: libavutil is too old, update to ffmpeg r21854+"
641 if [ "$ffms" = "auto" ] ; then
642 ffms_major="2"; ffms_minor="14"; ffms_micro="0"; ffms_bump="0"
645 if ${cross_prefix}pkg-config --exists ffms2 2>$DEVNULL; then
646 FFMS2_LIBS="$FFMS2_LIBS $(${cross_prefix}pkg-config --libs ffms2)"
647 FFMS2_CFLAGS="$FFMS2_CFLAGS $(${cross_prefix}pkg-config --cflags ffms2)"
649 [ -z "$FFMS2_LIBS" ] && FFMS2_LIBS="-lffms2"
651 if cc_check ffms.h "$FFMS2_CFLAGS $FFMS2_LIBS" "FFMS_DestroyVideoSource(0);" ; then
653 elif cc_check ffms.h "$FFMS2_CFLAGS $FFMS2_LIBS -lstdc++ $LAVF_LIBS" "FFMS_DestroyVideoSource(0);" ; then
655 FFMS2_LIBS="$FFMS2_LIBS -lstdc++ $LAVF_LIBS"
658 error="ffms must be at least version $ffms_major.$ffms_minor.$ffms_micro.$ffms_bump"
659 if [ $ffms = "yes" ] && ! cpp_check "ffms.h" "$FFMS2_CFLAGS" "FFMS_VERSION >= (($ffms_major << 24) | ($ffms_minor << 16) | ($ffms_micro << 8) | $ffms_bump)" "$error"; then
661 echo "Warning: $error"
663 if [ "$ffms" = "yes" -a "$swscale" = "no" ]; then
664 echo "Warning: ffms is not supported without swscale support"
669 if [ "$swscale" = "yes" ]; then
670 LDFLAGSCLI="$SWSCALE_LIBS $LDFLAGSCLI"
671 CFLAGS="$CFLAGS $SWSCALE_CFLAGS"
673 if [ "$lavf" = "yes" ]; then
674 LDFLAGSCLI="$LAVF_LIBS $LDFLAGSCLI"
675 CFLAGS="$CFLAGS $LAVF_CFLAGS"
678 if [ "$ffms" = "yes" ]; then
679 LDFLAGSCLI="$FFMS2_LIBS $LDFLAGSCLI"
680 CFLAGS="$CFLAGS $FFMS2_CFLAGS"
685 GPAC_LIBS="-lgpac_static"
686 if [ $SYS = MINGW ]; then
687 GPAC_LIBS="$GPAC_LIBS -lwinmm"
689 if [ "$gpac" = "auto" ] ; then
691 if cc_check gpac/isomedia.h "$GPAC_LIBS" ; then
692 if cc_check gpac/isomedia.h "$GPAC_LIBS" "gf_isom_set_pixel_aspect_ratio(0,0,0,0,0);" ; then
695 echo "Warning: gpac is too old, update to 2007-06-21 UTC or later"
699 if [ "$gpac" = "yes" ] ; then
701 if cc_check gpac/isomedia.h "-Werror $GPAC_LIBS" "gf_malloc(1); gf_free(NULL);" ; then
702 define HAVE_GF_MALLOC
704 LDFLAGSCLI="$GPAC_LIBS $LDFLAGSCLI"
707 if [ "$avs" = "auto" ] ; then
709 if [ $SYS = MINGW ] && cc_check extras/avisynth_c.h ; then
715 if [ "$pic" = "yes" ] ; then
716 CFLAGS="$CFLAGS -fPIC"
717 ASFLAGS="$ASFLAGS -DPIC"
718 # resolve textrels in the x86 asm
719 cc_check stdio.h -Wl,-Bsymbolic && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
722 if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
723 CFLAGS="$CFLAGS -s -fomit-frame-pointer"
724 LDFLAGS="$LDFLAGS -s"
727 if [ "$debug" = "yes" ]; then
728 CFLAGS="-O1 -g $CFLAGS"
729 elif [ $ARCH = ARM ]; then
730 # arm-gcc-4.2 produces incorrect output with -ffast-math
731 # and it doesn't save any speed anyway on 4.4, so disable it
732 CFLAGS="-O3 -fno-fast-math $CFLAGS"
734 CFLAGS="-O3 -ffast-math $CFLAGS"
737 if cc_check '' -fno-tree-vectorize ; then
738 CFLAGS="$CFLAGS -fno-tree-vectorize"
741 if [ $SYS = MINGW -a $ARCH = X86 ] ; then
742 # workaround gcc/ld bug with alignment of static variables/arrays that are initialized to zero
743 cc_check '' -fno-zero-initialized-in-bss && CFLAGS="$CFLAGS -fno-zero-initialized-in-bss"
746 if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
749 elif cc_check "stdio.h" "" "fseeko64(stdin,0,0);" ; then
750 define fseek fseeko64
751 define ftell ftello64
754 if cc_check '' -Wshadow ; then
755 CFLAGS="-Wshadow $CFLAGS"
758 if [ "$bit_depth" -gt "8" ]; then
759 define HIGH_BIT_DEPTH
760 ASFLAGS="$ASFLAGS -DHIGH_BIT_DEPTH"
763 ASFLAGS="$ASFLAGS -DBIT_DEPTH=$bit_depth"
765 [ $gpl = yes ] && define HAVE_GPL && x264_gpl=1 || x264_gpl=0
767 #define undefined vars as 0
768 for var in $CONFIG_HAVE; do
769 grep -q "HAVE_$var 1" config.h || define HAVE_$var 0
774 # generate exported config file
776 cat > x264_config.h << EOF
777 #define X264_BIT_DEPTH $bit_depth
778 #define X264_GPL $x264_gpl
781 # generate config files
783 cat > config.mak << EOF
785 exec_prefix=$exec_prefix
788 includedir=$includedir
794 LDFLAGSCLI=$LDFLAGSCLI
801 HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
805 if [ "$shared" = "yes" ]; then
806 API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ')
807 if [ "$SYS" = "MINGW" ]; then
808 echo "SONAME=libx264-$API.dll" >> config.mak
809 echo 'IMPLIBNAME=libx264.dll.a' >> config.mak
810 echo 'SOFLAGS=-Wl,--out-implib,$(IMPLIBNAME) -Wl,--enable-auto-image-base' >> config.mak
811 elif [ "$SYS" = "MACOSX" ]; then
812 echo "SOSUFFIX=dylib" >> config.mak
813 echo "SONAME=libx264.$API.dylib" >> config.mak
814 echo 'SOFLAGS=-dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress -install_name $(DESTDIR)$(libdir)/$(SONAME)' >> config.mak
815 elif [ "$SYS" = "SunOS" ]; then
816 echo "SOSUFFIX=so" >> config.mak
817 echo "SONAME=libx264.so.$API" >> config.mak
818 echo 'SOFLAGS=-Wl,-h,$(SONAME)' >> config.mak
820 echo "SOSUFFIX=so" >> config.mak
821 echo "SONAME=libx264.so.$API" >> config.mak
822 echo 'SOFLAGS=-Wl,-soname,$(SONAME)' >> config.mak
824 echo 'default: $(SONAME)' >> config.mak
827 ./version.sh >> config.h
829 pclibs="-L$libdir -lx264 $libpthread"
833 exec_prefix=$exec_prefix
835 includedir=$includedir
838 Description: H.264 (MPEG4 AVC) encoder library
839 Version: $(grep POINTVER < config.h | sed -e 's/.* "//; s/".*//')
841 Cflags: -I$includedir
844 filters="crop select_every"
846 [ $swscale = yes ] && filters="resize $filters"
847 [ $gpl = yes ] && filters="$filters $gpl_filters"
849 cat > conftest.log <<EOF
865 bit depth: $bit_depth
869 cat conftest.log >> config.log
874 echo "You can run 'make' or 'make fprofiled' now."