hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
 
AC_PREREQ([2.61])
AC_INIT([quectel-CM], [1.0], [fae-support@quectel.com])
AC_CONFIG_HEADERS([config.h])
 
# Checks for programs.
AC_PROG_CC
 
# Checks for libraries.
 
# Checks for header files.
 
# Checks for typedefs, structures, and compiler characteristics.
AC_ARG_WITH(sanitized-headers,
      AS_HELP_STRING([--with-sanitized-headers=DIR],
         [Specify the location of the sanitized Linux headers]),
      [CPPFLAGS="$CPPFLAGS -idirafter $withval"])
 
AC_ARG_WITH([qrtr],
       AC_HELP_STRING([--with-qrtr],
          [enable qrtr, building which use qrtr]))
 
if (test "x${with_qrtr}" = "xyes"); then
   #AC_DEFINE(ENABLE_USEQTRT, 1, [Define if uses qrtr])
   AC_CHECK_HEADERS([linux/qrtr.h linux/rmnet_data.h])
fi
 
AM_CONDITIONAL(USE_QRTR, test "x${with_qrtr}" = "xyes")
 
AC_ARG_WITH([msm-ipc],
       AC_HELP_STRING([--with-msm-ipc],
          [enable msm-ipc, building which use qrtr]))
 
if (test "x${with_msm_ipc}" = "xyes"); then
   #AC_DEFINE(ENABLE_USEQTRT, 1, [Define if uses qrtr])
   AC_CHECK_HEADERS([linux/msm_ipc.h linux/rmnet_data.h])
fi
 
AM_CONDITIONAL(USE_MSM_IPC, test "x${with_msm_ipc}" = "xyes")
 
# Checks for library functions.
 
# Does not strictly follow GNU Coding standards
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT