Changeset 2857 for trunk/packages/vizservers
- Timestamp:
- Mar 15, 2012, 11:46:42 PM (13 years ago)
- Location:
- trunk/packages/vizservers
- Files:
-
- 1 deleted
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/configure
r2829 r2857 12729 12729 $as_echo "$DX_LIB_SPEC" >&6; } 12730 12730 12731 12732 12733 for ac_header in opencv/cv.h opencv/highgui.h 12731 save_CPPFLAGS=$CPPFLAGS 12732 # Test for redhat-specific location of ffmpeg headers. 12733 if test -d "/usr/include/ffmpeg" ; then 12734 CPPFLAGS="$CPPFLAGS -I/usr/include/ffmpeg" 12735 FF_INC_SPEC="-I/usr/include/ffmpeg" 12736 fi 12737 12738 12739 12740 12741 12742 12743 12744 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h 12745 do 12746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12748 $as_echo_n "checking for $ac_header... " >&6; } 12749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12750 $as_echo_n "(cached) " >&6 12751 else 12752 cat >conftest.$ac_ext <<_ACEOF 12753 /* confdefs.h. */ 12754 _ACEOF 12755 cat confdefs.h >>conftest.$ac_ext 12756 cat >>conftest.$ac_ext <<_ACEOF 12757 /* end confdefs.h. */ 12758 12759 #define __STDC_CONSTANT_MACROS 1 12760 12761 12762 #include <$ac_header> 12763 _ACEOF 12764 rm -f conftest.$ac_objext 12765 if { (ac_try="$ac_compile" 12766 case "(($ac_try" in 12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12768 *) ac_try_echo=$ac_try;; 12769 esac 12770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12771 $as_echo "$ac_try_echo") >&5 12772 (eval "$ac_compile") 2>conftest.er1 12773 ac_status=$? 12774 grep -v '^ *+' conftest.er1 >conftest.err 12775 rm -f conftest.er1 12776 cat conftest.err >&5 12777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12778 (exit $ac_status); } && { 12779 test -z "$ac_cxx_werror_flag" || 12780 test ! -s conftest.err 12781 } && test -s conftest.$ac_objext; then 12782 eval "$as_ac_Header=yes" 12783 else 12784 $as_echo "$as_me: failed program was:" >&5 12785 sed 's/^/| /' conftest.$ac_ext >&5 12786 12787 eval "$as_ac_Header=no" 12788 fi 12789 12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12791 fi 12792 ac_res=`eval 'as_val=${'$as_ac_Header'} 12793 $as_echo "$as_val"'` 12794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12795 $as_echo "$ac_res" >&6; } 12796 as_val=`eval 'as_val=${'$as_ac_Header'} 12797 $as_echo "$as_val"'` 12798 if test "x$as_val" = x""yes; then 12799 cat >>confdefs.h <<_ACEOF 12800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12801 _ACEOF 12802 12803 fi 12804 12805 done 12806 12807 CPPFLAGS=$save_CPPFLAGS 12808 12809 12810 { $as_echo "$as_me:$LINENO: checking for main in -lavcodec" >&5 12811 $as_echo_n "checking for main in -lavcodec... " >&6; } 12812 if test "${ac_cv_lib_avcodec_main+set}" = set; then 12813 $as_echo_n "(cached) " >&6 12814 else 12815 ac_check_lib_save_LIBS=$LIBS 12816 LIBS="-lavcodec $LIBS" 12817 cat >conftest.$ac_ext <<_ACEOF 12818 /* confdefs.h. */ 12819 _ACEOF 12820 cat confdefs.h >>conftest.$ac_ext 12821 cat >>conftest.$ac_ext <<_ACEOF 12822 /* end confdefs.h. */ 12823 12824 12825 int 12826 main () 12827 { 12828 return main (); 12829 ; 12830 return 0; 12831 } 12832 _ACEOF 12833 rm -f conftest.$ac_objext conftest$ac_exeext 12834 if { (ac_try="$ac_link" 12835 case "(($ac_try" in 12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12837 *) ac_try_echo=$ac_try;; 12838 esac 12839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12840 $as_echo "$ac_try_echo") >&5 12841 (eval "$ac_link") 2>conftest.er1 12842 ac_status=$? 12843 grep -v '^ *+' conftest.er1 >conftest.err 12844 rm -f conftest.er1 12845 cat conftest.err >&5 12846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12847 (exit $ac_status); } && { 12848 test -z "$ac_cxx_werror_flag" || 12849 test ! -s conftest.err 12850 } && test -s conftest$ac_exeext && { 12851 test "$cross_compiling" = yes || 12852 $as_test_x conftest$ac_exeext 12853 }; then 12854 ac_cv_lib_avcodec_main=yes 12855 else 12856 $as_echo "$as_me: failed program was:" >&5 12857 sed 's/^/| /' conftest.$ac_ext >&5 12858 12859 ac_cv_lib_avcodec_main=no 12860 fi 12861 12862 rm -rf conftest.dSYM 12863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12864 conftest$ac_exeext conftest.$ac_ext 12865 LIBS=$ac_check_lib_save_LIBS 12866 fi 12867 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&5 12868 $as_echo "$ac_cv_lib_avcodec_main" >&6; } 12869 if test "x$ac_cv_lib_avcodec_main" = x""yes; then 12870 cat >>confdefs.h <<_ACEOF 12871 #define HAVE_LIBAVCODEC 1 12872 _ACEOF 12873 12874 LIBS="-lavcodec $LIBS" 12875 12876 else 12877 { { $as_echo "$as_me:$LINENO: error: requires libavcodec" >&5 12878 $as_echo "$as_me: error: requires libavcodec" >&2;} 12879 { (exit 1); exit 1; }; } 12880 fi 12881 12882 12883 { $as_echo "$as_me:$LINENO: checking for main in -lavutil" >&5 12884 $as_echo_n "checking for main in -lavutil... " >&6; } 12885 if test "${ac_cv_lib_avutil_main+set}" = set; then 12886 $as_echo_n "(cached) " >&6 12887 else 12888 ac_check_lib_save_LIBS=$LIBS 12889 LIBS="-lavutil $LIBS" 12890 cat >conftest.$ac_ext <<_ACEOF 12891 /* confdefs.h. */ 12892 _ACEOF 12893 cat confdefs.h >>conftest.$ac_ext 12894 cat >>conftest.$ac_ext <<_ACEOF 12895 /* end confdefs.h. */ 12896 12897 12898 int 12899 main () 12900 { 12901 return main (); 12902 ; 12903 return 0; 12904 } 12905 _ACEOF 12906 rm -f conftest.$ac_objext conftest$ac_exeext 12907 if { (ac_try="$ac_link" 12908 case "(($ac_try" in 12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12910 *) ac_try_echo=$ac_try;; 12911 esac 12912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12913 $as_echo "$ac_try_echo") >&5 12914 (eval "$ac_link") 2>conftest.er1 12915 ac_status=$? 12916 grep -v '^ *+' conftest.er1 >conftest.err 12917 rm -f conftest.er1 12918 cat conftest.err >&5 12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12920 (exit $ac_status); } && { 12921 test -z "$ac_cxx_werror_flag" || 12922 test ! -s conftest.err 12923 } && test -s conftest$ac_exeext && { 12924 test "$cross_compiling" = yes || 12925 $as_test_x conftest$ac_exeext 12926 }; then 12927 ac_cv_lib_avutil_main=yes 12928 else 12929 $as_echo "$as_me: failed program was:" >&5 12930 sed 's/^/| /' conftest.$ac_ext >&5 12931 12932 ac_cv_lib_avutil_main=no 12933 fi 12934 12935 rm -rf conftest.dSYM 12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12937 conftest$ac_exeext conftest.$ac_ext 12938 LIBS=$ac_check_lib_save_LIBS 12939 fi 12940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5 12941 $as_echo "$ac_cv_lib_avutil_main" >&6; } 12942 if test "x$ac_cv_lib_avutil_main" = x""yes; then 12943 cat >>confdefs.h <<_ACEOF 12944 #define HAVE_LIBAVUTIL 1 12945 _ACEOF 12946 12947 LIBS="-lavutil $LIBS" 12948 12949 else 12950 { { $as_echo "$as_me:$LINENO: error: requires libavutil" >&5 12951 $as_echo "$as_me: error: requires libavutil" >&2;} 12952 { (exit 1); exit 1; }; } 12953 fi 12954 12955 12956 { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5 12957 $as_echo_n "checking for main in -lavformat... " >&6; } 12958 if test "${ac_cv_lib_avformat_main+set}" = set; then 12959 $as_echo_n "(cached) " >&6 12960 else 12961 ac_check_lib_save_LIBS=$LIBS 12962 LIBS="-lavformat $LIBS" 12963 cat >conftest.$ac_ext <<_ACEOF 12964 /* confdefs.h. */ 12965 _ACEOF 12966 cat confdefs.h >>conftest.$ac_ext 12967 cat >>conftest.$ac_ext <<_ACEOF 12968 /* end confdefs.h. */ 12969 12970 12971 int 12972 main () 12973 { 12974 return main (); 12975 ; 12976 return 0; 12977 } 12978 _ACEOF 12979 rm -f conftest.$ac_objext conftest$ac_exeext 12980 if { (ac_try="$ac_link" 12981 case "(($ac_try" in 12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12983 *) ac_try_echo=$ac_try;; 12984 esac 12985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12986 $as_echo "$ac_try_echo") >&5 12987 (eval "$ac_link") 2>conftest.er1 12988 ac_status=$? 12989 grep -v '^ *+' conftest.er1 >conftest.err 12990 rm -f conftest.er1 12991 cat conftest.err >&5 12992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12993 (exit $ac_status); } && { 12994 test -z "$ac_cxx_werror_flag" || 12995 test ! -s conftest.err 12996 } && test -s conftest$ac_exeext && { 12997 test "$cross_compiling" = yes || 12998 $as_test_x conftest$ac_exeext 12999 }; then 13000 ac_cv_lib_avformat_main=yes 13001 else 13002 $as_echo "$as_me: failed program was:" >&5 13003 sed 's/^/| /' conftest.$ac_ext >&5 13004 13005 ac_cv_lib_avformat_main=no 13006 fi 13007 13008 rm -rf conftest.dSYM 13009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13010 conftest$ac_exeext conftest.$ac_ext 13011 LIBS=$ac_check_lib_save_LIBS 13012 fi 13013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5 13014 $as_echo "$ac_cv_lib_avformat_main" >&6; } 13015 if test "x$ac_cv_lib_avformat_main" = x""yes; then 13016 cat >>confdefs.h <<_ACEOF 13017 #define HAVE_LIBAVFORMAT 1 13018 _ACEOF 13019 13020 LIBS="-lavformat $LIBS" 13021 13022 else 13023 { { $as_echo "$as_me:$LINENO: error: requires libavformat" >&5 13024 $as_echo "$as_me: error: requires libavformat" >&2;} 13025 { (exit 1); exit 1; }; } 13026 fi 13027 13028 13029 { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5 13030 $as_echo_n "checking for main in -lswscale... " >&6; } 13031 if test "${ac_cv_lib_swscale_main+set}" = set; then 13032 $as_echo_n "(cached) " >&6 13033 else 13034 ac_check_lib_save_LIBS=$LIBS 13035 LIBS="-lswscale $LIBS" 13036 cat >conftest.$ac_ext <<_ACEOF 13037 /* confdefs.h. */ 13038 _ACEOF 13039 cat confdefs.h >>conftest.$ac_ext 13040 cat >>conftest.$ac_ext <<_ACEOF 13041 /* end confdefs.h. */ 13042 13043 13044 int 13045 main () 13046 { 13047 return main (); 13048 ; 13049 return 0; 13050 } 13051 _ACEOF 13052 rm -f conftest.$ac_objext conftest$ac_exeext 13053 if { (ac_try="$ac_link" 13054 case "(($ac_try" in 13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13056 *) ac_try_echo=$ac_try;; 13057 esac 13058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13059 $as_echo "$ac_try_echo") >&5 13060 (eval "$ac_link") 2>conftest.er1 13061 ac_status=$? 13062 grep -v '^ *+' conftest.er1 >conftest.err 13063 rm -f conftest.er1 13064 cat conftest.err >&5 13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13066 (exit $ac_status); } && { 13067 test -z "$ac_cxx_werror_flag" || 13068 test ! -s conftest.err 13069 } && test -s conftest$ac_exeext && { 13070 test "$cross_compiling" = yes || 13071 $as_test_x conftest$ac_exeext 13072 }; then 13073 ac_cv_lib_swscale_main=yes 13074 else 13075 $as_echo "$as_me: failed program was:" >&5 13076 sed 's/^/| /' conftest.$ac_ext >&5 13077 13078 ac_cv_lib_swscale_main=no 13079 fi 13080 13081 rm -rf conftest.dSYM 13082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13083 conftest$ac_exeext conftest.$ac_ext 13084 LIBS=$ac_check_lib_save_LIBS 13085 fi 13086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5 13087 $as_echo "$ac_cv_lib_swscale_main" >&6; } 13088 if test "x$ac_cv_lib_swscale_main" = x""yes; then 13089 cat >>confdefs.h <<_ACEOF 13090 #define HAVE_LIBSWSCALE 1 13091 _ACEOF 13092 13093 LIBS="-lswscale $LIBS" 13094 13095 fi 13096 13097 13098 for ac_func in avcodec_decode_video2 13099 do 13100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13102 $as_echo_n "checking for $ac_func... " >&6; } 13103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13104 $as_echo_n "(cached) " >&6 13105 else 13106 cat >conftest.$ac_ext <<_ACEOF 13107 /* confdefs.h. */ 13108 _ACEOF 13109 cat confdefs.h >>conftest.$ac_ext 13110 cat >>conftest.$ac_ext <<_ACEOF 13111 /* end confdefs.h. */ 13112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13113 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13114 #define $ac_func innocuous_$ac_func 13115 13116 /* System header to define __stub macros and hopefully few prototypes, 13117 which can conflict with char $ac_func (); below. 13118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13119 <limits.h> exists even on freestanding compilers. */ 13120 13121 #ifdef __STDC__ 13122 # include <limits.h> 13123 #else 13124 # include <assert.h> 13125 #endif 13126 13127 #undef $ac_func 13128 13129 /* Override any GCC internal prototype to avoid an error. 13130 Use char because int might match the return type of a GCC 13131 builtin and then its argument prototype would still apply. */ 13132 #ifdef __cplusplus 13133 extern "C" 13134 #endif 13135 char $ac_func (); 13136 /* The GNU C library defines this for functions which it implements 13137 to always fail with ENOSYS. Some functions are actually named 13138 something starting with __ and the normal name is an alias. */ 13139 #if defined __stub_$ac_func || defined __stub___$ac_func 13140 choke me 13141 #endif 13142 13143 int 13144 main () 13145 { 13146 return $ac_func (); 13147 ; 13148 return 0; 13149 } 13150 _ACEOF 13151 rm -f conftest.$ac_objext conftest$ac_exeext 13152 if { (ac_try="$ac_link" 13153 case "(($ac_try" in 13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13155 *) ac_try_echo=$ac_try;; 13156 esac 13157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13158 $as_echo "$ac_try_echo") >&5 13159 (eval "$ac_link") 2>conftest.er1 13160 ac_status=$? 13161 grep -v '^ *+' conftest.er1 >conftest.err 13162 rm -f conftest.er1 13163 cat conftest.err >&5 13164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13165 (exit $ac_status); } && { 13166 test -z "$ac_cxx_werror_flag" || 13167 test ! -s conftest.err 13168 } && test -s conftest$ac_exeext && { 13169 test "$cross_compiling" = yes || 13170 $as_test_x conftest$ac_exeext 13171 }; then 13172 eval "$as_ac_var=yes" 13173 else 13174 $as_echo "$as_me: failed program was:" >&5 13175 sed 's/^/| /' conftest.$ac_ext >&5 13176 13177 eval "$as_ac_var=no" 13178 fi 13179 13180 rm -rf conftest.dSYM 13181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13182 conftest$ac_exeext conftest.$ac_ext 13183 fi 13184 ac_res=`eval 'as_val=${'$as_ac_var'} 13185 $as_echo "$as_val"'` 13186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13187 $as_echo "$ac_res" >&6; } 13188 as_val=`eval 'as_val=${'$as_ac_var'} 13189 $as_echo "$as_val"'` 13190 if test "x$as_val" = x""yes; then 13191 cat >>confdefs.h <<_ACEOF 13192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13193 _ACEOF 13194 13195 fi 13196 done 13197 13198 13199 for ac_func in avcodec_decode_video 13200 do 13201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13202 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13203 $as_echo_n "checking for $ac_func... " >&6; } 13204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13205 $as_echo_n "(cached) " >&6 13206 else 13207 cat >conftest.$ac_ext <<_ACEOF 13208 /* confdefs.h. */ 13209 _ACEOF 13210 cat confdefs.h >>conftest.$ac_ext 13211 cat >>conftest.$ac_ext <<_ACEOF 13212 /* end confdefs.h. */ 13213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13214 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13215 #define $ac_func innocuous_$ac_func 13216 13217 /* System header to define __stub macros and hopefully few prototypes, 13218 which can conflict with char $ac_func (); below. 13219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13220 <limits.h> exists even on freestanding compilers. */ 13221 13222 #ifdef __STDC__ 13223 # include <limits.h> 13224 #else 13225 # include <assert.h> 13226 #endif 13227 13228 #undef $ac_func 13229 13230 /* Override any GCC internal prototype to avoid an error. 13231 Use char because int might match the return type of a GCC 13232 builtin and then its argument prototype would still apply. */ 13233 #ifdef __cplusplus 13234 extern "C" 13235 #endif 13236 char $ac_func (); 13237 /* The GNU C library defines this for functions which it implements 13238 to always fail with ENOSYS. Some functions are actually named 13239 something starting with __ and the normal name is an alias. */ 13240 #if defined __stub_$ac_func || defined __stub___$ac_func 13241 choke me 13242 #endif 13243 13244 int 13245 main () 13246 { 13247 return $ac_func (); 13248 ; 13249 return 0; 13250 } 13251 _ACEOF 13252 rm -f conftest.$ac_objext conftest$ac_exeext 13253 if { (ac_try="$ac_link" 13254 case "(($ac_try" in 13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13256 *) ac_try_echo=$ac_try;; 13257 esac 13258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13259 $as_echo "$ac_try_echo") >&5 13260 (eval "$ac_link") 2>conftest.er1 13261 ac_status=$? 13262 grep -v '^ *+' conftest.er1 >conftest.err 13263 rm -f conftest.er1 13264 cat conftest.err >&5 13265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13266 (exit $ac_status); } && { 13267 test -z "$ac_cxx_werror_flag" || 13268 test ! -s conftest.err 13269 } && test -s conftest$ac_exeext && { 13270 test "$cross_compiling" = yes || 13271 $as_test_x conftest$ac_exeext 13272 }; then 13273 eval "$as_ac_var=yes" 13274 else 13275 $as_echo "$as_me: failed program was:" >&5 13276 sed 's/^/| /' conftest.$ac_ext >&5 13277 13278 eval "$as_ac_var=no" 13279 fi 13280 13281 rm -rf conftest.dSYM 13282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13283 conftest$ac_exeext conftest.$ac_ext 13284 fi 13285 ac_res=`eval 'as_val=${'$as_ac_var'} 13286 $as_echo "$as_val"'` 13287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13288 $as_echo "$ac_res" >&6; } 13289 as_val=`eval 'as_val=${'$as_ac_var'} 13290 $as_echo "$as_val"'` 13291 if test "x$as_val" = x""yes; then 13292 cat >>confdefs.h <<_ACEOF 13293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13294 _ACEOF 13295 13296 fi 13297 done 13298 13299 13300 for ac_func in avformat_open_input 13301 do 13302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13304 $as_echo_n "checking for $ac_func... " >&6; } 13305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13306 $as_echo_n "(cached) " >&6 13307 else 13308 cat >conftest.$ac_ext <<_ACEOF 13309 /* confdefs.h. */ 13310 _ACEOF 13311 cat confdefs.h >>conftest.$ac_ext 13312 cat >>conftest.$ac_ext <<_ACEOF 13313 /* end confdefs.h. */ 13314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13316 #define $ac_func innocuous_$ac_func 13317 13318 /* System header to define __stub macros and hopefully few prototypes, 13319 which can conflict with char $ac_func (); below. 13320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13321 <limits.h> exists even on freestanding compilers. */ 13322 13323 #ifdef __STDC__ 13324 # include <limits.h> 13325 #else 13326 # include <assert.h> 13327 #endif 13328 13329 #undef $ac_func 13330 13331 /* Override any GCC internal prototype to avoid an error. 13332 Use char because int might match the return type of a GCC 13333 builtin and then its argument prototype would still apply. */ 13334 #ifdef __cplusplus 13335 extern "C" 13336 #endif 13337 char $ac_func (); 13338 /* The GNU C library defines this for functions which it implements 13339 to always fail with ENOSYS. Some functions are actually named 13340 something starting with __ and the normal name is an alias. */ 13341 #if defined __stub_$ac_func || defined __stub___$ac_func 13342 choke me 13343 #endif 13344 13345 int 13346 main () 13347 { 13348 return $ac_func (); 13349 ; 13350 return 0; 13351 } 13352 _ACEOF 13353 rm -f conftest.$ac_objext conftest$ac_exeext 13354 if { (ac_try="$ac_link" 13355 case "(($ac_try" in 13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13357 *) ac_try_echo=$ac_try;; 13358 esac 13359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13360 $as_echo "$ac_try_echo") >&5 13361 (eval "$ac_link") 2>conftest.er1 13362 ac_status=$? 13363 grep -v '^ *+' conftest.er1 >conftest.err 13364 rm -f conftest.er1 13365 cat conftest.err >&5 13366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13367 (exit $ac_status); } && { 13368 test -z "$ac_cxx_werror_flag" || 13369 test ! -s conftest.err 13370 } && test -s conftest$ac_exeext && { 13371 test "$cross_compiling" = yes || 13372 $as_test_x conftest$ac_exeext 13373 }; then 13374 eval "$as_ac_var=yes" 13375 else 13376 $as_echo "$as_me: failed program was:" >&5 13377 sed 's/^/| /' conftest.$ac_ext >&5 13378 13379 eval "$as_ac_var=no" 13380 fi 13381 13382 rm -rf conftest.dSYM 13383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13384 conftest$ac_exeext conftest.$ac_ext 13385 fi 13386 ac_res=`eval 'as_val=${'$as_ac_var'} 13387 $as_echo "$as_val"'` 13388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13389 $as_echo "$ac_res" >&6; } 13390 as_val=`eval 'as_val=${'$as_ac_var'} 13391 $as_echo "$as_val"'` 13392 if test "x$as_val" = x""yes; then 13393 cat >>confdefs.h <<_ACEOF 13394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13395 _ACEOF 13396 13397 fi 13398 done 13399 13400 13401 for ac_func in av_open_input_file 13402 do 13403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13404 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13405 $as_echo_n "checking for $ac_func... " >&6; } 13406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13407 $as_echo_n "(cached) " >&6 13408 else 13409 cat >conftest.$ac_ext <<_ACEOF 13410 /* confdefs.h. */ 13411 _ACEOF 13412 cat confdefs.h >>conftest.$ac_ext 13413 cat >>conftest.$ac_ext <<_ACEOF 13414 /* end confdefs.h. */ 13415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13417 #define $ac_func innocuous_$ac_func 13418 13419 /* System header to define __stub macros and hopefully few prototypes, 13420 which can conflict with char $ac_func (); below. 13421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13422 <limits.h> exists even on freestanding compilers. */ 13423 13424 #ifdef __STDC__ 13425 # include <limits.h> 13426 #else 13427 # include <assert.h> 13428 #endif 13429 13430 #undef $ac_func 13431 13432 /* Override any GCC internal prototype to avoid an error. 13433 Use char because int might match the return type of a GCC 13434 builtin and then its argument prototype would still apply. */ 13435 #ifdef __cplusplus 13436 extern "C" 13437 #endif 13438 char $ac_func (); 13439 /* The GNU C library defines this for functions which it implements 13440 to always fail with ENOSYS. Some functions are actually named 13441 something starting with __ and the normal name is an alias. */ 13442 #if defined __stub_$ac_func || defined __stub___$ac_func 13443 choke me 13444 #endif 13445 13446 int 13447 main () 13448 { 13449 return $ac_func (); 13450 ; 13451 return 0; 13452 } 13453 _ACEOF 13454 rm -f conftest.$ac_objext conftest$ac_exeext 13455 if { (ac_try="$ac_link" 13456 case "(($ac_try" in 13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13458 *) ac_try_echo=$ac_try;; 13459 esac 13460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13461 $as_echo "$ac_try_echo") >&5 13462 (eval "$ac_link") 2>conftest.er1 13463 ac_status=$? 13464 grep -v '^ *+' conftest.er1 >conftest.err 13465 rm -f conftest.er1 13466 cat conftest.err >&5 13467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13468 (exit $ac_status); } && { 13469 test -z "$ac_cxx_werror_flag" || 13470 test ! -s conftest.err 13471 } && test -s conftest$ac_exeext && { 13472 test "$cross_compiling" = yes || 13473 $as_test_x conftest$ac_exeext 13474 }; then 13475 eval "$as_ac_var=yes" 13476 else 13477 $as_echo "$as_me: failed program was:" >&5 13478 sed 's/^/| /' conftest.$ac_ext >&5 13479 13480 eval "$as_ac_var=no" 13481 fi 13482 13483 rm -rf conftest.dSYM 13484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13485 conftest$ac_exeext conftest.$ac_ext 13486 fi 13487 ac_res=`eval 'as_val=${'$as_ac_var'} 13488 $as_echo "$as_val"'` 13489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13490 $as_echo "$ac_res" >&6; } 13491 as_val=`eval 'as_val=${'$as_ac_var'} 13492 $as_echo "$as_val"'` 13493 if test "x$as_val" = x""yes; then 13494 cat >>confdefs.h <<_ACEOF 13495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13496 _ACEOF 13497 13498 fi 13499 done 13500 13501 13502 for ac_func in av_guess_format 13503 do 13504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13505 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13506 $as_echo_n "checking for $ac_func... " >&6; } 13507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13508 $as_echo_n "(cached) " >&6 13509 else 13510 cat >conftest.$ac_ext <<_ACEOF 13511 /* confdefs.h. */ 13512 _ACEOF 13513 cat confdefs.h >>conftest.$ac_ext 13514 cat >>conftest.$ac_ext <<_ACEOF 13515 /* end confdefs.h. */ 13516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13517 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13518 #define $ac_func innocuous_$ac_func 13519 13520 /* System header to define __stub macros and hopefully few prototypes, 13521 which can conflict with char $ac_func (); below. 13522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13523 <limits.h> exists even on freestanding compilers. */ 13524 13525 #ifdef __STDC__ 13526 # include <limits.h> 13527 #else 13528 # include <assert.h> 13529 #endif 13530 13531 #undef $ac_func 13532 13533 /* Override any GCC internal prototype to avoid an error. 13534 Use char because int might match the return type of a GCC 13535 builtin and then its argument prototype would still apply. */ 13536 #ifdef __cplusplus 13537 extern "C" 13538 #endif 13539 char $ac_func (); 13540 /* The GNU C library defines this for functions which it implements 13541 to always fail with ENOSYS. Some functions are actually named 13542 something starting with __ and the normal name is an alias. */ 13543 #if defined __stub_$ac_func || defined __stub___$ac_func 13544 choke me 13545 #endif 13546 13547 int 13548 main () 13549 { 13550 return $ac_func (); 13551 ; 13552 return 0; 13553 } 13554 _ACEOF 13555 rm -f conftest.$ac_objext conftest$ac_exeext 13556 if { (ac_try="$ac_link" 13557 case "(($ac_try" in 13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13559 *) ac_try_echo=$ac_try;; 13560 esac 13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13562 $as_echo "$ac_try_echo") >&5 13563 (eval "$ac_link") 2>conftest.er1 13564 ac_status=$? 13565 grep -v '^ *+' conftest.er1 >conftest.err 13566 rm -f conftest.er1 13567 cat conftest.err >&5 13568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13569 (exit $ac_status); } && { 13570 test -z "$ac_cxx_werror_flag" || 13571 test ! -s conftest.err 13572 } && test -s conftest$ac_exeext && { 13573 test "$cross_compiling" = yes || 13574 $as_test_x conftest$ac_exeext 13575 }; then 13576 eval "$as_ac_var=yes" 13577 else 13578 $as_echo "$as_me: failed program was:" >&5 13579 sed 's/^/| /' conftest.$ac_ext >&5 13580 13581 eval "$as_ac_var=no" 13582 fi 13583 13584 rm -rf conftest.dSYM 13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13586 conftest$ac_exeext conftest.$ac_ext 13587 fi 13588 ac_res=`eval 'as_val=${'$as_ac_var'} 13589 $as_echo "$as_val"'` 13590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13591 $as_echo "$ac_res" >&6; } 13592 as_val=`eval 'as_val=${'$as_ac_var'} 13593 $as_echo "$as_val"'` 13594 if test "x$as_val" = x""yes; then 13595 cat >>confdefs.h <<_ACEOF 13596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13597 _ACEOF 13598 13599 fi 13600 done 13601 13602 13603 for ac_func in guess_format 13604 do 13605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13606 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13607 $as_echo_n "checking for $ac_func... " >&6; } 13608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13609 $as_echo_n "(cached) " >&6 13610 else 13611 cat >conftest.$ac_ext <<_ACEOF 13612 /* confdefs.h. */ 13613 _ACEOF 13614 cat confdefs.h >>conftest.$ac_ext 13615 cat >>conftest.$ac_ext <<_ACEOF 13616 /* end confdefs.h. */ 13617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13618 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13619 #define $ac_func innocuous_$ac_func 13620 13621 /* System header to define __stub macros and hopefully few prototypes, 13622 which can conflict with char $ac_func (); below. 13623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13624 <limits.h> exists even on freestanding compilers. */ 13625 13626 #ifdef __STDC__ 13627 # include <limits.h> 13628 #else 13629 # include <assert.h> 13630 #endif 13631 13632 #undef $ac_func 13633 13634 /* Override any GCC internal prototype to avoid an error. 13635 Use char because int might match the return type of a GCC 13636 builtin and then its argument prototype would still apply. */ 13637 #ifdef __cplusplus 13638 extern "C" 13639 #endif 13640 char $ac_func (); 13641 /* The GNU C library defines this for functions which it implements 13642 to always fail with ENOSYS. Some functions are actually named 13643 something starting with __ and the normal name is an alias. */ 13644 #if defined __stub_$ac_func || defined __stub___$ac_func 13645 choke me 13646 #endif 13647 13648 int 13649 main () 13650 { 13651 return $ac_func (); 13652 ; 13653 return 0; 13654 } 13655 _ACEOF 13656 rm -f conftest.$ac_objext conftest$ac_exeext 13657 if { (ac_try="$ac_link" 13658 case "(($ac_try" in 13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13660 *) ac_try_echo=$ac_try;; 13661 esac 13662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13663 $as_echo "$ac_try_echo") >&5 13664 (eval "$ac_link") 2>conftest.er1 13665 ac_status=$? 13666 grep -v '^ *+' conftest.er1 >conftest.err 13667 rm -f conftest.er1 13668 cat conftest.err >&5 13669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13670 (exit $ac_status); } && { 13671 test -z "$ac_cxx_werror_flag" || 13672 test ! -s conftest.err 13673 } && test -s conftest$ac_exeext && { 13674 test "$cross_compiling" = yes || 13675 $as_test_x conftest$ac_exeext 13676 }; then 13677 eval "$as_ac_var=yes" 13678 else 13679 $as_echo "$as_me: failed program was:" >&5 13680 sed 's/^/| /' conftest.$ac_ext >&5 13681 13682 eval "$as_ac_var=no" 13683 fi 13684 13685 rm -rf conftest.dSYM 13686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13687 conftest$ac_exeext conftest.$ac_ext 13688 fi 13689 ac_res=`eval 'as_val=${'$as_ac_var'} 13690 $as_echo "$as_val"'` 13691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13692 $as_echo "$ac_res" >&6; } 13693 as_val=`eval 'as_val=${'$as_ac_var'} 13694 $as_echo "$as_val"'` 13695 if test "x$as_val" = x""yes; then 13696 cat >>confdefs.h <<_ACEOF 13697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13698 _ACEOF 13699 13700 fi 13701 done 13702 13703 13704 for ac_func in av_dump_format 13705 do 13706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13708 $as_echo_n "checking for $ac_func... " >&6; } 13709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13710 $as_echo_n "(cached) " >&6 13711 else 13712 cat >conftest.$ac_ext <<_ACEOF 13713 /* confdefs.h. */ 13714 _ACEOF 13715 cat confdefs.h >>conftest.$ac_ext 13716 cat >>conftest.$ac_ext <<_ACEOF 13717 /* end confdefs.h. */ 13718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13720 #define $ac_func innocuous_$ac_func 13721 13722 /* System header to define __stub macros and hopefully few prototypes, 13723 which can conflict with char $ac_func (); below. 13724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13725 <limits.h> exists even on freestanding compilers. */ 13726 13727 #ifdef __STDC__ 13728 # include <limits.h> 13729 #else 13730 # include <assert.h> 13731 #endif 13732 13733 #undef $ac_func 13734 13735 /* Override any GCC internal prototype to avoid an error. 13736 Use char because int might match the return type of a GCC 13737 builtin and then its argument prototype would still apply. */ 13738 #ifdef __cplusplus 13739 extern "C" 13740 #endif 13741 char $ac_func (); 13742 /* The GNU C library defines this for functions which it implements 13743 to always fail with ENOSYS. Some functions are actually named 13744 something starting with __ and the normal name is an alias. */ 13745 #if defined __stub_$ac_func || defined __stub___$ac_func 13746 choke me 13747 #endif 13748 13749 int 13750 main () 13751 { 13752 return $ac_func (); 13753 ; 13754 return 0; 13755 } 13756 _ACEOF 13757 rm -f conftest.$ac_objext conftest$ac_exeext 13758 if { (ac_try="$ac_link" 13759 case "(($ac_try" in 13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13761 *) ac_try_echo=$ac_try;; 13762 esac 13763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13764 $as_echo "$ac_try_echo") >&5 13765 (eval "$ac_link") 2>conftest.er1 13766 ac_status=$? 13767 grep -v '^ *+' conftest.er1 >conftest.err 13768 rm -f conftest.er1 13769 cat conftest.err >&5 13770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13771 (exit $ac_status); } && { 13772 test -z "$ac_cxx_werror_flag" || 13773 test ! -s conftest.err 13774 } && test -s conftest$ac_exeext && { 13775 test "$cross_compiling" = yes || 13776 $as_test_x conftest$ac_exeext 13777 }; then 13778 eval "$as_ac_var=yes" 13779 else 13780 $as_echo "$as_me: failed program was:" >&5 13781 sed 's/^/| /' conftest.$ac_ext >&5 13782 13783 eval "$as_ac_var=no" 13784 fi 13785 13786 rm -rf conftest.dSYM 13787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13788 conftest$ac_exeext conftest.$ac_ext 13789 fi 13790 ac_res=`eval 'as_val=${'$as_ac_var'} 13791 $as_echo "$as_val"'` 13792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13793 $as_echo "$ac_res" >&6; } 13794 as_val=`eval 'as_val=${'$as_ac_var'} 13795 $as_echo "$as_val"'` 13796 if test "x$as_val" = x""yes; then 13797 cat >>confdefs.h <<_ACEOF 13798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13799 _ACEOF 13800 13801 fi 13802 done 13803 13804 13805 for ac_func in dump_format 13806 do 13807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13809 $as_echo_n "checking for $ac_func... " >&6; } 13810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13811 $as_echo_n "(cached) " >&6 13812 else 13813 cat >conftest.$ac_ext <<_ACEOF 13814 /* confdefs.h. */ 13815 _ACEOF 13816 cat confdefs.h >>conftest.$ac_ext 13817 cat >>conftest.$ac_ext <<_ACEOF 13818 /* end confdefs.h. */ 13819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13820 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13821 #define $ac_func innocuous_$ac_func 13822 13823 /* System header to define __stub macros and hopefully few prototypes, 13824 which can conflict with char $ac_func (); below. 13825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13826 <limits.h> exists even on freestanding compilers. */ 13827 13828 #ifdef __STDC__ 13829 # include <limits.h> 13830 #else 13831 # include <assert.h> 13832 #endif 13833 13834 #undef $ac_func 13835 13836 /* Override any GCC internal prototype to avoid an error. 13837 Use char because int might match the return type of a GCC 13838 builtin and then its argument prototype would still apply. */ 13839 #ifdef __cplusplus 13840 extern "C" 13841 #endif 13842 char $ac_func (); 13843 /* The GNU C library defines this for functions which it implements 13844 to always fail with ENOSYS. Some functions are actually named 13845 something starting with __ and the normal name is an alias. */ 13846 #if defined __stub_$ac_func || defined __stub___$ac_func 13847 choke me 13848 #endif 13849 13850 int 13851 main () 13852 { 13853 return $ac_func (); 13854 ; 13855 return 0; 13856 } 13857 _ACEOF 13858 rm -f conftest.$ac_objext conftest$ac_exeext 13859 if { (ac_try="$ac_link" 13860 case "(($ac_try" in 13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13862 *) ac_try_echo=$ac_try;; 13863 esac 13864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13865 $as_echo "$ac_try_echo") >&5 13866 (eval "$ac_link") 2>conftest.er1 13867 ac_status=$? 13868 grep -v '^ *+' conftest.er1 >conftest.err 13869 rm -f conftest.er1 13870 cat conftest.err >&5 13871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13872 (exit $ac_status); } && { 13873 test -z "$ac_cxx_werror_flag" || 13874 test ! -s conftest.err 13875 } && test -s conftest$ac_exeext && { 13876 test "$cross_compiling" = yes || 13877 $as_test_x conftest$ac_exeext 13878 }; then 13879 eval "$as_ac_var=yes" 13880 else 13881 $as_echo "$as_me: failed program was:" >&5 13882 sed 's/^/| /' conftest.$ac_ext >&5 13883 13884 eval "$as_ac_var=no" 13885 fi 13886 13887 rm -rf conftest.dSYM 13888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13889 conftest$ac_exeext conftest.$ac_ext 13890 fi 13891 ac_res=`eval 'as_val=${'$as_ac_var'} 13892 $as_echo "$as_val"'` 13893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13894 $as_echo "$ac_res" >&6; } 13895 as_val=`eval 'as_val=${'$as_ac_var'} 13896 $as_echo "$as_val"'` 13897 if test "x$as_val" = x""yes; then 13898 cat >>confdefs.h <<_ACEOF 13899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13900 _ACEOF 13901 13902 fi 13903 done 13904 13905 13906 for ac_func in avio_open 13907 do 13908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13909 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13910 $as_echo_n "checking for $ac_func... " >&6; } 13911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13912 $as_echo_n "(cached) " >&6 13913 else 13914 cat >conftest.$ac_ext <<_ACEOF 13915 /* confdefs.h. */ 13916 _ACEOF 13917 cat confdefs.h >>conftest.$ac_ext 13918 cat >>conftest.$ac_ext <<_ACEOF 13919 /* end confdefs.h. */ 13920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13922 #define $ac_func innocuous_$ac_func 13923 13924 /* System header to define __stub macros and hopefully few prototypes, 13925 which can conflict with char $ac_func (); below. 13926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13927 <limits.h> exists even on freestanding compilers. */ 13928 13929 #ifdef __STDC__ 13930 # include <limits.h> 13931 #else 13932 # include <assert.h> 13933 #endif 13934 13935 #undef $ac_func 13936 13937 /* Override any GCC internal prototype to avoid an error. 13938 Use char because int might match the return type of a GCC 13939 builtin and then its argument prototype would still apply. */ 13940 #ifdef __cplusplus 13941 extern "C" 13942 #endif 13943 char $ac_func (); 13944 /* The GNU C library defines this for functions which it implements 13945 to always fail with ENOSYS. Some functions are actually named 13946 something starting with __ and the normal name is an alias. */ 13947 #if defined __stub_$ac_func || defined __stub___$ac_func 13948 choke me 13949 #endif 13950 13951 int 13952 main () 13953 { 13954 return $ac_func (); 13955 ; 13956 return 0; 13957 } 13958 _ACEOF 13959 rm -f conftest.$ac_objext conftest$ac_exeext 13960 if { (ac_try="$ac_link" 13961 case "(($ac_try" in 13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13963 *) ac_try_echo=$ac_try;; 13964 esac 13965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13966 $as_echo "$ac_try_echo") >&5 13967 (eval "$ac_link") 2>conftest.er1 13968 ac_status=$? 13969 grep -v '^ *+' conftest.er1 >conftest.err 13970 rm -f conftest.er1 13971 cat conftest.err >&5 13972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13973 (exit $ac_status); } && { 13974 test -z "$ac_cxx_werror_flag" || 13975 test ! -s conftest.err 13976 } && test -s conftest$ac_exeext && { 13977 test "$cross_compiling" = yes || 13978 $as_test_x conftest$ac_exeext 13979 }; then 13980 eval "$as_ac_var=yes" 13981 else 13982 $as_echo "$as_me: failed program was:" >&5 13983 sed 's/^/| /' conftest.$ac_ext >&5 13984 13985 eval "$as_ac_var=no" 13986 fi 13987 13988 rm -rf conftest.dSYM 13989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13990 conftest$ac_exeext conftest.$ac_ext 13991 fi 13992 ac_res=`eval 'as_val=${'$as_ac_var'} 13993 $as_echo "$as_val"'` 13994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13995 $as_echo "$ac_res" >&6; } 13996 as_val=`eval 'as_val=${'$as_ac_var'} 13997 $as_echo "$as_val"'` 13998 if test "x$as_val" = x""yes; then 13999 cat >>confdefs.h <<_ACEOF 14000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14001 _ACEOF 14002 14003 fi 14004 done 14005 14006 14007 for ac_func in url_fopen 14008 do 14009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14011 $as_echo_n "checking for $ac_func... " >&6; } 14012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14013 $as_echo_n "(cached) " >&6 14014 else 14015 cat >conftest.$ac_ext <<_ACEOF 14016 /* confdefs.h. */ 14017 _ACEOF 14018 cat confdefs.h >>conftest.$ac_ext 14019 cat >>conftest.$ac_ext <<_ACEOF 14020 /* end confdefs.h. */ 14021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14022 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14023 #define $ac_func innocuous_$ac_func 14024 14025 /* System header to define __stub macros and hopefully few prototypes, 14026 which can conflict with char $ac_func (); below. 14027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14028 <limits.h> exists even on freestanding compilers. */ 14029 14030 #ifdef __STDC__ 14031 # include <limits.h> 14032 #else 14033 # include <assert.h> 14034 #endif 14035 14036 #undef $ac_func 14037 14038 /* Override any GCC internal prototype to avoid an error. 14039 Use char because int might match the return type of a GCC 14040 builtin and then its argument prototype would still apply. */ 14041 #ifdef __cplusplus 14042 extern "C" 14043 #endif 14044 char $ac_func (); 14045 /* The GNU C library defines this for functions which it implements 14046 to always fail with ENOSYS. Some functions are actually named 14047 something starting with __ and the normal name is an alias. */ 14048 #if defined __stub_$ac_func || defined __stub___$ac_func 14049 choke me 14050 #endif 14051 14052 int 14053 main () 14054 { 14055 return $ac_func (); 14056 ; 14057 return 0; 14058 } 14059 _ACEOF 14060 rm -f conftest.$ac_objext conftest$ac_exeext 14061 if { (ac_try="$ac_link" 14062 case "(($ac_try" in 14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14064 *) ac_try_echo=$ac_try;; 14065 esac 14066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14067 $as_echo "$ac_try_echo") >&5 14068 (eval "$ac_link") 2>conftest.er1 14069 ac_status=$? 14070 grep -v '^ *+' conftest.er1 >conftest.err 14071 rm -f conftest.er1 14072 cat conftest.err >&5 14073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14074 (exit $ac_status); } && { 14075 test -z "$ac_cxx_werror_flag" || 14076 test ! -s conftest.err 14077 } && test -s conftest$ac_exeext && { 14078 test "$cross_compiling" = yes || 14079 $as_test_x conftest$ac_exeext 14080 }; then 14081 eval "$as_ac_var=yes" 14082 else 14083 $as_echo "$as_me: failed program was:" >&5 14084 sed 's/^/| /' conftest.$ac_ext >&5 14085 14086 eval "$as_ac_var=no" 14087 fi 14088 14089 rm -rf conftest.dSYM 14090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14091 conftest$ac_exeext conftest.$ac_ext 14092 fi 14093 ac_res=`eval 'as_val=${'$as_ac_var'} 14094 $as_echo "$as_val"'` 14095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14096 $as_echo "$ac_res" >&6; } 14097 as_val=`eval 'as_val=${'$as_ac_var'} 14098 $as_echo "$as_val"'` 14099 if test "x$as_val" = x""yes; then 14100 cat >>confdefs.h <<_ACEOF 14101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14102 _ACEOF 14103 14104 fi 14105 done 14106 14107 14108 for ac_func in avio_close 14109 do 14110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14111 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14112 $as_echo_n "checking for $ac_func... " >&6; } 14113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14114 $as_echo_n "(cached) " >&6 14115 else 14116 cat >conftest.$ac_ext <<_ACEOF 14117 /* confdefs.h. */ 14118 _ACEOF 14119 cat confdefs.h >>conftest.$ac_ext 14120 cat >>conftest.$ac_ext <<_ACEOF 14121 /* end confdefs.h. */ 14122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14124 #define $ac_func innocuous_$ac_func 14125 14126 /* System header to define __stub macros and hopefully few prototypes, 14127 which can conflict with char $ac_func (); below. 14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14129 <limits.h> exists even on freestanding compilers. */ 14130 14131 #ifdef __STDC__ 14132 # include <limits.h> 14133 #else 14134 # include <assert.h> 14135 #endif 14136 14137 #undef $ac_func 14138 14139 /* Override any GCC internal prototype to avoid an error. 14140 Use char because int might match the return type of a GCC 14141 builtin and then its argument prototype would still apply. */ 14142 #ifdef __cplusplus 14143 extern "C" 14144 #endif 14145 char $ac_func (); 14146 /* The GNU C library defines this for functions which it implements 14147 to always fail with ENOSYS. Some functions are actually named 14148 something starting with __ and the normal name is an alias. */ 14149 #if defined __stub_$ac_func || defined __stub___$ac_func 14150 choke me 14151 #endif 14152 14153 int 14154 main () 14155 { 14156 return $ac_func (); 14157 ; 14158 return 0; 14159 } 14160 _ACEOF 14161 rm -f conftest.$ac_objext conftest$ac_exeext 14162 if { (ac_try="$ac_link" 14163 case "(($ac_try" in 14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14165 *) ac_try_echo=$ac_try;; 14166 esac 14167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14168 $as_echo "$ac_try_echo") >&5 14169 (eval "$ac_link") 2>conftest.er1 14170 ac_status=$? 14171 grep -v '^ *+' conftest.er1 >conftest.err 14172 rm -f conftest.er1 14173 cat conftest.err >&5 14174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14175 (exit $ac_status); } && { 14176 test -z "$ac_cxx_werror_flag" || 14177 test ! -s conftest.err 14178 } && test -s conftest$ac_exeext && { 14179 test "$cross_compiling" = yes || 14180 $as_test_x conftest$ac_exeext 14181 }; then 14182 eval "$as_ac_var=yes" 14183 else 14184 $as_echo "$as_me: failed program was:" >&5 14185 sed 's/^/| /' conftest.$ac_ext >&5 14186 14187 eval "$as_ac_var=no" 14188 fi 14189 14190 rm -rf conftest.dSYM 14191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14192 conftest$ac_exeext conftest.$ac_ext 14193 fi 14194 ac_res=`eval 'as_val=${'$as_ac_var'} 14195 $as_echo "$as_val"'` 14196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14197 $as_echo "$ac_res" >&6; } 14198 as_val=`eval 'as_val=${'$as_ac_var'} 14199 $as_echo "$as_val"'` 14200 if test "x$as_val" = x""yes; then 14201 cat >>confdefs.h <<_ACEOF 14202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14203 _ACEOF 14204 14205 fi 14206 done 14207 14208 14209 for ac_func in url_fclose 14210 do 14211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14212 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14213 $as_echo_n "checking for $ac_func... " >&6; } 14214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14215 $as_echo_n "(cached) " >&6 14216 else 14217 cat >conftest.$ac_ext <<_ACEOF 14218 /* confdefs.h. */ 14219 _ACEOF 14220 cat confdefs.h >>conftest.$ac_ext 14221 cat >>conftest.$ac_ext <<_ACEOF 14222 /* end confdefs.h. */ 14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14224 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14225 #define $ac_func innocuous_$ac_func 14226 14227 /* System header to define __stub macros and hopefully few prototypes, 14228 which can conflict with char $ac_func (); below. 14229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14230 <limits.h> exists even on freestanding compilers. */ 14231 14232 #ifdef __STDC__ 14233 # include <limits.h> 14234 #else 14235 # include <assert.h> 14236 #endif 14237 14238 #undef $ac_func 14239 14240 /* Override any GCC internal prototype to avoid an error. 14241 Use char because int might match the return type of a GCC 14242 builtin and then its argument prototype would still apply. */ 14243 #ifdef __cplusplus 14244 extern "C" 14245 #endif 14246 char $ac_func (); 14247 /* The GNU C library defines this for functions which it implements 14248 to always fail with ENOSYS. Some functions are actually named 14249 something starting with __ and the normal name is an alias. */ 14250 #if defined __stub_$ac_func || defined __stub___$ac_func 14251 choke me 14252 #endif 14253 14254 int 14255 main () 14256 { 14257 return $ac_func (); 14258 ; 14259 return 0; 14260 } 14261 _ACEOF 14262 rm -f conftest.$ac_objext conftest$ac_exeext 14263 if { (ac_try="$ac_link" 14264 case "(($ac_try" in 14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14266 *) ac_try_echo=$ac_try;; 14267 esac 14268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14269 $as_echo "$ac_try_echo") >&5 14270 (eval "$ac_link") 2>conftest.er1 14271 ac_status=$? 14272 grep -v '^ *+' conftest.er1 >conftest.err 14273 rm -f conftest.er1 14274 cat conftest.err >&5 14275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14276 (exit $ac_status); } && { 14277 test -z "$ac_cxx_werror_flag" || 14278 test ! -s conftest.err 14279 } && test -s conftest$ac_exeext && { 14280 test "$cross_compiling" = yes || 14281 $as_test_x conftest$ac_exeext 14282 }; then 14283 eval "$as_ac_var=yes" 14284 else 14285 $as_echo "$as_me: failed program was:" >&5 14286 sed 's/^/| /' conftest.$ac_ext >&5 14287 14288 eval "$as_ac_var=no" 14289 fi 14290 14291 rm -rf conftest.dSYM 14292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14293 conftest$ac_exeext conftest.$ac_ext 14294 fi 14295 ac_res=`eval 'as_val=${'$as_ac_var'} 14296 $as_echo "$as_val"'` 14297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14298 $as_echo "$ac_res" >&6; } 14299 as_val=`eval 'as_val=${'$as_ac_var'} 14300 $as_echo "$as_val"'` 14301 if test "x$as_val" = x""yes; then 14302 cat >>confdefs.h <<_ACEOF 14303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14304 _ACEOF 14305 14306 fi 14307 done 14308 14309 14310 for ac_func in avformat_alloc_context 14311 do 14312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14313 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14314 $as_echo_n "checking for $ac_func... " >&6; } 14315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14316 $as_echo_n "(cached) " >&6 14317 else 14318 cat >conftest.$ac_ext <<_ACEOF 14319 /* confdefs.h. */ 14320 _ACEOF 14321 cat confdefs.h >>conftest.$ac_ext 14322 cat >>conftest.$ac_ext <<_ACEOF 14323 /* end confdefs.h. */ 14324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14325 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14326 #define $ac_func innocuous_$ac_func 14327 14328 /* System header to define __stub macros and hopefully few prototypes, 14329 which can conflict with char $ac_func (); below. 14330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14331 <limits.h> exists even on freestanding compilers. */ 14332 14333 #ifdef __STDC__ 14334 # include <limits.h> 14335 #else 14336 # include <assert.h> 14337 #endif 14338 14339 #undef $ac_func 14340 14341 /* Override any GCC internal prototype to avoid an error. 14342 Use char because int might match the return type of a GCC 14343 builtin and then its argument prototype would still apply. */ 14344 #ifdef __cplusplus 14345 extern "C" 14346 #endif 14347 char $ac_func (); 14348 /* The GNU C library defines this for functions which it implements 14349 to always fail with ENOSYS. Some functions are actually named 14350 something starting with __ and the normal name is an alias. */ 14351 #if defined __stub_$ac_func || defined __stub___$ac_func 14352 choke me 14353 #endif 14354 14355 int 14356 main () 14357 { 14358 return $ac_func (); 14359 ; 14360 return 0; 14361 } 14362 _ACEOF 14363 rm -f conftest.$ac_objext conftest$ac_exeext 14364 if { (ac_try="$ac_link" 14365 case "(($ac_try" in 14366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14367 *) ac_try_echo=$ac_try;; 14368 esac 14369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14370 $as_echo "$ac_try_echo") >&5 14371 (eval "$ac_link") 2>conftest.er1 14372 ac_status=$? 14373 grep -v '^ *+' conftest.er1 >conftest.err 14374 rm -f conftest.er1 14375 cat conftest.err >&5 14376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14377 (exit $ac_status); } && { 14378 test -z "$ac_cxx_werror_flag" || 14379 test ! -s conftest.err 14380 } && test -s conftest$ac_exeext && { 14381 test "$cross_compiling" = yes || 14382 $as_test_x conftest$ac_exeext 14383 }; then 14384 eval "$as_ac_var=yes" 14385 else 14386 $as_echo "$as_me: failed program was:" >&5 14387 sed 's/^/| /' conftest.$ac_ext >&5 14388 14389 eval "$as_ac_var=no" 14390 fi 14391 14392 rm -rf conftest.dSYM 14393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14394 conftest$ac_exeext conftest.$ac_ext 14395 fi 14396 ac_res=`eval 'as_val=${'$as_ac_var'} 14397 $as_echo "$as_val"'` 14398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14399 $as_echo "$ac_res" >&6; } 14400 as_val=`eval 'as_val=${'$as_ac_var'} 14401 $as_echo "$as_val"'` 14402 if test "x$as_val" = x""yes; then 14403 cat >>confdefs.h <<_ACEOF 14404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14405 _ACEOF 14406 14407 fi 14408 done 14409 14410 14411 for ac_func in av_alloc_format_context 14412 do 14413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14415 $as_echo_n "checking for $ac_func... " >&6; } 14416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14417 $as_echo_n "(cached) " >&6 14418 else 14419 cat >conftest.$ac_ext <<_ACEOF 14420 /* confdefs.h. */ 14421 _ACEOF 14422 cat confdefs.h >>conftest.$ac_ext 14423 cat >>conftest.$ac_ext <<_ACEOF 14424 /* end confdefs.h. */ 14425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14426 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14427 #define $ac_func innocuous_$ac_func 14428 14429 /* System header to define __stub macros and hopefully few prototypes, 14430 which can conflict with char $ac_func (); below. 14431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14432 <limits.h> exists even on freestanding compilers. */ 14433 14434 #ifdef __STDC__ 14435 # include <limits.h> 14436 #else 14437 # include <assert.h> 14438 #endif 14439 14440 #undef $ac_func 14441 14442 /* Override any GCC internal prototype to avoid an error. 14443 Use char because int might match the return type of a GCC 14444 builtin and then its argument prototype would still apply. */ 14445 #ifdef __cplusplus 14446 extern "C" 14447 #endif 14448 char $ac_func (); 14449 /* The GNU C library defines this for functions which it implements 14450 to always fail with ENOSYS. Some functions are actually named 14451 something starting with __ and the normal name is an alias. */ 14452 #if defined __stub_$ac_func || defined __stub___$ac_func 14453 choke me 14454 #endif 14455 14456 int 14457 main () 14458 { 14459 return $ac_func (); 14460 ; 14461 return 0; 14462 } 14463 _ACEOF 14464 rm -f conftest.$ac_objext conftest$ac_exeext 14465 if { (ac_try="$ac_link" 14466 case "(($ac_try" in 14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14468 *) ac_try_echo=$ac_try;; 14469 esac 14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14471 $as_echo "$ac_try_echo") >&5 14472 (eval "$ac_link") 2>conftest.er1 14473 ac_status=$? 14474 grep -v '^ *+' conftest.er1 >conftest.err 14475 rm -f conftest.er1 14476 cat conftest.err >&5 14477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14478 (exit $ac_status); } && { 14479 test -z "$ac_cxx_werror_flag" || 14480 test ! -s conftest.err 14481 } && test -s conftest$ac_exeext && { 14482 test "$cross_compiling" = yes || 14483 $as_test_x conftest$ac_exeext 14484 }; then 14485 eval "$as_ac_var=yes" 14486 else 14487 $as_echo "$as_me: failed program was:" >&5 14488 sed 's/^/| /' conftest.$ac_ext >&5 14489 14490 eval "$as_ac_var=no" 14491 fi 14492 14493 rm -rf conftest.dSYM 14494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14495 conftest$ac_exeext conftest.$ac_ext 14496 fi 14497 ac_res=`eval 'as_val=${'$as_ac_var'} 14498 $as_echo "$as_val"'` 14499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14500 $as_echo "$ac_res" >&6; } 14501 as_val=`eval 'as_val=${'$as_ac_var'} 14502 $as_echo "$as_val"'` 14503 if test "x$as_val" = x""yes; then 14504 cat >>confdefs.h <<_ACEOF 14505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14506 _ACEOF 14507 14508 fi 14509 done 14510 14511 14512 for ac_func in av_set_parameters 14513 do 14514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14516 $as_echo_n "checking for $ac_func... " >&6; } 14517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14518 $as_echo_n "(cached) " >&6 14519 else 14520 cat >conftest.$ac_ext <<_ACEOF 14521 /* confdefs.h. */ 14522 _ACEOF 14523 cat confdefs.h >>conftest.$ac_ext 14524 cat >>conftest.$ac_ext <<_ACEOF 14525 /* end confdefs.h. */ 14526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14527 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14528 #define $ac_func innocuous_$ac_func 14529 14530 /* System header to define __stub macros and hopefully few prototypes, 14531 which can conflict with char $ac_func (); below. 14532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14533 <limits.h> exists even on freestanding compilers. */ 14534 14535 #ifdef __STDC__ 14536 # include <limits.h> 14537 #else 14538 # include <assert.h> 14539 #endif 14540 14541 #undef $ac_func 14542 14543 /* Override any GCC internal prototype to avoid an error. 14544 Use char because int might match the return type of a GCC 14545 builtin and then its argument prototype would still apply. */ 14546 #ifdef __cplusplus 14547 extern "C" 14548 #endif 14549 char $ac_func (); 14550 /* The GNU C library defines this for functions which it implements 14551 to always fail with ENOSYS. Some functions are actually named 14552 something starting with __ and the normal name is an alias. */ 14553 #if defined __stub_$ac_func || defined __stub___$ac_func 14554 choke me 14555 #endif 14556 14557 int 14558 main () 14559 { 14560 return $ac_func (); 14561 ; 14562 return 0; 14563 } 14564 _ACEOF 14565 rm -f conftest.$ac_objext conftest$ac_exeext 14566 if { (ac_try="$ac_link" 14567 case "(($ac_try" in 14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14569 *) ac_try_echo=$ac_try;; 14570 esac 14571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14572 $as_echo "$ac_try_echo") >&5 14573 (eval "$ac_link") 2>conftest.er1 14574 ac_status=$? 14575 grep -v '^ *+' conftest.er1 >conftest.err 14576 rm -f conftest.er1 14577 cat conftest.err >&5 14578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14579 (exit $ac_status); } && { 14580 test -z "$ac_cxx_werror_flag" || 14581 test ! -s conftest.err 14582 } && test -s conftest$ac_exeext && { 14583 test "$cross_compiling" = yes || 14584 $as_test_x conftest$ac_exeext 14585 }; then 14586 eval "$as_ac_var=yes" 14587 else 14588 $as_echo "$as_me: failed program was:" >&5 14589 sed 's/^/| /' conftest.$ac_ext >&5 14590 14591 eval "$as_ac_var=no" 14592 fi 14593 14594 rm -rf conftest.dSYM 14595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14596 conftest$ac_exeext conftest.$ac_ext 14597 fi 14598 ac_res=`eval 'as_val=${'$as_ac_var'} 14599 $as_echo "$as_val"'` 14600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14601 $as_echo "$ac_res" >&6; } 14602 as_val=`eval 'as_val=${'$as_ac_var'} 14603 $as_echo "$as_val"'` 14604 if test "x$as_val" = x""yes; then 14605 cat >>confdefs.h <<_ACEOF 14606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14607 _ACEOF 14608 14609 fi 14610 done 14611 14612 14613 for ac_func in avformat_write_header 14614 do 14615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14616 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14617 $as_echo_n "checking for $ac_func... " >&6; } 14618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14619 $as_echo_n "(cached) " >&6 14620 else 14621 cat >conftest.$ac_ext <<_ACEOF 14622 /* confdefs.h. */ 14623 _ACEOF 14624 cat confdefs.h >>conftest.$ac_ext 14625 cat >>conftest.$ac_ext <<_ACEOF 14626 /* end confdefs.h. */ 14627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14628 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14629 #define $ac_func innocuous_$ac_func 14630 14631 /* System header to define __stub macros and hopefully few prototypes, 14632 which can conflict with char $ac_func (); below. 14633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14634 <limits.h> exists even on freestanding compilers. */ 14635 14636 #ifdef __STDC__ 14637 # include <limits.h> 14638 #else 14639 # include <assert.h> 14640 #endif 14641 14642 #undef $ac_func 14643 14644 /* Override any GCC internal prototype to avoid an error. 14645 Use char because int might match the return type of a GCC 14646 builtin and then its argument prototype would still apply. */ 14647 #ifdef __cplusplus 14648 extern "C" 14649 #endif 14650 char $ac_func (); 14651 /* The GNU C library defines this for functions which it implements 14652 to always fail with ENOSYS. Some functions are actually named 14653 something starting with __ and the normal name is an alias. */ 14654 #if defined __stub_$ac_func || defined __stub___$ac_func 14655 choke me 14656 #endif 14657 14658 int 14659 main () 14660 { 14661 return $ac_func (); 14662 ; 14663 return 0; 14664 } 14665 _ACEOF 14666 rm -f conftest.$ac_objext conftest$ac_exeext 14667 if { (ac_try="$ac_link" 14668 case "(($ac_try" in 14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14670 *) ac_try_echo=$ac_try;; 14671 esac 14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14673 $as_echo "$ac_try_echo") >&5 14674 (eval "$ac_link") 2>conftest.er1 14675 ac_status=$? 14676 grep -v '^ *+' conftest.er1 >conftest.err 14677 rm -f conftest.er1 14678 cat conftest.err >&5 14679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14680 (exit $ac_status); } && { 14681 test -z "$ac_cxx_werror_flag" || 14682 test ! -s conftest.err 14683 } && test -s conftest$ac_exeext && { 14684 test "$cross_compiling" = yes || 14685 $as_test_x conftest$ac_exeext 14686 }; then 14687 eval "$as_ac_var=yes" 14688 else 14689 $as_echo "$as_me: failed program was:" >&5 14690 sed 's/^/| /' conftest.$ac_ext >&5 14691 14692 eval "$as_ac_var=no" 14693 fi 14694 14695 rm -rf conftest.dSYM 14696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14697 conftest$ac_exeext conftest.$ac_ext 14698 fi 14699 ac_res=`eval 'as_val=${'$as_ac_var'} 14700 $as_echo "$as_val"'` 14701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14702 $as_echo "$ac_res" >&6; } 14703 as_val=`eval 'as_val=${'$as_ac_var'} 14704 $as_echo "$as_val"'` 14705 if test "x$as_val" = x""yes; then 14706 cat >>confdefs.h <<_ACEOF 14707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14708 _ACEOF 14709 14710 fi 14711 done 14712 14713 14714 for ac_func in av_write_header 14715 do 14716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14717 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14718 $as_echo_n "checking for $ac_func... " >&6; } 14719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14720 $as_echo_n "(cached) " >&6 14721 else 14722 cat >conftest.$ac_ext <<_ACEOF 14723 /* confdefs.h. */ 14724 _ACEOF 14725 cat confdefs.h >>conftest.$ac_ext 14726 cat >>conftest.$ac_ext <<_ACEOF 14727 /* end confdefs.h. */ 14728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14730 #define $ac_func innocuous_$ac_func 14731 14732 /* System header to define __stub macros and hopefully few prototypes, 14733 which can conflict with char $ac_func (); below. 14734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14735 <limits.h> exists even on freestanding compilers. */ 14736 14737 #ifdef __STDC__ 14738 # include <limits.h> 14739 #else 14740 # include <assert.h> 14741 #endif 14742 14743 #undef $ac_func 14744 14745 /* Override any GCC internal prototype to avoid an error. 14746 Use char because int might match the return type of a GCC 14747 builtin and then its argument prototype would still apply. */ 14748 #ifdef __cplusplus 14749 extern "C" 14750 #endif 14751 char $ac_func (); 14752 /* The GNU C library defines this for functions which it implements 14753 to always fail with ENOSYS. Some functions are actually named 14754 something starting with __ and the normal name is an alias. */ 14755 #if defined __stub_$ac_func || defined __stub___$ac_func 14756 choke me 14757 #endif 14758 14759 int 14760 main () 14761 { 14762 return $ac_func (); 14763 ; 14764 return 0; 14765 } 14766 _ACEOF 14767 rm -f conftest.$ac_objext conftest$ac_exeext 14768 if { (ac_try="$ac_link" 14769 case "(($ac_try" in 14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14771 *) ac_try_echo=$ac_try;; 14772 esac 14773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14774 $as_echo "$ac_try_echo") >&5 14775 (eval "$ac_link") 2>conftest.er1 14776 ac_status=$? 14777 grep -v '^ *+' conftest.er1 >conftest.err 14778 rm -f conftest.er1 14779 cat conftest.err >&5 14780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14781 (exit $ac_status); } && { 14782 test -z "$ac_cxx_werror_flag" || 14783 test ! -s conftest.err 14784 } && test -s conftest$ac_exeext && { 14785 test "$cross_compiling" = yes || 14786 $as_test_x conftest$ac_exeext 14787 }; then 14788 eval "$as_ac_var=yes" 14789 else 14790 $as_echo "$as_me: failed program was:" >&5 14791 sed 's/^/| /' conftest.$ac_ext >&5 14792 14793 eval "$as_ac_var=no" 14794 fi 14795 14796 rm -rf conftest.dSYM 14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14798 conftest$ac_exeext conftest.$ac_ext 14799 fi 14800 ac_res=`eval 'as_val=${'$as_ac_var'} 14801 $as_echo "$as_val"'` 14802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14803 $as_echo "$ac_res" >&6; } 14804 as_val=`eval 'as_val=${'$as_ac_var'} 14805 $as_echo "$as_val"'` 14806 if test "x$as_val" = x""yes; then 14807 cat >>confdefs.h <<_ACEOF 14808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14809 _ACEOF 14810 14811 fi 14812 done 14813 14814 { $as_echo "$as_me:$LINENO: checking for av_write_trailer" >&5 14815 $as_echo_n "checking for av_write_trailer... " >&6; } 14816 if test "${ac_cv_func_av_write_trailer+set}" = set; then 14817 $as_echo_n "(cached) " >&6 14818 else 14819 cat >conftest.$ac_ext <<_ACEOF 14820 /* confdefs.h. */ 14821 _ACEOF 14822 cat confdefs.h >>conftest.$ac_ext 14823 cat >>conftest.$ac_ext <<_ACEOF 14824 /* end confdefs.h. */ 14825 /* Define av_write_trailer to an innocuous variant, in case <limits.h> declares av_write_trailer. 14826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14827 #define av_write_trailer innocuous_av_write_trailer 14828 14829 /* System header to define __stub macros and hopefully few prototypes, 14830 which can conflict with char av_write_trailer (); below. 14831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14832 <limits.h> exists even on freestanding compilers. */ 14833 14834 #ifdef __STDC__ 14835 # include <limits.h> 14836 #else 14837 # include <assert.h> 14838 #endif 14839 14840 #undef av_write_trailer 14841 14842 /* Override any GCC internal prototype to avoid an error. 14843 Use char because int might match the return type of a GCC 14844 builtin and then its argument prototype would still apply. */ 14845 #ifdef __cplusplus 14846 extern "C" 14847 #endif 14848 char av_write_trailer (); 14849 /* The GNU C library defines this for functions which it implements 14850 to always fail with ENOSYS. Some functions are actually named 14851 something starting with __ and the normal name is an alias. */ 14852 #if defined __stub_av_write_trailer || defined __stub___av_write_trailer 14853 choke me 14854 #endif 14855 14856 int 14857 main () 14858 { 14859 return av_write_trailer (); 14860 ; 14861 return 0; 14862 } 14863 _ACEOF 14864 rm -f conftest.$ac_objext conftest$ac_exeext 14865 if { (ac_try="$ac_link" 14866 case "(($ac_try" in 14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14868 *) ac_try_echo=$ac_try;; 14869 esac 14870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14871 $as_echo "$ac_try_echo") >&5 14872 (eval "$ac_link") 2>conftest.er1 14873 ac_status=$? 14874 grep -v '^ *+' conftest.er1 >conftest.err 14875 rm -f conftest.er1 14876 cat conftest.err >&5 14877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14878 (exit $ac_status); } && { 14879 test -z "$ac_cxx_werror_flag" || 14880 test ! -s conftest.err 14881 } && test -s conftest$ac_exeext && { 14882 test "$cross_compiling" = yes || 14883 $as_test_x conftest$ac_exeext 14884 }; then 14885 ac_cv_func_av_write_trailer=yes 14886 else 14887 $as_echo "$as_me: failed program was:" >&5 14888 sed 's/^/| /' conftest.$ac_ext >&5 14889 14890 ac_cv_func_av_write_trailer=no 14891 fi 14892 14893 rm -rf conftest.dSYM 14894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14895 conftest$ac_exeext conftest.$ac_ext 14896 fi 14897 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_trailer" >&5 14898 $as_echo "$ac_cv_func_av_write_trailer" >&6; } 14899 if test "x$ac_cv_func_av_write_trailer" = x""yes; then 14900 : 14901 else 14902 { { $as_echo "$as_me:$LINENO: error: oops! no av_write_trailer?!?" >&5 14903 $as_echo "$as_me: error: oops! no av_write_trailer?!?" >&2;} 14904 { (exit 1); exit 1; }; } 14905 fi 14906 14907 { $as_echo "$as_me:$LINENO: checking for av_freep" >&5 14908 $as_echo_n "checking for av_freep... " >&6; } 14909 if test "${ac_cv_func_av_freep+set}" = set; then 14910 $as_echo_n "(cached) " >&6 14911 else 14912 cat >conftest.$ac_ext <<_ACEOF 14913 /* confdefs.h. */ 14914 _ACEOF 14915 cat confdefs.h >>conftest.$ac_ext 14916 cat >>conftest.$ac_ext <<_ACEOF 14917 /* end confdefs.h. */ 14918 /* Define av_freep to an innocuous variant, in case <limits.h> declares av_freep. 14919 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14920 #define av_freep innocuous_av_freep 14921 14922 /* System header to define __stub macros and hopefully few prototypes, 14923 which can conflict with char av_freep (); below. 14924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14925 <limits.h> exists even on freestanding compilers. */ 14926 14927 #ifdef __STDC__ 14928 # include <limits.h> 14929 #else 14930 # include <assert.h> 14931 #endif 14932 14933 #undef av_freep 14934 14935 /* Override any GCC internal prototype to avoid an error. 14936 Use char because int might match the return type of a GCC 14937 builtin and then its argument prototype would still apply. */ 14938 #ifdef __cplusplus 14939 extern "C" 14940 #endif 14941 char av_freep (); 14942 /* The GNU C library defines this for functions which it implements 14943 to always fail with ENOSYS. Some functions are actually named 14944 something starting with __ and the normal name is an alias. */ 14945 #if defined __stub_av_freep || defined __stub___av_freep 14946 choke me 14947 #endif 14948 14949 int 14950 main () 14951 { 14952 return av_freep (); 14953 ; 14954 return 0; 14955 } 14956 _ACEOF 14957 rm -f conftest.$ac_objext conftest$ac_exeext 14958 if { (ac_try="$ac_link" 14959 case "(($ac_try" in 14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14961 *) ac_try_echo=$ac_try;; 14962 esac 14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14964 $as_echo "$ac_try_echo") >&5 14965 (eval "$ac_link") 2>conftest.er1 14966 ac_status=$? 14967 grep -v '^ *+' conftest.er1 >conftest.err 14968 rm -f conftest.er1 14969 cat conftest.err >&5 14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14971 (exit $ac_status); } && { 14972 test -z "$ac_cxx_werror_flag" || 14973 test ! -s conftest.err 14974 } && test -s conftest$ac_exeext && { 14975 test "$cross_compiling" = yes || 14976 $as_test_x conftest$ac_exeext 14977 }; then 14978 ac_cv_func_av_freep=yes 14979 else 14980 $as_echo "$as_me: failed program was:" >&5 14981 sed 's/^/| /' conftest.$ac_ext >&5 14982 14983 ac_cv_func_av_freep=no 14984 fi 14985 14986 rm -rf conftest.dSYM 14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14988 conftest$ac_exeext conftest.$ac_ext 14989 fi 14990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_freep" >&5 14991 $as_echo "$ac_cv_func_av_freep" >&6; } 14992 if test "x$ac_cv_func_av_freep" = x""yes; then 14993 : 14994 else 14995 { { $as_echo "$as_me:$LINENO: error: oops! no av_freep ?!?" >&5 14996 $as_echo "$as_me: error: oops! no av_freep ?!?" >&2;} 14997 { (exit 1); exit 1; }; } 14998 fi 14999 15000 { $as_echo "$as_me:$LINENO: checking for av_free" >&5 15001 $as_echo_n "checking for av_free... " >&6; } 15002 if test "${ac_cv_func_av_free+set}" = set; then 15003 $as_echo_n "(cached) " >&6 15004 else 15005 cat >conftest.$ac_ext <<_ACEOF 15006 /* confdefs.h. */ 15007 _ACEOF 15008 cat confdefs.h >>conftest.$ac_ext 15009 cat >>conftest.$ac_ext <<_ACEOF 15010 /* end confdefs.h. */ 15011 /* Define av_free to an innocuous variant, in case <limits.h> declares av_free. 15012 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15013 #define av_free innocuous_av_free 15014 15015 /* System header to define __stub macros and hopefully few prototypes, 15016 which can conflict with char av_free (); below. 15017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15018 <limits.h> exists even on freestanding compilers. */ 15019 15020 #ifdef __STDC__ 15021 # include <limits.h> 15022 #else 15023 # include <assert.h> 15024 #endif 15025 15026 #undef av_free 15027 15028 /* Override any GCC internal prototype to avoid an error. 15029 Use char because int might match the return type of a GCC 15030 builtin and then its argument prototype would still apply. */ 15031 #ifdef __cplusplus 15032 extern "C" 15033 #endif 15034 char av_free (); 15035 /* The GNU C library defines this for functions which it implements 15036 to always fail with ENOSYS. Some functions are actually named 15037 something starting with __ and the normal name is an alias. */ 15038 #if defined __stub_av_free || defined __stub___av_free 15039 choke me 15040 #endif 15041 15042 int 15043 main () 15044 { 15045 return av_free (); 15046 ; 15047 return 0; 15048 } 15049 _ACEOF 15050 rm -f conftest.$ac_objext conftest$ac_exeext 15051 if { (ac_try="$ac_link" 15052 case "(($ac_try" in 15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15054 *) ac_try_echo=$ac_try;; 15055 esac 15056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15057 $as_echo "$ac_try_echo") >&5 15058 (eval "$ac_link") 2>conftest.er1 15059 ac_status=$? 15060 grep -v '^ *+' conftest.er1 >conftest.err 15061 rm -f conftest.er1 15062 cat conftest.err >&5 15063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15064 (exit $ac_status); } && { 15065 test -z "$ac_cxx_werror_flag" || 15066 test ! -s conftest.err 15067 } && test -s conftest$ac_exeext && { 15068 test "$cross_compiling" = yes || 15069 $as_test_x conftest$ac_exeext 15070 }; then 15071 ac_cv_func_av_free=yes 15072 else 15073 $as_echo "$as_me: failed program was:" >&5 15074 sed 's/^/| /' conftest.$ac_ext >&5 15075 15076 ac_cv_func_av_free=no 15077 fi 15078 15079 rm -rf conftest.dSYM 15080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15081 conftest$ac_exeext conftest.$ac_ext 15082 fi 15083 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_free" >&5 15084 $as_echo "$ac_cv_func_av_free" >&6; } 15085 if test "x$ac_cv_func_av_free" = x""yes; then 15086 : 15087 else 15088 { { $as_echo "$as_me:$LINENO: error: oops! no av_free ?!?" >&5 15089 $as_echo "$as_me: error: oops! no av_free ?!?" >&2;} 15090 { (exit 1); exit 1; }; } 15091 fi 15092 15093 { $as_echo "$as_me:$LINENO: checking for av_new_stream" >&5 15094 $as_echo_n "checking for av_new_stream... " >&6; } 15095 if test "${ac_cv_func_av_new_stream+set}" = set; then 15096 $as_echo_n "(cached) " >&6 15097 else 15098 cat >conftest.$ac_ext <<_ACEOF 15099 /* confdefs.h. */ 15100 _ACEOF 15101 cat confdefs.h >>conftest.$ac_ext 15102 cat >>conftest.$ac_ext <<_ACEOF 15103 /* end confdefs.h. */ 15104 /* Define av_new_stream to an innocuous variant, in case <limits.h> declares av_new_stream. 15105 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15106 #define av_new_stream innocuous_av_new_stream 15107 15108 /* System header to define __stub macros and hopefully few prototypes, 15109 which can conflict with char av_new_stream (); below. 15110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15111 <limits.h> exists even on freestanding compilers. */ 15112 15113 #ifdef __STDC__ 15114 # include <limits.h> 15115 #else 15116 # include <assert.h> 15117 #endif 15118 15119 #undef av_new_stream 15120 15121 /* Override any GCC internal prototype to avoid an error. 15122 Use char because int might match the return type of a GCC 15123 builtin and then its argument prototype would still apply. */ 15124 #ifdef __cplusplus 15125 extern "C" 15126 #endif 15127 char av_new_stream (); 15128 /* The GNU C library defines this for functions which it implements 15129 to always fail with ENOSYS. Some functions are actually named 15130 something starting with __ and the normal name is an alias. */ 15131 #if defined __stub_av_new_stream || defined __stub___av_new_stream 15132 choke me 15133 #endif 15134 15135 int 15136 main () 15137 { 15138 return av_new_stream (); 15139 ; 15140 return 0; 15141 } 15142 _ACEOF 15143 rm -f conftest.$ac_objext conftest$ac_exeext 15144 if { (ac_try="$ac_link" 15145 case "(($ac_try" in 15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15147 *) ac_try_echo=$ac_try;; 15148 esac 15149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15150 $as_echo "$ac_try_echo") >&5 15151 (eval "$ac_link") 2>conftest.er1 15152 ac_status=$? 15153 grep -v '^ *+' conftest.er1 >conftest.err 15154 rm -f conftest.er1 15155 cat conftest.err >&5 15156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15157 (exit $ac_status); } && { 15158 test -z "$ac_cxx_werror_flag" || 15159 test ! -s conftest.err 15160 } && test -s conftest$ac_exeext && { 15161 test "$cross_compiling" = yes || 15162 $as_test_x conftest$ac_exeext 15163 }; then 15164 ac_cv_func_av_new_stream=yes 15165 else 15166 $as_echo "$as_me: failed program was:" >&5 15167 sed 's/^/| /' conftest.$ac_ext >&5 15168 15169 ac_cv_func_av_new_stream=no 15170 fi 15171 15172 rm -rf conftest.dSYM 15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15174 conftest$ac_exeext conftest.$ac_ext 15175 fi 15176 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_new_stream" >&5 15177 $as_echo "$ac_cv_func_av_new_stream" >&6; } 15178 if test "x$ac_cv_func_av_new_stream" = x""yes; then 15179 : 15180 else 15181 { { $as_echo "$as_me:$LINENO: error: oops! av_new_stream ?!?" >&5 15182 $as_echo "$as_me: error: oops! av_new_stream ?!?" >&2;} 15183 { (exit 1); exit 1; }; } 15184 fi 15185 15186 { $as_echo "$as_me:$LINENO: checking for av_malloc" >&5 15187 $as_echo_n "checking for av_malloc... " >&6; } 15188 if test "${ac_cv_func_av_malloc+set}" = set; then 15189 $as_echo_n "(cached) " >&6 15190 else 15191 cat >conftest.$ac_ext <<_ACEOF 15192 /* confdefs.h. */ 15193 _ACEOF 15194 cat confdefs.h >>conftest.$ac_ext 15195 cat >>conftest.$ac_ext <<_ACEOF 15196 /* end confdefs.h. */ 15197 /* Define av_malloc to an innocuous variant, in case <limits.h> declares av_malloc. 15198 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15199 #define av_malloc innocuous_av_malloc 15200 15201 /* System header to define __stub macros and hopefully few prototypes, 15202 which can conflict with char av_malloc (); below. 15203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15204 <limits.h> exists even on freestanding compilers. */ 15205 15206 #ifdef __STDC__ 15207 # include <limits.h> 15208 #else 15209 # include <assert.h> 15210 #endif 15211 15212 #undef av_malloc 15213 15214 /* Override any GCC internal prototype to avoid an error. 15215 Use char because int might match the return type of a GCC 15216 builtin and then its argument prototype would still apply. */ 15217 #ifdef __cplusplus 15218 extern "C" 15219 #endif 15220 char av_malloc (); 15221 /* The GNU C library defines this for functions which it implements 15222 to always fail with ENOSYS. Some functions are actually named 15223 something starting with __ and the normal name is an alias. */ 15224 #if defined __stub_av_malloc || defined __stub___av_malloc 15225 choke me 15226 #endif 15227 15228 int 15229 main () 15230 { 15231 return av_malloc (); 15232 ; 15233 return 0; 15234 } 15235 _ACEOF 15236 rm -f conftest.$ac_objext conftest$ac_exeext 15237 if { (ac_try="$ac_link" 15238 case "(($ac_try" in 15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15240 *) ac_try_echo=$ac_try;; 15241 esac 15242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15243 $as_echo "$ac_try_echo") >&5 15244 (eval "$ac_link") 2>conftest.er1 15245 ac_status=$? 15246 grep -v '^ *+' conftest.er1 >conftest.err 15247 rm -f conftest.er1 15248 cat conftest.err >&5 15249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 (exit $ac_status); } && { 15251 test -z "$ac_cxx_werror_flag" || 15252 test ! -s conftest.err 15253 } && test -s conftest$ac_exeext && { 15254 test "$cross_compiling" = yes || 15255 $as_test_x conftest$ac_exeext 15256 }; then 15257 ac_cv_func_av_malloc=yes 15258 else 15259 $as_echo "$as_me: failed program was:" >&5 15260 sed 's/^/| /' conftest.$ac_ext >&5 15261 15262 ac_cv_func_av_malloc=no 15263 fi 15264 15265 rm -rf conftest.dSYM 15266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15267 conftest$ac_exeext conftest.$ac_ext 15268 fi 15269 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_malloc" >&5 15270 $as_echo "$ac_cv_func_av_malloc" >&6; } 15271 if test "x$ac_cv_func_av_malloc" = x""yes; then 15272 : 15273 else 15274 { { $as_echo "$as_me:$LINENO: error: oops! no av_malloc ?!?" >&5 15275 $as_echo "$as_me: error: oops! no av_malloc ?!?" >&2;} 15276 { (exit 1); exit 1; }; } 15277 fi 15278 15279 { $as_echo "$as_me:$LINENO: checking for av_init_packet" >&5 15280 $as_echo_n "checking for av_init_packet... " >&6; } 15281 if test "${ac_cv_func_av_init_packet+set}" = set; then 15282 $as_echo_n "(cached) " >&6 15283 else 15284 cat >conftest.$ac_ext <<_ACEOF 15285 /* confdefs.h. */ 15286 _ACEOF 15287 cat confdefs.h >>conftest.$ac_ext 15288 cat >>conftest.$ac_ext <<_ACEOF 15289 /* end confdefs.h. */ 15290 /* Define av_init_packet to an innocuous variant, in case <limits.h> declares av_init_packet. 15291 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15292 #define av_init_packet innocuous_av_init_packet 15293 15294 /* System header to define __stub macros and hopefully few prototypes, 15295 which can conflict with char av_init_packet (); below. 15296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15297 <limits.h> exists even on freestanding compilers. */ 15298 15299 #ifdef __STDC__ 15300 # include <limits.h> 15301 #else 15302 # include <assert.h> 15303 #endif 15304 15305 #undef av_init_packet 15306 15307 /* Override any GCC internal prototype to avoid an error. 15308 Use char because int might match the return type of a GCC 15309 builtin and then its argument prototype would still apply. */ 15310 #ifdef __cplusplus 15311 extern "C" 15312 #endif 15313 char av_init_packet (); 15314 /* The GNU C library defines this for functions which it implements 15315 to always fail with ENOSYS. Some functions are actually named 15316 something starting with __ and the normal name is an alias. */ 15317 #if defined __stub_av_init_packet || defined __stub___av_init_packet 15318 choke me 15319 #endif 15320 15321 int 15322 main () 15323 { 15324 return av_init_packet (); 15325 ; 15326 return 0; 15327 } 15328 _ACEOF 15329 rm -f conftest.$ac_objext conftest$ac_exeext 15330 if { (ac_try="$ac_link" 15331 case "(($ac_try" in 15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15333 *) ac_try_echo=$ac_try;; 15334 esac 15335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15336 $as_echo "$ac_try_echo") >&5 15337 (eval "$ac_link") 2>conftest.er1 15338 ac_status=$? 15339 grep -v '^ *+' conftest.er1 >conftest.err 15340 rm -f conftest.er1 15341 cat conftest.err >&5 15342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15343 (exit $ac_status); } && { 15344 test -z "$ac_cxx_werror_flag" || 15345 test ! -s conftest.err 15346 } && test -s conftest$ac_exeext && { 15347 test "$cross_compiling" = yes || 15348 $as_test_x conftest$ac_exeext 15349 }; then 15350 ac_cv_func_av_init_packet=yes 15351 else 15352 $as_echo "$as_me: failed program was:" >&5 15353 sed 's/^/| /' conftest.$ac_ext >&5 15354 15355 ac_cv_func_av_init_packet=no 15356 fi 15357 15358 rm -rf conftest.dSYM 15359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15360 conftest$ac_exeext conftest.$ac_ext 15361 fi 15362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_init_packet" >&5 15363 $as_echo "$ac_cv_func_av_init_packet" >&6; } 15364 if test "x$ac_cv_func_av_init_packet" = x""yes; then 15365 : 15366 else 15367 { { $as_echo "$as_me:$LINENO: error: oops! no av_init_packet ?!?" >&5 15368 $as_echo "$as_me: error: oops! no av_init_packet ?!?" >&2;} 15369 { (exit 1); exit 1; }; } 15370 fi 15371 15372 { $as_echo "$as_me:$LINENO: checking for av_rescale_q" >&5 15373 $as_echo_n "checking for av_rescale_q... " >&6; } 15374 if test "${ac_cv_func_av_rescale_q+set}" = set; then 15375 $as_echo_n "(cached) " >&6 15376 else 15377 cat >conftest.$ac_ext <<_ACEOF 15378 /* confdefs.h. */ 15379 _ACEOF 15380 cat confdefs.h >>conftest.$ac_ext 15381 cat >>conftest.$ac_ext <<_ACEOF 15382 /* end confdefs.h. */ 15383 /* Define av_rescale_q to an innocuous variant, in case <limits.h> declares av_rescale_q. 15384 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15385 #define av_rescale_q innocuous_av_rescale_q 15386 15387 /* System header to define __stub macros and hopefully few prototypes, 15388 which can conflict with char av_rescale_q (); below. 15389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15390 <limits.h> exists even on freestanding compilers. */ 15391 15392 #ifdef __STDC__ 15393 # include <limits.h> 15394 #else 15395 # include <assert.h> 15396 #endif 15397 15398 #undef av_rescale_q 15399 15400 /* Override any GCC internal prototype to avoid an error. 15401 Use char because int might match the return type of a GCC 15402 builtin and then its argument prototype would still apply. */ 15403 #ifdef __cplusplus 15404 extern "C" 15405 #endif 15406 char av_rescale_q (); 15407 /* The GNU C library defines this for functions which it implements 15408 to always fail with ENOSYS. Some functions are actually named 15409 something starting with __ and the normal name is an alias. */ 15410 #if defined __stub_av_rescale_q || defined __stub___av_rescale_q 15411 choke me 15412 #endif 15413 15414 int 15415 main () 15416 { 15417 return av_rescale_q (); 15418 ; 15419 return 0; 15420 } 15421 _ACEOF 15422 rm -f conftest.$ac_objext conftest$ac_exeext 15423 if { (ac_try="$ac_link" 15424 case "(($ac_try" in 15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15426 *) ac_try_echo=$ac_try;; 15427 esac 15428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15429 $as_echo "$ac_try_echo") >&5 15430 (eval "$ac_link") 2>conftest.er1 15431 ac_status=$? 15432 grep -v '^ *+' conftest.er1 >conftest.err 15433 rm -f conftest.er1 15434 cat conftest.err >&5 15435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15436 (exit $ac_status); } && { 15437 test -z "$ac_cxx_werror_flag" || 15438 test ! -s conftest.err 15439 } && test -s conftest$ac_exeext && { 15440 test "$cross_compiling" = yes || 15441 $as_test_x conftest$ac_exeext 15442 }; then 15443 ac_cv_func_av_rescale_q=yes 15444 else 15445 $as_echo "$as_me: failed program was:" >&5 15446 sed 's/^/| /' conftest.$ac_ext >&5 15447 15448 ac_cv_func_av_rescale_q=no 15449 fi 15450 15451 rm -rf conftest.dSYM 15452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15453 conftest$ac_exeext conftest.$ac_ext 15454 fi 15455 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_rescale_q" >&5 15456 $as_echo "$ac_cv_func_av_rescale_q" >&6; } 15457 if test "x$ac_cv_func_av_rescale_q" = x""yes; then 15458 : 15459 else 15460 { { $as_echo "$as_me:$LINENO: error: oops! no av_rescale_q ?!?" >&5 15461 $as_echo "$as_me: error: oops! no av_rescale_q ?!?" >&2;} 15462 { (exit 1); exit 1; }; } 15463 fi 15464 15465 { $as_echo "$as_me:$LINENO: checking for av_write_frame" >&5 15466 $as_echo_n "checking for av_write_frame... " >&6; } 15467 if test "${ac_cv_func_av_write_frame+set}" = set; then 15468 $as_echo_n "(cached) " >&6 15469 else 15470 cat >conftest.$ac_ext <<_ACEOF 15471 /* confdefs.h. */ 15472 _ACEOF 15473 cat confdefs.h >>conftest.$ac_ext 15474 cat >>conftest.$ac_ext <<_ACEOF 15475 /* end confdefs.h. */ 15476 /* Define av_write_frame to an innocuous variant, in case <limits.h> declares av_write_frame. 15477 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15478 #define av_write_frame innocuous_av_write_frame 15479 15480 /* System header to define __stub macros and hopefully few prototypes, 15481 which can conflict with char av_write_frame (); below. 15482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15483 <limits.h> exists even on freestanding compilers. */ 15484 15485 #ifdef __STDC__ 15486 # include <limits.h> 15487 #else 15488 # include <assert.h> 15489 #endif 15490 15491 #undef av_write_frame 15492 15493 /* Override any GCC internal prototype to avoid an error. 15494 Use char because int might match the return type of a GCC 15495 builtin and then its argument prototype would still apply. */ 15496 #ifdef __cplusplus 15497 extern "C" 15498 #endif 15499 char av_write_frame (); 15500 /* The GNU C library defines this for functions which it implements 15501 to always fail with ENOSYS. Some functions are actually named 15502 something starting with __ and the normal name is an alias. */ 15503 #if defined __stub_av_write_frame || defined __stub___av_write_frame 15504 choke me 15505 #endif 15506 15507 int 15508 main () 15509 { 15510 return av_write_frame (); 15511 ; 15512 return 0; 15513 } 15514 _ACEOF 15515 rm -f conftest.$ac_objext conftest$ac_exeext 15516 if { (ac_try="$ac_link" 15517 case "(($ac_try" in 15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15519 *) ac_try_echo=$ac_try;; 15520 esac 15521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15522 $as_echo "$ac_try_echo") >&5 15523 (eval "$ac_link") 2>conftest.er1 15524 ac_status=$? 15525 grep -v '^ *+' conftest.er1 >conftest.err 15526 rm -f conftest.er1 15527 cat conftest.err >&5 15528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15529 (exit $ac_status); } && { 15530 test -z "$ac_cxx_werror_flag" || 15531 test ! -s conftest.err 15532 } && test -s conftest$ac_exeext && { 15533 test "$cross_compiling" = yes || 15534 $as_test_x conftest$ac_exeext 15535 }; then 15536 ac_cv_func_av_write_frame=yes 15537 else 15538 $as_echo "$as_me: failed program was:" >&5 15539 sed 's/^/| /' conftest.$ac_ext >&5 15540 15541 ac_cv_func_av_write_frame=no 15542 fi 15543 15544 rm -rf conftest.dSYM 15545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15546 conftest$ac_exeext conftest.$ac_ext 15547 fi 15548 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_frame" >&5 15549 $as_echo "$ac_cv_func_av_write_frame" >&6; } 15550 if test "x$ac_cv_func_av_write_frame" = x""yes; then 15551 : 15552 else 15553 { { $as_echo "$as_me:$LINENO: error: oops! av_write_frame ?!?" >&5 15554 $as_echo "$as_me: error: oops! av_write_frame ?!?" >&2;} 15555 { (exit 1); exit 1; }; } 15556 fi 15557 15558 15559 for ac_func in img_convert 15560 do 15561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15562 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15563 $as_echo_n "checking for $ac_func... " >&6; } 15564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15565 $as_echo_n "(cached) " >&6 15566 else 15567 cat >conftest.$ac_ext <<_ACEOF 15568 /* confdefs.h. */ 15569 _ACEOF 15570 cat confdefs.h >>conftest.$ac_ext 15571 cat >>conftest.$ac_ext <<_ACEOF 15572 /* end confdefs.h. */ 15573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15574 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15575 #define $ac_func innocuous_$ac_func 15576 15577 /* System header to define __stub macros and hopefully few prototypes, 15578 which can conflict with char $ac_func (); below. 15579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15580 <limits.h> exists even on freestanding compilers. */ 15581 15582 #ifdef __STDC__ 15583 # include <limits.h> 15584 #else 15585 # include <assert.h> 15586 #endif 15587 15588 #undef $ac_func 15589 15590 /* Override any GCC internal prototype to avoid an error. 15591 Use char because int might match the return type of a GCC 15592 builtin and then its argument prototype would still apply. */ 15593 #ifdef __cplusplus 15594 extern "C" 15595 #endif 15596 char $ac_func (); 15597 /* The GNU C library defines this for functions which it implements 15598 to always fail with ENOSYS. Some functions are actually named 15599 something starting with __ and the normal name is an alias. */ 15600 #if defined __stub_$ac_func || defined __stub___$ac_func 15601 choke me 15602 #endif 15603 15604 int 15605 main () 15606 { 15607 return $ac_func (); 15608 ; 15609 return 0; 15610 } 15611 _ACEOF 15612 rm -f conftest.$ac_objext conftest$ac_exeext 15613 if { (ac_try="$ac_link" 15614 case "(($ac_try" in 15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15616 *) ac_try_echo=$ac_try;; 15617 esac 15618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15619 $as_echo "$ac_try_echo") >&5 15620 (eval "$ac_link") 2>conftest.er1 15621 ac_status=$? 15622 grep -v '^ *+' conftest.er1 >conftest.err 15623 rm -f conftest.er1 15624 cat conftest.err >&5 15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15626 (exit $ac_status); } && { 15627 test -z "$ac_cxx_werror_flag" || 15628 test ! -s conftest.err 15629 } && test -s conftest$ac_exeext && { 15630 test "$cross_compiling" = yes || 15631 $as_test_x conftest$ac_exeext 15632 }; then 15633 eval "$as_ac_var=yes" 15634 else 15635 $as_echo "$as_me: failed program was:" >&5 15636 sed 's/^/| /' conftest.$ac_ext >&5 15637 15638 eval "$as_ac_var=no" 15639 fi 15640 15641 rm -rf conftest.dSYM 15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15643 conftest$ac_exeext conftest.$ac_ext 15644 fi 15645 ac_res=`eval 'as_val=${'$as_ac_var'} 15646 $as_echo "$as_val"'` 15647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15648 $as_echo "$ac_res" >&6; } 15649 as_val=`eval 'as_val=${'$as_ac_var'} 15650 $as_echo "$as_val"'` 15651 if test "x$as_val" = x""yes; then 15652 cat >>confdefs.h <<_ACEOF 15653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15654 _ACEOF 15655 15656 fi 15657 done 15658 15659 15660 for ac_func in sws_scale 15661 do 15662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15664 $as_echo_n "checking for $ac_func... " >&6; } 15665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15666 $as_echo_n "(cached) " >&6 15667 else 15668 cat >conftest.$ac_ext <<_ACEOF 15669 /* confdefs.h. */ 15670 _ACEOF 15671 cat confdefs.h >>conftest.$ac_ext 15672 cat >>conftest.$ac_ext <<_ACEOF 15673 /* end confdefs.h. */ 15674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15675 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15676 #define $ac_func innocuous_$ac_func 15677 15678 /* System header to define __stub macros and hopefully few prototypes, 15679 which can conflict with char $ac_func (); below. 15680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15681 <limits.h> exists even on freestanding compilers. */ 15682 15683 #ifdef __STDC__ 15684 # include <limits.h> 15685 #else 15686 # include <assert.h> 15687 #endif 15688 15689 #undef $ac_func 15690 15691 /* Override any GCC internal prototype to avoid an error. 15692 Use char because int might match the return type of a GCC 15693 builtin and then its argument prototype would still apply. */ 15694 #ifdef __cplusplus 15695 extern "C" 15696 #endif 15697 char $ac_func (); 15698 /* The GNU C library defines this for functions which it implements 15699 to always fail with ENOSYS. Some functions are actually named 15700 something starting with __ and the normal name is an alias. */ 15701 #if defined __stub_$ac_func || defined __stub___$ac_func 15702 choke me 15703 #endif 15704 15705 int 15706 main () 15707 { 15708 return $ac_func (); 15709 ; 15710 return 0; 15711 } 15712 _ACEOF 15713 rm -f conftest.$ac_objext conftest$ac_exeext 15714 if { (ac_try="$ac_link" 15715 case "(($ac_try" in 15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15717 *) ac_try_echo=$ac_try;; 15718 esac 15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15720 $as_echo "$ac_try_echo") >&5 15721 (eval "$ac_link") 2>conftest.er1 15722 ac_status=$? 15723 grep -v '^ *+' conftest.er1 >conftest.err 15724 rm -f conftest.er1 15725 cat conftest.err >&5 15726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15727 (exit $ac_status); } && { 15728 test -z "$ac_cxx_werror_flag" || 15729 test ! -s conftest.err 15730 } && test -s conftest$ac_exeext && { 15731 test "$cross_compiling" = yes || 15732 $as_test_x conftest$ac_exeext 15733 }; then 15734 eval "$as_ac_var=yes" 15735 else 15736 $as_echo "$as_me: failed program was:" >&5 15737 sed 's/^/| /' conftest.$ac_ext >&5 15738 15739 eval "$as_ac_var=no" 15740 fi 15741 15742 rm -rf conftest.dSYM 15743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15744 conftest$ac_exeext conftest.$ac_ext 15745 fi 15746 ac_res=`eval 'as_val=${'$as_ac_var'} 15747 $as_echo "$as_val"'` 15748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15749 $as_echo "$ac_res" >&6; } 15750 as_val=`eval 'as_val=${'$as_ac_var'} 15751 $as_echo "$as_val"'` 15752 if test "x$as_val" = x""yes; then 15753 cat >>confdefs.h <<_ACEOF 15754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15755 _ACEOF 15756 15757 fi 15758 done 15759 15760 cat >conftest.$ac_ext <<_ACEOF 15761 /* confdefs.h. */ 15762 _ACEOF 15763 cat confdefs.h >>conftest.$ac_ext 15764 cat >>conftest.$ac_ext <<_ACEOF 15765 /* end confdefs.h. */ 15766 15767 #define __STDC_CONSTANT_MACROS 1 15768 #include <stdlib.h> 15769 #ifdef HAVE_FFMPEG_AVCODEC_H 15770 # include <ffmpeg/avcodec.h> 15771 #endif 15772 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 15773 # include <libavcodec/avcodec.h> 15774 #endif 15775 int x = AVMEDIA_TYPE_VIDEO; 15776 15777 int 15778 main () 15779 { 15780 15781 ; 15782 return 0; 15783 } 15784 _ACEOF 15785 rm -f conftest.$ac_objext 15786 if { (ac_try="$ac_compile" 15787 case "(($ac_try" in 15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15789 *) ac_try_echo=$ac_try;; 15790 esac 15791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15792 $as_echo "$ac_try_echo") >&5 15793 (eval "$ac_compile") 2>conftest.er1 15794 ac_status=$? 15795 grep -v '^ *+' conftest.er1 >conftest.err 15796 rm -f conftest.er1 15797 cat conftest.err >&5 15798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15799 (exit $ac_status); } && { 15800 test -z "$ac_cxx_werror_flag" || 15801 test ! -s conftest.err 15802 } && test -s conftest.$ac_objext; then 15803 ac_avmedia_type_video="yes" 15804 else 15805 $as_echo "$as_me: failed program was:" >&5 15806 sed 's/^/| /' conftest.$ac_ext >&5 15807 15808 ac_avmedia_type_video="no" 15809 fi 15810 15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15812 if test "$ac_avmedia_type_video" == "yes" ; then 15813 15814 cat >>confdefs.h <<\_ACEOF 15815 #define HAVE_AVMEDIA_TYPE_VIDEO 1 15816 _ACEOF 15817 15818 fi 15819 15820 15821 { $as_echo "$as_me:$LINENO: checking for avcodec_alloc_frame in -lavcodec" >&5 15822 $as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; } 15823 if test "${ac_cv_lib_avcodec_avcodec_alloc_frame+set}" = set; then 15824 $as_echo_n "(cached) " >&6 15825 else 15826 ac_check_lib_save_LIBS=$LIBS 15827 LIBS="-lavcodec $LIBS" 15828 cat >conftest.$ac_ext <<_ACEOF 15829 /* confdefs.h. */ 15830 _ACEOF 15831 cat confdefs.h >>conftest.$ac_ext 15832 cat >>conftest.$ac_ext <<_ACEOF 15833 /* end confdefs.h. */ 15834 15835 /* Override any GCC internal prototype to avoid an error. 15836 Use char because int might match the return type of a GCC 15837 builtin and then its argument prototype would still apply. */ 15838 #ifdef __cplusplus 15839 extern "C" 15840 #endif 15841 char avcodec_alloc_frame (); 15842 int 15843 main () 15844 { 15845 return avcodec_alloc_frame (); 15846 ; 15847 return 0; 15848 } 15849 _ACEOF 15850 rm -f conftest.$ac_objext conftest$ac_exeext 15851 if { (ac_try="$ac_link" 15852 case "(($ac_try" in 15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15854 *) ac_try_echo=$ac_try;; 15855 esac 15856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15857 $as_echo "$ac_try_echo") >&5 15858 (eval "$ac_link") 2>conftest.er1 15859 ac_status=$? 15860 grep -v '^ *+' conftest.er1 >conftest.err 15861 rm -f conftest.er1 15862 cat conftest.err >&5 15863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15864 (exit $ac_status); } && { 15865 test -z "$ac_cxx_werror_flag" || 15866 test ! -s conftest.err 15867 } && test -s conftest$ac_exeext && { 15868 test "$cross_compiling" = yes || 15869 $as_test_x conftest$ac_exeext 15870 }; then 15871 ac_cv_lib_avcodec_avcodec_alloc_frame=yes 15872 else 15873 $as_echo "$as_me: failed program was:" >&5 15874 sed 's/^/| /' conftest.$ac_ext >&5 15875 15876 ac_cv_lib_avcodec_avcodec_alloc_frame=no 15877 fi 15878 15879 rm -rf conftest.dSYM 15880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15881 conftest$ac_exeext conftest.$ac_ext 15882 LIBS=$ac_check_lib_save_LIBS 15883 fi 15884 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5 15885 $as_echo "$ac_cv_lib_avcodec_avcodec_alloc_frame" >&6; } 15886 if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = x""yes; then 15887 cat >>confdefs.h <<_ACEOF 15888 #define HAVE_LIBAVCODEC 1 15889 _ACEOF 15890 15891 LIBS="-lavcodec $LIBS" 15892 15893 fi 15894 15895 # Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found 15896 15897 { $as_echo "$as_me:$LINENO: checking for avformat_alloc_context in -lavformat" >&5 15898 $as_echo_n "checking for avformat_alloc_context in -lavformat... " >&6; } 15899 if test "${ac_cv_lib_avformat_avformat_alloc_context+set}" = set; then 15900 $as_echo_n "(cached) " >&6 15901 else 15902 ac_check_lib_save_LIBS=$LIBS 15903 LIBS="-lavformat $LIBS" 15904 cat >conftest.$ac_ext <<_ACEOF 15905 /* confdefs.h. */ 15906 _ACEOF 15907 cat confdefs.h >>conftest.$ac_ext 15908 cat >>conftest.$ac_ext <<_ACEOF 15909 /* end confdefs.h. */ 15910 15911 /* Override any GCC internal prototype to avoid an error. 15912 Use char because int might match the return type of a GCC 15913 builtin and then its argument prototype would still apply. */ 15914 #ifdef __cplusplus 15915 extern "C" 15916 #endif 15917 char avformat_alloc_context (); 15918 int 15919 main () 15920 { 15921 return avformat_alloc_context (); 15922 ; 15923 return 0; 15924 } 15925 _ACEOF 15926 rm -f conftest.$ac_objext conftest$ac_exeext 15927 if { (ac_try="$ac_link" 15928 case "(($ac_try" in 15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15930 *) ac_try_echo=$ac_try;; 15931 esac 15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15933 $as_echo "$ac_try_echo") >&5 15934 (eval "$ac_link") 2>conftest.er1 15935 ac_status=$? 15936 grep -v '^ *+' conftest.er1 >conftest.err 15937 rm -f conftest.er1 15938 cat conftest.err >&5 15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15940 (exit $ac_status); } && { 15941 test -z "$ac_cxx_werror_flag" || 15942 test ! -s conftest.err 15943 } && test -s conftest$ac_exeext && { 15944 test "$cross_compiling" = yes || 15945 $as_test_x conftest$ac_exeext 15946 }; then 15947 ac_cv_lib_avformat_avformat_alloc_context=yes 15948 else 15949 $as_echo "$as_me: failed program was:" >&5 15950 sed 's/^/| /' conftest.$ac_ext >&5 15951 15952 ac_cv_lib_avformat_avformat_alloc_context=no 15953 fi 15954 15955 rm -rf conftest.dSYM 15956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15957 conftest$ac_exeext conftest.$ac_ext 15958 LIBS=$ac_check_lib_save_LIBS 15959 fi 15960 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5 15961 $as_echo "$ac_cv_lib_avformat_avformat_alloc_context" >&6; } 15962 if test "x$ac_cv_lib_avformat_avformat_alloc_context" = x""yes; then 15963 cat >>confdefs.h <<_ACEOF 15964 #define HAVE_LIBAVFORMAT 1 15965 _ACEOF 15966 15967 LIBS="-lavformat $LIBS" 15968 15969 else 15970 15971 { $as_echo "$as_me:$LINENO: checking for av_alloc_format_context in -lavformat" >&5 15972 $as_echo_n "checking for av_alloc_format_context in -lavformat... " >&6; } 15973 if test "${ac_cv_lib_avformat_av_alloc_format_context+set}" = set; then 15974 $as_echo_n "(cached) " >&6 15975 else 15976 ac_check_lib_save_LIBS=$LIBS 15977 LIBS="-lavformat $LIBS" 15978 cat >conftest.$ac_ext <<_ACEOF 15979 /* confdefs.h. */ 15980 _ACEOF 15981 cat confdefs.h >>conftest.$ac_ext 15982 cat >>conftest.$ac_ext <<_ACEOF 15983 /* end confdefs.h. */ 15984 15985 /* Override any GCC internal prototype to avoid an error. 15986 Use char because int might match the return type of a GCC 15987 builtin and then its argument prototype would still apply. */ 15988 #ifdef __cplusplus 15989 extern "C" 15990 #endif 15991 char av_alloc_format_context (); 15992 int 15993 main () 15994 { 15995 return av_alloc_format_context (); 15996 ; 15997 return 0; 15998 } 15999 _ACEOF 16000 rm -f conftest.$ac_objext conftest$ac_exeext 16001 if { (ac_try="$ac_link" 16002 case "(($ac_try" in 16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16004 *) ac_try_echo=$ac_try;; 16005 esac 16006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16007 $as_echo "$ac_try_echo") >&5 16008 (eval "$ac_link") 2>conftest.er1 16009 ac_status=$? 16010 grep -v '^ *+' conftest.er1 >conftest.err 16011 rm -f conftest.er1 16012 cat conftest.err >&5 16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16014 (exit $ac_status); } && { 16015 test -z "$ac_cxx_werror_flag" || 16016 test ! -s conftest.err 16017 } && test -s conftest$ac_exeext && { 16018 test "$cross_compiling" = yes || 16019 $as_test_x conftest$ac_exeext 16020 }; then 16021 ac_cv_lib_avformat_av_alloc_format_context=yes 16022 else 16023 $as_echo "$as_me: failed program was:" >&5 16024 sed 's/^/| /' conftest.$ac_ext >&5 16025 16026 ac_cv_lib_avformat_av_alloc_format_context=no 16027 fi 16028 16029 rm -rf conftest.dSYM 16030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16031 conftest$ac_exeext conftest.$ac_ext 16032 LIBS=$ac_check_lib_save_LIBS 16033 fi 16034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5 16035 $as_echo "$ac_cv_lib_avformat_av_alloc_format_context" >&6; } 16036 if test "x$ac_cv_lib_avformat_av_alloc_format_context" = x""yes; then 16037 cat >>confdefs.h <<_ACEOF 16038 #define HAVE_LIBAVFORMAT 1 16039 _ACEOF 16040 16041 LIBS="-lavformat $LIBS" 16042 16043 else 16044 { $as_echo "$as_me:$LINENO: WARNING: libavformat not usable" >&5 16045 $as_echo "$as_me: WARNING: libavformat not usable" >&2;} 16046 fi 16047 16048 fi 16049 16050 16051 16052 { $as_echo "$as_me:$LINENO: checking for nVidia Cg installation" >&5 16053 $as_echo_n "checking for nVidia Cg installation... " >&6; } 16054 CG_DIR="" 16055 for dir in \ 16056 /opt/nvidia-cg-toolkit \ 16057 /usr/cg \ 16058 /usr 16059 do 16060 if test -r "$dir/include" ; then 16061 CG_DIR=$dir 16062 break 16063 fi 16064 done 16065 { $as_echo "$as_me:$LINENO: result: ${CG_DIR}" >&5 16066 $as_echo "${CG_DIR}" >&6; } 16067 16068 CG_INC_SPEC="-I${CG_DIR}/include" 16069 CG_LIB_DIR="${CG_DIR}/lib" 16070 16071 save_CPPFLAGS=$CPPFLAGS 16072 CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS" 16073 16074 for ac_header in Cg/cgGL.h 12734 16075 do 12735 16076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 12877 16218 _ACEOF 12878 16219 12879 fi12880 12881 done12882 12883 12884 { $as_echo "$as_me:$LINENO: checking for cvLoadImage in -lhighgui" >&512885 $as_echo_n "checking for cvLoadImage in -lhighgui... " >&6; }12886 if test "${ac_cv_lib_highgui_cvLoadImage+set}" = set; then12887 $as_echo_n "(cached) " >&612888 else12889 ac_check_lib_save_LIBS=$LIBS12890 LIBS="-lhighgui $LIBS"12891 cat >conftest.$ac_ext <<_ACEOF12892 /* confdefs.h. */12893 _ACEOF12894 cat confdefs.h >>conftest.$ac_ext12895 cat >>conftest.$ac_ext <<_ACEOF12896 /* end confdefs.h. */12897 12898 /* Override any GCC internal prototype to avoid an error.12899 Use char because int might match the return type of a GCC12900 builtin and then its argument prototype would still apply. */12901 #ifdef __cplusplus12902 extern "C"12903 #endif12904 char cvLoadImage ();12905 int12906 main ()12907 {12908 return cvLoadImage ();12909 ;12910 return 0;12911 }12912 _ACEOF12913 rm -f conftest.$ac_objext conftest$ac_exeext12914 if { (ac_try="$ac_link"12915 case "(($ac_try" in12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;12917 *) ac_try_echo=$ac_try;;12918 esac12919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""12920 $as_echo "$ac_try_echo") >&512921 (eval "$ac_link") 2>conftest.er112922 ac_status=$?12923 grep -v '^ *+' conftest.er1 >conftest.err12924 rm -f conftest.er112925 cat conftest.err >&512926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&512927 (exit $ac_status); } && {12928 test -z "$ac_cxx_werror_flag" ||12929 test ! -s conftest.err12930 } && test -s conftest$ac_exeext && {12931 test "$cross_compiling" = yes ||12932 $as_test_x conftest$ac_exeext12933 }; then12934 ac_cv_lib_highgui_cvLoadImage=yes12935 else12936 $as_echo "$as_me: failed program was:" >&512937 sed 's/^/| /' conftest.$ac_ext >&512938 12939 ac_cv_lib_highgui_cvLoadImage=no12940 fi12941 12942 rm -rf conftest.dSYM12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \12944 conftest$ac_exeext conftest.$ac_ext12945 LIBS=$ac_check_lib_save_LIBS12946 fi12947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_highgui_cvLoadImage" >&512948 $as_echo "$ac_cv_lib_highgui_cvLoadImage" >&6; }12949 if test "x$ac_cv_lib_highgui_cvLoadImage" = x""yes; then12950 cat >>confdefs.h <<_ACEOF12951 #define HAVE_LIBHIGHGUI 112952 _ACEOF12953 12954 LIBS="-lhighgui $LIBS"12955 12956 fi12957 12958 12959 save_CPPFLAGS=$CPPFLAGS12960 # Test for redhat-specific location of ffmpeg headers.12961 if test -d "/usr/include/ffmpeg" ; then12962 CPPFLAGS="$CPPFLAGS -I/usr/include/ffmpeg"12963 FF_INC_SPEC="-I/usr/include/ffmpeg"12964 fi12965 12966 12967 12968 12969 12970 12971 12972 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h12973 do12974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`12975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&512976 $as_echo_n "checking for $ac_header... " >&6; }12977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then12978 $as_echo_n "(cached) " >&612979 else12980 cat >conftest.$ac_ext <<_ACEOF12981 /* confdefs.h. */12982 _ACEOF12983 cat confdefs.h >>conftest.$ac_ext12984 cat >>conftest.$ac_ext <<_ACEOF12985 /* end confdefs.h. */12986 12987 #define __STDC_CONSTANT_MACROS 112988 12989 12990 #include <$ac_header>12991 _ACEOF12992 rm -f conftest.$ac_objext12993 if { (ac_try="$ac_compile"12994 case "(($ac_try" in12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;12996 *) ac_try_echo=$ac_try;;12997 esac12998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""12999 $as_echo "$ac_try_echo") >&513000 (eval "$ac_compile") 2>conftest.er113001 ac_status=$?13002 grep -v '^ *+' conftest.er1 >conftest.err13003 rm -f conftest.er113004 cat conftest.err >&513005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513006 (exit $ac_status); } && {13007 test -z "$ac_cxx_werror_flag" ||13008 test ! -s conftest.err13009 } && test -s conftest.$ac_objext; then13010 eval "$as_ac_Header=yes"13011 else13012 $as_echo "$as_me: failed program was:" >&513013 sed 's/^/| /' conftest.$ac_ext >&513014 13015 eval "$as_ac_Header=no"13016 fi13017 13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext13019 fi13020 ac_res=`eval 'as_val=${'$as_ac_Header'}13021 $as_echo "$as_val"'`13022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&513023 $as_echo "$ac_res" >&6; }13024 as_val=`eval 'as_val=${'$as_ac_Header'}13025 $as_echo "$as_val"'`13026 if test "x$as_val" = x""yes; then13027 cat >>confdefs.h <<_ACEOF13028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 113029 _ACEOF13030 13031 fi13032 13033 done13034 13035 CPPFLAGS=$save_CPPFLAGS13036 13037 13038 { $as_echo "$as_me:$LINENO: checking for main in -lavcodec" >&513039 $as_echo_n "checking for main in -lavcodec... " >&6; }13040 if test "${ac_cv_lib_avcodec_main+set}" = set; then13041 $as_echo_n "(cached) " >&613042 else13043 ac_check_lib_save_LIBS=$LIBS13044 LIBS="-lavcodec $LIBS"13045 cat >conftest.$ac_ext <<_ACEOF13046 /* confdefs.h. */13047 _ACEOF13048 cat confdefs.h >>conftest.$ac_ext13049 cat >>conftest.$ac_ext <<_ACEOF13050 /* end confdefs.h. */13051 13052 13053 int13054 main ()13055 {13056 return main ();13057 ;13058 return 0;13059 }13060 _ACEOF13061 rm -f conftest.$ac_objext conftest$ac_exeext13062 if { (ac_try="$ac_link"13063 case "(($ac_try" in13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13065 *) ac_try_echo=$ac_try;;13066 esac13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13068 $as_echo "$ac_try_echo") >&513069 (eval "$ac_link") 2>conftest.er113070 ac_status=$?13071 grep -v '^ *+' conftest.er1 >conftest.err13072 rm -f conftest.er113073 cat conftest.err >&513074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513075 (exit $ac_status); } && {13076 test -z "$ac_cxx_werror_flag" ||13077 test ! -s conftest.err13078 } && test -s conftest$ac_exeext && {13079 test "$cross_compiling" = yes ||13080 $as_test_x conftest$ac_exeext13081 }; then13082 ac_cv_lib_avcodec_main=yes13083 else13084 $as_echo "$as_me: failed program was:" >&513085 sed 's/^/| /' conftest.$ac_ext >&513086 13087 ac_cv_lib_avcodec_main=no13088 fi13089 13090 rm -rf conftest.dSYM13091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13092 conftest$ac_exeext conftest.$ac_ext13093 LIBS=$ac_check_lib_save_LIBS13094 fi13095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&513096 $as_echo "$ac_cv_lib_avcodec_main" >&6; }13097 if test "x$ac_cv_lib_avcodec_main" = x""yes; then13098 cat >>confdefs.h <<_ACEOF13099 #define HAVE_LIBAVCODEC 113100 _ACEOF13101 13102 LIBS="-lavcodec $LIBS"13103 13104 else13105 { { $as_echo "$as_me:$LINENO: error: requires libavcodec" >&513106 $as_echo "$as_me: error: requires libavcodec" >&2;}13107 { (exit 1); exit 1; }; }13108 fi13109 13110 13111 { $as_echo "$as_me:$LINENO: checking for main in -lavutil" >&513112 $as_echo_n "checking for main in -lavutil... " >&6; }13113 if test "${ac_cv_lib_avutil_main+set}" = set; then13114 $as_echo_n "(cached) " >&613115 else13116 ac_check_lib_save_LIBS=$LIBS13117 LIBS="-lavutil $LIBS"13118 cat >conftest.$ac_ext <<_ACEOF13119 /* confdefs.h. */13120 _ACEOF13121 cat confdefs.h >>conftest.$ac_ext13122 cat >>conftest.$ac_ext <<_ACEOF13123 /* end confdefs.h. */13124 13125 13126 int13127 main ()13128 {13129 return main ();13130 ;13131 return 0;13132 }13133 _ACEOF13134 rm -f conftest.$ac_objext conftest$ac_exeext13135 if { (ac_try="$ac_link"13136 case "(($ac_try" in13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13138 *) ac_try_echo=$ac_try;;13139 esac13140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13141 $as_echo "$ac_try_echo") >&513142 (eval "$ac_link") 2>conftest.er113143 ac_status=$?13144 grep -v '^ *+' conftest.er1 >conftest.err13145 rm -f conftest.er113146 cat conftest.err >&513147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513148 (exit $ac_status); } && {13149 test -z "$ac_cxx_werror_flag" ||13150 test ! -s conftest.err13151 } && test -s conftest$ac_exeext && {13152 test "$cross_compiling" = yes ||13153 $as_test_x conftest$ac_exeext13154 }; then13155 ac_cv_lib_avutil_main=yes13156 else13157 $as_echo "$as_me: failed program was:" >&513158 sed 's/^/| /' conftest.$ac_ext >&513159 13160 ac_cv_lib_avutil_main=no13161 fi13162 13163 rm -rf conftest.dSYM13164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13165 conftest$ac_exeext conftest.$ac_ext13166 LIBS=$ac_check_lib_save_LIBS13167 fi13168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&513169 $as_echo "$ac_cv_lib_avutil_main" >&6; }13170 if test "x$ac_cv_lib_avutil_main" = x""yes; then13171 cat >>confdefs.h <<_ACEOF13172 #define HAVE_LIBAVUTIL 113173 _ACEOF13174 13175 LIBS="-lavutil $LIBS"13176 13177 else13178 { { $as_echo "$as_me:$LINENO: error: requires libavutil" >&513179 $as_echo "$as_me: error: requires libavutil" >&2;}13180 { (exit 1); exit 1; }; }13181 fi13182 13183 13184 { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&513185 $as_echo_n "checking for main in -lavformat... " >&6; }13186 if test "${ac_cv_lib_avformat_main+set}" = set; then13187 $as_echo_n "(cached) " >&613188 else13189 ac_check_lib_save_LIBS=$LIBS13190 LIBS="-lavformat $LIBS"13191 cat >conftest.$ac_ext <<_ACEOF13192 /* confdefs.h. */13193 _ACEOF13194 cat confdefs.h >>conftest.$ac_ext13195 cat >>conftest.$ac_ext <<_ACEOF13196 /* end confdefs.h. */13197 13198 13199 int13200 main ()13201 {13202 return main ();13203 ;13204 return 0;13205 }13206 _ACEOF13207 rm -f conftest.$ac_objext conftest$ac_exeext13208 if { (ac_try="$ac_link"13209 case "(($ac_try" in13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13211 *) ac_try_echo=$ac_try;;13212 esac13213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13214 $as_echo "$ac_try_echo") >&513215 (eval "$ac_link") 2>conftest.er113216 ac_status=$?13217 grep -v '^ *+' conftest.er1 >conftest.err13218 rm -f conftest.er113219 cat conftest.err >&513220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513221 (exit $ac_status); } && {13222 test -z "$ac_cxx_werror_flag" ||13223 test ! -s conftest.err13224 } && test -s conftest$ac_exeext && {13225 test "$cross_compiling" = yes ||13226 $as_test_x conftest$ac_exeext13227 }; then13228 ac_cv_lib_avformat_main=yes13229 else13230 $as_echo "$as_me: failed program was:" >&513231 sed 's/^/| /' conftest.$ac_ext >&513232 13233 ac_cv_lib_avformat_main=no13234 fi13235 13236 rm -rf conftest.dSYM13237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13238 conftest$ac_exeext conftest.$ac_ext13239 LIBS=$ac_check_lib_save_LIBS13240 fi13241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&513242 $as_echo "$ac_cv_lib_avformat_main" >&6; }13243 if test "x$ac_cv_lib_avformat_main" = x""yes; then13244 cat >>confdefs.h <<_ACEOF13245 #define HAVE_LIBAVFORMAT 113246 _ACEOF13247 13248 LIBS="-lavformat $LIBS"13249 13250 else13251 { { $as_echo "$as_me:$LINENO: error: requires libavformat" >&513252 $as_echo "$as_me: error: requires libavformat" >&2;}13253 { (exit 1); exit 1; }; }13254 fi13255 13256 13257 { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&513258 $as_echo_n "checking for main in -lswscale... " >&6; }13259 if test "${ac_cv_lib_swscale_main+set}" = set; then13260 $as_echo_n "(cached) " >&613261 else13262 ac_check_lib_save_LIBS=$LIBS13263 LIBS="-lswscale $LIBS"13264 cat >conftest.$ac_ext <<_ACEOF13265 /* confdefs.h. */13266 _ACEOF13267 cat confdefs.h >>conftest.$ac_ext13268 cat >>conftest.$ac_ext <<_ACEOF13269 /* end confdefs.h. */13270 13271 13272 int13273 main ()13274 {13275 return main ();13276 ;13277 return 0;13278 }13279 _ACEOF13280 rm -f conftest.$ac_objext conftest$ac_exeext13281 if { (ac_try="$ac_link"13282 case "(($ac_try" in13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13284 *) ac_try_echo=$ac_try;;13285 esac13286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13287 $as_echo "$ac_try_echo") >&513288 (eval "$ac_link") 2>conftest.er113289 ac_status=$?13290 grep -v '^ *+' conftest.er1 >conftest.err13291 rm -f conftest.er113292 cat conftest.err >&513293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513294 (exit $ac_status); } && {13295 test -z "$ac_cxx_werror_flag" ||13296 test ! -s conftest.err13297 } && test -s conftest$ac_exeext && {13298 test "$cross_compiling" = yes ||13299 $as_test_x conftest$ac_exeext13300 }; then13301 ac_cv_lib_swscale_main=yes13302 else13303 $as_echo "$as_me: failed program was:" >&513304 sed 's/^/| /' conftest.$ac_ext >&513305 13306 ac_cv_lib_swscale_main=no13307 fi13308 13309 rm -rf conftest.dSYM13310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13311 conftest$ac_exeext conftest.$ac_ext13312 LIBS=$ac_check_lib_save_LIBS13313 fi13314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&513315 $as_echo "$ac_cv_lib_swscale_main" >&6; }13316 if test "x$ac_cv_lib_swscale_main" = x""yes; then13317 cat >>confdefs.h <<_ACEOF13318 #define HAVE_LIBSWSCALE 113319 _ACEOF13320 13321 LIBS="-lswscale $LIBS"13322 13323 fi13324 13325 13326 for ac_func in avcodec_decode_video213327 do13328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`13329 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&513330 $as_echo_n "checking for $ac_func... " >&6; }13331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then13332 $as_echo_n "(cached) " >&613333 else13334 cat >conftest.$ac_ext <<_ACEOF13335 /* confdefs.h. */13336 _ACEOF13337 cat confdefs.h >>conftest.$ac_ext13338 cat >>conftest.$ac_ext <<_ACEOF13339 /* end confdefs.h. */13340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.13341 For example, HP-UX 11i <limits.h> declares gettimeofday. */13342 #define $ac_func innocuous_$ac_func13343 13344 /* System header to define __stub macros and hopefully few prototypes,13345 which can conflict with char $ac_func (); below.13346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13347 <limits.h> exists even on freestanding compilers. */13348 13349 #ifdef __STDC__13350 # include <limits.h>13351 #else13352 # include <assert.h>13353 #endif13354 13355 #undef $ac_func13356 13357 /* Override any GCC internal prototype to avoid an error.13358 Use char because int might match the return type of a GCC13359 builtin and then its argument prototype would still apply. */13360 #ifdef __cplusplus13361 extern "C"13362 #endif13363 char $ac_func ();13364 /* The GNU C library defines this for functions which it implements13365 to always fail with ENOSYS. Some functions are actually named13366 something starting with __ and the normal name is an alias. */13367 #if defined __stub_$ac_func || defined __stub___$ac_func13368 choke me13369 #endif13370 13371 int13372 main ()13373 {13374 return $ac_func ();13375 ;13376 return 0;13377 }13378 _ACEOF13379 rm -f conftest.$ac_objext conftest$ac_exeext13380 if { (ac_try="$ac_link"13381 case "(($ac_try" in13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13383 *) ac_try_echo=$ac_try;;13384 esac13385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13386 $as_echo "$ac_try_echo") >&513387 (eval "$ac_link") 2>conftest.er113388 ac_status=$?13389 grep -v '^ *+' conftest.er1 >conftest.err13390 rm -f conftest.er113391 cat conftest.err >&513392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513393 (exit $ac_status); } && {13394 test -z "$ac_cxx_werror_flag" ||13395 test ! -s conftest.err13396 } && test -s conftest$ac_exeext && {13397 test "$cross_compiling" = yes ||13398 $as_test_x conftest$ac_exeext13399 }; then13400 eval "$as_ac_var=yes"13401 else13402 $as_echo "$as_me: failed program was:" >&513403 sed 's/^/| /' conftest.$ac_ext >&513404 13405 eval "$as_ac_var=no"13406 fi13407 13408 rm -rf conftest.dSYM13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13410 conftest$ac_exeext conftest.$ac_ext13411 fi13412 ac_res=`eval 'as_val=${'$as_ac_var'}13413 $as_echo "$as_val"'`13414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&513415 $as_echo "$ac_res" >&6; }13416 as_val=`eval 'as_val=${'$as_ac_var'}13417 $as_echo "$as_val"'`13418 if test "x$as_val" = x""yes; then13419 cat >>confdefs.h <<_ACEOF13420 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 113421 _ACEOF13422 13423 fi13424 done13425 13426 13427 for ac_func in avcodec_decode_video13428 do13429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`13430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&513431 $as_echo_n "checking for $ac_func... " >&6; }13432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then13433 $as_echo_n "(cached) " >&613434 else13435 cat >conftest.$ac_ext <<_ACEOF13436 /* confdefs.h. */13437 _ACEOF13438 cat confdefs.h >>conftest.$ac_ext13439 cat >>conftest.$ac_ext <<_ACEOF13440 /* end confdefs.h. */13441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.13442 For example, HP-UX 11i <limits.h> declares gettimeofday. */13443 #define $ac_func innocuous_$ac_func13444 13445 /* System header to define __stub macros and hopefully few prototypes,13446 which can conflict with char $ac_func (); below.13447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13448 <limits.h> exists even on freestanding compilers. */13449 13450 #ifdef __STDC__13451 # include <limits.h>13452 #else13453 # include <assert.h>13454 #endif13455 13456 #undef $ac_func13457 13458 /* Override any GCC internal prototype to avoid an error.13459 Use char because int might match the return type of a GCC13460 builtin and then its argument prototype would still apply. */13461 #ifdef __cplusplus13462 extern "C"13463 #endif13464 char $ac_func ();13465 /* The GNU C library defines this for functions which it implements13466 to always fail with ENOSYS. Some functions are actually named13467 something starting with __ and the normal name is an alias. */13468 #if defined __stub_$ac_func || defined __stub___$ac_func13469 choke me13470 #endif13471 13472 int13473 main ()13474 {13475 return $ac_func ();13476 ;13477 return 0;13478 }13479 _ACEOF13480 rm -f conftest.$ac_objext conftest$ac_exeext13481 if { (ac_try="$ac_link"13482 case "(($ac_try" in13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13484 *) ac_try_echo=$ac_try;;13485 esac13486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13487 $as_echo "$ac_try_echo") >&513488 (eval "$ac_link") 2>conftest.er113489 ac_status=$?13490 grep -v '^ *+' conftest.er1 >conftest.err13491 rm -f conftest.er113492 cat conftest.err >&513493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513494 (exit $ac_status); } && {13495 test -z "$ac_cxx_werror_flag" ||13496 test ! -s conftest.err13497 } && test -s conftest$ac_exeext && {13498 test "$cross_compiling" = yes ||13499 $as_test_x conftest$ac_exeext13500 }; then13501 eval "$as_ac_var=yes"13502 else13503 $as_echo "$as_me: failed program was:" >&513504 sed 's/^/| /' conftest.$ac_ext >&513505 13506 eval "$as_ac_var=no"13507 fi13508 13509 rm -rf conftest.dSYM13510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13511 conftest$ac_exeext conftest.$ac_ext13512 fi13513 ac_res=`eval 'as_val=${'$as_ac_var'}13514 $as_echo "$as_val"'`13515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&513516 $as_echo "$ac_res" >&6; }13517 as_val=`eval 'as_val=${'$as_ac_var'}13518 $as_echo "$as_val"'`13519 if test "x$as_val" = x""yes; then13520 cat >>confdefs.h <<_ACEOF13521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 113522 _ACEOF13523 13524 fi13525 done13526 13527 13528 for ac_func in avformat_open_input13529 do13530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`13531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&513532 $as_echo_n "checking for $ac_func... " >&6; }13533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then13534 $as_echo_n "(cached) " >&613535 else13536 cat >conftest.$ac_ext <<_ACEOF13537 /* confdefs.h. */13538 _ACEOF13539 cat confdefs.h >>conftest.$ac_ext13540 cat >>conftest.$ac_ext <<_ACEOF13541 /* end confdefs.h. */13542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.13543 For example, HP-UX 11i <limits.h> declares gettimeofday. */13544 #define $ac_func innocuous_$ac_func13545 13546 /* System header to define __stub macros and hopefully few prototypes,13547 which can conflict with char $ac_func (); below.13548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13549 <limits.h> exists even on freestanding compilers. */13550 13551 #ifdef __STDC__13552 # include <limits.h>13553 #else13554 # include <assert.h>13555 #endif13556 13557 #undef $ac_func13558 13559 /* Override any GCC internal prototype to avoid an error.13560 Use char because int might match the return type of a GCC13561 builtin and then its argument prototype would still apply. */13562 #ifdef __cplusplus13563 extern "C"13564 #endif13565 char $ac_func ();13566 /* The GNU C library defines this for functions which it implements13567 to always fail with ENOSYS. Some functions are actually named13568 something starting with __ and the normal name is an alias. */13569 #if defined __stub_$ac_func || defined __stub___$ac_func13570 choke me13571 #endif13572 13573 int13574 main ()13575 {13576 return $ac_func ();13577 ;13578 return 0;13579 }13580 _ACEOF13581 rm -f conftest.$ac_objext conftest$ac_exeext13582 if { (ac_try="$ac_link"13583 case "(($ac_try" in13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13585 *) ac_try_echo=$ac_try;;13586 esac13587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13588 $as_echo "$ac_try_echo") >&513589 (eval "$ac_link") 2>conftest.er113590 ac_status=$?13591 grep -v '^ *+' conftest.er1 >conftest.err13592 rm -f conftest.er113593 cat conftest.err >&513594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513595 (exit $ac_status); } && {13596 test -z "$ac_cxx_werror_flag" ||13597 test ! -s conftest.err13598 } && test -s conftest$ac_exeext && {13599 test "$cross_compiling" = yes ||13600 $as_test_x conftest$ac_exeext13601 }; then13602 eval "$as_ac_var=yes"13603 else13604 $as_echo "$as_me: failed program was:" >&513605 sed 's/^/| /' conftest.$ac_ext >&513606 13607 eval "$as_ac_var=no"13608 fi13609 13610 rm -rf conftest.dSYM13611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13612 conftest$ac_exeext conftest.$ac_ext13613 fi13614 ac_res=`eval 'as_val=${'$as_ac_var'}13615 $as_echo "$as_val"'`13616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&513617 $as_echo "$ac_res" >&6; }13618 as_val=`eval 'as_val=${'$as_ac_var'}13619 $as_echo "$as_val"'`13620 if test "x$as_val" = x""yes; then13621 cat >>confdefs.h <<_ACEOF13622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 113623 _ACEOF13624 13625 fi13626 done13627 13628 13629 for ac_func in av_open_input_file13630 do13631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`13632 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&513633 $as_echo_n "checking for $ac_func... " >&6; }13634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then13635 $as_echo_n "(cached) " >&613636 else13637 cat >conftest.$ac_ext <<_ACEOF13638 /* confdefs.h. */13639 _ACEOF13640 cat confdefs.h >>conftest.$ac_ext13641 cat >>conftest.$ac_ext <<_ACEOF13642 /* end confdefs.h. */13643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */13645 #define $ac_func innocuous_$ac_func13646 13647 /* System header to define __stub macros and hopefully few prototypes,13648 which can conflict with char $ac_func (); below.13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13650 <limits.h> exists even on freestanding compilers. */13651 13652 #ifdef __STDC__13653 # include <limits.h>13654 #else13655 # include <assert.h>13656 #endif13657 13658 #undef $ac_func13659 13660 /* Override any GCC internal prototype to avoid an error.13661 Use char because int might match the return type of a GCC13662 builtin and then its argument prototype would still apply. */13663 #ifdef __cplusplus13664 extern "C"13665 #endif13666 char $ac_func ();13667 /* The GNU C library defines this for functions which it implements13668 to always fail with ENOSYS. Some functions are actually named13669 something starting with __ and the normal name is an alias. */13670 #if defined __stub_$ac_func || defined __stub___$ac_func13671 choke me13672 #endif13673 13674 int13675 main ()13676 {13677 return $ac_func ();13678 ;13679 return 0;13680 }13681 _ACEOF13682 rm -f conftest.$ac_objext conftest$ac_exeext13683 if { (ac_try="$ac_link"13684 case "(($ac_try" in13685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13686 *) ac_try_echo=$ac_try;;13687 esac13688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13689 $as_echo "$ac_try_echo") >&513690 (eval "$ac_link") 2>conftest.er113691 ac_status=$?13692 grep -v '^ *+' conftest.er1 >conftest.err13693 rm -f conftest.er113694 cat conftest.err >&513695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513696 (exit $ac_status); } && {13697 test -z "$ac_cxx_werror_flag" ||13698 test ! -s conftest.err13699 } && test -s conftest$ac_exeext && {13700 test "$cross_compiling" = yes ||13701 $as_test_x conftest$ac_exeext13702 }; then13703 eval "$as_ac_var=yes"13704 else13705 $as_echo "$as_me: failed program was:" >&513706 sed 's/^/| /' conftest.$ac_ext >&513707 13708 eval "$as_ac_var=no"13709 fi13710 13711 rm -rf conftest.dSYM13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13713 conftest$ac_exeext conftest.$ac_ext13714 fi13715 ac_res=`eval 'as_val=${'$as_ac_var'}13716 $as_echo "$as_val"'`13717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&513718 $as_echo "$ac_res" >&6; }13719 as_val=`eval 'as_val=${'$as_ac_var'}13720 $as_echo "$as_val"'`13721 if test "x$as_val" = x""yes; then13722 cat >>confdefs.h <<_ACEOF13723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 113724 _ACEOF13725 13726 fi13727 done13728 13729 13730 for ac_func in av_guess_format13731 do13732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`13733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&513734 $as_echo_n "checking for $ac_func... " >&6; }13735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then13736 $as_echo_n "(cached) " >&613737 else13738 cat >conftest.$ac_ext <<_ACEOF13739 /* confdefs.h. */13740 _ACEOF13741 cat confdefs.h >>conftest.$ac_ext13742 cat >>conftest.$ac_ext <<_ACEOF13743 /* end confdefs.h. */13744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.13745 For example, HP-UX 11i <limits.h> declares gettimeofday. */13746 #define $ac_func innocuous_$ac_func13747 13748 /* System header to define __stub macros and hopefully few prototypes,13749 which can conflict with char $ac_func (); below.13750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13751 <limits.h> exists even on freestanding compilers. */13752 13753 #ifdef __STDC__13754 # include <limits.h>13755 #else13756 # include <assert.h>13757 #endif13758 13759 #undef $ac_func13760 13761 /* Override any GCC internal prototype to avoid an error.13762 Use char because int might match the return type of a GCC13763 builtin and then its argument prototype would still apply. */13764 #ifdef __cplusplus13765 extern "C"13766 #endif13767 char $ac_func ();13768 /* The GNU C library defines this for functions which it implements13769 to always fail with ENOSYS. Some functions are actually named13770 something starting with __ and the normal name is an alias. */13771 #if defined __stub_$ac_func || defined __stub___$ac_func13772 choke me13773 #endif13774 13775 int13776 main ()13777 {13778 return $ac_func ();13779 ;13780 return 0;13781 }13782 _ACEOF13783 rm -f conftest.$ac_objext conftest$ac_exeext13784 if { (ac_try="$ac_link"13785 case "(($ac_try" in13786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13787 *) ac_try_echo=$ac_try;;13788 esac13789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13790 $as_echo "$ac_try_echo") >&513791 (eval "$ac_link") 2>conftest.er113792 ac_status=$?13793 grep -v '^ *+' conftest.er1 >conftest.err13794 rm -f conftest.er113795 cat conftest.err >&513796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513797 (exit $ac_status); } && {13798 test -z "$ac_cxx_werror_flag" ||13799 test ! -s conftest.err13800 } && test -s conftest$ac_exeext && {13801 test "$cross_compiling" = yes ||13802 $as_test_x conftest$ac_exeext13803 }; then13804 eval "$as_ac_var=yes"13805 else13806 $as_echo "$as_me: failed program was:" >&513807 sed 's/^/| /' conftest.$ac_ext >&513808 13809 eval "$as_ac_var=no"13810 fi13811 13812 rm -rf conftest.dSYM13813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13814 conftest$ac_exeext conftest.$ac_ext13815 fi13816 ac_res=`eval 'as_val=${'$as_ac_var'}13817 $as_echo "$as_val"'`13818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&513819 $as_echo "$ac_res" >&6; }13820 as_val=`eval 'as_val=${'$as_ac_var'}13821 $as_echo "$as_val"'`13822 if test "x$as_val" = x""yes; then13823 cat >>confdefs.h <<_ACEOF13824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 113825 _ACEOF13826 13827 fi13828 done13829 13830 13831 for ac_func in guess_format13832 do13833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`13834 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&513835 $as_echo_n "checking for $ac_func... " >&6; }13836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then13837 $as_echo_n "(cached) " >&613838 else13839 cat >conftest.$ac_ext <<_ACEOF13840 /* confdefs.h. */13841 _ACEOF13842 cat confdefs.h >>conftest.$ac_ext13843 cat >>conftest.$ac_ext <<_ACEOF13844 /* end confdefs.h. */13845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.13846 For example, HP-UX 11i <limits.h> declares gettimeofday. */13847 #define $ac_func innocuous_$ac_func13848 13849 /* System header to define __stub macros and hopefully few prototypes,13850 which can conflict with char $ac_func (); below.13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13852 <limits.h> exists even on freestanding compilers. */13853 13854 #ifdef __STDC__13855 # include <limits.h>13856 #else13857 # include <assert.h>13858 #endif13859 13860 #undef $ac_func13861 13862 /* Override any GCC internal prototype to avoid an error.13863 Use char because int might match the return type of a GCC13864 builtin and then its argument prototype would still apply. */13865 #ifdef __cplusplus13866 extern "C"13867 #endif13868 char $ac_func ();13869 /* The GNU C library defines this for functions which it implements13870 to always fail with ENOSYS. Some functions are actually named13871 something starting with __ and the normal name is an alias. */13872 #if defined __stub_$ac_func || defined __stub___$ac_func13873 choke me13874 #endif13875 13876 int13877 main ()13878 {13879 return $ac_func ();13880 ;13881 return 0;13882 }13883 _ACEOF13884 rm -f conftest.$ac_objext conftest$ac_exeext13885 if { (ac_try="$ac_link"13886 case "(($ac_try" in13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13888 *) ac_try_echo=$ac_try;;13889 esac13890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13891 $as_echo "$ac_try_echo") >&513892 (eval "$ac_link") 2>conftest.er113893 ac_status=$?13894 grep -v '^ *+' conftest.er1 >conftest.err13895 rm -f conftest.er113896 cat conftest.err >&513897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513898 (exit $ac_status); } && {13899 test -z "$ac_cxx_werror_flag" ||13900 test ! -s conftest.err13901 } && test -s conftest$ac_exeext && {13902 test "$cross_compiling" = yes ||13903 $as_test_x conftest$ac_exeext13904 }; then13905 eval "$as_ac_var=yes"13906 else13907 $as_echo "$as_me: failed program was:" >&513908 sed 's/^/| /' conftest.$ac_ext >&513909 13910 eval "$as_ac_var=no"13911 fi13912 13913 rm -rf conftest.dSYM13914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13915 conftest$ac_exeext conftest.$ac_ext13916 fi13917 ac_res=`eval 'as_val=${'$as_ac_var'}13918 $as_echo "$as_val"'`13919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&513920 $as_echo "$ac_res" >&6; }13921 as_val=`eval 'as_val=${'$as_ac_var'}13922 $as_echo "$as_val"'`13923 if test "x$as_val" = x""yes; then13924 cat >>confdefs.h <<_ACEOF13925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 113926 _ACEOF13927 13928 fi13929 done13930 13931 13932 for ac_func in av_dump_format13933 do13934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`13935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&513936 $as_echo_n "checking for $ac_func... " >&6; }13937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then13938 $as_echo_n "(cached) " >&613939 else13940 cat >conftest.$ac_ext <<_ACEOF13941 /* confdefs.h. */13942 _ACEOF13943 cat confdefs.h >>conftest.$ac_ext13944 cat >>conftest.$ac_ext <<_ACEOF13945 /* end confdefs.h. */13946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.13947 For example, HP-UX 11i <limits.h> declares gettimeofday. */13948 #define $ac_func innocuous_$ac_func13949 13950 /* System header to define __stub macros and hopefully few prototypes,13951 which can conflict with char $ac_func (); below.13952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13953 <limits.h> exists even on freestanding compilers. */13954 13955 #ifdef __STDC__13956 # include <limits.h>13957 #else13958 # include <assert.h>13959 #endif13960 13961 #undef $ac_func13962 13963 /* Override any GCC internal prototype to avoid an error.13964 Use char because int might match the return type of a GCC13965 builtin and then its argument prototype would still apply. */13966 #ifdef __cplusplus13967 extern "C"13968 #endif13969 char $ac_func ();13970 /* The GNU C library defines this for functions which it implements13971 to always fail with ENOSYS. Some functions are actually named13972 something starting with __ and the normal name is an alias. */13973 #if defined __stub_$ac_func || defined __stub___$ac_func13974 choke me13975 #endif13976 13977 int13978 main ()13979 {13980 return $ac_func ();13981 ;13982 return 0;13983 }13984 _ACEOF13985 rm -f conftest.$ac_objext conftest$ac_exeext13986 if { (ac_try="$ac_link"13987 case "(($ac_try" in13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13989 *) ac_try_echo=$ac_try;;13990 esac13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""13992 $as_echo "$ac_try_echo") >&513993 (eval "$ac_link") 2>conftest.er113994 ac_status=$?13995 grep -v '^ *+' conftest.er1 >conftest.err13996 rm -f conftest.er113997 cat conftest.err >&513998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&513999 (exit $ac_status); } && {14000 test -z "$ac_cxx_werror_flag" ||14001 test ! -s conftest.err14002 } && test -s conftest$ac_exeext && {14003 test "$cross_compiling" = yes ||14004 $as_test_x conftest$ac_exeext14005 }; then14006 eval "$as_ac_var=yes"14007 else14008 $as_echo "$as_me: failed program was:" >&514009 sed 's/^/| /' conftest.$ac_ext >&514010 14011 eval "$as_ac_var=no"14012 fi14013 14014 rm -rf conftest.dSYM14015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14016 conftest$ac_exeext conftest.$ac_ext14017 fi14018 ac_res=`eval 'as_val=${'$as_ac_var'}14019 $as_echo "$as_val"'`14020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514021 $as_echo "$ac_res" >&6; }14022 as_val=`eval 'as_val=${'$as_ac_var'}14023 $as_echo "$as_val"'`14024 if test "x$as_val" = x""yes; then14025 cat >>confdefs.h <<_ACEOF14026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114027 _ACEOF14028 14029 fi14030 done14031 14032 14033 for ac_func in dump_format14034 do14035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514037 $as_echo_n "checking for $ac_func... " >&6; }14038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14039 $as_echo_n "(cached) " >&614040 else14041 cat >conftest.$ac_ext <<_ACEOF14042 /* confdefs.h. */14043 _ACEOF14044 cat confdefs.h >>conftest.$ac_ext14045 cat >>conftest.$ac_ext <<_ACEOF14046 /* end confdefs.h. */14047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14048 For example, HP-UX 11i <limits.h> declares gettimeofday. */14049 #define $ac_func innocuous_$ac_func14050 14051 /* System header to define __stub macros and hopefully few prototypes,14052 which can conflict with char $ac_func (); below.14053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14054 <limits.h> exists even on freestanding compilers. */14055 14056 #ifdef __STDC__14057 # include <limits.h>14058 #else14059 # include <assert.h>14060 #endif14061 14062 #undef $ac_func14063 14064 /* Override any GCC internal prototype to avoid an error.14065 Use char because int might match the return type of a GCC14066 builtin and then its argument prototype would still apply. */14067 #ifdef __cplusplus14068 extern "C"14069 #endif14070 char $ac_func ();14071 /* The GNU C library defines this for functions which it implements14072 to always fail with ENOSYS. Some functions are actually named14073 something starting with __ and the normal name is an alias. */14074 #if defined __stub_$ac_func || defined __stub___$ac_func14075 choke me14076 #endif14077 14078 int14079 main ()14080 {14081 return $ac_func ();14082 ;14083 return 0;14084 }14085 _ACEOF14086 rm -f conftest.$ac_objext conftest$ac_exeext14087 if { (ac_try="$ac_link"14088 case "(($ac_try" in14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14090 *) ac_try_echo=$ac_try;;14091 esac14092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14093 $as_echo "$ac_try_echo") >&514094 (eval "$ac_link") 2>conftest.er114095 ac_status=$?14096 grep -v '^ *+' conftest.er1 >conftest.err14097 rm -f conftest.er114098 cat conftest.err >&514099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514100 (exit $ac_status); } && {14101 test -z "$ac_cxx_werror_flag" ||14102 test ! -s conftest.err14103 } && test -s conftest$ac_exeext && {14104 test "$cross_compiling" = yes ||14105 $as_test_x conftest$ac_exeext14106 }; then14107 eval "$as_ac_var=yes"14108 else14109 $as_echo "$as_me: failed program was:" >&514110 sed 's/^/| /' conftest.$ac_ext >&514111 14112 eval "$as_ac_var=no"14113 fi14114 14115 rm -rf conftest.dSYM14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14117 conftest$ac_exeext conftest.$ac_ext14118 fi14119 ac_res=`eval 'as_val=${'$as_ac_var'}14120 $as_echo "$as_val"'`14121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514122 $as_echo "$ac_res" >&6; }14123 as_val=`eval 'as_val=${'$as_ac_var'}14124 $as_echo "$as_val"'`14125 if test "x$as_val" = x""yes; then14126 cat >>confdefs.h <<_ACEOF14127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114128 _ACEOF14129 14130 fi14131 done14132 14133 14134 for ac_func in avio_open14135 do14136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14137 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514138 $as_echo_n "checking for $ac_func... " >&6; }14139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14140 $as_echo_n "(cached) " >&614141 else14142 cat >conftest.$ac_ext <<_ACEOF14143 /* confdefs.h. */14144 _ACEOF14145 cat confdefs.h >>conftest.$ac_ext14146 cat >>conftest.$ac_ext <<_ACEOF14147 /* end confdefs.h. */14148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14149 For example, HP-UX 11i <limits.h> declares gettimeofday. */14150 #define $ac_func innocuous_$ac_func14151 14152 /* System header to define __stub macros and hopefully few prototypes,14153 which can conflict with char $ac_func (); below.14154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14155 <limits.h> exists even on freestanding compilers. */14156 14157 #ifdef __STDC__14158 # include <limits.h>14159 #else14160 # include <assert.h>14161 #endif14162 14163 #undef $ac_func14164 14165 /* Override any GCC internal prototype to avoid an error.14166 Use char because int might match the return type of a GCC14167 builtin and then its argument prototype would still apply. */14168 #ifdef __cplusplus14169 extern "C"14170 #endif14171 char $ac_func ();14172 /* The GNU C library defines this for functions which it implements14173 to always fail with ENOSYS. Some functions are actually named14174 something starting with __ and the normal name is an alias. */14175 #if defined __stub_$ac_func || defined __stub___$ac_func14176 choke me14177 #endif14178 14179 int14180 main ()14181 {14182 return $ac_func ();14183 ;14184 return 0;14185 }14186 _ACEOF14187 rm -f conftest.$ac_objext conftest$ac_exeext14188 if { (ac_try="$ac_link"14189 case "(($ac_try" in14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14191 *) ac_try_echo=$ac_try;;14192 esac14193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14194 $as_echo "$ac_try_echo") >&514195 (eval "$ac_link") 2>conftest.er114196 ac_status=$?14197 grep -v '^ *+' conftest.er1 >conftest.err14198 rm -f conftest.er114199 cat conftest.err >&514200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514201 (exit $ac_status); } && {14202 test -z "$ac_cxx_werror_flag" ||14203 test ! -s conftest.err14204 } && test -s conftest$ac_exeext && {14205 test "$cross_compiling" = yes ||14206 $as_test_x conftest$ac_exeext14207 }; then14208 eval "$as_ac_var=yes"14209 else14210 $as_echo "$as_me: failed program was:" >&514211 sed 's/^/| /' conftest.$ac_ext >&514212 14213 eval "$as_ac_var=no"14214 fi14215 14216 rm -rf conftest.dSYM14217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14218 conftest$ac_exeext conftest.$ac_ext14219 fi14220 ac_res=`eval 'as_val=${'$as_ac_var'}14221 $as_echo "$as_val"'`14222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514223 $as_echo "$ac_res" >&6; }14224 as_val=`eval 'as_val=${'$as_ac_var'}14225 $as_echo "$as_val"'`14226 if test "x$as_val" = x""yes; then14227 cat >>confdefs.h <<_ACEOF14228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114229 _ACEOF14230 14231 fi14232 done14233 14234 14235 for ac_func in url_fopen14236 do14237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514239 $as_echo_n "checking for $ac_func... " >&6; }14240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14241 $as_echo_n "(cached) " >&614242 else14243 cat >conftest.$ac_ext <<_ACEOF14244 /* confdefs.h. */14245 _ACEOF14246 cat confdefs.h >>conftest.$ac_ext14247 cat >>conftest.$ac_ext <<_ACEOF14248 /* end confdefs.h. */14249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14250 For example, HP-UX 11i <limits.h> declares gettimeofday. */14251 #define $ac_func innocuous_$ac_func14252 14253 /* System header to define __stub macros and hopefully few prototypes,14254 which can conflict with char $ac_func (); below.14255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14256 <limits.h> exists even on freestanding compilers. */14257 14258 #ifdef __STDC__14259 # include <limits.h>14260 #else14261 # include <assert.h>14262 #endif14263 14264 #undef $ac_func14265 14266 /* Override any GCC internal prototype to avoid an error.14267 Use char because int might match the return type of a GCC14268 builtin and then its argument prototype would still apply. */14269 #ifdef __cplusplus14270 extern "C"14271 #endif14272 char $ac_func ();14273 /* The GNU C library defines this for functions which it implements14274 to always fail with ENOSYS. Some functions are actually named14275 something starting with __ and the normal name is an alias. */14276 #if defined __stub_$ac_func || defined __stub___$ac_func14277 choke me14278 #endif14279 14280 int14281 main ()14282 {14283 return $ac_func ();14284 ;14285 return 0;14286 }14287 _ACEOF14288 rm -f conftest.$ac_objext conftest$ac_exeext14289 if { (ac_try="$ac_link"14290 case "(($ac_try" in14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14292 *) ac_try_echo=$ac_try;;14293 esac14294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14295 $as_echo "$ac_try_echo") >&514296 (eval "$ac_link") 2>conftest.er114297 ac_status=$?14298 grep -v '^ *+' conftest.er1 >conftest.err14299 rm -f conftest.er114300 cat conftest.err >&514301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514302 (exit $ac_status); } && {14303 test -z "$ac_cxx_werror_flag" ||14304 test ! -s conftest.err14305 } && test -s conftest$ac_exeext && {14306 test "$cross_compiling" = yes ||14307 $as_test_x conftest$ac_exeext14308 }; then14309 eval "$as_ac_var=yes"14310 else14311 $as_echo "$as_me: failed program was:" >&514312 sed 's/^/| /' conftest.$ac_ext >&514313 14314 eval "$as_ac_var=no"14315 fi14316 14317 rm -rf conftest.dSYM14318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14319 conftest$ac_exeext conftest.$ac_ext14320 fi14321 ac_res=`eval 'as_val=${'$as_ac_var'}14322 $as_echo "$as_val"'`14323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514324 $as_echo "$ac_res" >&6; }14325 as_val=`eval 'as_val=${'$as_ac_var'}14326 $as_echo "$as_val"'`14327 if test "x$as_val" = x""yes; then14328 cat >>confdefs.h <<_ACEOF14329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114330 _ACEOF14331 14332 fi14333 done14334 14335 14336 for ac_func in avio_close14337 do14338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514340 $as_echo_n "checking for $ac_func... " >&6; }14341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14342 $as_echo_n "(cached) " >&614343 else14344 cat >conftest.$ac_ext <<_ACEOF14345 /* confdefs.h. */14346 _ACEOF14347 cat confdefs.h >>conftest.$ac_ext14348 cat >>conftest.$ac_ext <<_ACEOF14349 /* end confdefs.h. */14350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14351 For example, HP-UX 11i <limits.h> declares gettimeofday. */14352 #define $ac_func innocuous_$ac_func14353 14354 /* System header to define __stub macros and hopefully few prototypes,14355 which can conflict with char $ac_func (); below.14356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14357 <limits.h> exists even on freestanding compilers. */14358 14359 #ifdef __STDC__14360 # include <limits.h>14361 #else14362 # include <assert.h>14363 #endif14364 14365 #undef $ac_func14366 14367 /* Override any GCC internal prototype to avoid an error.14368 Use char because int might match the return type of a GCC14369 builtin and then its argument prototype would still apply. */14370 #ifdef __cplusplus14371 extern "C"14372 #endif14373 char $ac_func ();14374 /* The GNU C library defines this for functions which it implements14375 to always fail with ENOSYS. Some functions are actually named14376 something starting with __ and the normal name is an alias. */14377 #if defined __stub_$ac_func || defined __stub___$ac_func14378 choke me14379 #endif14380 14381 int14382 main ()14383 {14384 return $ac_func ();14385 ;14386 return 0;14387 }14388 _ACEOF14389 rm -f conftest.$ac_objext conftest$ac_exeext14390 if { (ac_try="$ac_link"14391 case "(($ac_try" in14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14393 *) ac_try_echo=$ac_try;;14394 esac14395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14396 $as_echo "$ac_try_echo") >&514397 (eval "$ac_link") 2>conftest.er114398 ac_status=$?14399 grep -v '^ *+' conftest.er1 >conftest.err14400 rm -f conftest.er114401 cat conftest.err >&514402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514403 (exit $ac_status); } && {14404 test -z "$ac_cxx_werror_flag" ||14405 test ! -s conftest.err14406 } && test -s conftest$ac_exeext && {14407 test "$cross_compiling" = yes ||14408 $as_test_x conftest$ac_exeext14409 }; then14410 eval "$as_ac_var=yes"14411 else14412 $as_echo "$as_me: failed program was:" >&514413 sed 's/^/| /' conftest.$ac_ext >&514414 14415 eval "$as_ac_var=no"14416 fi14417 14418 rm -rf conftest.dSYM14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14420 conftest$ac_exeext conftest.$ac_ext14421 fi14422 ac_res=`eval 'as_val=${'$as_ac_var'}14423 $as_echo "$as_val"'`14424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514425 $as_echo "$ac_res" >&6; }14426 as_val=`eval 'as_val=${'$as_ac_var'}14427 $as_echo "$as_val"'`14428 if test "x$as_val" = x""yes; then14429 cat >>confdefs.h <<_ACEOF14430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114431 _ACEOF14432 14433 fi14434 done14435 14436 14437 for ac_func in url_fclose14438 do14439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14440 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514441 $as_echo_n "checking for $ac_func... " >&6; }14442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14443 $as_echo_n "(cached) " >&614444 else14445 cat >conftest.$ac_ext <<_ACEOF14446 /* confdefs.h. */14447 _ACEOF14448 cat confdefs.h >>conftest.$ac_ext14449 cat >>conftest.$ac_ext <<_ACEOF14450 /* end confdefs.h. */14451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14452 For example, HP-UX 11i <limits.h> declares gettimeofday. */14453 #define $ac_func innocuous_$ac_func14454 14455 /* System header to define __stub macros and hopefully few prototypes,14456 which can conflict with char $ac_func (); below.14457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14458 <limits.h> exists even on freestanding compilers. */14459 14460 #ifdef __STDC__14461 # include <limits.h>14462 #else14463 # include <assert.h>14464 #endif14465 14466 #undef $ac_func14467 14468 /* Override any GCC internal prototype to avoid an error.14469 Use char because int might match the return type of a GCC14470 builtin and then its argument prototype would still apply. */14471 #ifdef __cplusplus14472 extern "C"14473 #endif14474 char $ac_func ();14475 /* The GNU C library defines this for functions which it implements14476 to always fail with ENOSYS. Some functions are actually named14477 something starting with __ and the normal name is an alias. */14478 #if defined __stub_$ac_func || defined __stub___$ac_func14479 choke me14480 #endif14481 14482 int14483 main ()14484 {14485 return $ac_func ();14486 ;14487 return 0;14488 }14489 _ACEOF14490 rm -f conftest.$ac_objext conftest$ac_exeext14491 if { (ac_try="$ac_link"14492 case "(($ac_try" in14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14494 *) ac_try_echo=$ac_try;;14495 esac14496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14497 $as_echo "$ac_try_echo") >&514498 (eval "$ac_link") 2>conftest.er114499 ac_status=$?14500 grep -v '^ *+' conftest.er1 >conftest.err14501 rm -f conftest.er114502 cat conftest.err >&514503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514504 (exit $ac_status); } && {14505 test -z "$ac_cxx_werror_flag" ||14506 test ! -s conftest.err14507 } && test -s conftest$ac_exeext && {14508 test "$cross_compiling" = yes ||14509 $as_test_x conftest$ac_exeext14510 }; then14511 eval "$as_ac_var=yes"14512 else14513 $as_echo "$as_me: failed program was:" >&514514 sed 's/^/| /' conftest.$ac_ext >&514515 14516 eval "$as_ac_var=no"14517 fi14518 14519 rm -rf conftest.dSYM14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14521 conftest$ac_exeext conftest.$ac_ext14522 fi14523 ac_res=`eval 'as_val=${'$as_ac_var'}14524 $as_echo "$as_val"'`14525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514526 $as_echo "$ac_res" >&6; }14527 as_val=`eval 'as_val=${'$as_ac_var'}14528 $as_echo "$as_val"'`14529 if test "x$as_val" = x""yes; then14530 cat >>confdefs.h <<_ACEOF14531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114532 _ACEOF14533 14534 fi14535 done14536 14537 14538 for ac_func in avformat_alloc_context14539 do14540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514542 $as_echo_n "checking for $ac_func... " >&6; }14543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14544 $as_echo_n "(cached) " >&614545 else14546 cat >conftest.$ac_ext <<_ACEOF14547 /* confdefs.h. */14548 _ACEOF14549 cat confdefs.h >>conftest.$ac_ext14550 cat >>conftest.$ac_ext <<_ACEOF14551 /* end confdefs.h. */14552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14553 For example, HP-UX 11i <limits.h> declares gettimeofday. */14554 #define $ac_func innocuous_$ac_func14555 14556 /* System header to define __stub macros and hopefully few prototypes,14557 which can conflict with char $ac_func (); below.14558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14559 <limits.h> exists even on freestanding compilers. */14560 14561 #ifdef __STDC__14562 # include <limits.h>14563 #else14564 # include <assert.h>14565 #endif14566 14567 #undef $ac_func14568 14569 /* Override any GCC internal prototype to avoid an error.14570 Use char because int might match the return type of a GCC14571 builtin and then its argument prototype would still apply. */14572 #ifdef __cplusplus14573 extern "C"14574 #endif14575 char $ac_func ();14576 /* The GNU C library defines this for functions which it implements14577 to always fail with ENOSYS. Some functions are actually named14578 something starting with __ and the normal name is an alias. */14579 #if defined __stub_$ac_func || defined __stub___$ac_func14580 choke me14581 #endif14582 14583 int14584 main ()14585 {14586 return $ac_func ();14587 ;14588 return 0;14589 }14590 _ACEOF14591 rm -f conftest.$ac_objext conftest$ac_exeext14592 if { (ac_try="$ac_link"14593 case "(($ac_try" in14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14595 *) ac_try_echo=$ac_try;;14596 esac14597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14598 $as_echo "$ac_try_echo") >&514599 (eval "$ac_link") 2>conftest.er114600 ac_status=$?14601 grep -v '^ *+' conftest.er1 >conftest.err14602 rm -f conftest.er114603 cat conftest.err >&514604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514605 (exit $ac_status); } && {14606 test -z "$ac_cxx_werror_flag" ||14607 test ! -s conftest.err14608 } && test -s conftest$ac_exeext && {14609 test "$cross_compiling" = yes ||14610 $as_test_x conftest$ac_exeext14611 }; then14612 eval "$as_ac_var=yes"14613 else14614 $as_echo "$as_me: failed program was:" >&514615 sed 's/^/| /' conftest.$ac_ext >&514616 14617 eval "$as_ac_var=no"14618 fi14619 14620 rm -rf conftest.dSYM14621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14622 conftest$ac_exeext conftest.$ac_ext14623 fi14624 ac_res=`eval 'as_val=${'$as_ac_var'}14625 $as_echo "$as_val"'`14626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514627 $as_echo "$ac_res" >&6; }14628 as_val=`eval 'as_val=${'$as_ac_var'}14629 $as_echo "$as_val"'`14630 if test "x$as_val" = x""yes; then14631 cat >>confdefs.h <<_ACEOF14632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114633 _ACEOF14634 14635 fi14636 done14637 14638 14639 for ac_func in av_alloc_format_context14640 do14641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14642 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514643 $as_echo_n "checking for $ac_func... " >&6; }14644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14645 $as_echo_n "(cached) " >&614646 else14647 cat >conftest.$ac_ext <<_ACEOF14648 /* confdefs.h. */14649 _ACEOF14650 cat confdefs.h >>conftest.$ac_ext14651 cat >>conftest.$ac_ext <<_ACEOF14652 /* end confdefs.h. */14653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14654 For example, HP-UX 11i <limits.h> declares gettimeofday. */14655 #define $ac_func innocuous_$ac_func14656 14657 /* System header to define __stub macros and hopefully few prototypes,14658 which can conflict with char $ac_func (); below.14659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14660 <limits.h> exists even on freestanding compilers. */14661 14662 #ifdef __STDC__14663 # include <limits.h>14664 #else14665 # include <assert.h>14666 #endif14667 14668 #undef $ac_func14669 14670 /* Override any GCC internal prototype to avoid an error.14671 Use char because int might match the return type of a GCC14672 builtin and then its argument prototype would still apply. */14673 #ifdef __cplusplus14674 extern "C"14675 #endif14676 char $ac_func ();14677 /* The GNU C library defines this for functions which it implements14678 to always fail with ENOSYS. Some functions are actually named14679 something starting with __ and the normal name is an alias. */14680 #if defined __stub_$ac_func || defined __stub___$ac_func14681 choke me14682 #endif14683 14684 int14685 main ()14686 {14687 return $ac_func ();14688 ;14689 return 0;14690 }14691 _ACEOF14692 rm -f conftest.$ac_objext conftest$ac_exeext14693 if { (ac_try="$ac_link"14694 case "(($ac_try" in14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14696 *) ac_try_echo=$ac_try;;14697 esac14698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14699 $as_echo "$ac_try_echo") >&514700 (eval "$ac_link") 2>conftest.er114701 ac_status=$?14702 grep -v '^ *+' conftest.er1 >conftest.err14703 rm -f conftest.er114704 cat conftest.err >&514705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514706 (exit $ac_status); } && {14707 test -z "$ac_cxx_werror_flag" ||14708 test ! -s conftest.err14709 } && test -s conftest$ac_exeext && {14710 test "$cross_compiling" = yes ||14711 $as_test_x conftest$ac_exeext14712 }; then14713 eval "$as_ac_var=yes"14714 else14715 $as_echo "$as_me: failed program was:" >&514716 sed 's/^/| /' conftest.$ac_ext >&514717 14718 eval "$as_ac_var=no"14719 fi14720 14721 rm -rf conftest.dSYM14722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14723 conftest$ac_exeext conftest.$ac_ext14724 fi14725 ac_res=`eval 'as_val=${'$as_ac_var'}14726 $as_echo "$as_val"'`14727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514728 $as_echo "$ac_res" >&6; }14729 as_val=`eval 'as_val=${'$as_ac_var'}14730 $as_echo "$as_val"'`14731 if test "x$as_val" = x""yes; then14732 cat >>confdefs.h <<_ACEOF14733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114734 _ACEOF14735 14736 fi14737 done14738 14739 14740 for ac_func in av_set_parameters14741 do14742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14743 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514744 $as_echo_n "checking for $ac_func... " >&6; }14745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14746 $as_echo_n "(cached) " >&614747 else14748 cat >conftest.$ac_ext <<_ACEOF14749 /* confdefs.h. */14750 _ACEOF14751 cat confdefs.h >>conftest.$ac_ext14752 cat >>conftest.$ac_ext <<_ACEOF14753 /* end confdefs.h. */14754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14755 For example, HP-UX 11i <limits.h> declares gettimeofday. */14756 #define $ac_func innocuous_$ac_func14757 14758 /* System header to define __stub macros and hopefully few prototypes,14759 which can conflict with char $ac_func (); below.14760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14761 <limits.h> exists even on freestanding compilers. */14762 14763 #ifdef __STDC__14764 # include <limits.h>14765 #else14766 # include <assert.h>14767 #endif14768 14769 #undef $ac_func14770 14771 /* Override any GCC internal prototype to avoid an error.14772 Use char because int might match the return type of a GCC14773 builtin and then its argument prototype would still apply. */14774 #ifdef __cplusplus14775 extern "C"14776 #endif14777 char $ac_func ();14778 /* The GNU C library defines this for functions which it implements14779 to always fail with ENOSYS. Some functions are actually named14780 something starting with __ and the normal name is an alias. */14781 #if defined __stub_$ac_func || defined __stub___$ac_func14782 choke me14783 #endif14784 14785 int14786 main ()14787 {14788 return $ac_func ();14789 ;14790 return 0;14791 }14792 _ACEOF14793 rm -f conftest.$ac_objext conftest$ac_exeext14794 if { (ac_try="$ac_link"14795 case "(($ac_try" in14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14797 *) ac_try_echo=$ac_try;;14798 esac14799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14800 $as_echo "$ac_try_echo") >&514801 (eval "$ac_link") 2>conftest.er114802 ac_status=$?14803 grep -v '^ *+' conftest.er1 >conftest.err14804 rm -f conftest.er114805 cat conftest.err >&514806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514807 (exit $ac_status); } && {14808 test -z "$ac_cxx_werror_flag" ||14809 test ! -s conftest.err14810 } && test -s conftest$ac_exeext && {14811 test "$cross_compiling" = yes ||14812 $as_test_x conftest$ac_exeext14813 }; then14814 eval "$as_ac_var=yes"14815 else14816 $as_echo "$as_me: failed program was:" >&514817 sed 's/^/| /' conftest.$ac_ext >&514818 14819 eval "$as_ac_var=no"14820 fi14821 14822 rm -rf conftest.dSYM14823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14824 conftest$ac_exeext conftest.$ac_ext14825 fi14826 ac_res=`eval 'as_val=${'$as_ac_var'}14827 $as_echo "$as_val"'`14828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514829 $as_echo "$ac_res" >&6; }14830 as_val=`eval 'as_val=${'$as_ac_var'}14831 $as_echo "$as_val"'`14832 if test "x$as_val" = x""yes; then14833 cat >>confdefs.h <<_ACEOF14834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114835 _ACEOF14836 14837 fi14838 done14839 14840 14841 for ac_func in avformat_write_header14842 do14843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14844 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514845 $as_echo_n "checking for $ac_func... " >&6; }14846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14847 $as_echo_n "(cached) " >&614848 else14849 cat >conftest.$ac_ext <<_ACEOF14850 /* confdefs.h. */14851 _ACEOF14852 cat confdefs.h >>conftest.$ac_ext14853 cat >>conftest.$ac_ext <<_ACEOF14854 /* end confdefs.h. */14855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14856 For example, HP-UX 11i <limits.h> declares gettimeofday. */14857 #define $ac_func innocuous_$ac_func14858 14859 /* System header to define __stub macros and hopefully few prototypes,14860 which can conflict with char $ac_func (); below.14861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14862 <limits.h> exists even on freestanding compilers. */14863 14864 #ifdef __STDC__14865 # include <limits.h>14866 #else14867 # include <assert.h>14868 #endif14869 14870 #undef $ac_func14871 14872 /* Override any GCC internal prototype to avoid an error.14873 Use char because int might match the return type of a GCC14874 builtin and then its argument prototype would still apply. */14875 #ifdef __cplusplus14876 extern "C"14877 #endif14878 char $ac_func ();14879 /* The GNU C library defines this for functions which it implements14880 to always fail with ENOSYS. Some functions are actually named14881 something starting with __ and the normal name is an alias. */14882 #if defined __stub_$ac_func || defined __stub___$ac_func14883 choke me14884 #endif14885 14886 int14887 main ()14888 {14889 return $ac_func ();14890 ;14891 return 0;14892 }14893 _ACEOF14894 rm -f conftest.$ac_objext conftest$ac_exeext14895 if { (ac_try="$ac_link"14896 case "(($ac_try" in14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14898 *) ac_try_echo=$ac_try;;14899 esac14900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""14901 $as_echo "$ac_try_echo") >&514902 (eval "$ac_link") 2>conftest.er114903 ac_status=$?14904 grep -v '^ *+' conftest.er1 >conftest.err14905 rm -f conftest.er114906 cat conftest.err >&514907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&514908 (exit $ac_status); } && {14909 test -z "$ac_cxx_werror_flag" ||14910 test ! -s conftest.err14911 } && test -s conftest$ac_exeext && {14912 test "$cross_compiling" = yes ||14913 $as_test_x conftest$ac_exeext14914 }; then14915 eval "$as_ac_var=yes"14916 else14917 $as_echo "$as_me: failed program was:" >&514918 sed 's/^/| /' conftest.$ac_ext >&514919 14920 eval "$as_ac_var=no"14921 fi14922 14923 rm -rf conftest.dSYM14924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14925 conftest$ac_exeext conftest.$ac_ext14926 fi14927 ac_res=`eval 'as_val=${'$as_ac_var'}14928 $as_echo "$as_val"'`14929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&514930 $as_echo "$ac_res" >&6; }14931 as_val=`eval 'as_val=${'$as_ac_var'}14932 $as_echo "$as_val"'`14933 if test "x$as_val" = x""yes; then14934 cat >>confdefs.h <<_ACEOF14935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 114936 _ACEOF14937 14938 fi14939 done14940 14941 14942 for ac_func in av_write_header14943 do14944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`14945 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&514946 $as_echo_n "checking for $ac_func... " >&6; }14947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then14948 $as_echo_n "(cached) " >&614949 else14950 cat >conftest.$ac_ext <<_ACEOF14951 /* confdefs.h. */14952 _ACEOF14953 cat confdefs.h >>conftest.$ac_ext14954 cat >>conftest.$ac_ext <<_ACEOF14955 /* end confdefs.h. */14956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.14957 For example, HP-UX 11i <limits.h> declares gettimeofday. */14958 #define $ac_func innocuous_$ac_func14959 14960 /* System header to define __stub macros and hopefully few prototypes,14961 which can conflict with char $ac_func (); below.14962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since14963 <limits.h> exists even on freestanding compilers. */14964 14965 #ifdef __STDC__14966 # include <limits.h>14967 #else14968 # include <assert.h>14969 #endif14970 14971 #undef $ac_func14972 14973 /* Override any GCC internal prototype to avoid an error.14974 Use char because int might match the return type of a GCC14975 builtin and then its argument prototype would still apply. */14976 #ifdef __cplusplus14977 extern "C"14978 #endif14979 char $ac_func ();14980 /* The GNU C library defines this for functions which it implements14981 to always fail with ENOSYS. Some functions are actually named14982 something starting with __ and the normal name is an alias. */14983 #if defined __stub_$ac_func || defined __stub___$ac_func14984 choke me14985 #endif14986 14987 int14988 main ()14989 {14990 return $ac_func ();14991 ;14992 return 0;14993 }14994 _ACEOF14995 rm -f conftest.$ac_objext conftest$ac_exeext14996 if { (ac_try="$ac_link"14997 case "(($ac_try" in14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14999 *) ac_try_echo=$ac_try;;15000 esac15001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15002 $as_echo "$ac_try_echo") >&515003 (eval "$ac_link") 2>conftest.er115004 ac_status=$?15005 grep -v '^ *+' conftest.er1 >conftest.err15006 rm -f conftest.er115007 cat conftest.err >&515008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515009 (exit $ac_status); } && {15010 test -z "$ac_cxx_werror_flag" ||15011 test ! -s conftest.err15012 } && test -s conftest$ac_exeext && {15013 test "$cross_compiling" = yes ||15014 $as_test_x conftest$ac_exeext15015 }; then15016 eval "$as_ac_var=yes"15017 else15018 $as_echo "$as_me: failed program was:" >&515019 sed 's/^/| /' conftest.$ac_ext >&515020 15021 eval "$as_ac_var=no"15022 fi15023 15024 rm -rf conftest.dSYM15025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15026 conftest$ac_exeext conftest.$ac_ext15027 fi15028 ac_res=`eval 'as_val=${'$as_ac_var'}15029 $as_echo "$as_val"'`15030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&515031 $as_echo "$ac_res" >&6; }15032 as_val=`eval 'as_val=${'$as_ac_var'}15033 $as_echo "$as_val"'`15034 if test "x$as_val" = x""yes; then15035 cat >>confdefs.h <<_ACEOF15036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 115037 _ACEOF15038 15039 fi15040 done15041 15042 { $as_echo "$as_me:$LINENO: checking for av_write_trailer" >&515043 $as_echo_n "checking for av_write_trailer... " >&6; }15044 if test "${ac_cv_func_av_write_trailer+set}" = set; then15045 $as_echo_n "(cached) " >&615046 else15047 cat >conftest.$ac_ext <<_ACEOF15048 /* confdefs.h. */15049 _ACEOF15050 cat confdefs.h >>conftest.$ac_ext15051 cat >>conftest.$ac_ext <<_ACEOF15052 /* end confdefs.h. */15053 /* Define av_write_trailer to an innocuous variant, in case <limits.h> declares av_write_trailer.15054 For example, HP-UX 11i <limits.h> declares gettimeofday. */15055 #define av_write_trailer innocuous_av_write_trailer15056 15057 /* System header to define __stub macros and hopefully few prototypes,15058 which can conflict with char av_write_trailer (); below.15059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15060 <limits.h> exists even on freestanding compilers. */15061 15062 #ifdef __STDC__15063 # include <limits.h>15064 #else15065 # include <assert.h>15066 #endif15067 15068 #undef av_write_trailer15069 15070 /* Override any GCC internal prototype to avoid an error.15071 Use char because int might match the return type of a GCC15072 builtin and then its argument prototype would still apply. */15073 #ifdef __cplusplus15074 extern "C"15075 #endif15076 char av_write_trailer ();15077 /* The GNU C library defines this for functions which it implements15078 to always fail with ENOSYS. Some functions are actually named15079 something starting with __ and the normal name is an alias. */15080 #if defined __stub_av_write_trailer || defined __stub___av_write_trailer15081 choke me15082 #endif15083 15084 int15085 main ()15086 {15087 return av_write_trailer ();15088 ;15089 return 0;15090 }15091 _ACEOF15092 rm -f conftest.$ac_objext conftest$ac_exeext15093 if { (ac_try="$ac_link"15094 case "(($ac_try" in15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15096 *) ac_try_echo=$ac_try;;15097 esac15098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15099 $as_echo "$ac_try_echo") >&515100 (eval "$ac_link") 2>conftest.er115101 ac_status=$?15102 grep -v '^ *+' conftest.er1 >conftest.err15103 rm -f conftest.er115104 cat conftest.err >&515105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515106 (exit $ac_status); } && {15107 test -z "$ac_cxx_werror_flag" ||15108 test ! -s conftest.err15109 } && test -s conftest$ac_exeext && {15110 test "$cross_compiling" = yes ||15111 $as_test_x conftest$ac_exeext15112 }; then15113 ac_cv_func_av_write_trailer=yes15114 else15115 $as_echo "$as_me: failed program was:" >&515116 sed 's/^/| /' conftest.$ac_ext >&515117 15118 ac_cv_func_av_write_trailer=no15119 fi15120 15121 rm -rf conftest.dSYM15122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15123 conftest$ac_exeext conftest.$ac_ext15124 fi15125 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_trailer" >&515126 $as_echo "$ac_cv_func_av_write_trailer" >&6; }15127 if test "x$ac_cv_func_av_write_trailer" = x""yes; then15128 :15129 else15130 { { $as_echo "$as_me:$LINENO: error: oops! no av_write_trailer?!?" >&515131 $as_echo "$as_me: error: oops! no av_write_trailer?!?" >&2;}15132 { (exit 1); exit 1; }; }15133 fi15134 15135 { $as_echo "$as_me:$LINENO: checking for av_freep" >&515136 $as_echo_n "checking for av_freep... " >&6; }15137 if test "${ac_cv_func_av_freep+set}" = set; then15138 $as_echo_n "(cached) " >&615139 else15140 cat >conftest.$ac_ext <<_ACEOF15141 /* confdefs.h. */15142 _ACEOF15143 cat confdefs.h >>conftest.$ac_ext15144 cat >>conftest.$ac_ext <<_ACEOF15145 /* end confdefs.h. */15146 /* Define av_freep to an innocuous variant, in case <limits.h> declares av_freep.15147 For example, HP-UX 11i <limits.h> declares gettimeofday. */15148 #define av_freep innocuous_av_freep15149 15150 /* System header to define __stub macros and hopefully few prototypes,15151 which can conflict with char av_freep (); below.15152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15153 <limits.h> exists even on freestanding compilers. */15154 15155 #ifdef __STDC__15156 # include <limits.h>15157 #else15158 # include <assert.h>15159 #endif15160 15161 #undef av_freep15162 15163 /* Override any GCC internal prototype to avoid an error.15164 Use char because int might match the return type of a GCC15165 builtin and then its argument prototype would still apply. */15166 #ifdef __cplusplus15167 extern "C"15168 #endif15169 char av_freep ();15170 /* The GNU C library defines this for functions which it implements15171 to always fail with ENOSYS. Some functions are actually named15172 something starting with __ and the normal name is an alias. */15173 #if defined __stub_av_freep || defined __stub___av_freep15174 choke me15175 #endif15176 15177 int15178 main ()15179 {15180 return av_freep ();15181 ;15182 return 0;15183 }15184 _ACEOF15185 rm -f conftest.$ac_objext conftest$ac_exeext15186 if { (ac_try="$ac_link"15187 case "(($ac_try" in15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15189 *) ac_try_echo=$ac_try;;15190 esac15191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15192 $as_echo "$ac_try_echo") >&515193 (eval "$ac_link") 2>conftest.er115194 ac_status=$?15195 grep -v '^ *+' conftest.er1 >conftest.err15196 rm -f conftest.er115197 cat conftest.err >&515198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515199 (exit $ac_status); } && {15200 test -z "$ac_cxx_werror_flag" ||15201 test ! -s conftest.err15202 } && test -s conftest$ac_exeext && {15203 test "$cross_compiling" = yes ||15204 $as_test_x conftest$ac_exeext15205 }; then15206 ac_cv_func_av_freep=yes15207 else15208 $as_echo "$as_me: failed program was:" >&515209 sed 's/^/| /' conftest.$ac_ext >&515210 15211 ac_cv_func_av_freep=no15212 fi15213 15214 rm -rf conftest.dSYM15215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15216 conftest$ac_exeext conftest.$ac_ext15217 fi15218 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_freep" >&515219 $as_echo "$ac_cv_func_av_freep" >&6; }15220 if test "x$ac_cv_func_av_freep" = x""yes; then15221 :15222 else15223 { { $as_echo "$as_me:$LINENO: error: oops! no av_freep ?!?" >&515224 $as_echo "$as_me: error: oops! no av_freep ?!?" >&2;}15225 { (exit 1); exit 1; }; }15226 fi15227 15228 { $as_echo "$as_me:$LINENO: checking for av_free" >&515229 $as_echo_n "checking for av_free... " >&6; }15230 if test "${ac_cv_func_av_free+set}" = set; then15231 $as_echo_n "(cached) " >&615232 else15233 cat >conftest.$ac_ext <<_ACEOF15234 /* confdefs.h. */15235 _ACEOF15236 cat confdefs.h >>conftest.$ac_ext15237 cat >>conftest.$ac_ext <<_ACEOF15238 /* end confdefs.h. */15239 /* Define av_free to an innocuous variant, in case <limits.h> declares av_free.15240 For example, HP-UX 11i <limits.h> declares gettimeofday. */15241 #define av_free innocuous_av_free15242 15243 /* System header to define __stub macros and hopefully few prototypes,15244 which can conflict with char av_free (); below.15245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15246 <limits.h> exists even on freestanding compilers. */15247 15248 #ifdef __STDC__15249 # include <limits.h>15250 #else15251 # include <assert.h>15252 #endif15253 15254 #undef av_free15255 15256 /* Override any GCC internal prototype to avoid an error.15257 Use char because int might match the return type of a GCC15258 builtin and then its argument prototype would still apply. */15259 #ifdef __cplusplus15260 extern "C"15261 #endif15262 char av_free ();15263 /* The GNU C library defines this for functions which it implements15264 to always fail with ENOSYS. Some functions are actually named15265 something starting with __ and the normal name is an alias. */15266 #if defined __stub_av_free || defined __stub___av_free15267 choke me15268 #endif15269 15270 int15271 main ()15272 {15273 return av_free ();15274 ;15275 return 0;15276 }15277 _ACEOF15278 rm -f conftest.$ac_objext conftest$ac_exeext15279 if { (ac_try="$ac_link"15280 case "(($ac_try" in15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15282 *) ac_try_echo=$ac_try;;15283 esac15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15285 $as_echo "$ac_try_echo") >&515286 (eval "$ac_link") 2>conftest.er115287 ac_status=$?15288 grep -v '^ *+' conftest.er1 >conftest.err15289 rm -f conftest.er115290 cat conftest.err >&515291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515292 (exit $ac_status); } && {15293 test -z "$ac_cxx_werror_flag" ||15294 test ! -s conftest.err15295 } && test -s conftest$ac_exeext && {15296 test "$cross_compiling" = yes ||15297 $as_test_x conftest$ac_exeext15298 }; then15299 ac_cv_func_av_free=yes15300 else15301 $as_echo "$as_me: failed program was:" >&515302 sed 's/^/| /' conftest.$ac_ext >&515303 15304 ac_cv_func_av_free=no15305 fi15306 15307 rm -rf conftest.dSYM15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15309 conftest$ac_exeext conftest.$ac_ext15310 fi15311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_free" >&515312 $as_echo "$ac_cv_func_av_free" >&6; }15313 if test "x$ac_cv_func_av_free" = x""yes; then15314 :15315 else15316 { { $as_echo "$as_me:$LINENO: error: oops! no av_free ?!?" >&515317 $as_echo "$as_me: error: oops! no av_free ?!?" >&2;}15318 { (exit 1); exit 1; }; }15319 fi15320 15321 { $as_echo "$as_me:$LINENO: checking for av_new_stream" >&515322 $as_echo_n "checking for av_new_stream... " >&6; }15323 if test "${ac_cv_func_av_new_stream+set}" = set; then15324 $as_echo_n "(cached) " >&615325 else15326 cat >conftest.$ac_ext <<_ACEOF15327 /* confdefs.h. */15328 _ACEOF15329 cat confdefs.h >>conftest.$ac_ext15330 cat >>conftest.$ac_ext <<_ACEOF15331 /* end confdefs.h. */15332 /* Define av_new_stream to an innocuous variant, in case <limits.h> declares av_new_stream.15333 For example, HP-UX 11i <limits.h> declares gettimeofday. */15334 #define av_new_stream innocuous_av_new_stream15335 15336 /* System header to define __stub macros and hopefully few prototypes,15337 which can conflict with char av_new_stream (); below.15338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15339 <limits.h> exists even on freestanding compilers. */15340 15341 #ifdef __STDC__15342 # include <limits.h>15343 #else15344 # include <assert.h>15345 #endif15346 15347 #undef av_new_stream15348 15349 /* Override any GCC internal prototype to avoid an error.15350 Use char because int might match the return type of a GCC15351 builtin and then its argument prototype would still apply. */15352 #ifdef __cplusplus15353 extern "C"15354 #endif15355 char av_new_stream ();15356 /* The GNU C library defines this for functions which it implements15357 to always fail with ENOSYS. Some functions are actually named15358 something starting with __ and the normal name is an alias. */15359 #if defined __stub_av_new_stream || defined __stub___av_new_stream15360 choke me15361 #endif15362 15363 int15364 main ()15365 {15366 return av_new_stream ();15367 ;15368 return 0;15369 }15370 _ACEOF15371 rm -f conftest.$ac_objext conftest$ac_exeext15372 if { (ac_try="$ac_link"15373 case "(($ac_try" in15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15375 *) ac_try_echo=$ac_try;;15376 esac15377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15378 $as_echo "$ac_try_echo") >&515379 (eval "$ac_link") 2>conftest.er115380 ac_status=$?15381 grep -v '^ *+' conftest.er1 >conftest.err15382 rm -f conftest.er115383 cat conftest.err >&515384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515385 (exit $ac_status); } && {15386 test -z "$ac_cxx_werror_flag" ||15387 test ! -s conftest.err15388 } && test -s conftest$ac_exeext && {15389 test "$cross_compiling" = yes ||15390 $as_test_x conftest$ac_exeext15391 }; then15392 ac_cv_func_av_new_stream=yes15393 else15394 $as_echo "$as_me: failed program was:" >&515395 sed 's/^/| /' conftest.$ac_ext >&515396 15397 ac_cv_func_av_new_stream=no15398 fi15399 15400 rm -rf conftest.dSYM15401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15402 conftest$ac_exeext conftest.$ac_ext15403 fi15404 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_new_stream" >&515405 $as_echo "$ac_cv_func_av_new_stream" >&6; }15406 if test "x$ac_cv_func_av_new_stream" = x""yes; then15407 :15408 else15409 { { $as_echo "$as_me:$LINENO: error: oops! av_new_stream ?!?" >&515410 $as_echo "$as_me: error: oops! av_new_stream ?!?" >&2;}15411 { (exit 1); exit 1; }; }15412 fi15413 15414 { $as_echo "$as_me:$LINENO: checking for av_malloc" >&515415 $as_echo_n "checking for av_malloc... " >&6; }15416 if test "${ac_cv_func_av_malloc+set}" = set; then15417 $as_echo_n "(cached) " >&615418 else15419 cat >conftest.$ac_ext <<_ACEOF15420 /* confdefs.h. */15421 _ACEOF15422 cat confdefs.h >>conftest.$ac_ext15423 cat >>conftest.$ac_ext <<_ACEOF15424 /* end confdefs.h. */15425 /* Define av_malloc to an innocuous variant, in case <limits.h> declares av_malloc.15426 For example, HP-UX 11i <limits.h> declares gettimeofday. */15427 #define av_malloc innocuous_av_malloc15428 15429 /* System header to define __stub macros and hopefully few prototypes,15430 which can conflict with char av_malloc (); below.15431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15432 <limits.h> exists even on freestanding compilers. */15433 15434 #ifdef __STDC__15435 # include <limits.h>15436 #else15437 # include <assert.h>15438 #endif15439 15440 #undef av_malloc15441 15442 /* Override any GCC internal prototype to avoid an error.15443 Use char because int might match the return type of a GCC15444 builtin and then its argument prototype would still apply. */15445 #ifdef __cplusplus15446 extern "C"15447 #endif15448 char av_malloc ();15449 /* The GNU C library defines this for functions which it implements15450 to always fail with ENOSYS. Some functions are actually named15451 something starting with __ and the normal name is an alias. */15452 #if defined __stub_av_malloc || defined __stub___av_malloc15453 choke me15454 #endif15455 15456 int15457 main ()15458 {15459 return av_malloc ();15460 ;15461 return 0;15462 }15463 _ACEOF15464 rm -f conftest.$ac_objext conftest$ac_exeext15465 if { (ac_try="$ac_link"15466 case "(($ac_try" in15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15468 *) ac_try_echo=$ac_try;;15469 esac15470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15471 $as_echo "$ac_try_echo") >&515472 (eval "$ac_link") 2>conftest.er115473 ac_status=$?15474 grep -v '^ *+' conftest.er1 >conftest.err15475 rm -f conftest.er115476 cat conftest.err >&515477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515478 (exit $ac_status); } && {15479 test -z "$ac_cxx_werror_flag" ||15480 test ! -s conftest.err15481 } && test -s conftest$ac_exeext && {15482 test "$cross_compiling" = yes ||15483 $as_test_x conftest$ac_exeext15484 }; then15485 ac_cv_func_av_malloc=yes15486 else15487 $as_echo "$as_me: failed program was:" >&515488 sed 's/^/| /' conftest.$ac_ext >&515489 15490 ac_cv_func_av_malloc=no15491 fi15492 15493 rm -rf conftest.dSYM15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15495 conftest$ac_exeext conftest.$ac_ext15496 fi15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_malloc" >&515498 $as_echo "$ac_cv_func_av_malloc" >&6; }15499 if test "x$ac_cv_func_av_malloc" = x""yes; then15500 :15501 else15502 { { $as_echo "$as_me:$LINENO: error: oops! no av_malloc ?!?" >&515503 $as_echo "$as_me: error: oops! no av_malloc ?!?" >&2;}15504 { (exit 1); exit 1; }; }15505 fi15506 15507 { $as_echo "$as_me:$LINENO: checking for av_init_packet" >&515508 $as_echo_n "checking for av_init_packet... " >&6; }15509 if test "${ac_cv_func_av_init_packet+set}" = set; then15510 $as_echo_n "(cached) " >&615511 else15512 cat >conftest.$ac_ext <<_ACEOF15513 /* confdefs.h. */15514 _ACEOF15515 cat confdefs.h >>conftest.$ac_ext15516 cat >>conftest.$ac_ext <<_ACEOF15517 /* end confdefs.h. */15518 /* Define av_init_packet to an innocuous variant, in case <limits.h> declares av_init_packet.15519 For example, HP-UX 11i <limits.h> declares gettimeofday. */15520 #define av_init_packet innocuous_av_init_packet15521 15522 /* System header to define __stub macros and hopefully few prototypes,15523 which can conflict with char av_init_packet (); below.15524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15525 <limits.h> exists even on freestanding compilers. */15526 15527 #ifdef __STDC__15528 # include <limits.h>15529 #else15530 # include <assert.h>15531 #endif15532 15533 #undef av_init_packet15534 15535 /* Override any GCC internal prototype to avoid an error.15536 Use char because int might match the return type of a GCC15537 builtin and then its argument prototype would still apply. */15538 #ifdef __cplusplus15539 extern "C"15540 #endif15541 char av_init_packet ();15542 /* The GNU C library defines this for functions which it implements15543 to always fail with ENOSYS. Some functions are actually named15544 something starting with __ and the normal name is an alias. */15545 #if defined __stub_av_init_packet || defined __stub___av_init_packet15546 choke me15547 #endif15548 15549 int15550 main ()15551 {15552 return av_init_packet ();15553 ;15554 return 0;15555 }15556 _ACEOF15557 rm -f conftest.$ac_objext conftest$ac_exeext15558 if { (ac_try="$ac_link"15559 case "(($ac_try" in15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15561 *) ac_try_echo=$ac_try;;15562 esac15563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15564 $as_echo "$ac_try_echo") >&515565 (eval "$ac_link") 2>conftest.er115566 ac_status=$?15567 grep -v '^ *+' conftest.er1 >conftest.err15568 rm -f conftest.er115569 cat conftest.err >&515570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515571 (exit $ac_status); } && {15572 test -z "$ac_cxx_werror_flag" ||15573 test ! -s conftest.err15574 } && test -s conftest$ac_exeext && {15575 test "$cross_compiling" = yes ||15576 $as_test_x conftest$ac_exeext15577 }; then15578 ac_cv_func_av_init_packet=yes15579 else15580 $as_echo "$as_me: failed program was:" >&515581 sed 's/^/| /' conftest.$ac_ext >&515582 15583 ac_cv_func_av_init_packet=no15584 fi15585 15586 rm -rf conftest.dSYM15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15588 conftest$ac_exeext conftest.$ac_ext15589 fi15590 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_init_packet" >&515591 $as_echo "$ac_cv_func_av_init_packet" >&6; }15592 if test "x$ac_cv_func_av_init_packet" = x""yes; then15593 :15594 else15595 { { $as_echo "$as_me:$LINENO: error: oops! no av_init_packet ?!?" >&515596 $as_echo "$as_me: error: oops! no av_init_packet ?!?" >&2;}15597 { (exit 1); exit 1; }; }15598 fi15599 15600 { $as_echo "$as_me:$LINENO: checking for av_rescale_q" >&515601 $as_echo_n "checking for av_rescale_q... " >&6; }15602 if test "${ac_cv_func_av_rescale_q+set}" = set; then15603 $as_echo_n "(cached) " >&615604 else15605 cat >conftest.$ac_ext <<_ACEOF15606 /* confdefs.h. */15607 _ACEOF15608 cat confdefs.h >>conftest.$ac_ext15609 cat >>conftest.$ac_ext <<_ACEOF15610 /* end confdefs.h. */15611 /* Define av_rescale_q to an innocuous variant, in case <limits.h> declares av_rescale_q.15612 For example, HP-UX 11i <limits.h> declares gettimeofday. */15613 #define av_rescale_q innocuous_av_rescale_q15614 15615 /* System header to define __stub macros and hopefully few prototypes,15616 which can conflict with char av_rescale_q (); below.15617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15618 <limits.h> exists even on freestanding compilers. */15619 15620 #ifdef __STDC__15621 # include <limits.h>15622 #else15623 # include <assert.h>15624 #endif15625 15626 #undef av_rescale_q15627 15628 /* Override any GCC internal prototype to avoid an error.15629 Use char because int might match the return type of a GCC15630 builtin and then its argument prototype would still apply. */15631 #ifdef __cplusplus15632 extern "C"15633 #endif15634 char av_rescale_q ();15635 /* The GNU C library defines this for functions which it implements15636 to always fail with ENOSYS. Some functions are actually named15637 something starting with __ and the normal name is an alias. */15638 #if defined __stub_av_rescale_q || defined __stub___av_rescale_q15639 choke me15640 #endif15641 15642 int15643 main ()15644 {15645 return av_rescale_q ();15646 ;15647 return 0;15648 }15649 _ACEOF15650 rm -f conftest.$ac_objext conftest$ac_exeext15651 if { (ac_try="$ac_link"15652 case "(($ac_try" in15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15654 *) ac_try_echo=$ac_try;;15655 esac15656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15657 $as_echo "$ac_try_echo") >&515658 (eval "$ac_link") 2>conftest.er115659 ac_status=$?15660 grep -v '^ *+' conftest.er1 >conftest.err15661 rm -f conftest.er115662 cat conftest.err >&515663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515664 (exit $ac_status); } && {15665 test -z "$ac_cxx_werror_flag" ||15666 test ! -s conftest.err15667 } && test -s conftest$ac_exeext && {15668 test "$cross_compiling" = yes ||15669 $as_test_x conftest$ac_exeext15670 }; then15671 ac_cv_func_av_rescale_q=yes15672 else15673 $as_echo "$as_me: failed program was:" >&515674 sed 's/^/| /' conftest.$ac_ext >&515675 15676 ac_cv_func_av_rescale_q=no15677 fi15678 15679 rm -rf conftest.dSYM15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15681 conftest$ac_exeext conftest.$ac_ext15682 fi15683 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_rescale_q" >&515684 $as_echo "$ac_cv_func_av_rescale_q" >&6; }15685 if test "x$ac_cv_func_av_rescale_q" = x""yes; then15686 :15687 else15688 { { $as_echo "$as_me:$LINENO: error: oops! no av_rescale_q ?!?" >&515689 $as_echo "$as_me: error: oops! no av_rescale_q ?!?" >&2;}15690 { (exit 1); exit 1; }; }15691 fi15692 15693 { $as_echo "$as_me:$LINENO: checking for av_write_frame" >&515694 $as_echo_n "checking for av_write_frame... " >&6; }15695 if test "${ac_cv_func_av_write_frame+set}" = set; then15696 $as_echo_n "(cached) " >&615697 else15698 cat >conftest.$ac_ext <<_ACEOF15699 /* confdefs.h. */15700 _ACEOF15701 cat confdefs.h >>conftest.$ac_ext15702 cat >>conftest.$ac_ext <<_ACEOF15703 /* end confdefs.h. */15704 /* Define av_write_frame to an innocuous variant, in case <limits.h> declares av_write_frame.15705 For example, HP-UX 11i <limits.h> declares gettimeofday. */15706 #define av_write_frame innocuous_av_write_frame15707 15708 /* System header to define __stub macros and hopefully few prototypes,15709 which can conflict with char av_write_frame (); below.15710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15711 <limits.h> exists even on freestanding compilers. */15712 15713 #ifdef __STDC__15714 # include <limits.h>15715 #else15716 # include <assert.h>15717 #endif15718 15719 #undef av_write_frame15720 15721 /* Override any GCC internal prototype to avoid an error.15722 Use char because int might match the return type of a GCC15723 builtin and then its argument prototype would still apply. */15724 #ifdef __cplusplus15725 extern "C"15726 #endif15727 char av_write_frame ();15728 /* The GNU C library defines this for functions which it implements15729 to always fail with ENOSYS. Some functions are actually named15730 something starting with __ and the normal name is an alias. */15731 #if defined __stub_av_write_frame || defined __stub___av_write_frame15732 choke me15733 #endif15734 15735 int15736 main ()15737 {15738 return av_write_frame ();15739 ;15740 return 0;15741 }15742 _ACEOF15743 rm -f conftest.$ac_objext conftest$ac_exeext15744 if { (ac_try="$ac_link"15745 case "(($ac_try" in15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15747 *) ac_try_echo=$ac_try;;15748 esac15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15750 $as_echo "$ac_try_echo") >&515751 (eval "$ac_link") 2>conftest.er115752 ac_status=$?15753 grep -v '^ *+' conftest.er1 >conftest.err15754 rm -f conftest.er115755 cat conftest.err >&515756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515757 (exit $ac_status); } && {15758 test -z "$ac_cxx_werror_flag" ||15759 test ! -s conftest.err15760 } && test -s conftest$ac_exeext && {15761 test "$cross_compiling" = yes ||15762 $as_test_x conftest$ac_exeext15763 }; then15764 ac_cv_func_av_write_frame=yes15765 else15766 $as_echo "$as_me: failed program was:" >&515767 sed 's/^/| /' conftest.$ac_ext >&515768 15769 ac_cv_func_av_write_frame=no15770 fi15771 15772 rm -rf conftest.dSYM15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15774 conftest$ac_exeext conftest.$ac_ext15775 fi15776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_frame" >&515777 $as_echo "$ac_cv_func_av_write_frame" >&6; }15778 if test "x$ac_cv_func_av_write_frame" = x""yes; then15779 :15780 else15781 { { $as_echo "$as_me:$LINENO: error: oops! av_write_frame ?!?" >&515782 $as_echo "$as_me: error: oops! av_write_frame ?!?" >&2;}15783 { (exit 1); exit 1; }; }15784 fi15785 15786 15787 for ac_func in img_convert15788 do15789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`15790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&515791 $as_echo_n "checking for $ac_func... " >&6; }15792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then15793 $as_echo_n "(cached) " >&615794 else15795 cat >conftest.$ac_ext <<_ACEOF15796 /* confdefs.h. */15797 _ACEOF15798 cat confdefs.h >>conftest.$ac_ext15799 cat >>conftest.$ac_ext <<_ACEOF15800 /* end confdefs.h. */15801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.15802 For example, HP-UX 11i <limits.h> declares gettimeofday. */15803 #define $ac_func innocuous_$ac_func15804 15805 /* System header to define __stub macros and hopefully few prototypes,15806 which can conflict with char $ac_func (); below.15807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15808 <limits.h> exists even on freestanding compilers. */15809 15810 #ifdef __STDC__15811 # include <limits.h>15812 #else15813 # include <assert.h>15814 #endif15815 15816 #undef $ac_func15817 15818 /* Override any GCC internal prototype to avoid an error.15819 Use char because int might match the return type of a GCC15820 builtin and then its argument prototype would still apply. */15821 #ifdef __cplusplus15822 extern "C"15823 #endif15824 char $ac_func ();15825 /* The GNU C library defines this for functions which it implements15826 to always fail with ENOSYS. Some functions are actually named15827 something starting with __ and the normal name is an alias. */15828 #if defined __stub_$ac_func || defined __stub___$ac_func15829 choke me15830 #endif15831 15832 int15833 main ()15834 {15835 return $ac_func ();15836 ;15837 return 0;15838 }15839 _ACEOF15840 rm -f conftest.$ac_objext conftest$ac_exeext15841 if { (ac_try="$ac_link"15842 case "(($ac_try" in15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15844 *) ac_try_echo=$ac_try;;15845 esac15846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15847 $as_echo "$ac_try_echo") >&515848 (eval "$ac_link") 2>conftest.er115849 ac_status=$?15850 grep -v '^ *+' conftest.er1 >conftest.err15851 rm -f conftest.er115852 cat conftest.err >&515853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515854 (exit $ac_status); } && {15855 test -z "$ac_cxx_werror_flag" ||15856 test ! -s conftest.err15857 } && test -s conftest$ac_exeext && {15858 test "$cross_compiling" = yes ||15859 $as_test_x conftest$ac_exeext15860 }; then15861 eval "$as_ac_var=yes"15862 else15863 $as_echo "$as_me: failed program was:" >&515864 sed 's/^/| /' conftest.$ac_ext >&515865 15866 eval "$as_ac_var=no"15867 fi15868 15869 rm -rf conftest.dSYM15870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15871 conftest$ac_exeext conftest.$ac_ext15872 fi15873 ac_res=`eval 'as_val=${'$as_ac_var'}15874 $as_echo "$as_val"'`15875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&515876 $as_echo "$ac_res" >&6; }15877 as_val=`eval 'as_val=${'$as_ac_var'}15878 $as_echo "$as_val"'`15879 if test "x$as_val" = x""yes; then15880 cat >>confdefs.h <<_ACEOF15881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 115882 _ACEOF15883 15884 fi15885 done15886 15887 15888 for ac_func in sws_scale15889 do15890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`15891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&515892 $as_echo_n "checking for $ac_func... " >&6; }15893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then15894 $as_echo_n "(cached) " >&615895 else15896 cat >conftest.$ac_ext <<_ACEOF15897 /* confdefs.h. */15898 _ACEOF15899 cat confdefs.h >>conftest.$ac_ext15900 cat >>conftest.$ac_ext <<_ACEOF15901 /* end confdefs.h. */15902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.15903 For example, HP-UX 11i <limits.h> declares gettimeofday. */15904 #define $ac_func innocuous_$ac_func15905 15906 /* System header to define __stub macros and hopefully few prototypes,15907 which can conflict with char $ac_func (); below.15908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since15909 <limits.h> exists even on freestanding compilers. */15910 15911 #ifdef __STDC__15912 # include <limits.h>15913 #else15914 # include <assert.h>15915 #endif15916 15917 #undef $ac_func15918 15919 /* Override any GCC internal prototype to avoid an error.15920 Use char because int might match the return type of a GCC15921 builtin and then its argument prototype would still apply. */15922 #ifdef __cplusplus15923 extern "C"15924 #endif15925 char $ac_func ();15926 /* The GNU C library defines this for functions which it implements15927 to always fail with ENOSYS. Some functions are actually named15928 something starting with __ and the normal name is an alias. */15929 #if defined __stub_$ac_func || defined __stub___$ac_func15930 choke me15931 #endif15932 15933 int15934 main ()15935 {15936 return $ac_func ();15937 ;15938 return 0;15939 }15940 _ACEOF15941 rm -f conftest.$ac_objext conftest$ac_exeext15942 if { (ac_try="$ac_link"15943 case "(($ac_try" in15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;15945 *) ac_try_echo=$ac_try;;15946 esac15947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""15948 $as_echo "$ac_try_echo") >&515949 (eval "$ac_link") 2>conftest.er115950 ac_status=$?15951 grep -v '^ *+' conftest.er1 >conftest.err15952 rm -f conftest.er115953 cat conftest.err >&515954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&515955 (exit $ac_status); } && {15956 test -z "$ac_cxx_werror_flag" ||15957 test ! -s conftest.err15958 } && test -s conftest$ac_exeext && {15959 test "$cross_compiling" = yes ||15960 $as_test_x conftest$ac_exeext15961 }; then15962 eval "$as_ac_var=yes"15963 else15964 $as_echo "$as_me: failed program was:" >&515965 sed 's/^/| /' conftest.$ac_ext >&515966 15967 eval "$as_ac_var=no"15968 fi15969 15970 rm -rf conftest.dSYM15971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \15972 conftest$ac_exeext conftest.$ac_ext15973 fi15974 ac_res=`eval 'as_val=${'$as_ac_var'}15975 $as_echo "$as_val"'`15976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&515977 $as_echo "$ac_res" >&6; }15978 as_val=`eval 'as_val=${'$as_ac_var'}15979 $as_echo "$as_val"'`15980 if test "x$as_val" = x""yes; then15981 cat >>confdefs.h <<_ACEOF15982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 115983 _ACEOF15984 15985 fi15986 done15987 15988 cat >conftest.$ac_ext <<_ACEOF15989 /* confdefs.h. */15990 _ACEOF15991 cat confdefs.h >>conftest.$ac_ext15992 cat >>conftest.$ac_ext <<_ACEOF15993 /* end confdefs.h. */15994 15995 #define __STDC_CONSTANT_MACROS 115996 #include <stdlib.h>15997 #ifdef HAVE_FFMPEG_AVCODEC_H15998 # include <ffmpeg/avcodec.h>15999 #endif16000 #ifdef HAVE_LIBAVCODEC_AVCODEC_H16001 # include <libavcodec/avcodec.h>16002 #endif16003 int x = AVMEDIA_TYPE_VIDEO;16004 16005 int16006 main ()16007 {16008 16009 ;16010 return 0;16011 }16012 _ACEOF16013 rm -f conftest.$ac_objext16014 if { (ac_try="$ac_compile"16015 case "(($ac_try" in16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16017 *) ac_try_echo=$ac_try;;16018 esac16019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""16020 $as_echo "$ac_try_echo") >&516021 (eval "$ac_compile") 2>conftest.er116022 ac_status=$?16023 grep -v '^ *+' conftest.er1 >conftest.err16024 rm -f conftest.er116025 cat conftest.err >&516026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&516027 (exit $ac_status); } && {16028 test -z "$ac_cxx_werror_flag" ||16029 test ! -s conftest.err16030 } && test -s conftest.$ac_objext; then16031 ac_avmedia_type_video="yes"16032 else16033 $as_echo "$as_me: failed program was:" >&516034 sed 's/^/| /' conftest.$ac_ext >&516035 16036 ac_avmedia_type_video="no"16037 fi16038 16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16040 if test "$ac_avmedia_type_video" == "yes" ; then16041 16042 cat >>confdefs.h <<\_ACEOF16043 #define HAVE_AVMEDIA_TYPE_VIDEO 116044 _ACEOF16045 16046 fi16047 16048 16049 { $as_echo "$as_me:$LINENO: checking for avcodec_alloc_frame in -lavcodec" >&516050 $as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; }16051 if test "${ac_cv_lib_avcodec_avcodec_alloc_frame+set}" = set; then16052 $as_echo_n "(cached) " >&616053 else16054 ac_check_lib_save_LIBS=$LIBS16055 LIBS="-lavcodec $LIBS"16056 cat >conftest.$ac_ext <<_ACEOF16057 /* confdefs.h. */16058 _ACEOF16059 cat confdefs.h >>conftest.$ac_ext16060 cat >>conftest.$ac_ext <<_ACEOF16061 /* end confdefs.h. */16062 16063 /* Override any GCC internal prototype to avoid an error.16064 Use char because int might match the return type of a GCC16065 builtin and then its argument prototype would still apply. */16066 #ifdef __cplusplus16067 extern "C"16068 #endif16069 char avcodec_alloc_frame ();16070 int16071 main ()16072 {16073 return avcodec_alloc_frame ();16074 ;16075 return 0;16076 }16077 _ACEOF16078 rm -f conftest.$ac_objext conftest$ac_exeext16079 if { (ac_try="$ac_link"16080 case "(($ac_try" in16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16082 *) ac_try_echo=$ac_try;;16083 esac16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""16085 $as_echo "$ac_try_echo") >&516086 (eval "$ac_link") 2>conftest.er116087 ac_status=$?16088 grep -v '^ *+' conftest.er1 >conftest.err16089 rm -f conftest.er116090 cat conftest.err >&516091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&516092 (exit $ac_status); } && {16093 test -z "$ac_cxx_werror_flag" ||16094 test ! -s conftest.err16095 } && test -s conftest$ac_exeext && {16096 test "$cross_compiling" = yes ||16097 $as_test_x conftest$ac_exeext16098 }; then16099 ac_cv_lib_avcodec_avcodec_alloc_frame=yes16100 else16101 $as_echo "$as_me: failed program was:" >&516102 sed 's/^/| /' conftest.$ac_ext >&516103 16104 ac_cv_lib_avcodec_avcodec_alloc_frame=no16105 fi16106 16107 rm -rf conftest.dSYM16108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \16109 conftest$ac_exeext conftest.$ac_ext16110 LIBS=$ac_check_lib_save_LIBS16111 fi16112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&516113 $as_echo "$ac_cv_lib_avcodec_avcodec_alloc_frame" >&6; }16114 if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = x""yes; then16115 cat >>confdefs.h <<_ACEOF16116 #define HAVE_LIBAVCODEC 116117 _ACEOF16118 16119 LIBS="-lavcodec $LIBS"16120 16121 fi16122 16123 # Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found16124 16125 { $as_echo "$as_me:$LINENO: checking for avformat_alloc_context in -lavformat" >&516126 $as_echo_n "checking for avformat_alloc_context in -lavformat... " >&6; }16127 if test "${ac_cv_lib_avformat_avformat_alloc_context+set}" = set; then16128 $as_echo_n "(cached) " >&616129 else16130 ac_check_lib_save_LIBS=$LIBS16131 LIBS="-lavformat $LIBS"16132 cat >conftest.$ac_ext <<_ACEOF16133 /* confdefs.h. */16134 _ACEOF16135 cat confdefs.h >>conftest.$ac_ext16136 cat >>conftest.$ac_ext <<_ACEOF16137 /* end confdefs.h. */16138 16139 /* Override any GCC internal prototype to avoid an error.16140 Use char because int might match the return type of a GCC16141 builtin and then its argument prototype would still apply. */16142 #ifdef __cplusplus16143 extern "C"16144 #endif16145 char avformat_alloc_context ();16146 int16147 main ()16148 {16149 return avformat_alloc_context ();16150 ;16151 return 0;16152 }16153 _ACEOF16154 rm -f conftest.$ac_objext conftest$ac_exeext16155 if { (ac_try="$ac_link"16156 case "(($ac_try" in16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16158 *) ac_try_echo=$ac_try;;16159 esac16160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""16161 $as_echo "$ac_try_echo") >&516162 (eval "$ac_link") 2>conftest.er116163 ac_status=$?16164 grep -v '^ *+' conftest.er1 >conftest.err16165 rm -f conftest.er116166 cat conftest.err >&516167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&516168 (exit $ac_status); } && {16169 test -z "$ac_cxx_werror_flag" ||16170 test ! -s conftest.err16171 } && test -s conftest$ac_exeext && {16172 test "$cross_compiling" = yes ||16173 $as_test_x conftest$ac_exeext16174 }; then16175 ac_cv_lib_avformat_avformat_alloc_context=yes16176 else16177 $as_echo "$as_me: failed program was:" >&516178 sed 's/^/| /' conftest.$ac_ext >&516179 16180 ac_cv_lib_avformat_avformat_alloc_context=no16181 fi16182 16183 rm -rf conftest.dSYM16184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \16185 conftest$ac_exeext conftest.$ac_ext16186 LIBS=$ac_check_lib_save_LIBS16187 fi16188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avformat_alloc_context" >&516189 $as_echo "$ac_cv_lib_avformat_avformat_alloc_context" >&6; }16190 if test "x$ac_cv_lib_avformat_avformat_alloc_context" = x""yes; then16191 cat >>confdefs.h <<_ACEOF16192 #define HAVE_LIBAVFORMAT 116193 _ACEOF16194 16195 LIBS="-lavformat $LIBS"16196 16197 else16198 16199 { $as_echo "$as_me:$LINENO: checking for av_alloc_format_context in -lavformat" >&516200 $as_echo_n "checking for av_alloc_format_context in -lavformat... " >&6; }16201 if test "${ac_cv_lib_avformat_av_alloc_format_context+set}" = set; then16202 $as_echo_n "(cached) " >&616203 else16204 ac_check_lib_save_LIBS=$LIBS16205 LIBS="-lavformat $LIBS"16206 cat >conftest.$ac_ext <<_ACEOF16207 /* confdefs.h. */16208 _ACEOF16209 cat confdefs.h >>conftest.$ac_ext16210 cat >>conftest.$ac_ext <<_ACEOF16211 /* end confdefs.h. */16212 16213 /* Override any GCC internal prototype to avoid an error.16214 Use char because int might match the return type of a GCC16215 builtin and then its argument prototype would still apply. */16216 #ifdef __cplusplus16217 extern "C"16218 #endif16219 char av_alloc_format_context ();16220 int16221 main ()16222 {16223 return av_alloc_format_context ();16224 ;16225 return 0;16226 }16227 _ACEOF16228 rm -f conftest.$ac_objext conftest$ac_exeext16229 if { (ac_try="$ac_link"16230 case "(($ac_try" in16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16232 *) ac_try_echo=$ac_try;;16233 esac16234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""16235 $as_echo "$ac_try_echo") >&516236 (eval "$ac_link") 2>conftest.er116237 ac_status=$?16238 grep -v '^ *+' conftest.er1 >conftest.err16239 rm -f conftest.er116240 cat conftest.err >&516241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&516242 (exit $ac_status); } && {16243 test -z "$ac_cxx_werror_flag" ||16244 test ! -s conftest.err16245 } && test -s conftest$ac_exeext && {16246 test "$cross_compiling" = yes ||16247 $as_test_x conftest$ac_exeext16248 }; then16249 ac_cv_lib_avformat_av_alloc_format_context=yes16250 else16251 $as_echo "$as_me: failed program was:" >&516252 sed 's/^/| /' conftest.$ac_ext >&516253 16254 ac_cv_lib_avformat_av_alloc_format_context=no16255 fi16256 16257 rm -rf conftest.dSYM16258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \16259 conftest$ac_exeext conftest.$ac_ext16260 LIBS=$ac_check_lib_save_LIBS16261 fi16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_alloc_format_context" >&516263 $as_echo "$ac_cv_lib_avformat_av_alloc_format_context" >&6; }16264 if test "x$ac_cv_lib_avformat_av_alloc_format_context" = x""yes; then16265 cat >>confdefs.h <<_ACEOF16266 #define HAVE_LIBAVFORMAT 116267 _ACEOF16268 16269 LIBS="-lavformat $LIBS"16270 16271 else16272 { $as_echo "$as_me:$LINENO: WARNING: libavformat not usable" >&516273 $as_echo "$as_me: WARNING: libavformat not usable" >&2;}16274 fi16275 16276 fi16277 16278 16279 16280 { $as_echo "$as_me:$LINENO: checking for nVidia Cg installation" >&516281 $as_echo_n "checking for nVidia Cg installation... " >&6; }16282 CG_DIR=""16283 for dir in \16284 /opt/nvidia-cg-toolkit \16285 /usr/cg \16286 /usr16287 do16288 if test -r "$dir/include" ; then16289 CG_DIR=$dir16290 break16291 fi16292 done16293 { $as_echo "$as_me:$LINENO: result: ${CG_DIR}" >&516294 $as_echo "${CG_DIR}" >&6; }16295 16296 CG_INC_SPEC="-I${CG_DIR}/include"16297 CG_LIB_DIR="${CG_DIR}/lib"16298 16299 save_CPPFLAGS=$CPPFLAGS16300 CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS"16301 16302 for ac_header in Cg/cgGL.h16303 do16304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`16305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then16306 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&516307 $as_echo_n "checking for $ac_header... " >&6; }16308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then16309 $as_echo_n "(cached) " >&616310 fi16311 ac_res=`eval 'as_val=${'$as_ac_Header'}16312 $as_echo "$as_val"'`16313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&516314 $as_echo "$ac_res" >&6; }16315 else16316 # Is the header compilable?16317 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&516318 $as_echo_n "checking $ac_header usability... " >&6; }16319 cat >conftest.$ac_ext <<_ACEOF16320 /* confdefs.h. */16321 _ACEOF16322 cat confdefs.h >>conftest.$ac_ext16323 cat >>conftest.$ac_ext <<_ACEOF16324 /* end confdefs.h. */16325 $ac_includes_default16326 #include <$ac_header>16327 _ACEOF16328 rm -f conftest.$ac_objext16329 if { (ac_try="$ac_compile"16330 case "(($ac_try" in16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16332 *) ac_try_echo=$ac_try;;16333 esac16334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""16335 $as_echo "$ac_try_echo") >&516336 (eval "$ac_compile") 2>conftest.er116337 ac_status=$?16338 grep -v '^ *+' conftest.er1 >conftest.err16339 rm -f conftest.er116340 cat conftest.err >&516341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&516342 (exit $ac_status); } && {16343 test -z "$ac_cxx_werror_flag" ||16344 test ! -s conftest.err16345 } && test -s conftest.$ac_objext; then16346 ac_header_compiler=yes16347 else16348 $as_echo "$as_me: failed program was:" >&516349 sed 's/^/| /' conftest.$ac_ext >&516350 16351 ac_header_compiler=no16352 fi16353 16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16355 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&516356 $as_echo "$ac_header_compiler" >&6; }16357 16358 # Is the header present?16359 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&516360 $as_echo_n "checking $ac_header presence... " >&6; }16361 cat >conftest.$ac_ext <<_ACEOF16362 /* confdefs.h. */16363 _ACEOF16364 cat confdefs.h >>conftest.$ac_ext16365 cat >>conftest.$ac_ext <<_ACEOF16366 /* end confdefs.h. */16367 #include <$ac_header>16368 _ACEOF16369 if { (ac_try="$ac_cpp conftest.$ac_ext"16370 case "(($ac_try" in16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16372 *) ac_try_echo=$ac_try;;16373 esac16374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""16375 $as_echo "$ac_try_echo") >&516376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er116377 ac_status=$?16378 grep -v '^ *+' conftest.er1 >conftest.err16379 rm -f conftest.er116380 cat conftest.err >&516381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&516382 (exit $ac_status); } >/dev/null && {16383 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||16384 test ! -s conftest.err16385 }; then16386 ac_header_preproc=yes16387 else16388 $as_echo "$as_me: failed program was:" >&516389 sed 's/^/| /' conftest.$ac_ext >&516390 16391 ac_header_preproc=no16392 fi16393 16394 rm -f conftest.err conftest.$ac_ext16395 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&516396 $as_echo "$ac_header_preproc" >&6; }16397 16398 # So? What about this header?16399 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in16400 yes:no: )16401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&516402 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}16403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&516404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}16405 ac_header_preproc=yes16406 ;;16407 no:yes:* )16408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&516409 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}16410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&516411 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}16412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&516413 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}16414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&516415 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}16416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&516417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}16418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&516419 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}16420 ( cat <<\_ASBOX16421 ## ----------------------------------- ##16422 ## Report this to rappture@nanohub.org ##16423 ## ----------------------------------- ##16424 _ASBOX16425 ) | sed "s/^/$as_me: WARNING: /" >&216426 ;;16427 esac16428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&516429 $as_echo_n "checking for $ac_header... " >&6; }16430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then16431 $as_echo_n "(cached) " >&616432 else16433 eval "$as_ac_Header=\$ac_header_preproc"16434 fi16435 ac_res=`eval 'as_val=${'$as_ac_Header'}16436 $as_echo "$as_val"'`16437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&516438 $as_echo "$ac_res" >&6; }16439 16440 fi16441 as_val=`eval 'as_val=${'$as_ac_Header'}16442 $as_echo "$as_val"'`16443 if test "x$as_val" = x""yes; then16444 cat >>confdefs.h <<_ACEOF16445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 116446 _ACEOF16447 16448 16220 else 16449 16221 { $as_echo "$as_me:$LINENO: WARNING: cannot find nVidia Cg headers" >&5 … … 16495 16267 16496 16268 16497 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrutil/Makefile nanovis/vrmath/Makefile nanovis/ vr3d/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"16269 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrutil/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh" 16498 16270 16499 16271 cat >confcache <<\_ACEOF … … 17103 16875 "nanovis/vrutil/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrutil/Makefile" ;; 17104 16876 "nanovis/vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrmath/Makefile" ;; 17105 "nanovis/vr3d/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vr3d/Makefile" ;;17106 16877 "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;; 17107 16878 "nanovis/transfer-function/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/transfer-function/Makefile" ;; -
trunk/packages/vizservers/configure.in
r2829 r2857 263 263 fi 264 264 AC_MSG_RESULT([$DX_LIB_SPEC]) 265 266 AC_CHECK_HEADERS([opencv/cv.h opencv/highgui.h])267 AC_CHECK_LIB([highgui], [cvLoadImage])268 265 269 266 save_CPPFLAGS=$CPPFLAGS … … 404 401 nanovis/vrutil/Makefile \ 405 402 nanovis/vrmath/Makefile \ 406 nanovis/vr3d/Makefile \407 403 nanovis/imgLoaders/Makefile \ 408 404 nanovis/transfer-function/Makefile \ -
trunk/packages/vizservers/nanovis/Color.h
r2844 r2857 34 34 void getRGB(float *result); 35 35 36 double r() const 37 { 38 return _r; 39 } 40 41 double g() const 42 { 43 return _g; 44 } 45 46 double b() const 47 { 48 return _b; 49 } 50 36 51 /// Limits the color to be in range of [0,1] 37 52 void clamp(); -
trunk/packages/vizservers/nanovis/Makefile.in
r2846 r2857 48 48 VRUTIL_LIB = $(VRUTIL_DIR)/vrutil.a 49 49 VRUTIL_LIB_SPEC = $(VRUTIL_LIB) 50 VR3D_DIR = ./vr3d51 VR3D_INC_SPEC = -I$(srcdir)/$(VR3D_DIR)/include52 VR3D_LIB = $(VR3D_DIR)/vr3d.a53 VR3D_LIB_SPEC = $(VR3D_LIB)54 50 R2_DIR = ./R2 55 51 R2_INC_SPEC = -I$(srcdir)/$(R2_DIR)/include … … 74 70 $(VRMATH_LIB_SPEC) \ 75 71 $(VRUTIL_LIB_SPEC) \ 76 $(VR3D_LIB_SPEC) \77 72 $(TCL_LIB_SPEC) \ 78 73 $(CG_LIB_SPEC) \ … … 90 85 $(VRMATH_INC_SPEC) \ 91 86 $(VRUTIL_INC_SPEC) \ 92 $(VR3D_INC_SPEC) \93 87 $(TCL_INC_SPEC) \ 94 88 $(FF_INC_SPEC) \ … … 217 211 $(srcdir)/shaders/velocity.cg 218 212 219 .PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath vrutil vr3dtransfer-function220 221 all: newmat11 R2 imgloaders vrmath vrutil vr3d transfer-functionnanovis213 .PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath vrutil transfer-function 214 215 all: newmat11 R2 imgloaders vrmath vrutil nanovis 222 216 223 217 install: install-nanovis install-resources install-shaders … … 227 221 vrmath: $(VRMATH_LIB) 228 222 vrutil: $(VRUTIL_LIB) 229 vr3d: $(VR3D_LIB)230 223 imgloaders: $(IMG_LIB) 231 224 … … 239 232 $(MAKE) -C $(VRUTIL_DIR) all 240 233 241 $(VR3D_LIB):242 $(MAKE) -C $(VR3D_DIR) all243 244 234 $(R2_LIB): 245 235 $(MAKE) -C $(R2_DIR)/src all … … 248 238 $(MAKE) -C $(IMG_DIR) all 249 239 250 nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $(VRUTIL_LIB) $( VR3D_LIB) $(OBJS)240 nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $(VRUTIL_LIB) $(OBJS) 251 241 $(CXX) $(CXX_SWITCHES) -o $@ $^ $(LIBS) 252 242 … … 288 278 $(MAKE) -C $(VRMATH_DIR) clean 289 279 $(MAKE) -C $(VRUTIL_DIR) clean 290 $(MAKE) -C $(VR3D_DIR) clean291 280 $(MAKE) -C $(R2_DIR)/src clean 292 281 $(MAKE) -C $(IMG_DIR) clean … … 297 286 $(MAKE) -C $(VRMATH_DIR) distclean 298 287 $(MAKE) -C $(VRUTIL_DIR) distclean 299 $(MAKE) -C $(VR3D_DIR) distclean300 288 $(MAKE) -C $(R2_DIR)/src distclean 301 289 $(MAKE) -C $(IMG_DIR) distclean … … 307 295 CmdProc.o: CmdProc.cpp CmdProc.h 308 296 Color.o: Color.cpp Color.h 309 Command.o: Command.cpp dxReader.h297 Command.o: Command.cpp nanovis.h $(AUXSRC) CmdProc.h Trace.h PlaneRenderer.h PointSet.h dxReader.h Grid.h HeightMap.h NvCamera.h NvZincBlendeReconstructor.h Unirect.h VolumeRenderer.h 310 298 ContourLineFilter.o: ContourLineFilter.cpp ContourLineFilter.h 311 299 ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h Vector4.h Mat4x4.h Plane.h -
trunk/packages/vizservers/nanovis/NvColorTableShader.h
r2836 r2857 30 30 inline void NvColorTableShader::bind(Texture2D *plane, TransferFunction *tf) 31 31 { 32 cgGLSetTextureParameter(_dataParam, plane->id );32 cgGLSetTextureParameter(_dataParam, plane->id()); 33 33 cgGLSetTextureParameter(_tfParam, tf->id()); 34 34 cgGLEnableTextureParameter(_dataParam); -
trunk/packages/vizservers/nanovis/NvRegularVolumeShader.h
r2837 r2857 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 #ifndef __NV_REGULAR_SHADER_H__3 #define __NV_REGULAR_SHADER_H__2 #ifndef NV_REGULAR_SHADER_H 3 #define NV_REGULAR_SHADER_H 4 4 5 5 #include "Volume.h" … … 27 27 28 28 inline void 29 NvRegularVolumeShader::bind(unsigned int tfID, Volume *volume, int sliceMode)29 NvRegularVolumeShader::bind(unsigned int tfID, Volume *volume, int sliceMode) 30 30 { 31 31 //regular cubic volume … … 38 38 cgGLEnableTextureParameter(_tf_one_volume_param); 39 39 40 if (!sliceMode)40 if (!sliceMode) { 41 41 cgGLSetParameter4f(_render_param_one_volume_param, 42 42 volume->n_slices(), … … 44 44 volume->diffuse(), 45 45 volume->specular()); 46 else46 } else { 47 47 cgGLSetParameter4f(_render_param_one_volume_param, 48 48 0., … … 50 50 volume->diffuse(), 51 51 volume->specular()); 52 } 52 53 53 54 cgGLSetParameter4f(_option_one_volume_param, -
trunk/packages/vizservers/nanovis/NvZincBlendeVolumeShader.h
r2844 r2857 34 34 cgGLSetStateMatrixParameter(_mviParam, CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_INVERSE); 35 35 cgGLSetTextureParameter(_tfParam, tfID); 36 cgGLSetParameter4f(_cellSizeParam, vol->cell_size.x, vol->cell_size.y, vol->cell_size.z, 0.); 36 cgGLSetParameter4f(_cellSizeParam, 37 vol->cell_size.x, 38 vol->cell_size.y, 39 vol->cell_size.z, 0.); 37 40 38 41 if (!sliceMode) { … … 56 59 0.0f); 57 60 58 cgGLSetTextureParameter(_volumeAParam, vol->zincblende_tex[0]->id );59 cgGLSetTextureParameter(_volumeBParam, vol->zincblende_tex[1]->id );61 cgGLSetTextureParameter(_volumeAParam, vol->zincblende_tex[0]->id()); 62 cgGLSetTextureParameter(_volumeBParam, vol->zincblende_tex[1]->id()); 60 63 cgGLEnableTextureParameter(_volumeAParam); 61 64 cgGLEnableTextureParameter(_volumeBParam); -
trunk/packages/vizservers/nanovis/ParticleSystem.cpp
r2831 r2857 5 5 #include <stdlib.h> 6 6 #include <stdio.h> 7 #include <math.h> 7 8 #include <pthread.h> 8 9 9 #ifdef HAVE_OPENCV_H 10 #include <opencv/cv.h> 11 #endif 12 #ifdef HAVE_OPENCV_HIGHGUI_H 13 #include <opencv/highgui.h> 14 #endif 15 16 #include <vr3d/vr3d.h> 17 #include <vr3d/vrTexture3D.h> 18 10 #include <GL/glew.h> 19 11 #include <Cg/cgGL.h> 20 12 21 13 #include <vrutil/vrFilePath.h> 14 #include <Image.h> 15 #include <ImageLoader.h> 16 #include <ImageLoaderFactory.h> 22 17 23 18 #include <vrmath/vrMatrix4x4f.h> … … 27 22 #include "ParticleSystem.h" 28 23 #include "ParticleEmitter.h" 24 #include "Texture2D.h" 25 #include "Texture3D.h" 29 26 #include "Trace.h" 30 27 … … 292 289 293 290 if (!this->isTimeVaryingField()) { 294 vrTexture3D* flow = new vrTexture3D(); 295 flow->setMinFilter(TF_LINEAR); 296 flow->setMagFilter(TF_LINEAR); 297 flow->setPixels(CF_RGBA, DT_FLOAT, _flowWidth, _flowHeight, _flowDepth, data); 298 this->_curVectorFieldID = flow->getGraphicsObjectID(); 291 Texture3D *flow = new Texture3D(_flowWidth, _flowHeight, _flowDepth, 292 GL_FLOAT, GL_LINEAR, 4, data); 293 _curVectorFieldID = flow->id(); 299 294 _vectorFieldIDs.push_back(_curVectorFieldID); 300 295 } else { 301 296 for (int i = 0; i < 3; ++i) { 302 vrTexture3D* flow = new vrTexture3D(); 303 flow->setMinFilter(TF_LINEAR); 304 flow->setMagFilter(TF_LINEAR); 305 flow->setPixels(CF_RGBA, DT_FLOAT, _flowWidth, _flowHeight, _flowDepth, data); 297 Texture3D *flow = new Texture3D(_flowWidth, _flowHeight, _flowDepth, 298 GL_FLOAT, GL_LINEAR, 4, data); 306 299 _vectorFields.push_back(flow); 307 _vectorFieldIDs.push_back(flow-> getGraphicsObjectID());300 _vectorFieldIDs.push_back(flow->id()); 308 301 } 309 this->_curVectorFieldID = _vectorFieldIDs[0]; 310 } 311 312 _arrows = new vrTexture2D(); 313 _arrows->setWrapS(TW_MIRROR); 314 _arrows->setWrapT(TW_MIRROR); 315 316 #ifndef USE_RGBA_ARROW 317 IplImage* pTextureImage = cvLoadImage("arrows_flip2.png"); 318 _arrows->setPixels(CF_RGB, DT_UBYTE, pTextureImage->width, pTextureImage->height, pTextureImage->imageData); 302 _curVectorFieldID = _vectorFieldIDs[0]; 303 } 304 305 #ifdef USE_RGBA_ARROW 306 std::string path = vrFilePath::getInstance()->getPath("arrow.bmp"); 319 307 #else 320 #ifdef notdef321 // TBD..322 308 std::string path = vrFilePath::getInstance()->getPath("arrows_red_bg.bmp"); 323 AUX_RGBImageRec *pTextureImage = auxDIBImageLoad(path.c_str()); 324 unsigned char* pixels = new unsigned char [pTextureImage->sizeX * pTextureImage->sizeY * sizeof(unsigned char) * 4]; 325 unsigned char* srcPixels = pTextureImage->data; 326 unsigned char* dstPixels = pixels; 327 for (int i = 0; i < pTextureImage->sizeX * pTextureImage->sizeY; ++i) { 328 *dstPixels = *srcPixels; ++srcPixels; 329 *(dstPixels + 1) = *srcPixels; ++srcPixels; 330 *(dstPixels + 2) = *srcPixels; ++srcPixels; 331 332 if ((*dstPixels > 127) && (*(dstPixels + 1) < 127) && (*(dstPixels + 2) < 127)) { 333 *(dstPixels + 3) = 0; 309 #endif 310 if (!path.empty()) { 311 ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp"); 312 if (loader != NULL) { 313 #ifdef USE_RGBA_ARROW 314 Image *image = loader->load(path.c_str(), Image::IMG_RGBA); 315 #else 316 Image *image = loader->load(path.c_str(), Image::IMG_RGB); 317 #endif 318 if (image != NULL) { 319 unsigned char *bytes = (unsigned char *)image->getImageBuffer(); 320 if (bytes != NULL) { 321 #ifdef USE_RGBA_ARROW 322 for (unsigned int y = 0; y < image->getHeight(); ++y) { 323 for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) { 324 bytes[3] = (bytes[0] > 127 && 325 bytes[1] < 127 && 326 bytes[2] < 127) ? 0 : 255; 327 } 328 } 329 _arrows = new Texture2D(image->getWidth(), image->getHeight(), 330 GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL); 331 #else 332 _arrows = new Texture2D(image->getWidth(), image->getHeight(), 333 GL_UNSIGNED_BYTE, GL_LINEAR, 3, NULL); 334 #endif 335 _arrows->setWrapS(GL_MIRRORED_REPEAT); 336 _arrows->setWrapT(GL_MIRRORED_REPEAT); 337 _arrows->initialize(image->getImageBuffer()); 338 } 339 delete image; 340 } else { 341 ERROR("Failed to load image: arrows.bmp\n"); 342 } 343 delete loader; 334 344 } else { 335 *(dstPixels + 3) = 255;345 ERROR("Couldn't find loader for arrows.bmp\n"); 336 346 } 337 338 dstPixels += 4; 339 } 340 341 _arrows->setPixels(CF_RGBA, DT_UBYTE, pTextureImage->sizeX, pTextureImage->sizeY, (void*) pixels); 342 #endif 343 344 #endif // USE_RGBA_ARROW 347 } else { 348 ERROR("Couldn't find path to arrows.bmp\n"); 349 } 345 350 346 351 #ifdef TEST … … 1034 1039 static bool firstLoad = true; 1035 1040 if (this->isTimeVaryingField()) { 1036 static float oldTime = vrGetTimeStamp();1041 static float oldTime = (float)clock()/(float)CLOCKS_PER_SEC; 1037 1042 #ifdef WANT_TRACE 1038 1043 static int index = 0; 1039 1044 #endif 1040 float time = vrGetTimeStamp();1045 float time = (float)clock()/(float)CLOCKS_PER_SEC; 1041 1046 if ((time - oldTime) > 2.0) { 1042 1047 if (!_queue.isEmpty()) { 1043 float * data = 0;1048 float *data = NULL; 1044 1049 if (_queue.top(data)) { 1045 1050 #ifdef WANT_TRACE 1046 1051 float t = clock() /(float) CLOCKS_PER_SEC; 1047 1052 #endif 1048 _vectorFields[0]->update Pixels(data);1053 _vectorFields[0]->update(data); 1049 1054 #ifdef WANT_TRACE 1050 1055 float ti = clock() / (float) CLOCKS_PER_SEC; … … 1661 1666 1662 1667 #ifndef TEST 1663 _arrows-> bind(0);1668 _arrows->activate(); //_arrows->bind(0); 1664 1669 glEnable(GL_TEXTURE_2D); 1665 1670 //glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 60.0f ); … … 1677 1682 cgSetParameter1f(_mvCurrentTimeParam, _currentTime); 1678 1683 //TRACE("%f %f, %f %d\n", _fov, tan(_fov), tan(_fov / 2.0), _screenHeight); 1679 //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * PI / 180 * 0.5) * _screenHeight * 0.5);1680 //float v = tan(_fov * PI / 180 * 0.5) * _screenHeight * 0.5;1681 cgSetParameter1f(_mvTanHalfFOVParam, tan(_fov * PI / 180 * 0.5) * _screenHeight * 0.5);1682 //cgSetParameter1f(_mvTanHalfFOVParam, _screenHeight * 0.5 / tan(_fov * PI / 180 * 0.5));1684 //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * M_PI / 180 * 0.5) * _screenHeight * 0.5); 1685 //float v = tan(_fov * M_PI / 180 * 0.5) * _screenHeight * 0.5; 1686 cgSetParameter1f(_mvTanHalfFOVParam, tan(_fov * M_PI / 180 * 0.5) * _screenHeight * 0.5); 1687 //cgSetParameter1f(_mvTanHalfFOVParam, _screenHeight * 0.5 / tan(_fov * M_PI / 180 * 0.5)); 1683 1688 1684 1689 cgGLSetStateMatrixParameter(_mvpParticleParam, -
trunk/packages/vizservers/nanovis/ParticleSystem.h
r2818 r2857 11 11 #include <Cg/cg.h> 12 12 13 #include <vr3d/vrTexture2D.h>14 #include <vr3d/vrTexture3D.h>15 13 #include <vrmath/vrVector3f.h> 16 14 17 15 #include "ParticleEmitter.h" 18 16 #include "RenderVertexArray.h" 17 #include "Texture2D.h" 18 #include "Texture3D.h" 19 19 20 20 #include "CircularQueue.h" … … 137 137 // TIME SERIES 138 138 std::vector<unsigned int> _vectorFieldIDs; 139 std::vector< vrTexture3D *> _vectorFields;139 std::vector<Texture3D *> _vectorFields; 140 140 unsigned int _curVectorFieldID; 141 141 float _time_series_vel_mag_min; … … 156 156 unsigned _colorBufferID; 157 157 ////////////////////////////////////////// 158 vrTexture2D *_arrows;158 Texture2D *_arrows; 159 159 160 160 float _camx; -
trunk/packages/vizservers/nanovis/PlaneRenderer.cpp
r2835 r2857 109 109 PlaneRenderer::activate_shader(int index) 110 110 { 111 cgGLSetTextureParameter(_data_param, _plane[index]->id );111 cgGLSetTextureParameter(_data_param, _plane[index]->id()); 112 112 cgGLSetTextureParameter(_tf_param, _tf[index]->id()); 113 113 cgGLEnableTextureParameter(_data_param); -
trunk/packages/vizservers/nanovis/PointSetRenderer.cpp
r2831 r2857 30 30 for (unsigned int y = 0; y < image->getHeight(); ++y) { 31 31 for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) { 32 bytes[3] = 32 bytes[3] = (bytes[0] == 0) ? 0 : 255; 33 33 } 34 34 } … … 44 44 45 45 delete loader; 46 delete image; 46 47 _bucketSort = new PCA::BucketSort(1024); 47 48 } -
trunk/packages/vizservers/nanovis/PointShader.cpp
r2833 r2857 13 13 _normal(0) 14 14 { 15 this->loadVertexProgram("pointsvp.cg", "main");15 loadVertexProgram("pointsvp.cg", "main"); 16 16 _modelviewVP = getNamedParameterFromVP("modelview"); 17 17 _projectionVP = getNamedParameterFromVP("projection"); -
trunk/packages/vizservers/nanovis/R2/include/R2/R2FilePath.h
r2841 r2857 28 28 29 29 /// get R2FilePath instance 30 static R2FilePath *getInstance();30 static R2FilePath *getInstance(); 31 31 32 32 private: -
trunk/packages/vizservers/nanovis/R2/src/R2FilePath.cpp
r2841 r2857 112 112 _curDirectory = buff; 113 113 } 114 -
trunk/packages/vizservers/nanovis/Sphere.cpp
r2822 r2857 19 19 Sphere::Sphere(float x, float y, float z, 20 20 float r, float g, float b, 21 float _radius,22 int _stack,23 int _slice) :21 float radius, 22 int stack, 23 int slice) : 24 24 Renderable(Vector3(x, y, z)), 25 radius(_radius),26 color(Color(r,g,b)),27 stack(_stack),28 slice(_slice)25 _radius(radius), 26 _color(Color(r, g, b)), 27 _stack(stack), 28 _slice(slice) 29 29 { 30 boundary = BoundBox(x-r, y-r, z-r, x+r, y+r, z+r);31 30 } 32 31 … … 35 34 } 36 35 37 void 38 Sphere:: render()36 void 37 Sphere::draw(GLUquadric *quad) 39 38 { 40 } 39 glColor3f(_color.r(), _color.g(), _color.b()); 41 40 42 void43 Sphere::draw(GLUquadric* quad)44 {45 glColor3f(color.R, color.G, color.B);46 47 41 glMatrixMode(GL_MODELVIEW); 48 42 glPushMatrix(); 49 glTranslatef( location.x, location.y,location.z);50 43 glTranslatef(_location.x, _location.y, _location.z); 44 51 45 //draw it 52 gluSphere(quad, radius, stack,slice);53 46 gluSphere(quad, _radius, _stack, _slice); 47 54 48 glPopMatrix(); 55 49 } 56 50 57 void 58 Sphere::set_horizontal_res(int _slice) { 59 slice=_slice; 51 void 52 Sphere::set_horizontal_res(int slice) 53 { 54 _slice = slice; 60 55 } 61 56 62 void 63 Sphere::set_vertical_res(int _stack) { 64 stack=_stack; 57 void 58 Sphere::set_vertical_res(int stack) 59 { 60 _stack = stack; 65 61 } 66 -
trunk/packages/vizservers/nanovis/Sphere.h
r2837 r2857 14 14 * ====================================================================== 15 15 */ 16 17 #ifndef _SPHERE_H_ 18 #define _SPHERE_H_ 16 #ifndef SPHERE_H 17 #define SPHERE_H 19 18 20 19 #include <GL/glew.h> … … 29 28 { 30 29 public: 31 Sphere(float x, float y, float z, float r, float g, float b, float _radius, 32 int _stack, int _slice); 30 Sphere(float x, float y, float z, 31 float r, float g, float b, 32 float radius, 33 int stack, int slice); 33 34 34 35 virtual ~Sphere(); 35 36 36 void set_vertical_res(int _stack);37 void set_horizontal_res(int _slice);38 37 void set_vertical_res(int stack); 38 void set_horizontal_res(int slice); 39 39 40 //display the sphere 40 void draw(GLUquadric* q); 41 void render(); 41 void draw(GLUquadric *q); 42 void render() 43 {} 42 44 43 float radius; 44 Color color; 45 int stack; 46 int slice; 45 private: 46 float _radius; 47 Color _color; 48 int _stack; 49 int _slice; 47 50 }; 48 51 -
trunk/packages/vizservers/nanovis/Texture1D.cpp
r2831 r2857 23 23 24 24 Texture1D::Texture1D() : 25 gl_resource_allocated(false), 26 id(0) 25 _width(0), 26 _numComponents(3), 27 _glResourceAllocated(false), 28 _id(0), 29 _type(GL_FLOAT), 30 _interpType(GL_LINEAR), 31 _wrapS(GL_CLAMP_TO_EDGE) 27 32 { 28 33 } … … 31 36 GLuint type, GLuint interp, 32 37 int numComponents, void *data) : 33 gl_resource_allocated(false), 34 id(0) 38 _width(width), 39 _numComponents(numComponents), 40 _glResourceAllocated(false), 41 _id(0), 42 _type(type), 43 _interpType(interp), 44 _wrapS(GL_CLAMP_TO_EDGE) 35 45 { 36 this->width = width;37 this->type = type;38 this->interp_type = interp;39 this->n_components = numComponents;40 41 46 if (data != NULL) 42 47 initialize(data); … … 45 50 Texture1D::~Texture1D() 46 51 { 47 glDeleteTextures(1, & id);52 glDeleteTextures(1, &_id); 48 53 } 49 54 50 55 GLuint Texture1D::initialize(void *data) 51 56 { 52 if ( gl_resource_allocated)53 glDeleteTextures(1, & id);57 if (_glResourceAllocated) 58 glDeleteTextures(1, &_id); 54 59 55 glGenTextures(1, & id);60 glGenTextures(1, &_id); 56 61 57 62 update(data); 58 63 59 gl_resource_allocated = true;60 return id;64 _glResourceAllocated = true; 65 return _id; 61 66 } 62 67 … … 65 70 glPixelStorei(GL_UNPACK_ALIGNMENT, 1); 66 71 67 glBindTexture(GL_TEXTURE_1D, id);72 glBindTexture(GL_TEXTURE_1D, _id); 68 73 69 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);70 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, interp_type);71 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, interp_type);74 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, _wrapS); 75 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, _interpType); 76 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, _interpType); 72 77 73 78 GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA }; 74 79 75 glTexImage1D(GL_TEXTURE_1D, 0, format[ n_components],width, 0,76 format[ n_components],type, data);80 glTexImage1D(GL_TEXTURE_1D, 0, format[_numComponents], _width, 0, 81 format[_numComponents], _type, data); 77 82 78 83 assert(glGetError()==0); … … 81 86 void Texture1D::activate() 82 87 { 83 glBindTexture(GL_TEXTURE_1D, id);88 glBindTexture(GL_TEXTURE_1D, _id); 84 89 glEnable(GL_TEXTURE_1D); 85 90 } … … 88 93 { 89 94 glDisable(GL_TEXTURE_1D); 95 } 96 97 void Texture1D::setWrapS(GLuint wrapMode) 98 { 99 _wrapS = wrapMode; 90 100 } 91 101 -
trunk/packages/vizservers/nanovis/Texture1D.h
r2831 r2857 40 40 void deactivate(); 41 41 42 int width() const 43 { 44 return _width; 45 } 46 47 GLuint id() const 48 { 49 return _id; 50 } 51 52 void setWrapS(GLuint wrapMode); 53 42 54 static void check_max_size(); 43 55 44 56 static void check_max_unit(); 45 57 46 int width; 58 private: 59 int _width; 47 60 48 int n_components;61 int _numComponents; 49 62 50 bool gl_resource_allocated; 51 GLuint id; 52 GLuint type; 53 GLuint interp_type; 54 55 //GLuint tex_unit; 63 bool _glResourceAllocated; 64 GLuint _id; 65 GLuint _type; 66 GLuint _interpType; 67 GLuint _wrapS; 56 68 }; 57 69 -
trunk/packages/vizservers/nanovis/Texture2D.cpp
r2831 r2857 24 24 25 25 Texture2D::Texture2D() : 26 gl_resource_allocated(false), 27 id(0) 26 _width(0), 27 _height(0), 28 _numComponents(3), 29 _glResourceAllocated(false), 30 _id(0), 31 _type(GL_FLOAT), 32 _interpType(GL_LINEAR), 33 _wrapS(GL_CLAMP_TO_EDGE), 34 _wrapT(GL_CLAMP_TO_EDGE) 28 35 {} 29 36 … … 31 38 GLuint type, GLuint interp, 32 39 int numComponents, void *data) : 33 gl_resource_allocated(false), 34 id(0) 40 _width(width), 41 _height(height), 42 _numComponents(numComponents), 43 _glResourceAllocated(false), 44 _id(0), 45 _type(type), 46 _interpType(interp), 47 _wrapS(GL_CLAMP_TO_EDGE), 48 _wrapT(GL_CLAMP_TO_EDGE) 35 49 { 36 this->width = width;37 this->height = height;38 this->type = type;39 this->interp_type = interp;40 this->n_components = numComponents;41 42 50 if (data != NULL) 43 51 initialize(data); … … 46 54 Texture2D::~Texture2D() 47 55 { 48 glDeleteTextures(1, & id);56 glDeleteTextures(1, &_id); 49 57 } 50 58 51 59 GLuint Texture2D::initialize(void *data) 52 60 { 53 if ( gl_resource_allocated)54 glDeleteTextures(1, & id);61 if (_glResourceAllocated) 62 glDeleteTextures(1, &_id); 55 63 56 glGenTextures(1, & id);64 glGenTextures(1, &_id); 57 65 58 66 update(data); 59 67 60 gl_resource_allocated = true;61 return id;68 _glResourceAllocated = true; 69 return _id; 62 70 } 63 71 64 72 void Texture2D::update(void *data) 65 73 { 66 glBindTexture(GL_TEXTURE_2D, id);74 glBindTexture(GL_TEXTURE_2D, _id); 67 75 68 76 glPixelStorei(GL_UNPACK_ALIGNMENT, 1); 69 77 70 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);71 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);78 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, _wrapS); 79 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, _wrapT); 72 80 73 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, interp_type);74 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, interp_type);81 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, _interpType); 82 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, _interpType); 75 83 76 84 //to do: add handling to more formats 77 85 #ifdef NV40 78 if ( type == GL_FLOAT) {86 if (_type == GL_FLOAT) { 79 87 GLuint targetFormat[5] = { -1, GL_LUMINANCE16F_ARB, GL_LUMINANCE_ALPHA16F_ARB, GL_RGB16F_ARB, GL_RGBA16F_ARB }; 80 88 GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA }; 81 glTexImage2D(GL_TEXTURE_2D, 0, targetFormat[ n_components], width,height, 0,82 format[ n_components],type, data);89 glTexImage2D(GL_TEXTURE_2D, 0, targetFormat[_numComponents], _width, _height, 0, 90 format[_numComponents], _type, data); 83 91 } else { 84 92 #endif 85 93 GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA }; 86 glTexImage2D(GL_TEXTURE_2D, 0, format[ n_components], width,height, 0,87 format[ n_components],type, data);94 glTexImage2D(GL_TEXTURE_2D, 0, format[_numComponents], _width, _height, 0, 95 format[_numComponents], _type, data); 88 96 #ifdef NV40 89 97 } 90 98 #endif 91 99 assert(glGetError() == 0); 92 93 gl_resource_allocated = true;94 100 } 95 101 96 void 97 Texture2D::activate() 102 void Texture2D::activate() 98 103 { 99 glBindTexture(GL_TEXTURE_2D, id);104 glBindTexture(GL_TEXTURE_2D, _id); 100 105 glEnable(GL_TEXTURE_2D); 101 106 } 102 107 103 void 104 Texture2D::deactivate() 108 void Texture2D::deactivate() 105 109 { 106 110 glDisable(GL_TEXTURE_2D); 107 111 } 108 112 109 void 110 Texture2D::check_max_size() 113 void Texture2D::setWrapS(GLuint wrapMode) 114 { 115 _wrapS = wrapMode; 116 } 117 118 void Texture2D::setWrapT(GLuint wrapMode) 119 { 120 _wrapT = wrapMode; 121 } 122 123 void Texture2D::check_max_size() 111 124 { 112 125 GLint max = 0; … … 116 129 } 117 130 118 void 119 Texture2D::check_max_unit() 131 void Texture2D::check_max_unit() 120 132 { 121 133 int max = 0; -
trunk/packages/vizservers/nanovis/Texture2D.h
r2831 r2857 40 40 void deactivate(); 41 41 42 int width() const 43 { 44 return _width; 45 } 46 47 int height() const 48 { 49 return _width; 50 } 51 52 GLuint id() const 53 { 54 return _id; 55 } 56 57 void setWrapS(GLuint wrapMode); 58 59 void setWrapT(GLuint wrapMode); 60 42 61 static void check_max_size(); 43 62 44 63 static void check_max_unit(); 45 64 46 int width; 47 int height; 65 private: 66 int _width; 67 int _height; 48 68 49 int n_components;69 int _numComponents; 50 70 51 bool gl_resource_allocated; 52 GLuint id; 53 GLuint type; 54 GLuint interp_type; 71 bool _glResourceAllocated; 72 GLuint _id; 73 GLuint _type; 74 GLuint _interpType; 75 GLuint _wrapS; 76 GLuint _wrapT; 55 77 }; 56 78 -
trunk/packages/vizservers/nanovis/Texture3D.cpp
r2831 r2857 24 24 25 25 Texture3D::Texture3D() : 26 gl_resource_allocated(false), 27 id(0) 26 _width(0), 27 _height(0), 28 _depth(0), 29 _numComponents(3), 30 _glResourceAllocated(false), 31 _id(0), 32 _type(GL_FLOAT), 33 _interpType(GL_LINEAR), 34 _wrapS(GL_CLAMP_TO_EDGE), 35 _wrapT(GL_CLAMP_TO_EDGE), 36 _wrapR(GL_CLAMP_TO_EDGE) 28 37 {} 29 38 … … 31 40 GLuint type, GLuint interp, 32 41 int numComponents, void *data) : 33 gl_resource_allocated(false), 34 id(0) 42 _width(width), 43 _height(height), 44 _depth(depth), 45 _numComponents(numComponents), 46 _glResourceAllocated(false), 47 _id(0), 48 _type(type), 49 _interpType(interp), 50 _wrapS(GL_CLAMP_TO_EDGE), 51 _wrapT(GL_CLAMP_TO_EDGE), 52 _wrapR(GL_CLAMP_TO_EDGE) 35 53 { 36 this->width = width; 37 this->height = height; 38 this->depth = depth; 54 //int m = (_width > _height) ? _width : _height; 55 //m = (m > _depth) ? m : _depth; 39 56 40 //int m = (width > height) ? width : height; 41 //m = (m > depth) ? m : depth; 57 //int m = max(max(_width, _height), _depth); 58 _aspectRatioWidth = 1.; 59 _aspectRatioHeight = (double)_height/(double)_width; 60 _aspectRatioDepth = (double)_depth/(double)_width; 42 61 43 //int m = max(max(width, height), depth); 44 this->aspect_ratio_width = 1.; 45 this->aspect_ratio_height = (double)height/(double)width; 46 this->aspect_ratio_depth = (double)depth/(double)width; 47 48 //this->aspect_ratio_width = (double)width/(double)m; 49 //this->aspect_ratio_height = (double)height/(double)m; 50 //this->aspect_ratio_depth = (double)depth/(double)m; 51 52 this->type = type; 53 this->interp_type = interp; 54 this->n_components = numComponents; 62 //_aspectRatioWidth = (double)_width/(double)m; 63 //_aspectRatioHeight = (double)_height/(double)m; 64 //_aspectRatioDepth = (double)_depth/(double)m; 55 65 56 66 if (data != NULL) … … 60 70 Texture3D::~Texture3D() 61 71 { 62 glDeleteTextures(1, & id);72 glDeleteTextures(1, &_id); 63 73 } 64 74 65 75 GLuint Texture3D::initialize(void *data) 66 76 { 67 if ( id != 0)68 glDeleteTextures(1, & id);77 if (_glResourceAllocated) 78 glDeleteTextures(1, &_id); 69 79 70 glGenTextures(1, & id);80 glGenTextures(1, &_id); 71 81 72 82 update(data); 73 74 return id; 83 84 _glResourceAllocated = true; 85 return _id; 75 86 } 76 87 77 88 void Texture3D::update(void *data) 78 89 { 79 assert(id > 0 && id != (GLuint)-1); 80 glBindTexture(GL_TEXTURE_3D, id); 90 glBindTexture(GL_TEXTURE_3D, _id); 81 91 82 92 //load texture with 16 bit half floating point precision if card is 6 series NV40 … … 85 95 glPixelStorei(GL_UNPACK_ALIGNMENT, 1); 86 96 87 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);88 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);89 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);97 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, _wrapS); 98 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, _wrapT); 99 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, _wrapR); 90 100 91 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, interp_type);92 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, interp_type);101 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, _interpType); 102 glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, _interpType); 93 103 94 104 //to do: add handling to more formats 95 105 #ifdef NV40 96 if ( type == GL_FLOAT) {106 if (_type == GL_FLOAT) { 97 107 GLuint targetFormat[5] = { -1, GL_LUMINANCE16F_ARB, GL_LUMINANCE_ALPHA16F_ARB, GL_RGB16F_ARB, GL_RGBA16F_ARB }; 98 108 GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA }; 99 glTexImage3D(GL_TEXTURE_3D, 0, targetFormat[ n_components],100 width, height,depth, 0,101 format[ n_components],type, data);109 glTexImage3D(GL_TEXTURE_3D, 0, targetFormat[_numComponents], 110 _width, _height, _depth, 0, 111 format[_numComponents], _type, data); 102 112 } else { 103 113 #endif 104 114 GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA }; 105 glTexImage3D(GL_TEXTURE_3D, 0, format[ n_components],106 width, height,depth, 0,107 format[ n_components],type, data);115 glTexImage3D(GL_TEXTURE_3D, 0, format[_numComponents], 116 _width, _height, _depth, 0, 117 format[_numComponents], _type, data); 108 118 #ifdef NV40 109 119 } … … 111 121 112 122 assert(glGetError()==0); 113 114 gl_resource_allocated = true;115 123 } 116 124 … … 118 126 { 119 127 glEnable(GL_TEXTURE_3D); 120 glBindTexture(GL_TEXTURE_3D, id);128 glBindTexture(GL_TEXTURE_3D, _id); 121 129 } 122 130 … … 124 132 { 125 133 glDisable(GL_TEXTURE_3D); 134 } 135 136 void Texture3D::setWrapS(GLuint wrapMode) 137 { 138 _wrapS = wrapMode; 139 } 140 141 void Texture3D::setWrapT(GLuint wrapMode) 142 { 143 _wrapT = wrapMode; 144 } 145 146 void Texture3D::setWrapR(GLuint wrapMode) 147 { 148 _wrapR = wrapMode; 126 149 } 127 150 -
trunk/packages/vizservers/nanovis/Texture3D.h
r2831 r2857 40 40 void deactivate(); 41 41 42 int width() const 43 { 44 return _width; 45 } 46 47 int height() const 48 { 49 return _width; 50 } 51 52 int depth() const 53 { 54 return _width; 55 } 56 57 double aspectRatioWidth() const 58 { 59 return _aspectRatioWidth; 60 } 61 62 double aspectRatioHeight() const 63 { 64 return _aspectRatioHeight; 65 } 66 67 double aspectRatioDepth() const 68 { 69 return _aspectRatioDepth; 70 } 71 72 GLuint id() const 73 { 74 return _id; 75 } 76 77 void setWrapS(GLuint wrapMode); 78 79 void setWrapT(GLuint wrapMode); 80 81 void setWrapR(GLuint wrapMode); 82 42 83 static void check_max_size(); 43 84 44 85 static void check_max_unit(); 45 86 46 int width; 47 int height; 48 int depth; 87 private: 88 int _width; 89 int _height; 90 int _depth; 49 91 50 double aspect_ratio_width;51 double aspect_ratio_height;52 double aspect_ratio_depth;92 double _aspectRatioWidth; 93 double _aspectRatioHeight; 94 double _aspectRatioDepth; 53 95 54 int n_components;96 int _numComponents; 55 97 56 bool gl_resource_allocated; 57 GLuint id; 58 GLuint type; 59 GLuint interp_type; 60 //GLuint tex_unit; 98 bool _glResourceAllocated; 99 GLuint _id; 100 GLuint _type; 101 GLuint _interpType; 102 GLuint _wrapS; 103 GLuint _wrapT; 104 GLuint _wrapR; 61 105 }; 62 106 -
trunk/packages/vizservers/nanovis/TransferFunction.cpp
r2831 r2857 27 27 28 28 _tex = new Texture1D(size, GL_FLOAT, GL_LINEAR, 4, data); 29 _id = _tex->id ;29 _id = _tex->id(); 30 30 } 31 31 -
trunk/packages/vizservers/nanovis/VelocityArrowsSlice.cpp
r2831 r2857 4 4 #include <GL/glew.h> 5 5 #include <GL/gl.h> 6 #ifdef HAVE_OPENCV_H7 #include <opencv/cv.h>8 #endif9 #ifdef HAVE_OPENCV_HIGHGUI_H10 #include <opencv/highgui.h>11 #endif12 6 13 7 #include <R2/R2FilePath.h> 8 #include <Image.h> 9 #include <ImageLoaderFactory.h> 10 #include <ImageLoader.h> 14 11 15 12 #include "VelocityArrowsSlice.h" … … 52 49 _pointCount = 0; 53 50 54 /* 55 _particleVP = 56 LoadCgSourceProgram(_context, "velocityslicevp.cg", CG_PROFILE_VP40, "vpmain"); 57 58 _mvpParticleParam = cgGetNamedParameter(_particleVP, "mvp"); 59 _mvParticleParam = cgGetNamedParameter(_particleVP, "modelview"); 60 _mvTanHalfFOVParam = cgGetNamedParameter(_particleVP, "tanHalfFOV"); 61 62 // TBD.. 63 _particleFP = 64 LoadCgSourceProgram(_context, "velocityslicefp.cg", CG_PROFILE_FP40, "fpmain"); 65 66 _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield"); 67 */ 68 69 /* 70 TRACE("test1\n"); 71 const char *path = R2FilePath::getInstance()->getPath("arrows_flip2.png"); 72 if (path) { 73 TRACE("test2 %s\n", path); 74 } else { 75 TRACE("tt\n"); 76 } 77 IplImage* pTextureImage = cvLoadImage(path); 78 TRACE("test3\n"); 79 if (pTextureImage) { 80 TRACE("file(%s) has been loaded\n", path); 81 _arrowsTex = new Texture2D(pTextureImage->width, pTextureImage->height, GL_FLOAT, GL_LINEAR, 3, pTextureImage->imageData); 82 //_arrowsTex->setWrapS(TW_MIRROR); 83 //_arrowsTex->setWrapT(TW_MIRROR); 84 TRACE("file(%s) has been loaded\n", path); 85 //cvReleaseImage(&pTextureImage); 86 } else { 87 TRACE("not found\n"); 88 } 89 if (path) delete [] path; 90 */ 51 _particleVP = 52 LoadCgSourceProgram(_context, "velocityslicevp.cg", CG_PROFILE_VP40, "vpmain"); 53 54 _mvpParticleParam = cgGetNamedParameter(_particleVP, "mvp"); 55 _mvParticleParam = cgGetNamedParameter(_particleVP, "modelview"); 56 _mvTanHalfFOVParam = cgGetNamedParameter(_particleVP, "tanHalfFOV"); 57 58 // TBD.. 59 _particleFP = 60 LoadCgSourceProgram(_context, "velocityslicefp.cg", CG_PROFILE_FP40, "fpmain"); 61 62 _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield"); 63 64 const char *path = R2FilePath::getInstance()->getPath("arrows.bmp"); 65 if (path != NULL) { 66 ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp"); 67 if (loader != NULL) { 68 Image *image = loader->load(path, Image::IMG_RGBA); 69 delete [] path; 70 if (image != NULL) { 71 unsigned char *bytes = (unsigned char *)image->getImageBuffer(); 72 if (bytes != NULL) { 73 for (unsigned int y = 0; y < image->getHeight(); ++y) { 74 for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) { 75 bytes[3] = (bytes[0] == 0 && 76 bytes[1] == 0 && 77 bytes[2] == 0) ? 0 : 255; 78 } 79 } 80 81 _arrowsTex = new Texture2D(image->getWidth(), image->getHeight(), 82 GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL); 83 _arrowsTex->setWrapS(GL_MIRRORED_REPEAT); 84 _arrowsTex->setWrapT(GL_MIRRORED_REPEAT); 85 _arrowsTex->initialize(image->getImageBuffer()); 86 } 87 delete image; 88 } else { 89 ERROR("Failed to load image: arrows.bmp\n"); 90 } 91 delete loader; 92 } else { 93 delete [] path; 94 ERROR("Couldn't find loader for arrows.bmp\n"); 95 } 96 } else { 97 ERROR("Couldn't find path to arrows.bmp\n"); 98 } 91 99 92 100 _arrowColor.set(1, 1, 0); 93 101 94 TRACE(" test1\n");102 TRACE("Leaving VelocityArrowsSlice constructor\n"); 95 103 } 96 104 … … 190 198 191 199 for (unsigned int index = 0; index < _samplingPositions.size(); ++index) { 192 glMultiTexCoord3f(0, _samplingPositions[index].x,_samplingPositions[index].y,_samplingPositions[index].z); 200 glMultiTexCoord3f(0, 201 _samplingPositions[index].x, 202 _samplingPositions[index].y, 203 _samplingPositions[index].z); 193 204 glVertex2f(index % _renderTargetWidth, 194 205 index / _renderTargetHeight); … … 214 225 void VelocityArrowsSlice::render() 215 226 { 216 //if (!_enabled || (_vectorFieldGraphicsID == 0)) return;217 if (!_enabled)return;227 if (!_enabled) 228 return; 218 229 219 230 if (_dirty) { 220 221 222 231 computeSamplingTicks(); 232 queryVelocity(); 233 _dirty = false; 223 234 } 224 235 … … 228 239 glTranslatef(-0.5f, -0.5f, -0.5f); 229 240 if (_renderMode == LINES) { 230 231 232 233 234 235 236 237 238 239 240 241 242 pos = this->_samplingPositions[index];243 pos2 = this->_velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;244 245 246 241 glDisable(GL_TEXTURE_2D); 242 glLineWidth(2.0); 243 glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z); 244 glBegin(GL_LINES); 245 Vector3 pos; 246 Vector3 pos2; 247 Vector3 vel(1, 0, 0); 248 Vector3 v, v2; 249 if (_axis == 2) { 250 int index = 0; 251 for (int y = 1; y <= _tickCountY; ++y) { 252 for (int x = 1; x <= _tickCountX; ++x, ++index) { 253 pos = _samplingPositions[index]; 254 pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos; 255 glVertex3f(pos.x, pos.y, pos.z); 256 glVertex3f(pos2.x, pos2.y, pos2.z); 257 /*v = pos - pos2; 247 258 v2.x = 1; 248 259 v2.y = 1; … … 252 263 y3 *= adj 253 264 z3 *= adj 254 255 256 257 258 259 260 261 262 pos2 = this->_velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;263 264 265 266 267 } 268 269 270 271 272 273 pos2 = this->_velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;274 275 276 277 278 } 279 280 281 282 265 */ 266 } 267 } 268 } else if (_axis == 1) { 269 int index = 0; 270 for (int z = 1; z <= _tickCountZ; ++z) { 271 for (int x = 1; x <= _tickCountX; ++x, ++index) { 272 pos = _samplingPositions[index]; 273 pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos; 274 275 glVertex3f(pos.x, pos.y, pos.z); 276 glVertex3f(pos2.x, pos2.y, pos2.z); 277 } 278 } 279 } else if (_axis == 0) { 280 int index = 0; 281 for (int z = 1; z <= _tickCountZ; ++z) { 282 for (int y = 1; y <= _tickCountY; ++y, ++index) { 283 pos = _samplingPositions[index]; 284 pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos; 285 286 glVertex3f(pos.x, pos.y, pos.z); 287 glVertex3f(pos2.x, pos2.y, pos2.z); 288 } 289 } 290 } 291 292 glEnd(); 293 glLineWidth(1.0); 283 294 } else { 284 glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z); 285 glEnable(GL_BLEND); 286 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 287 glEnable(GL_POINT_SPRITE_NV); 288 glPointSize(20); 289 glEnable(GL_VERTEX_PROGRAM_POINT_SIZE_NV); 290 291 _arrowsTex->activate(); 292 glEnable(GL_TEXTURE_2D); 293 294 glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f ); 295 296 glPointParameterfARB( GL_POINT_SIZE_MIN_ARB, 1.0f); 297 glPointParameterfARB( GL_POINT_SIZE_MAX_ARB, 100.0f); 298 glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE ); 299 300 cgGLBindProgram(_particleVP); 301 cgGLBindProgram(_particleFP); 302 cgGLEnableProfile(CG_PROFILE_VP40); 303 cgGLEnableProfile(CG_PROFILE_FP40); 304 305 cgGLSetTextureParameter(_vectorParticleParam, _vectorFieldGraphicsID); 306 cgGLEnableTextureParameter(_vectorParticleParam); 307 308 //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * 0.5) * _screenHeight * 0.5); 309 310 cgGLSetStateMatrixParameter(_mvpParticleParam, 311 CG_GL_MODELVIEW_PROJECTION_MATRIX, 312 CG_GL_MATRIX_IDENTITY); 313 cgGLSetStateMatrixParameter(_mvParticleParam, 314 CG_GL_MODELVIEW_MATRIX, 315 CG_GL_MATRIX_IDENTITY); 316 317 glEnableClientState(GL_VERTEX_ARRAY); 318 glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID); 319 glVertexPointer(3, GL_FLOAT, 0, 0); 320 //glEnableClientState(GL_COLOR_ARRAY); 321 322 // TBD.. 323 glDrawArrays(GL_POINTS, 0, _pointCount); 324 glPointSize(1); 325 glDrawArrays(GL_POINTS, 0, _pointCount); 326 327 glDisableClientState(GL_VERTEX_ARRAY); 328 329 cgGLDisableProfile(CG_PROFILE_VP40); 330 cgGLDisableProfile(CG_PROFILE_FP40); 331 332 glDepthMask(GL_TRUE); 333 334 glDisable(GL_POINT_SPRITE_NV); 335 glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_NV); 336 337 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 338 glDisable(GL_BLEND); 339 _arrowsTex->deactivate(); 295 glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z); 296 glEnable(GL_BLEND); 297 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 298 glEnable(GL_POINT_SPRITE_NV); 299 glPointSize(20); 300 glEnable(GL_VERTEX_PROGRAM_POINT_SIZE_NV); 301 302 _arrowsTex->activate(); 303 glEnable(GL_TEXTURE_2D); 304 305 glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f); 306 glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f); 307 glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, 100.0f); 308 glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE); 309 310 cgGLBindProgram(_particleVP); 311 cgGLBindProgram(_particleFP); 312 cgGLEnableProfile(CG_PROFILE_VP40); 313 cgGLEnableProfile(CG_PROFILE_FP40); 314 315 cgGLSetTextureParameter(_vectorParticleParam, _vectorFieldGraphicsID); 316 cgGLEnableTextureParameter(_vectorParticleParam); 317 318 //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * 0.5) * _screenHeight * 0.5); 319 320 cgGLSetStateMatrixParameter(_mvpParticleParam, 321 CG_GL_MODELVIEW_PROJECTION_MATRIX, 322 CG_GL_MATRIX_IDENTITY); 323 cgGLSetStateMatrixParameter(_mvParticleParam, 324 CG_GL_MODELVIEW_MATRIX, 325 CG_GL_MATRIX_IDENTITY); 326 327 glEnableClientState(GL_VERTEX_ARRAY); 328 glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID); 329 glVertexPointer(3, GL_FLOAT, 0, 0); 330 //glEnableClientState(GL_COLOR_ARRAY); 331 332 // TBD.. 333 glDrawArrays(GL_POINTS, 0, _pointCount); 334 glPointSize(1); 335 336 glDisableClientState(GL_VERTEX_ARRAY); 337 338 cgGLDisableProfile(CG_PROFILE_VP40); 339 cgGLDisableProfile(CG_PROFILE_FP40); 340 341 glDepthMask(GL_TRUE); 342 343 glDisable(GL_POINT_SPRITE_NV); 344 glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_NV); 345 346 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 347 glDisable(GL_BLEND); 348 _arrowsTex->deactivate(); 340 349 } 341 350 glPopMatrix(); … … 344 353 void 345 354 VelocityArrowsSlice::vectorField(unsigned int vfGraphicsID, 346 355 float xScale, float yScale, float zScale) 347 356 { 348 357 _vectorFieldGraphicsID = vfGraphicsID; … … 360 369 // vfXscale 361 370 _tickCountX = _tickCountForMinSizeAxis; 362 371 363 372 float step = _vfXscale / (_tickCountX + 1); 364 373 365 374 _tickCountY = (int)(_vfYscale/step); 366 375 _tickCountZ = (int)(_vfZscale/step); … … 394 403 // vfZscale 395 404 _tickCountZ = _tickCountForMinSizeAxis; 396 405 397 406 float step = _vfZscale / (_tickCountZ + 1); 398 407 _tickCountX = (int)(_vfXscale/step); … … 448 457 } else { 449 458 glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID); 450 Vector3 * pinfo = (Vector3*)glMapBufferARB(GL_ARRAY_BUFFER, GL_WRITE_ONLY_ARB);459 Vector3 *pinfo = (Vector3 *)glMapBufferARB(GL_ARRAY_BUFFER, GL_WRITE_ONLY_ARB); 451 460 452 461 Vector3 pos; -
trunk/packages/vizservers/nanovis/VelocityArrowsSlice.h
r2835 r2857 90 90 float _slicePos; 91 91 int _axis; 92 93 unsigned int _fbo; 92 93 unsigned int _fbo; 94 94 unsigned int _tex; 95 95 96 96 CGcontext _context; 97 97 CGprogram _queryVelocityFP; … … 108 108 int _tickCountY; 109 109 int _tickCountZ; 110 110 111 111 int _pointCount; 112 112 … … 114 114 Vector3 _arrowColor; 115 115 116 bool _enabled; 116 bool _enabled; 117 117 bool _dirty; 118 118 bool _dirtySamplingPosition; … … 126 126 CGparameter _mvTanHalfFOVParam; 127 127 CGparameter _mvCurrentTimeParam; 128 128 129 129 CGprogram _particleFP; 130 130 CGparameter _vectorParticleParam; -
trunk/packages/vizservers/nanovis/Volume.cpp
r2844 r2857 69 69 } 70 70 71 id = _tex->id ;71 id = _tex->id(); 72 72 73 73 wAxis.SetRange(v0, v1); 74 74 75 75 // VOLUME 76 aspect_ratio_width = s * _tex->aspect _ratio_width;77 aspect_ratio_height = s * _tex->aspect _ratio_height;78 aspect_ratio_depth = s * _tex->aspect _ratio_depth;76 aspect_ratio_width = s * _tex->aspectRatioWidth(); 77 aspect_ratio_height = s * _tex->aspectRatioHeight(); 78 aspect_ratio_depth = s * _tex->aspectRatioDepth(); 79 79 80 80 //Add cut planes. We create 3 default cut planes facing x, y, z directions. -
trunk/packages/vizservers/nanovis/Volume.h
r2844 r2857 363 363 { 364 364 size = s; 365 aspect_ratio_width = s * _tex->aspect _ratio_width;366 aspect_ratio_height = s * _tex->aspect _ratio_height;367 aspect_ratio_depth = s * _tex->aspect _ratio_depth;365 aspect_ratio_width = s * _tex->aspectRatioWidth(); 366 aspect_ratio_height = s * _tex->aspectRatioHeight(); 367 aspect_ratio_depth = s * _tex->aspectRatioDepth(); 368 368 } 369 369 -
trunk/packages/vizservers/nanovis/imgLoaders/Image.cpp
r2831 r2857 36 36 free(_dataBuffer); 37 37 } 38 -
trunk/packages/vizservers/nanovis/imgLoaders/ImageLoaderImpl.h
r2831 r2857 8 8 { 9 9 public: 10 friend class ImageLoader;11 12 10 ImageLoaderImpl(); 13 11 14 12 virtual ~ImageLoaderImpl(); 15 13 14 virtual Image *load(const char *fileName) = 0; 15 16 friend class ImageLoader; 17 16 18 protected: 17 19 Image::ImageFormat _targetImageFormat; 18 19 public:20 virtual Image *load(const char *fileName) = 0;21 20 }; 22 21 -
trunk/packages/vizservers/nanovis/nvconf.h.in
r2724 r2857 97 97 #undef HAVE_LIBAVUTIL_AVUTIL_H 98 98 99 /* Define to 1 if you have the `highgui' library (-lhighgui). */100 #undef HAVE_LIBHIGHGUI101 102 99 /* Define to 1 if you have the `swscale' library (-lswscale). */ 103 100 #undef HAVE_LIBSWSCALE … … 111 108 /* Define to 1 if you have the <netinet/in.h> header file. */ 112 109 #undef HAVE_NETINET_IN_H 113 114 /* Define to 1 if you have the <opencv/cv.h> header file. */115 #undef HAVE_OPENCV_CV_H116 117 /* Define to 1 if you have the <opencv/highgui.h> header file. */118 #undef HAVE_OPENCV_HIGHGUI_H119 110 120 111 /* Define to 1 if you have the <Python.h> header file. */ … … 175 166 #undef PACKAGE_TARNAME 176 167 177 /* Define to the home page for this package. */178 #undef PACKAGE_URL179 180 168 /* Define to the version of this package. */ 181 169 #undef PACKAGE_VERSION -
trunk/packages/vizservers/nanovis/shaders/pointsvp.cg
r2852 r2857 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 2 3 void main(in float4 posin : POSITION, 3 4 in float4 colin : COLOR0, -
trunk/packages/vizservers/nanovis/shaders/queryvelocity.cg
r2852 r2857 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 float4 main (float3 pos : TEXCOORD0, 3 uniform sampler3D vfield 4 2 3 float4 main(float3 pos : TEXCOORD0, 4 uniform sampler3D vfield) : COLOR 5 5 { 6 6 float3 velocity = tex3D(vfield, pos).yzw * 2 - float3(1, 1, 1); -
trunk/packages/vizservers/nanovis/shaders/velocityslicefp.cg
r2852 r2857 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 2 3 #include "particle_common.cg" 3 4 -
trunk/packages/vizservers/nanovis/shaders/velocityslicevp.cg
r2852 r2857 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 2 3 #include "particle_common.cg" 4 3 5 void vpmain(in float4 posin : POSITION, 4 6 in float4 colin : COLOR0, -
trunk/packages/vizservers/nanovis/vrutil/include/vrutil/vrFilePath.h
r2841 r2857 3 3 #define VRFILEPATH_H 4 4 5 #include <vrutil/vrUtil.h>6 5 #include <string> 7 6 #include <list> 7 8 #include <vrutil/vrUtil.h> 8 9 9 10 class vrFilePath -
trunk/packages/vizservers/nanovis/vrutil/vrFilePath.cpp
r2841 r2857 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 #include <vrutil/vrFilePath.h>3 4 #ifdef _WIN325 #pragma warning (disable : 4996)6 #endif7 8 2 #include <string.h> 9 3 #include <stdio.h> 10 4 #include <stdlib.h> 11 12 5 #ifdef _WIN32 13 6 #include <direct.h> 14 7 #endif 8 9 #include <vrutil/vrFilePath.h> 10 11 #include "Trace.h" 15 12 16 13 std::string vrFilePath::_curDirectory; … … 18 15 19 16 static char seps[] = ";"; 17 20 18 vrFilePath::vrFilePath() 21 19 { … … 23 21 #ifdef _WIN32 24 22 if (_getcwd(buff, 255) == 0) { 25 printf("failed to get the current directory in vrFilePath::vrFilePath\n");23 ERROR("failed to get the current working directory\n"); 26 24 } 27 25 #else 28 26 if (getcwd(buff, 255) == 0) { 29 printf("failed to get the current directory in vrFilePath::vrFilePath\n");27 ERROR("failed to get the current working directory\n"); 30 28 } 31 29 #endif … … 113 111 #ifdef _WIN32 114 112 if (_chdir(iter->c_str()) == -1) { 115 printf("error: change dir (%s)", iter->c_str());113 ERROR("error: change dir (%s)", iter->c_str()); 116 114 } 117 115 #else 118 116 if (chdir(iter->c_str()) == -1) { 119 printf("error: change dir (%s)", iter->c_str());117 ERROR("error: change dir (%s)", iter->c_str()); 120 118 } 121 119 #endif … … 125 123 path = (*iter) + fileName; 126 124 127 printf("returned [%s]\n", path.c_str());125 ERROR("error: returned [%s]\n", path.c_str()); 128 126 break; 129 127 } … … 132 130 #ifdef _WIN32 133 131 if (_chdir(_curDirectory.c_str()) != -1) { 134 printf("error: change dir (%s)", _curDirectory.c_str());132 ERROR("error: change dir (%s)", _curDirectory.c_str()); 135 133 } 136 134 #else 137 135 if (chdir(_curDirectory.c_str()) != -1) { 138 printf("error: change dir (%s)", _curDirectory.c_str());136 ERROR("error: change dir (%s)", _curDirectory.c_str()); 139 137 } 140 138 #endif
Note: See TracChangeset
for help on using the changeset viewer.