mirror of https://github.com/odrling/Aegisub
Add a cross-compile condition to AC_RUN_IFELSE in AC_AGI_COMPILE to make cross-compiling work.
Originally committed to SVN as r2836.
This commit is contained in:
parent
e2d0317df3
commit
ff7ee2e776
|
@ -7,7 +7,12 @@ AC_DEFUN([AC_AGI_COMPILE],[
|
|||
[whether $1 works], [agi_cv_with_$2],
|
||||
[AC_RUN_IFELSE([$5],
|
||||
[eval agi_cv_with_$2="yes"],
|
||||
[eval agi_cv_with_$2="no"])
|
||||
[eval agi_cv_with_$2="no"],
|
||||
[if test $? -ne 0; then
|
||||
eval agi_cv_with_$2="no";
|
||||
else
|
||||
eval agi_cv_with_$2="yes";
|
||||
fi])
|
||||
])
|
||||
CPPFLAGS="$aegisub_save_CPPFLAGS"
|
||||
LDFLAGS="$aegisub_save_LDFLAGS"
|
||||
|
|
Loading…
Reference in New Issue