Mercurial > mplayer.hg
comparison configure @ 4824:e2df1d29d0f7
Change in configure relative to lirc, same thing in Makefile plus
some cleanup (COMMONS_LIB is now really common :)
author | albeu |
---|---|
date | Sat, 23 Feb 2002 21:20:16 +0000 |
parents | 3e011ae799fa |
children | 6434171a8f35 |
comparison
equal
deleted
inserted
replaced
4823:d25b898c4c44 | 4824:e2df1d29d0f7 |
---|---|
134 --disable-mp1e disable libmp1e support | 134 --disable-mp1e disable libmp1e support |
135 (use this option if it does not compile) [enable] | 135 (use this option if it does not compile) [enable] |
136 --disable-streaming disable network streaming support | 136 --disable-streaming disable network streaming support |
137 (support for: http/mms/rtp) [enable] | 137 (support for: http/mms/rtp) [enable] |
138 --disable-vidix disable VIDIX stuff [enable] | 138 --disable-vidix disable VIDIX stuff [enable] |
139 --enable-new-input enable new input system [disable] | 139 --disable-new-input disable new input system [enable] |
140 --enable-joystick enable joystick support in new input [disable] | 140 --enable-joystick enable joystick support in new input [disable] |
141 Video: | 141 Video: |
142 --enable-gl build with OpenGL render support [autodetect] | 142 --enable-gl build with OpenGL render support [autodetect] |
143 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] | 143 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] |
144 --enable-vesa build with VESA support [autodetect] | 144 --enable-vesa build with VESA support [autodetect] |
2703 if test "$_mencoder" = yes ; then | 2703 if test "$_mencoder" = yes ; then |
2704 _mencoder_flag='#define HAVE_MENCODER' | 2704 _mencoder_flag='#define HAVE_MENCODER' |
2705 fi | 2705 fi |
2706 echores "$_mencoder" | 2706 echores "$_mencoder" |
2707 | 2707 |
2708 echocheck "lirc" | |
2709 if test "$_lirc" = auto ; then | |
2710 _lirc=no | |
2711 if test -c /dev/lirc ; then | |
2712 cat > $TMPC <<EOF | |
2713 #include <lirc/lirc_client.h> | |
2714 int main(void) { return 0; } | |
2715 EOF | |
2716 cc_check -llirc_client && _lirc=yes | |
2717 fi | |
2718 fi | |
2719 if test "$_lirc" = yes ; then | |
2720 _def_lirc='#define HAVE_LIRC 1' | |
2721 _ld_lirc='-llirc_client' | |
2722 else | |
2723 _def_lirc='#undef HAVE_LIRC' | |
2724 fi | |
2725 echores "$_lirc" | |
2726 | |
2727 | |
2728 echocheck "fastmemcpy" | 2708 echocheck "fastmemcpy" |
2729 # fastmemcpy check is done earlier with tests of CPU & binutils features | 2709 # fastmemcpy check is done earlier with tests of CPU & binutils features |
2730 if test "$_fastmemcpy" = yes ; then | 2710 if test "$_fastmemcpy" = yes ; then |
2731 _def_fastmemcpy='#define USE_FASTMEMCPY 1' | 2711 _def_fastmemcpy='#define USE_FASTMEMCPY 1' |
2732 else | 2712 else |
2960 _def_new_input='#undef HAVE_NEW_INPUT' | 2940 _def_new_input='#undef HAVE_NEW_INPUT' |
2961 _def_joystick='#undef HAVE_JOYSTICK' | 2941 _def_joystick='#undef HAVE_JOYSTICK' |
2962 echo Checking for new input ... "$_new_input" | 2942 echo Checking for new input ... "$_new_input" |
2963 if test "$_new_input" = yes ; then | 2943 if test "$_new_input" = yes ; then |
2964 _def_new_input='#define HAVE_NEW_INPUT 1' | 2944 _def_new_input='#define HAVE_NEW_INPUT 1' |
2945 _ld_new_input="-Linput -linput" | |
2965 if test "$_joystick" = yes ; then | 2946 if test "$_joystick" = yes ; then |
2966 if linux ; then | 2947 if linux ; then |
2967 # TODO add some check | 2948 # TODO add some check |
2968 _def_joystick='#define HAVE_JOYSTICK 1' | 2949 _def_joystick='#define HAVE_JOYSTICK 1' |
2969 else | 2950 else |
2970 _joystick="no (unsupported under $system_name)" | 2951 _joystick="no (unsupported under $system_name)" |
2971 fi | 2952 fi |
2972 fi | 2953 fi |
2973 echo Checking for joystick ... "$_joystick" | 2954 echo Checking for joystick ... "$_joystick" |
2974 fi | 2955 fi |
2956 | |
2957 echocheck "lirc" | |
2958 if test "$_lirc" = auto ; then | |
2959 _lirc=no | |
2960 if test -c /dev/lirc ; then | |
2961 cat > $TMPC <<EOF | |
2962 #include <lirc/lirc_client.h> | |
2963 int main(void) { return 0; } | |
2964 EOF | |
2965 cc_check -llirc_client && _lirc=yes | |
2966 fi | |
2967 fi | |
2968 if test "$_lirc" = yes ; then | |
2969 _def_lirc='#define HAVE_LIRC 1' | |
2970 if test "$_new_input" = yes ; then | |
2971 _ld_new_input="-llirc_client $_ld_new_input" | |
2972 else | |
2973 _ld_lirc='-llirc_client' | |
2974 fi | |
2975 else | |
2976 _def_lirc='#undef HAVE_LIRC' | |
2977 fi | |
2978 echores "$_lirc" | |
2979 | |
2980 | |
2975 | 2981 |
2976 ############################################################################# | 2982 ############################################################################# |
2977 echo "Creating config.mak" | 2983 echo "Creating config.mak" |
2978 cat > config.mak << EOF | 2984 cat > config.mak << EOF |
2979 # -------- Generated by configure ----------- | 2985 # -------- Generated by configure ----------- |
3045 XVID = $_xvid | 3051 XVID = $_xvid |
3046 DECORE_LIB = $_ld_decore | 3052 DECORE_LIB = $_ld_decore |
3047 MENCODER = $_mencoder | 3053 MENCODER = $_mencoder |
3048 ENCORE_LIB = $_ld_encore $_ld_mp3lame | 3054 ENCORE_LIB = $_ld_encore $_ld_mp3lame |
3049 DIRECTFB_LIB = $_ld_directfb | 3055 DIRECTFB_LIB = $_ld_directfb |
3056 NEW_INPUT_LIB = $_ld_new_input | |
3050 | 3057 |
3051 # --- Some stuff for autoconfigure ---- | 3058 # --- Some stuff for autoconfigure ---- |
3052 $_target_arch | 3059 $_target_arch |
3053 $_confcygwin | 3060 $_confcygwin |
3054 TARGET_CPU=$iproc | 3061 TARGET_CPU=$iproc |