mirror of
https://github.com/nasa/trick.git
synced 2025-02-06 10:59:27 +00:00
check for trick-offline in offline mode
This commit is contained in:
commit
a6dbf0fa33
@ -291,7 +291,10 @@ AC_SUBST([TRICK_FORCE_32BIT])
|
|||||||
AC_ARG_ENABLE([offline],
|
AC_ARG_ENABLE([offline],
|
||||||
AS_HELP_STRING([--enable-offline], [Compile Trick in offline mode. Un-tar the trick-offline directory in TRICK_HOME to use this feature]),
|
AS_HELP_STRING([--enable-offline], [Compile Trick in offline mode. Un-tar the trick-offline directory in TRICK_HOME to use this feature]),
|
||||||
AS_IF([test "x$enable_offline" = xyes],
|
AS_IF([test "x$enable_offline" = xyes],
|
||||||
[TRICK_OFFLINE="1"],
|
[
|
||||||
|
[TRICK_OFFLINE="1"]
|
||||||
|
AC_CHECK_FILE([trick-offline], [], AC_MSG_ERROR([Offline mode requires an uncompressed directory named "trick-offline" in TRICK_HOME]))
|
||||||
|
],
|
||||||
[TRICK_OFFLINE="0"]
|
[TRICK_OFFLINE="0"]
|
||||||
),
|
),
|
||||||
[TRICK_OFFLINE="0"]
|
[TRICK_OFFLINE="0"]
|
||||||
|
25
configure
vendored
25
configure
vendored
@ -3847,7 +3847,30 @@ fi
|
|||||||
# Check whether --enable-offline was given.
|
# Check whether --enable-offline was given.
|
||||||
if test "${enable_offline+set}" = set; then :
|
if test "${enable_offline+set}" = set; then :
|
||||||
enableval=$enable_offline; if test "x$enable_offline" = xyes; then :
|
enableval=$enable_offline; if test "x$enable_offline" = xyes; then :
|
||||||
TRICK_OFFLINE="1"
|
|
||||||
|
TRICK_OFFLINE="1"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for trick-offline" >&5
|
||||||
|
$as_echo_n "checking for trick-offline... " >&6; }
|
||||||
|
if ${ac_cv_file_trick_offline+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
test "$cross_compiling" = yes &&
|
||||||
|
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
||||||
|
if test -r "trick-offline"; then
|
||||||
|
ac_cv_file_trick_offline=yes
|
||||||
|
else
|
||||||
|
ac_cv_file_trick_offline=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_trick_offline" >&5
|
||||||
|
$as_echo "$ac_cv_file_trick_offline" >&6; }
|
||||||
|
if test "x$ac_cv_file_trick_offline" = xyes; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
as_fn_error $? "Offline mode requires an uncompressed directory named \"trick-offline\" in TRICK_HOME" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
TRICK_OFFLINE="0"
|
TRICK_OFFLINE="0"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user