File: configure.ac

package info (click to toggle)
pi-tm1638 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 572 kB
  • sloc: sh: 1,264; ansic: 355; makefile: 27
file content (31 lines) | stat: -rw-r--r-- 806 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
AC_INIT([pi-tm1638], [1.0], [pi-tm1638@mjo.tc])
AC_CONFIG_SRCDIR([src/tm1638.c])

AM_INIT_AUTOMAKE([-Wall -Werror])

# Checks for programs.
AC_PROG_CC
AM_PROG_AR
AC_PROG_RANLIB
AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test -z "$DOXYGEN";
   then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
fi

# Check for libbcm2835
AC_CHECK_LIB([bcm2835], [bcm2835_init], ,
 [AC_MSG_ERROR([bcm2835 library not found, see http://www.open.com.au/mikem/bcm2835/])])

# Checks for header files.
AC_CHECK_HEADERS([stdint.h stdlib.h])

AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([doc/Doxyfile])])

AC_CONFIG_HEADERS([config.h])

AC_CONFIG_FILES([Makefile
                 doc/Makefile
		 examples/Makefile
                 src/Makefile])
AC_OUTPUT