mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Depending on the distros, ffmpeg headers aren't always installed in the same directory. Fix from Szpak.
This commit is contained in:
		| @@ -123,6 +123,7 @@ ECHO_N = @ECHO_N@ | ||||
| ECHO_T = @ECHO_T@ | ||||
| EGREP = @EGREP@ | ||||
| EXEEXT = @EXEEXT@ | ||||
| FFMPEG_CXXFLAGS = @FFMPEG_CXXFLAGS@ | ||||
| FFMPEG_LIBS = @FFMPEG_LIBS@ | ||||
| FGREP = @FGREP@ | ||||
| GREP = @GREP@ | ||||
|   | ||||
| @@ -125,6 +125,7 @@ ECHO_N = @ECHO_N@ | ||||
| ECHO_T = @ECHO_T@ | ||||
| EGREP = @EGREP@ | ||||
| EXEEXT = @EXEEXT@ | ||||
| FFMPEG_CXXFLAGS = @FFMPEG_CXXFLAGS@ | ||||
| FFMPEG_LIBS = @FFMPEG_LIBS@ | ||||
| FGREP = @FGREP@ | ||||
| GREP = @GREP@ | ||||
|   | ||||
| @@ -96,6 +96,7 @@ ECHO_N = @ECHO_N@ | ||||
| ECHO_T = @ECHO_T@ | ||||
| EGREP = @EGREP@ | ||||
| EXEEXT = @EXEEXT@ | ||||
| FFMPEG_CXXFLAGS = @FFMPEG_CXXFLAGS@ | ||||
| FFMPEG_LIBS = @FFMPEG_LIBS@ | ||||
| FGREP = @FGREP@ | ||||
| GREP = @GREP@ | ||||
|   | ||||
| @@ -111,6 +111,7 @@ ECHO_N = @ECHO_N@ | ||||
| ECHO_T = @ECHO_T@ | ||||
| EGREP = @EGREP@ | ||||
| EXEEXT = @EXEEXT@ | ||||
| FFMPEG_CXXFLAGS = @FFMPEG_CXXFLAGS@ | ||||
| FFMPEG_LIBS = @FFMPEG_LIBS@ | ||||
| FGREP = @FGREP@ | ||||
| GREP = @GREP@ | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| bin_PROGRAMS = vcmiclient | ||||
|  | ||||
| vcmiclient_LDADD = $(top_builddir)/lib/libvcmi.la @SDL_LIBS@ @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @BOOST_IOSTREAMS_LIB@ @FFMPEG_LIBS@ | ||||
| vcmiclient_CXXFLAGS = @CXXFLAGS@ @SDL_CXXFLAGS@ | ||||
| vcmiclient_CXXFLAGS = @CXXFLAGS@ @SDL_CXXFLAGS@ @FFMPEG_CXXFLAGS@ | ||||
| vcmiclient_LDFLAGS = -L$(top_builddir)/lib | ||||
| vcmiclient_SOURCES =  \ | ||||
| 	../AI_Base.h \ | ||||
|   | ||||
| @@ -144,6 +144,7 @@ ECHO_N = @ECHO_N@ | ||||
| ECHO_T = @ECHO_T@ | ||||
| EGREP = @EGREP@ | ||||
| EXEEXT = @EXEEXT@ | ||||
| FFMPEG_CXXFLAGS = @FFMPEG_CXXFLAGS@ | ||||
| FFMPEG_LIBS = @FFMPEG_LIBS@ | ||||
| FGREP = @FGREP@ | ||||
| GREP = @GREP@ | ||||
| @@ -238,7 +239,7 @@ top_build_prefix = @top_build_prefix@ | ||||
| top_builddir = @top_builddir@ | ||||
| top_srcdir = @top_srcdir@ | ||||
| vcmiclient_LDADD = $(top_builddir)/lib/libvcmi.la @SDL_LIBS@ @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @BOOST_IOSTREAMS_LIB@ @FFMPEG_LIBS@ | ||||
| vcmiclient_CXXFLAGS = @CXXFLAGS@ @SDL_CXXFLAGS@ | ||||
| vcmiclient_CXXFLAGS = @CXXFLAGS@ @SDL_CXXFLAGS@ @FFMPEG_CXXFLAGS@ | ||||
| vcmiclient_LDFLAGS = -L$(top_builddir)/lib | ||||
| vcmiclient_SOURCES = \ | ||||
| 	../AI_Base.h \ | ||||
|   | ||||
							
								
								
									
										48
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										48
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @@ -785,6 +785,7 @@ ac_includes_default="\ | ||||
|  | ||||
| ac_subst_vars='LTLIBOBJS | ||||
| LIBOBJS | ||||
| FFMPEG_CXXFLAGS | ||||
| FFMPEG_LIBS | ||||
| SDL_CXXFLAGS | ||||
| SDL_LIBS | ||||
| @@ -4914,13 +4915,13 @@ if test "${lt_cv_nm_interface+set}" = set; then | ||||
|   $as_echo_n "(cached) " >&6 | ||||
| else | ||||
|   lt_cv_nm_interface="BSD nm" | ||||
|   echo "int some_variable = 0;" > conftest.$ac_ext | ||||
|   echo "int some_variable = 0;" > conftest.$ac_ext | ||||
|   (eval echo "\"\$as_me:4918: $ac_compile\"" >&5) | ||||
|   (eval "$ac_compile" 2>conftest.err) | ||||
|   cat conftest.err >&5 | ||||
|   cat conftest.err >&5 | ||||
|   (eval echo "\"\$as_me:4921: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||||
|   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||||
|   cat conftest.err >&5 | ||||
|   cat conftest.err >&5 | ||||
|   (eval echo "\"\$as_me:4924: output\"" >&5) | ||||
|   cat conftest.out >&5 | ||||
|   if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||||
| @@ -6126,7 +6127,7 @@ ia64-*-hpux*) | ||||
|   rm -rf conftest* | ||||
|   ;; | ||||
| *-*-irix6*) | ||||
|   # Find out which ABI we are using. | ||||
|   # Find out which ABI we are using. | ||||
|   echo '#line 6130 "configure"' > conftest.$ac_ext | ||||
|   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||||
|   (eval $ac_compile) 2>&5 | ||||
| @@ -8642,11 +8643,11 @@ else | ||||
|    lt_compile=`echo "$ac_compile" | $SED \ | ||||
|    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||||
|    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    (eval echo "\"\$as_me:8646: $lt_compile\"" >&5) | ||||
|    (eval "$lt_compile" 2>conftest.err) | ||||
|    ac_status=$? | ||||
|    cat conftest.err >&5 | ||||
|    cat conftest.err >&5 | ||||
|    echo "$as_me:8650: \$? = $ac_status" >&5 | ||||
|    if (exit $ac_status) && test -s "$ac_outfile"; then | ||||
|      # The compiler can only warn and ignore the option if not recognized | ||||
| @@ -8981,11 +8982,11 @@ else | ||||
|    lt_compile=`echo "$ac_compile" | $SED \ | ||||
|    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||||
|    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    (eval echo "\"\$as_me:8985: $lt_compile\"" >&5) | ||||
|    (eval "$lt_compile" 2>conftest.err) | ||||
|    ac_status=$? | ||||
|    cat conftest.err >&5 | ||||
|    cat conftest.err >&5 | ||||
|    echo "$as_me:8989: \$? = $ac_status" >&5 | ||||
|    if (exit $ac_status) && test -s "$ac_outfile"; then | ||||
|      # The compiler can only warn and ignore the option if not recognized | ||||
| @@ -9086,11 +9087,11 @@ else | ||||
|    lt_compile=`echo "$ac_compile" | $SED \ | ||||
|    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||||
|    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    (eval echo "\"\$as_me:9090: $lt_compile\"" >&5) | ||||
|    (eval "$lt_compile" 2>out/conftest.err) | ||||
|    ac_status=$? | ||||
|    cat out/conftest.err >&5 | ||||
|    cat out/conftest.err >&5 | ||||
|    echo "$as_me:9094: \$? = $ac_status" >&5 | ||||
|    if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||||
|    then | ||||
| @@ -9141,11 +9142,11 @@ else | ||||
|    lt_compile=`echo "$ac_compile" | $SED \ | ||||
|    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||||
|    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    (eval echo "\"\$as_me:9145: $lt_compile\"" >&5) | ||||
|    (eval "$lt_compile" 2>out/conftest.err) | ||||
|    ac_status=$? | ||||
|    cat out/conftest.err >&5 | ||||
|    cat out/conftest.err >&5 | ||||
|    echo "$as_me:9149: \$? = $ac_status" >&5 | ||||
|    if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||||
|    then | ||||
| @@ -11954,7 +11955,7 @@ else | ||||
| else | ||||
|   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||||
|   lt_status=$lt_dlunknown | ||||
|   cat > conftest.$ac_ext <<_LT_EOF | ||||
|   cat > conftest.$ac_ext <<_LT_EOF | ||||
| #line 11958 "configure" | ||||
| #include "confdefs.h" | ||||
|  | ||||
| @@ -12050,7 +12051,7 @@ else | ||||
| else | ||||
|   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||||
|   lt_status=$lt_dlunknown | ||||
|   cat > conftest.$ac_ext <<_LT_EOF | ||||
|   cat > conftest.$ac_ext <<_LT_EOF | ||||
| #line 12054 "configure" | ||||
| #include "confdefs.h" | ||||
|  | ||||
| @@ -14070,11 +14071,11 @@ else | ||||
|    lt_compile=`echo "$ac_compile" | $SED \ | ||||
|    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||||
|    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    (eval echo "\"\$as_me:14074: $lt_compile\"" >&5) | ||||
|    (eval "$lt_compile" 2>conftest.err) | ||||
|    ac_status=$? | ||||
|    cat conftest.err >&5 | ||||
|    cat conftest.err >&5 | ||||
|    echo "$as_me:14078: \$? = $ac_status" >&5 | ||||
|    if (exit $ac_status) && test -s "$ac_outfile"; then | ||||
|      # The compiler can only warn and ignore the option if not recognized | ||||
| @@ -14169,11 +14170,11 @@ else | ||||
|    lt_compile=`echo "$ac_compile" | $SED \ | ||||
|    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||||
|    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    (eval echo "\"\$as_me:14173: $lt_compile\"" >&5) | ||||
|    (eval "$lt_compile" 2>out/conftest.err) | ||||
|    ac_status=$? | ||||
|    cat out/conftest.err >&5 | ||||
|    cat out/conftest.err >&5 | ||||
|    echo "$as_me:14177: \$? = $ac_status" >&5 | ||||
|    if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||||
|    then | ||||
| @@ -14221,11 +14222,11 @@ else | ||||
|    lt_compile=`echo "$ac_compile" | $SED \ | ||||
|    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||||
|    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    -e 's:$: $lt_compiler_flag:'` | ||||
|    (eval echo "\"\$as_me:14225: $lt_compile\"" >&5) | ||||
|    (eval "$lt_compile" 2>out/conftest.err) | ||||
|    ac_status=$? | ||||
|    cat out/conftest.err >&5 | ||||
|    cat out/conftest.err >&5 | ||||
|    echo "$as_me:14229: \$? = $ac_status" >&5 | ||||
|    if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||||
|    then | ||||
| @@ -17361,6 +17362,7 @@ SDL_LIBS="`sdl-config --libs` $LIBS" | ||||
| SDL_LIBS="`sdl-config --libs` $LIBS" | ||||
| LIBS=$saved_LIBS | ||||
|  | ||||
| # Check for ffmpeg libraries | ||||
| saved_LIBS=$LIBS | ||||
|  | ||||
| { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5 | ||||
| @@ -17507,7 +17509,10 @@ $as_echo "$as_me: error: FFMpeg swscale library not found. Please install it." > | ||||
| $as_echo "$as_me: error: FFMpeg swscale library not found. Please install it." >&2;} | ||||
|    { (exit 1); exit 1; }; } | ||||
| fi | ||||
|  | ||||
|  | ||||
|  | ||||
| FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale` | ||||
| FFMPEG_LIBS=`pkg-config --libs libavformat libswscale` | ||||
| LIBS=$saved_LIBS | ||||
|  | ||||
| # Checks for header files. | ||||
| @@ -18107,6 +18112,7 @@ done | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile" | ||||
|  | ||||
|   | ||||
| @@ -49,9 +49,13 @@ SDL_LIBS="`sdl-config --libs` $LIBS" | ||||
| LIBS=$saved_LIBS | ||||
|  | ||||
| # Check for ffmpeg libraries | ||||
| saved_LIBS=$LIBS | ||||
| AC_CHECK_LIB(avformat,main,,AC_MSG_ERROR([FFMpeg avformat library not found. Please install it.])) | ||||
| AC_CHECK_LIB(swscale,main,,AC_MSG_ERROR([FFMpeg swscale library not found. Please install it.])) | ||||
| FFMPEG_LIBS="-lavformat -lswscale" | ||||
|  | ||||
| FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale` | ||||
| FFMPEG_LIBS=`pkg-config --libs libavformat libswscale` | ||||
| LIBS=$saved_LIBS | ||||
|  | ||||
| # Checks for header files. | ||||
| AC_HEADER_STDC | ||||
| @@ -65,5 +69,6 @@ AC_CHECK_FUNCS([atexit memset pow select sqrt]) | ||||
| AC_SUBST(SDL_LIBS) | ||||
| AC_SUBST(SDL_CXXFLAGS) | ||||
| AC_SUBST(FFMPEG_LIBS) | ||||
| AC_SUBST(FFMPEG_CXXFLAGS) | ||||
|  | ||||
| AC_OUTPUT(Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile) | ||||
|   | ||||
| @@ -125,6 +125,7 @@ ECHO_N = @ECHO_N@ | ||||
| ECHO_T = @ECHO_T@ | ||||
| EGREP = @EGREP@ | ||||
| EXEEXT = @EXEEXT@ | ||||
| FFMPEG_CXXFLAGS = @FFMPEG_CXXFLAGS@ | ||||
| FFMPEG_LIBS = @FFMPEG_LIBS@ | ||||
| FGREP = @FGREP@ | ||||
| GREP = @GREP@ | ||||
|   | ||||
| @@ -119,6 +119,7 @@ ECHO_N = @ECHO_N@ | ||||
| ECHO_T = @ECHO_T@ | ||||
| EGREP = @EGREP@ | ||||
| EXEEXT = @EXEEXT@ | ||||
| FFMPEG_CXXFLAGS = @FFMPEG_CXXFLAGS@ | ||||
| FFMPEG_LIBS = @FFMPEG_LIBS@ | ||||
| FGREP = @FGREP@ | ||||
| GREP = @GREP@ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user