rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
| 4 | AC_PREREQ([2.69]) |
| 5 | AC_INIT([wifihwtesttool], [1.0]) |
| 6 | AM_INIT_AUTOMAKE([foreign]) |
| 7 | |
| 8 | AC_CONFIG_SRCDIR([wifi_hw_test_tool/lib.h]) |
| 9 | AC_CONFIG_HEADERS([config.h]) |
| 10 | |
| 11 | # Checks for programs. |
| 12 | AC_PROG_CC |
| 13 | AC_PROG_RANLIB |
| 14 | |
| 15 | # Checks for libraries. |
| 16 | # FIXME: Replace `main' with a function in `-lm': |
| 17 | AC_CHECK_LIB([m], [main]) |
| 18 | # FIXME: Replace `main' with a function in `-lwifitest': |
| 19 | AC_CHECK_LIB([wifitest], [main]) |
| 20 | |
| 21 | # Checks for header files. |
| 22 | AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h]) |
| 23 | |
| 24 | # Checks for typedefs, structures, and compiler characteristics. |
| 25 | AC_CHECK_HEADER_STDBOOL |
| 26 | AC_C_INLINE |
| 27 | AC_TYPE_SIZE_T |
| 28 | AC_TYPE_UINT32_T |
| 29 | AC_TYPE_UINT8_T |
| 30 | |
| 31 | # Checks for library functions. |
| 32 | AC_CHECK_FUNCS([memset socket strerror strrchr]) |
| 33 | |
| 34 | AC_CONFIG_FILES([Makefile |
| 35 | libwifitest/Makefile |
| 36 | wifi_hw_test_tool/Makefile]) |
| 37 | AC_OUTPUT |