blob: d8078e5041f990c9f02ceff753492a26648e803b [file] [log] [blame]
Dongjin Kimf316f522022-01-18 10:10:24 +00001# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.69])
5AC_INIT([wiringpi-examples], [1.0], [tobetter@gmail.com])
6AC_CONFIG_SRCDIR([serialRead.c])
7AC_CONFIG_HEADERS([config.h])
8
9AC_SUBST([EXTRA_CFLAGS], ["-Wformat=2 -Wall -Wextra -Winline -Wno-format-truncation -pipe -fPIC"])
10
11# Checks for programs.
12AC_PROG_CC
13
14# Checks for libraries.
15PKG_CHECK_MODULES([LIBCRYPT], [libcrypt])
16PKG_CHECK_MODULES([LIBWIRINGPI], [libwiringpi2])
17
18AM_INIT_AUTOMAKE([foreign])
19AC_CONFIG_MACRO_DIRS([m4])
20
21# Checks for header files.
22AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
23
24# Checks for typedefs, structures, and compiler characteristics.
25
26# Checks for library functions.
27AC_FUNC_MALLOC
28AC_CHECK_FUNCS([floor gettimeofday rint strcasecmp strerror])
29
30AC_CONFIG_FILES([
31 Makefile
32 Gertboard/Makefile
33 PiFace/Makefile
34 PiGlow/Makefile
35 q2w/Makefile
36 scrollPhat/Makefile
37 ])
38
39AC_OUTPUT