You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
924 B
34 lines
924 B
3 years ago
|
# -*- Autoconf -*-
|
||
|
# Process this file with autoconf to produce a configure script.
|
||
|
|
||
|
AC_PREREQ([2.69])
|
||
|
AC_INIT([op-fan-daemon], [0.1], [shawn@anastas.io])
|
||
|
AC_CONFIG_SRCDIR([src/fan-daemon.c])
|
||
|
AC_CONFIG_HEADERS([config.h])
|
||
|
|
||
|
AM_INIT_AUTOMAKE([1.11 parallel-tests foreign no-dist-gzip dist-xz color-tests subdir-objects])
|
||
|
|
||
|
# Allow user to enable debug mode
|
||
|
CFLAGS+="-DNDEBUG=1 "
|
||
|
AC_ARG_ENABLE(debug, [ --enable-debug Enable debug print statements], [CFLAGS+="-UNDEBUG "])
|
||
|
|
||
|
AM_SILENT_RULES([yes])
|
||
|
# Checks for programs.
|
||
|
AC_PROG_CC
|
||
|
|
||
|
# Checks for libraries.
|
||
|
|
||
|
# Checks for header files.
|
||
|
AC_CHECK_HEADERS([unistd.h sys/select.h sys/signalfd.h sys/stat.h sys/time.h signal.h])
|
||
|
|
||
|
# Checks for typedefs, structures, and compiler characteristics.
|
||
|
AC_CHECK_HEADER_STDBOOL
|
||
|
AC_C_INLINE
|
||
|
AC_TYPE_UINT16_T
|
||
|
AC_TYPE_UINT32_T
|
||
|
|
||
|
# Checks for library functions.
|
||
|
|
||
|
AC_CONFIG_FILES([Makefile])
|
||
|
AC_OUTPUT
|