forked from cvc5/cvc5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add contrib/get-symfpu for downloading symfpu. (cvc5#1905)
- Loading branch information
Showing
5 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# CVC4_CHECK_FOR_SYMFPU | ||
# ------------------ | ||
# Look for symfpu and link it in, but only if user requested. | ||
AC_DEFUN([CVC4_CHECK_FOR_SYMFPU], [ | ||
AC_MSG_CHECKING([whether user requested symfpu support]) | ||
have_symfpu_headers=0 | ||
if test "$with_symfpu" = no; then | ||
AC_MSG_RESULT([no, symfpu disabled by user]) | ||
elif test -n "$with_symfpu"; then | ||
AC_MSG_RESULT([yes, symfpu requested by user]) | ||
AC_ARG_VAR(SYMFPU_HOME, [path to top level of symfpu source tree]) | ||
AC_ARG_WITH( | ||
[symfpu-dir], | ||
AS_HELP_STRING( | ||
[--with-symfpu-dir=PATH], | ||
[path to top level of symfpu source tree] | ||
), | ||
SYMFPU_HOME="$withval", | ||
[ if test -z "$SYMFPU_HOME" && ! test -e "$ac_abs_confdir/symfpu-CVC4/symfpu/core"; then | ||
AC_MSG_FAILURE([must give --with-symfpu-dir=PATH, define environment variable SYMFPU_HOME, or use contrib/get-symfpu to setup symfpu for CVC4!]) | ||
fi | ||
] | ||
) | ||
# Check if symfpu was installed via contrib/get-symfpu or SYMFPU_HOME or --with-symfpu-dir was set | ||
AC_MSG_CHECKING([whether symfpu was installed via contrib/get-symfpu]) | ||
if test -z "$SYMFPU_HOME" && test -e "$ac_abs_confdir/symfpu-CVC4/symfpu/core"; then | ||
SYMFPU_HOME="$ac_abs_confdir/symfpu-CVC4" | ||
AC_MSG_RESULT([yes, $SYMFPU_HOME]) | ||
have_symfpu_headers=1 | ||
else | ||
AC_MSG_RESULT([no]) | ||
fi | ||
else | ||
AC_MSG_RESULT([no, user didn't request symfpu]) | ||
with_symfpu=no | ||
fi | ||
])# CVC4_CHECK_FOR_SYMFPU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# | ||
source "$(dirname "$0")/get-script-header.sh" | ||
|
||
wdir="symfpu-CVC4" | ||
|
||
if [ -e $wdir ]; then | ||
echo "error: file or directory "$wdir" exists; please move it out of the way." >&2 | ||
exit 1 | ||
fi | ||
|
||
commit="bdc0ad4cc49b5d590b4d8492199249e392c3368d" | ||
|
||
mkdir $wdir | ||
cd $wdir | ||
git clone https://github.com/martin-cs/symfpu.git symfpu | ||
cd symfpu | ||
git checkout $commit | ||
|
||
echo | ||
echo "Using symfpu commit $commit" | ||
echo | ||
echo ===================== Now configure CVC4 with ===================== | ||
echo ./configure --with-symfpu |