comparison configure @ 1427:0ca4e638b696

divx4linux autodetection
author arpi
date Tue, 31 Jul 2001 22:20:43 +0000
parents 3679af53f203
children a90d889eb649
comparison
equal deleted inserted replaced
1426:b486ddbeb8e3 1427:0ca4e638b696
753 _cssincdir="/usr/include/" 753 _cssincdir="/usr/include/"
754 _css=yes 754 _css=yes
755 fi 755 fi
756 fi 756 fi
757 fi 757 fi
758 758
759 _divx4linux=no
760 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -ldivxdecore > /dev/null 2>&1 && _divx4linux=yes
761
759 _termcap=no 762 _termcap=no
760 $_cc $TMPC -o $TMPO -ltermcap > /dev/null 2>&1 && _termcap=yes 763 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -ltermcap > /dev/null 2>&1 && _termcap=yes
761 764
762 _png=no 765 _png=no
763 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes 766 $_cc $_extraincdir $_extralibdir $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes
764 767
765 _ggi=no 768 _ggi=no
766 $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes 769 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes
767 770
768 _kstat=no 771 _kstat=no
769 $_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs" 772 $_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs"
770 $_cc $TMPC -o $TMPO -lposix4 >/dev/null 2>&1 && _archlibs="-lposix4 $_archlibs" 773 $_cc $TMPC -o $TMPO -lposix4 >/dev/null 2>&1 && _archlibs="-lposix4 $_archlibs"
771 774
1358 echo "Checking for Sun Audio ... $_sun_audio" 1361 echo "Checking for Sun Audio ... $_sun_audio"
1359 echo "Checking for DeCSS support ... $_css" 1362 echo "Checking for DeCSS support ... $_css"
1360 echo "Checking for PNG support ... $_png" 1363 echo "Checking for PNG support ... $_png"
1361 echo "Checking for DirectShow ... $_dshow" 1364 echo "Checking for DirectShow ... $_dshow"
1362 echo "Checking for libavcodec ... $_libavcodec" 1365 echo "Checking for libavcodec ... $_libavcodec"
1366 echo "Checking for divx4linux ... $_divx4linux"
1363 echo "Checking for fastmemcpy ... $_fastmemcpy" 1367 echo "Checking for fastmemcpy ... $_fastmemcpy"
1364 echo "Extra libs : $_extralibdir" 1368 echo "Extra libs : $_extralibdir"
1365 echo "Extra headers : $_extraincdir" 1369 echo "Extra headers : $_extraincdir"
1366 # write conf files. 1370 # write conf files.
1367 1371
1743 _gui='#define HAVE_GUI' 1747 _gui='#define HAVE_GUI'
1744 else 1748 else
1745 _gui='#undef HAVE_GUI' 1749 _gui='#undef HAVE_GUI'
1746 fi 1750 fi
1747 1751
1752 if [ $_divx4linux = yes ]; then
1753 _divx4def='#define NEW_DECORE'
1754 _decorelibs='-ldivxdecore opendivx/postprocess.o'
1755 else
1756 _divx4def='#undef NEW_DECORE'
1757 _decorelibs='-Lopendivx -ldecore'
1758 # _postproc='#undef MPEG12_POSTPROC'
1759 fi
1760
1761 _postproc='#define MPEG12_POSTPROC'
1748 1762
1749 echo 1763 echo
1750 echo "Creating $MCONF" 1764 echo "Creating $MCONF"
1751 cat > $MCONF << EOF 1765 cat > $MCONF << EOF
1752 1766
1776 AV_LIB = $_lavclib 1790 AV_LIB = $_lavclib
1777 ALSA_LIB = $_alsalib 1791 ALSA_LIB = $_alsalib
1778 ESD_LIB = $_esdlib 1792 ESD_LIB = $_esdlib
1779 ARCH_LIBS = $_archlibs 1793 ARCH_LIBS = $_archlibs
1780 STREAM_SRCS = $_streamingsrcs 1794 STREAM_SRCS = $_streamingsrcs
1781 DECORE_LIBS = -Lopendivx -ldecore 1795 DECORE_LIBS = $_decorelibs
1782 # DECORE_LIBS=-L/usr/local/lib -ldivxdecore 1796 DIVX4LINUX=$_divx4linux
1783 1797
1784 # --- Some stuff for autoconfigure ---- 1798 # --- Some stuff for autoconfigure ----
1785 $_target_arch 1799 $_target_arch
1786 TARGET_CPU=$iproc 1800 TARGET_CPU=$iproc
1787 TARGET_MMX=$_cfg_mmx 1801 TARGET_MMX=$_cfg_mmx
1803 /* Common data directory (for fonts, etc) */ 1817 /* Common data directory (for fonts, etc) */
1804 #define DATADIR "$_datadir" 1818 #define DATADIR "$_datadir"
1805 1819
1806 /* Define for using new DivX4Linux library, instead of open-source OpenDivX */ 1820 /* Define for using new DivX4Linux library, instead of open-source OpenDivX */
1807 /* You have to change DECORE_LIBS in config.mak too! */ 1821 /* You have to change DECORE_LIBS in config.mak too! */
1808 #undef NEW_DECORE 1822 $_divx4def
1809 1823
1810 /* Define this to enable avg. byte/sec-based AVI sync method by default: 1824 /* Define this to enable avg. byte/sec-based AVI sync method by default:
1811 (use -bps or -nobps commandline option for run-time method selection) */ 1825 (use -bps or -nobps commandline option for run-time method selection) */
1812 #undef AVI_SYNC_BPS 1826 #undef AVI_SYNC_BPS
1813 1827
1870 1884
1871 /* DeCSS support using libcss */ 1885 /* DeCSS support using libcss */
1872 $_css 1886 $_css
1873 1887
1874 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ 1888 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */
1875 #define MPEG12_POSTPROC 1889 $_postproc
1876 1890
1877 /* DirectShow support */ 1891 /* DirectShow support */
1878 $_dshow 1892 $_dshow
1879 1893
1880 /* ffmpeg's libavcodec support (requires libavcodec source) */ 1894 /* ffmpeg's libavcodec support (requires libavcodec source) */