File: configure.ac

package info (click to toggle)
awscli 2.31.35-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 156,692 kB
  • sloc: python: 213,816; xml: 14,082; makefile: 189; sh: 178; javascript: 8
file content (62 lines) | stat: -rw-r--r-- 2,090 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
AC_CONFIG_MACRO_DIRS([m4])
AC_INIT([awscli], [2.31.35])
AC_CONFIG_SRCDIR([bin/aws])
AM_PATH_PYTHON([3.8])

AC_MSG_CHECKING(for sqlite3)
read -r -d '' SQLITE_TEST_PROG <<-EOF
import sys
try:
    import sqlite3
except ImportError:
    sys.exit(1)
EOF
$PYTHON -c "${SQLITE_TEST_PROG}"
if [[ $? -eq 0 ]]
then
    AC_MSG_RESULT(yes)
else
    AC_MSG_ERROR(AWS CLI requires a Python interpreter compiled with sqlite3. $PYTHON does not have sqlite3., 1)
fi

AC_MSG_CHECKING(for --with-install-type)
AC_ARG_WITH(install_type,
            AS_HELP_STRING([--with-install-type=@<:@system-sandbox|portable-exe@:>@],
                           [Specify type of AWS CLI installation. Options are:
                            "portable-exe", "system-sandbox" (default is "system-sandbox")]),
[],
[with_install_type=system-sandbox])
AS_CASE($with_install_type,
    [portable-exe],[INSTALL_TYPE=portable-exe],
    [system-sandbox],[INSTALL_TYPE=system-sandbox],
    [AC_MSG_ERROR([--with-install-type=portable-exe|system-sandbox])])
AC_SUBST(INSTALL_TYPE)
AC_MSG_RESULT($with_install_type)

AC_MSG_CHECKING(for --with-download-deps)
AC_ARG_WITH(download_deps,
            AS_HELP_STRING([--with-download-deps],
	                   [Download all dependencies and use those when
			    building the AWS CLI. Note that this is best effort
			    and has no backwards compatibility guarantee. If not
			    specified, the dependencies (including all python
			    packages) must be installed on your system]),
[],
[with_download_deps=no]
)
if test "$with_download_deps" = no; then
     PYTHONDONTWRITEBYTECODE=1 ${PYTHON} ${srcdir}/backends/build_system validate-env --artifact $with_install_type || AC_MSG_ERROR("Python dependencies not met.")
     DOWNLOAD_DEPS_FLAG=""
else
     DOWNLOAD_DEPS_FLAG=--download-deps
fi
AC_MSG_RESULT($with_download_deps)
AC_SUBST(DOWNLOAD_DEPS_FLAG)

ac_operating_system=`(uname -s) 2>/dev/null || echo unknown`
if test "$ac_operating_system" = Darwin; then
    AC_CHECK_MACOS_END_OF_SUPPORT([11.0.0], [November 13, 2024])
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
OVERRIDE_HELP