mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 21:53:10 +00:00
c588520727
Refactor autoconf, use best practices
14 lines
523 B
Plaintext
14 lines
523 B
Plaintext
|
|
|
|
AC_DEFUN([TR_SWIG_BIN],[
|
|
AC_ARG_WITH([swig],
|
|
[AS_HELP_STRING([--with-swig@<:@=DIR@:>@], [path of directory containing the SWIG executable.])],
|
|
[
|
|
TEMP_PATH="${PATH}"
|
|
PATH="$withval:${PATH}"
|
|
AX_PKG_SWIG($1, [], [AC_MSG_ERROR([Trick requires SWIG version >= 2.0])])
|
|
PATH="${TEMP_PATH}"
|
|
],
|
|
[AX_PKG_SWIG($1, [], [AC_MSG_ERROR([Trick requires SWIG version >= 2.0])])]
|
|
)
|
|
]) |