# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([sensors], [0.1], [arjen@andromeda.nl]) AM_INIT_AUTOMAKE([-Wall foreign]) AC_CONFIG_SRCDIR([src/Cmeter.cpp]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_CC # Check for wx-widgets AC_PATH_PROG(WX_CONFIG, wx-config, no) if test $WX_CONFIG = "no" then echo "WX widgets is not installed" exit 1 fi WX_CXXFLAGS=`wx-config --cxxflags` CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS" WX_LDFLAGS=`wx-config --libs` LDFLAGS="$LDFLAGS $WX_LDFLAGS" #Checks for libraries. AC_CHECK_LIB([pigpiod_if2], [pigpio_start]) # FIXME: Replace `main' with a function in `-lrt': AC_CHECK_LIB([rt], [main]) # Checks for header files. AC_CHECK_HEADERS([unistd.h]) AC_CHECK_HEADERS([wx/wx.h]) # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_TYPE_UINT32_T # Checks for library functions. AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT