diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-12-20 23:21:07 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-12-20 23:25:12 -0900 |
| commit | 933ae3e7a46ef1157bb85b8c0039c58044592bda (patch) | |
| tree | d55cacb23d1a0bc128d87312e30ccc074dfc99ba /m4 | |
| parent | 3f9b67828c2c7949e44ba5c314903a079568e889 (diff) | |
| download | bindletools-933ae3e7a46ef1157bb85b8c0039c58044592bda.tar.gz bindletools-933ae3e7a46ef1157bb85b8c0039c58044592bda.tar.bz2 bindletools-933ae3e7a46ef1157bb85b8c0039c58044592bda.tar.xz bindletools-933ae3e7a46ef1157bb85b8c0039c58044592bda.zip | |
bindle-libbindle.m4: updating how options are processed
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/bindle-libbindle.m4 | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/m4/bindle-libbindle.m4 b/m4/bindle-libbindle.m4 index 3dca4a9..c077959 100644 --- a/m4/bindle-libbindle.m4 +++ b/m4/bindle-libbindle.m4 | |||
| @@ -37,7 +37,9 @@ AC_DEFUN([AC_BINDLE_LIBBINDLE],[dnl | |||
| 37 | AC_REQUIRE([AC_BINDLE]) | 37 | AC_REQUIRE([AC_BINDLE]) |
| 38 | 38 | ||
| 39 | LIBBINDLE_PREFIX="$1" | 39 | LIBBINDLE_PREFIX="$1" |
| 40 | ENABLE_BUILTIN_BINDLE="$2" | 40 | LIBBINDLE_OPTION="$2" |
| 41 | |||
| 42 | ENABLE_BUILTIN_BINDLE="no" | ||
| 41 | ENABLE_LIBBINDLE_SRCS="no" | 43 | ENABLE_LIBBINDLE_SRCS="no" |
| 42 | ENABLE_LIBBINDLE="no" | 44 | ENABLE_LIBBINDLE="no" |
| 43 | 45 | ||
| @@ -48,31 +50,31 @@ AC_DEFUN([AC_BINDLE_LIBBINDLE],[dnl | |||
| 48 | [ EBUILTINBINDLE=$enableval ], | 50 | [ EBUILTINBINDLE=$enableval ], |
| 49 | [ EBUILTINBINDLE=$enableval ] | 51 | [ EBUILTINBINDLE=$enableval ] |
| 50 | ) | 52 | ) |
| 51 | if test "x${ENABLE_BUILTIN_BINDLE}" = "xyes";then | 53 | if test "x${LIBBINDLE_OPTION}" = "xyes";then |
| 52 | ENABLE_BUILTIN_BINDLE=yes | 54 | ENABLE_BUILTIN_BINDLE=yes |
| 53 | ENABLE_LIBBINDLE_SRCS=yes | 55 | ENABLE_LIBBINDLE_SRCS=yes |
| 54 | elif test "x${ENABLE_BUILTIN_BINDLE}" = "xno";then | 56 | elif test "x${LIBBINDLE_OPTION}" = "xno";then |
| 55 | ENABLE_BUILTIN_BINDLE=no | 57 | ENABLE_BUILTIN_BINDLE=no |
| 56 | elif test "x${ENABLE_BUILTIN_BINDLE}" = "xinstall";then | 58 | ENABLE_LIBBINDLE_SRCS=no |
| 59 | elif test "x${LIBBINDLE_OPTION}" = "xinstall";then | ||
| 57 | ENABLE_BUILTIN_BINDLE=no | 60 | ENABLE_BUILTIN_BINDLE=no |
| 58 | ENABLE_LIBBINDLE_SRCS=no | 61 | ENABLE_LIBBINDLE_SRCS=no |
| 59 | ENABLE_LIBBINDLE=yes | 62 | ENABLE_LIBBINDLE=yes |
| 60 | ENABLE_BINDLE_TESTS=yes | 63 | ENABLE_BINDLE_TESTS=yes |
| 61 | elif test "x${ENABLE_BUILTIN_BINDLE}" = "xsources";then | 64 | elif test "x${LIBBINDLE_OPTION}" = "xsources";then |
| 62 | ENABLE_BUILTIN_BINDLE=no | 65 | ENABLE_BUILTIN_BINDLE=no |
| 63 | ENABLE_LIBBINDLE_SRCS=yes | 66 | ENABLE_LIBBINDLE_SRCS=yes |
| 64 | elif test "x${EBUILTINBINDLE}" = "xyes";then | 67 | elif test "x${EBUILTINBINDLE}" = "xyes";then |
| 65 | ENABLE_BUILTIN_BINDLE=yes | 68 | ENABLE_BUILTIN_BINDLE=yes |
| 66 | ENABLE_LIBBINDLE_SRCS=yes | 69 | ENABLE_LIBBINDLE_SRCS=yes |
| 67 | else | 70 | else |
| 68 | ENABLE_BUILTIN_BINDLE=auto | 71 | LIBBINDLE_OPTION=auto |
| 69 | ENABLE_LIBBINDLE_SRCS=auto | ||
| 70 | fi | 72 | fi |
| 71 | 73 | ||
| 72 | # look for installed libbindle | 74 | # look for installed libbindle |
| 73 | AC_CHECK_HEADERS([termios.h], [], []) | 75 | AC_CHECK_HEADERS([termios.h], [], []) |
| 74 | AC_CHECK_HEADERS([sgtty.h], [], []) | 76 | AC_CHECK_HEADERS([sgtty.h], [], []) |
| 75 | if test "x${ENABLE_BUILTIN_BINDLE}" = "xauto";then | 77 | if test "x${LIBBINDLE_OPTION}" = "xauto";then |
| 76 | FOUND_LIBBINDLE=yes | 78 | FOUND_LIBBINDLE=yes |
| 77 | AC_CHECK_HEADERS([bindle.h], [], [FOUND_LIBBINDLE=no]) | 79 | AC_CHECK_HEADERS([bindle.h], [], [FOUND_LIBBINDLE=no]) |
| 78 | AC_CHECK_LIB([bindle], [bindle_free], [], [FOUND_LIBBINDLE=no]) | 80 | AC_CHECK_LIB([bindle], [bindle_free], [], [FOUND_LIBBINDLE=no]) |
| @@ -96,7 +98,7 @@ AC_DEFUN([AC_BINDLE_LIBBINDLE],[dnl | |||
| 96 | # determine prefix | 98 | # determine prefix |
| 97 | if test "x${LIBBINDLE_PREFIX}" = "x";then | 99 | if test "x${LIBBINDLE_PREFIX}" = "x";then |
| 98 | LIBBINDLE_PREFIX="bindle_" | 100 | LIBBINDLE_PREFIX="bindle_" |
| 99 | elif test "x${ENABLE_BUILTIN_BINDLE}" = "xno";then | 101 | elif test "x${ENABLE_LIBBINDLE_SRCS}" = "xno";then |
| 100 | LIBBINDLE_PREFIX="bindle_" | 102 | LIBBINDLE_PREFIX="bindle_" |
| 101 | fi | 103 | fi |
| 102 | 104 | ||
