comparison configure @ 8153:37f5531d8894

added DYNAMIC_PLUGINS support (dlopen)
author alex
date Mon, 11 Nov 2002 18:25:02 +0000
parents c34cfda2f07e
children 487cfc28525d
comparison
equal deleted inserted replaced
8152:4b02f73cb4b9 8153:37f5531d8894
231 --enable-big-endian Force byte order to big endian [autodetect] 231 --enable-big-endian Force byte order to big endian [autodetect]
232 --enable-debug[=1-3] compile debugging information into mplayer [disable] 232 --enable-debug[=1-3] compile debugging information into mplayer [disable]
233 --enable-profile compile profiling information into mplayer [disable] 233 --enable-profile compile profiling information into mplayer [disable]
234 --disable-sighandler disable sighandler for crashes [enable] 234 --disable-sighandler disable sighandler for crashes [enable]
235 --enable-i18n _experimental_ gnu gettext() support [autodetect] 235 --enable-i18n _experimental_ gnu gettext() support [autodetect]
236 --enable-dynamic-plugins Enable support for dynamic a/v plugins [disable]
236 237
237 Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!" 238 Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!"
238 --disable-gcc-checking disable gcc version checking [enable] 239 --disable-gcc-checking disable gcc version checking [enable]
239 240
240 Use these options if autodetection fails: 241 Use these options if autodetection fails:
1002 _largefiles=no 1003 _largefiles=no
1003 _language=en 1004 _language=en
1004 _shm=auto 1005 _shm=auto
1005 _linux_devfs=no 1006 _linux_devfs=no
1006 _i18n=auto 1007 _i18n=auto
1008 _dynamic_plugins=no
1007 _setlocale=auto 1009 _setlocale=auto
1008 _sighandler=yes 1010 _sighandler=yes
1009 _libdv=auto 1011 _libdv=auto
1010 _cdparanoia=auto 1012 _cdparanoia=auto
1011 _big_endian=auto 1013 _big_endian=auto
1030 # Real 2nd pass 1032 # Real 2nd pass
1031 --enable-mencoder) _mencoder=yes ;; 1033 --enable-mencoder) _mencoder=yes ;;
1032 --disable-mencoder) _mencoder=no ;; 1034 --disable-mencoder) _mencoder=no ;;
1033 --enable-i18n) _i18n=yes ;; 1035 --enable-i18n) _i18n=yes ;;
1034 --disable-i18n) _i18n=no ;; 1036 --disable-i18n) _i18n=no ;;
1037 --enable-dynamic-plugins) _dynamic_plugins=yes ;;
1038 --disable-dynamic-plugins) _dynamic_plugins=no ;;
1035 --enable-setlocale) _setlocale=yes ;; 1039 --enable-setlocale) _setlocale=yes ;;
1036 --disable-setlocale) _setlocale=no ;; 1040 --disable-setlocale) _setlocale=no ;;
1037 --enable-x11) _x11=yes ;; 1041 --enable-x11) _x11=yes ;;
1038 --disable-x11) _x11=no ;; 1042 --disable-x11) _x11=no ;;
1039 --enable-xv) _xv=yes ;; 1043 --enable-xv) _xv=yes ;;
1538 else 1542 else
1539 _def_runtime_cpudetection='#undef RUNTIME_CPUDETECT' 1543 _def_runtime_cpudetection='#undef RUNTIME_CPUDETECT'
1540 fi 1544 fi
1541 echores "$_runtime_cpudetection" 1545 echores "$_runtime_cpudetection"
1542 1546
1547
1543 echocheck "restrict keyword" 1548 echocheck "restrict keyword"
1544 for restrict_keyword in restrict __restrict __restrict__ ; do 1549 for restrict_keyword in restrict __restrict __restrict__ ; do
1545 echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC 1550 echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC
1546 if cc_check; then 1551 if cc_check; then
1547 _def_restrict_keyword=$restrict_keyword 1552 _def_restrict_keyword=$restrict_keyword
1551 if [ -n "$_def_restrict_keyword" ]; then 1556 if [ -n "$_def_restrict_keyword" ]; then
1552 echores "$_def_restrict_keyword" 1557 echores "$_def_restrict_keyword"
1553 else 1558 else
1554 echores "none" 1559 echores "none"
1555 fi 1560 fi
1561
1556 1562
1557 echocheck "kstat" 1563 echocheck "kstat"
1558 cat > $TMPC << EOF 1564 cat > $TMPC << EOF
1559 #include <kstat.h> 1565 #include <kstat.h>
1560 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; } 1566 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; }
1678 _def_use_aton='#undef USE_ATON' 1684 _def_use_aton='#undef USE_ATON'
1679 if test "$_use_aton" != no; then 1685 if test "$_use_aton" != no; then
1680 _def_use_aton='#define USE_ATON 1' 1686 _def_use_aton='#define USE_ATON 1'
1681 fi 1687 fi
1682 1688
1689
1683 echocheck "inttypes.h (required)" 1690 echocheck "inttypes.h (required)"
1684 cat > $TMPC << EOF 1691 cat > $TMPC << EOF
1685 #include <inttypes.h> 1692 #include <inttypes.h>
1686 int main(void) { return 0; } 1693 int main(void) { return 0; }
1687 EOF 1694 EOF
1692 : 1699 :
1693 else 1700 else
1694 die "cannot find header inttypes.h (see DOCS/faq.html)" 1701 die "cannot find header inttypes.h (see DOCS/faq.html)"
1695 fi 1702 fi
1696 echores "$_inttypes" 1703 echores "$_inttypes"
1704
1697 1705
1698 echocheck "word size" 1706 echocheck "word size"
1699 _mp_wordsize="#undef MP_WORDSIZE" 1707 _mp_wordsize="#undef MP_WORDSIZE"
1700 cat > $TMPC << EOF 1708 cat > $TMPC << EOF
1701 #include <stdio.h> 1709 #include <stdio.h>
1703 int main(void) { printf("%d\n", sizeof(size_t)*8); return 0; } 1711 int main(void) { printf("%d\n", sizeof(size_t)*8); return 0; }
1704 EOF 1712 EOF
1705 cc_check && _wordsize=`$TMPO` && _mp_wordsize="#define MP_WORDSIZE $_wordsize" 1713 cc_check && _wordsize=`$TMPO` && _mp_wordsize="#define MP_WORDSIZE $_wordsize"
1706 echores "$_wordsize" 1714 echores "$_wordsize"
1707 1715
1716
1708 echocheck "stddef.h" 1717 echocheck "stddef.h"
1709 cat > $TMPC << EOF 1718 cat > $TMPC << EOF
1710 #include <stddef.h> 1719 #include <stddef.h>
1711 int main(void) { return 0; } 1720 int main(void) { return 0; }
1712 EOF 1721 EOF
1800 _def_dl='#define HAVE_LIBDL 1' 1809 _def_dl='#define HAVE_LIBDL 1'
1801 else 1810 else
1802 _def_dl='#undef HAVE_LIBDL' 1811 _def_dl='#undef HAVE_LIBDL'
1803 fi 1812 fi
1804 echores "$_dl" 1813 echores "$_dl"
1814
1815
1816 echocheck "dynamic a/v plugins support"
1817 if test "$_dl" = no ; then
1818 _dynamic_plugins = no
1819 fi
1820 if test "$_dynamic_plugins" = yes ; then
1821 _def_dynamic_plugins='#define DYNAMIC_PLUGINS 1'
1822 else
1823 _def_dynamic_plugins='#undef DYNAMIC_PLUGINS'
1824 fi
1825 echores "$_dynamic_plugins"
1805 1826
1806 1827
1807 #echocheck "dynamic linking" 1828 #echocheck "dynamic linking"
1808 # FIXME !! make this dynamic detection work and modify at the end (search _ld_dl_dynamic) 1829 # FIXME !! make this dynamic detection work and modify at the end (search _ld_dl_dynamic)
1809 # also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic) 1830 # also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic)
1886 _def_soundcard='#undef HAVE_SOUNDCARD_H' 1907 _def_soundcard='#undef HAVE_SOUNDCARD_H'
1887 fi 1908 fi
1888 else 1909 else
1889 _def_soundcard='#undef HAVE_SOUNDCARD_H' 1910 _def_soundcard='#undef HAVE_SOUNDCARD_H'
1890 fi 1911 fi
1912
1891 1913
1892 echocheck "sys/dvdio.h" 1914 echocheck "sys/dvdio.h"
1893 cat > $TMPC << EOF 1915 cat > $TMPC << EOF
1894 #include <unistd.h> 1916 #include <unistd.h>
1895 #include <sys/dvdio.h> 1917 #include <sys/dvdio.h>
4594 $_def_setlocale 4616 $_def_setlocale
4595 4617
4596 /* Runtime CPU detection */ 4618 /* Runtime CPU detection */
4597 $_def_runtime_cpudetection 4619 $_def_runtime_cpudetection
4598 4620
4621 /* Dynamic a/v plugins */
4622 $_def_dynamic_plugins
4623
4599 /* "restrict" keyword */ 4624 /* "restrict" keyword */
4600 #define restrict $_def_restrict_keyword 4625 #define restrict $_def_restrict_keyword
4601 4626
4602 #define PREFIX "$_prefix" 4627 #define PREFIX "$_prefix"
4603 4628