|
@@ -785,6 +785,7 @@ ac_includes_default="\
|
|
|
|
|
|
ac_subst_vars='LTLIBOBJS
|
|
|
LIBOBJS
|
|
|
+FFMPEG_LIBS
|
|
|
SDL_CXXFLAGS
|
|
|
SDL_LIBS
|
|
|
HAVE_SDL_CONFIG
|
|
@@ -4913,13 +4914,13 @@ if test "${lt_cv_nm_interface+set}" = set; then
|
|
|
else
|
|
|
lt_cv_nm_interface="BSD nm"
|
|
|
echo "int some_variable = 0;" > conftest.$ac_ext
|
|
|
- (eval echo "\"\$as_me:4916: $ac_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:4917: $ac_compile\"" >&5)
|
|
|
(eval "$ac_compile" 2>conftest.err)
|
|
|
cat conftest.err >&5
|
|
|
- (eval echo "\"\$as_me:4919: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:4920: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
|
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
|
|
cat conftest.err >&5
|
|
|
- (eval echo "\"\$as_me:4922: output\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:4923: output\"" >&5)
|
|
|
cat conftest.out >&5
|
|
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
|
|
lt_cv_nm_interface="MS dumpbin"
|
|
@@ -6125,7 +6126,7 @@ ia64-*-hpux*)
|
|
|
;;
|
|
|
*-*-irix6*)
|
|
|
# Find out which ABI we are using.
|
|
|
- echo '#line 6128 "configure"' > conftest.$ac_ext
|
|
|
+ echo '#line 6129 "configure"' > conftest.$ac_ext
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
(eval $ac_compile) 2>&5
|
|
|
ac_status=$?
|
|
@@ -8641,11 +8642,11 @@ else
|
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:8644: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:8645: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:8648: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:8649: \$? = $ac_status" >&5
|
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
|
# So say no if there are warnings other than the usual output.
|
|
@@ -8980,11 +8981,11 @@ else
|
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:8983: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:8984: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:8987: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:8988: \$? = $ac_status" >&5
|
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
|
# So say no if there are warnings other than the usual output.
|
|
@@ -9085,11 +9086,11 @@ else
|
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:9088: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:9089: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:9092: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:9093: \$? = $ac_status" >&5
|
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
then
|
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
@@ -9140,11 +9141,11 @@ else
|
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:9143: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:9144: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:9147: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:9148: \$? = $ac_status" >&5
|
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
then
|
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
@@ -11953,7 +11954,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
|
-#line 11956 "configure"
|
|
|
+#line 11957 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -12049,7 +12050,7 @@ else
|
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
lt_status=$lt_dlunknown
|
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
|
-#line 12052 "configure"
|
|
|
+#line 12053 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -14069,11 +14070,11 @@ else
|
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:14073: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>conftest.err)
|
|
|
ac_status=$?
|
|
|
cat conftest.err >&5
|
|
|
- echo "$as_me:14076: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:14077: \$? = $ac_status" >&5
|
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
|
# So say no if there are warnings other than the usual output.
|
|
@@ -14168,11 +14169,11 @@ else
|
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:14171: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:14172: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:14175: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:14176: \$? = $ac_status" >&5
|
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
then
|
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
@@ -14220,11 +14221,11 @@ else
|
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
|
- (eval echo "\"\$as_me:14223: $lt_compile\"" >&5)
|
|
|
+ (eval echo "\"\$as_me:14224: $lt_compile\"" >&5)
|
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
ac_status=$?
|
|
|
cat out/conftest.err >&5
|
|
|
- echo "$as_me:14227: \$? = $ac_status" >&5
|
|
|
+ echo "$as_me:14228: \$? = $ac_status" >&5
|
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
then
|
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
@@ -17359,6 +17360,155 @@ SDL_CXXFLAGS=`sdl-config --cflags`
|
|
|
SDL_LIBS="`sdl-config --libs` $LIBS"
|
|
|
LIBS=$saved_LIBS
|
|
|
|
|
|
+# Check for ffmpeg libraries
|
|
|
+
|
|
|
+{ $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
|
|
|
+$as_echo_n "checking for main in -lavformat... " >&6; }
|
|
|
+if test "${ac_cv_lib_avformat_main+set}" = set; then
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
+else
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
+LIBS="-lavformat $LIBS"
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
+/* confdefs.h. */
|
|
|
+_ACEOF
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
+/* end confdefs.h. */
|
|
|
+
|
|
|
+
|
|
|
+int
|
|
|
+main ()
|
|
|
+{
|
|
|
+return main ();
|
|
|
+ ;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+_ACEOF
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
+if { (ac_try="$ac_link"
|
|
|
+case "(($ac_try" in
|
|
|
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
+ *) ac_try_echo=$ac_try;;
|
|
|
+esac
|
|
|
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
+$as_echo "$ac_try_echo") >&5
|
|
|
+ (eval "$ac_link") 2>conftest.er1
|
|
|
+ ac_status=$?
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
+ rm -f conftest.er1
|
|
|
+ cat conftest.err >&5
|
|
|
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); } && {
|
|
|
+ test -z "$ac_cxx_werror_flag" ||
|
|
|
+ test ! -s conftest.err
|
|
|
+ } && test -s conftest$ac_exeext && {
|
|
|
+ test "$cross_compiling" = yes ||
|
|
|
+ $as_test_x conftest$ac_exeext
|
|
|
+ }; then
|
|
|
+ ac_cv_lib_avformat_main=yes
|
|
|
+else
|
|
|
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ ac_cv_lib_avformat_main=no
|
|
|
+fi
|
|
|
+
|
|
|
+rm -rf conftest.dSYM
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
+fi
|
|
|
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
|
|
|
+$as_echo "$ac_cv_lib_avformat_main" >&6; }
|
|
|
+if test "x$ac_cv_lib_avformat_main" = x""yes; then
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
+#define HAVE_LIBAVFORMAT 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ LIBS="-lavformat $LIBS"
|
|
|
+
|
|
|
+else
|
|
|
+ { { $as_echo "$as_me:$LINENO: error: FFMpeg avformat library not found. Please install it." >&5
|
|
|
+$as_echo "$as_me: error: FFMpeg avformat library not found. Please install it." >&2;}
|
|
|
+ { (exit 1); exit 1; }; }
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+{ $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
|
|
|
+$as_echo_n "checking for main in -lswscale... " >&6; }
|
|
|
+if test "${ac_cv_lib_swscale_main+set}" = set; then
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
+else
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
+LIBS="-lswscale $LIBS"
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
+/* confdefs.h. */
|
|
|
+_ACEOF
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
+/* end confdefs.h. */
|
|
|
+
|
|
|
+
|
|
|
+int
|
|
|
+main ()
|
|
|
+{
|
|
|
+return main ();
|
|
|
+ ;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+_ACEOF
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
+if { (ac_try="$ac_link"
|
|
|
+case "(($ac_try" in
|
|
|
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
+ *) ac_try_echo=$ac_try;;
|
|
|
+esac
|
|
|
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
+$as_echo "$ac_try_echo") >&5
|
|
|
+ (eval "$ac_link") 2>conftest.er1
|
|
|
+ ac_status=$?
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
+ rm -f conftest.er1
|
|
|
+ cat conftest.err >&5
|
|
|
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); } && {
|
|
|
+ test -z "$ac_cxx_werror_flag" ||
|
|
|
+ test ! -s conftest.err
|
|
|
+ } && test -s conftest$ac_exeext && {
|
|
|
+ test "$cross_compiling" = yes ||
|
|
|
+ $as_test_x conftest$ac_exeext
|
|
|
+ }; then
|
|
|
+ ac_cv_lib_swscale_main=yes
|
|
|
+else
|
|
|
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ ac_cv_lib_swscale_main=no
|
|
|
+fi
|
|
|
+
|
|
|
+rm -rf conftest.dSYM
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
+fi
|
|
|
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
|
|
|
+$as_echo "$ac_cv_lib_swscale_main" >&6; }
|
|
|
+if test "x$ac_cv_lib_swscale_main" = x""yes; then
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
+#define HAVE_LIBSWSCALE 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ LIBS="-lswscale $LIBS"
|
|
|
+
|
|
|
+else
|
|
|
+ { { $as_echo "$as_me:$LINENO: error: FFMpeg swscale library not found. Please install it." >&5
|
|
|
+$as_echo "$as_me: error: FFMpeg swscale library not found. Please install it." >&2;}
|
|
|
+ { (exit 1); exit 1; }; }
|
|
|
+fi
|
|
|
+
|
|
|
+FFMPEG_LIBS="-lavformat -lswscale"
|
|
|
+
|
|
|
# Checks for header files.
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
|
@@ -17956,6 +18106,7 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
|
|
|
|
|
|
cat >confcache <<\_ACEOF
|