librb: provide AC_TRY_RUN fallback for cross-compiling librb (closes #151)
This commit is contained in:
parent
c63aeb44e9
commit
498b189340
2 changed files with 4 additions and 8 deletions
|
@ -112,6 +112,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
],
|
||||
[rb__cv_timer_create_works=yes],
|
||||
[rb__cv_timer_create_works=no],
|
||||
[rb__cv_timer_create_works=no])
|
||||
])
|
||||
case $rb__cv_timer_create_works in
|
||||
|
@ -151,6 +152,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
],
|
||||
[rb__cv_timerfd_create_works=yes],
|
||||
[rb__cv_timerfd_create_works=no],
|
||||
[rb__cv_timerfd_create_works=no])
|
||||
])
|
||||
case $rb__cv_timerfd_create_works in
|
||||
|
|
10
librb/configure
vendored
10
librb/configure
vendored
|
@ -14102,10 +14102,7 @@ if ${rb__cv_timer_create_works+:} false; then :
|
|||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
as_fn_error $? "cannot run test program while cross compiling
|
||||
See \`config.log' for more details" "$LINENO" 5; }
|
||||
rb__cv_timer_create_works=no
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
@ -14161,10 +14158,7 @@ if ${rb__cv_timerfd_create_works+:} false; then :
|
|||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
as_fn_error $? "cannot run test program while cross compiling
|
||||
See \`config.log' for more details" "$LINENO" 5; }
|
||||
rb__cv_timerfd_create_works=no
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
|
Loading…
Reference in a new issue