mirror of https://github.com/odrling/Aegisub
Always use C++ for AC_AGI_COMPILE
This commit is contained in:
parent
d278dcc7a8
commit
7a60ac95ef
|
@ -3,12 +3,14 @@ AC_DEFUN([AC_AGI_COMPILE],[
|
||||||
aegisub_save_CPPFLAGS="$CPPFLAGS"
|
aegisub_save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $3"
|
CPPFLAGS="$CPPFLAGS $3"
|
||||||
LIBS="$LIBS $4"
|
LIBS="$LIBS $4"
|
||||||
AC_CACHE_CHECK(
|
AC_LANG_PUSH(C++)
|
||||||
[whether $1 works], [agi_cv_with_$2],
|
AC_CACHE_CHECK(
|
||||||
[AC_RUN_IFELSE([AC_LANG_SOURCE([$5])],
|
[whether $1 works], [agi_cv_with_$2],
|
||||||
[eval agi_cv_with_$2="yes"],
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([$5])],
|
||||||
[eval agi_cv_with_$2="no"],
|
[eval agi_cv_with_$2="yes"],
|
||||||
[AS_IF([test $? -ne 0], [eval agi_cv_with_$2="no"], [eval agi_cv_with_$2="yes"])])])
|
[eval agi_cv_with_$2="no"],
|
||||||
|
[AS_IF([test $? -ne 0], [eval agi_cv_with_$2="no"], [eval agi_cv_with_$2="yes"])])])
|
||||||
|
AC_LANG_POP(C++)
|
||||||
CPPFLAGS="$aegisub_save_CPPFLAGS"
|
CPPFLAGS="$aegisub_save_CPPFLAGS"
|
||||||
LIBS="$aegisub_save_LIBS"
|
LIBS="$aegisub_save_LIBS"
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue