mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-30 05:56:53 +00:00
Support for generating dependency information with gcc 2.95.
This commit is contained in:
parent
a2214b9266
commit
b9a7ad6637
13
Makefile.in
13
Makefile.in
@ -53,6 +53,7 @@ install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
GCC_DEP_STYLE = @GCC_DEP_STYLE@
|
||||
|
||||
# Variable stuff as set by configure
|
||||
BZ2_LIBS = @BZ2_LIBS@
|
||||
@ -221,12 +222,22 @@ depend:
|
||||
@echo Calculating dependecies:
|
||||
@rm -f .depend
|
||||
@touch .depend
|
||||
ifeq (v2,$(GCC_DEP_STYLE))
|
||||
@for i in $(ALL_SOURCES); do \
|
||||
o="`dirname "$$i"`/" ; \
|
||||
echo ' CXX -MM '$$i ; \
|
||||
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SYSTEM_INCLUDES) -MM $$i | \
|
||||
awk 'BEGIN { pfx="'$$o'" } { print pfx $$0 ; pfx="" }' \
|
||||
>> .depend ; \
|
||||
done
|
||||
else
|
||||
@for i in $(ALL_SOURCES); do \
|
||||
o="`echo $$i | sed -e 's/\.c$$/.o/' -e 's/\.cpp$$/.o/'`" ; \
|
||||
echo ' ' $$i: $$o ; \
|
||||
echo ' CXX -MM '$$i ; \
|
||||
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SYSTEM_INCLUDES) -MM \
|
||||
-MT $$o $$i >> .depend ; \
|
||||
done
|
||||
endif
|
||||
|
||||
update-po:
|
||||
xgettext --keyword=_ --keyword=N_ --default-domain=mkvtoolnix \
|
||||
|
24
configure.in
24
configure.in
@ -160,12 +160,34 @@ AC_SUBST(PROFILING_LIBS)
|
||||
AC_SUBST(OPTIMIZATION_CFLAGS)
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check the gcc version for the genreation of dependecy information
|
||||
dnl
|
||||
AC_CACHE_CHECK([gcc version],
|
||||
[ac_cv_gcc_version],[
|
||||
ac_cv_gcc_version="`$CXX -dumpversion`"
|
||||
])
|
||||
|
||||
case "$ac_cv_gcc_version" in
|
||||
2.*)
|
||||
GCC_DEP_STYLE=v2
|
||||
;;
|
||||
3.*)
|
||||
GCC_DEP_STYLE=v3
|
||||
;;
|
||||
*)
|
||||
GCC_DEP_STYLE=v3
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(GCC_DEP_STYLE)
|
||||
|
||||
dnl
|
||||
dnl Check for mingw
|
||||
dnl
|
||||
AC_CACHE_CHECK([if being compiled with mingw32],
|
||||
[ac_cv_mingw32],[
|
||||
if test "x`gcc --version | grep -i mingw`" = "x" ; then
|
||||
if test "x`$CXX --version | grep -i mingw`" = "x" ; then
|
||||
ac_cv_mingw32=no
|
||||
else
|
||||
ac_cv_mingw32=yes
|
||||
|
Loading…
Reference in New Issue
Block a user