mirror of
https://git.code.sf.net/p/fldigi/flrig
synced 2026-08-13 17:28:24 -04:00
* Maintenance release
2026-07-15 dave-w1hkj : Icom corrections
2026-07-02 dave-w1hkj : Clean up std::cout
2026-06-21 dave-w1hkj : PTS device
2026-06-20 dave-w1hkj : IC7300 class corrections
2026-05-27 dave-w1hkj : UDS socket for Linux
2026-06-14 dave-w1hkj : TX Power etal
2026-06-06 dave-w1hkj : Build scripts
2026-06-04 dave-w1hkj : A/B Button events
2026-05-12 dave-w1hkj : Debug cleanup
2026-05-05 dave-w1hkj : PTT coding error
2026-05-07 dave-w1hkj : record tracing
2026-04-23 dave-w1hkj : Xiegu X6200
2026-04-28 dave-w1hkj : xmlrpc priority
2026-04-22 dave-w1hkj : Thread lock timeout
2026-04-23 dave-w1hkj : FT710
2026-04-18 dave-w1hkj : title
2026-04-27 dave-w1hkj : Yaesu FTX-1
2026-04-12 dave-w1hkj : Send Command bug fix
2026-03-29 dave-w1hkj : G90 V4
2026-03-10 dave-w1hkj : CW Auto Tune / Zero-in
2026-04-29 dave-w1hkj : FT-891 update
2026-04-01 dave-w1hkj : trace expansion
2026-03-09 dave-w1hkj : FT991A bug fix
2026-02-27 Dave_Baxter : TS870S attenuator control
2026-02-20 dave-w1hkj : TrxAVR homebrew
140 lines
3.8 KiB
Text
140 lines
3.8 KiB
Text
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
# Generic support for FLTK applications
|
|
|
|
|
|
AC_COPYRIGHT([Copyright (C) 2009 Dave Freese, W1HKJ (w1hkj AT w1hkj DOT com)])
|
|
|
|
AC_PREREQ([2.63])
|
|
|
|
dnl major and minor must be integers; patch may
|
|
dnl contain other characters or be empty
|
|
m4_define(FLRIG_MAJOR, [2])
|
|
m4_define(FLRIG_MINOR, [0])
|
|
m4_define(FLRIG_PATCH, [.12])
|
|
|
|
AC_INIT([FLRIG], FLRIG_MAJOR.FLRIG_MINOR[]FLRIG_PATCH, [w1hkj AT w1hkj DOT com])
|
|
|
|
AC_SUBST([FLRIG_VERSION_MAJOR], [FLRIG_MAJOR])
|
|
AC_SUBST([FLRIG_VERSION_MINOR], [FLRIG_MINOR])
|
|
AC_SUBST([FLRIG_VERSION_PATCH], [FLRIG_PATCH])
|
|
AC_SUBST([FLRIG_VERSION], [FLRIG_MAJOR.FLRIG_MINOR[]FLRIG_PATCH])
|
|
|
|
AC_DEFINE([FLRIG_VERSION_MAJOR], [FLRIG_MAJOR], [major version number])
|
|
AC_DEFINE([FLRIG_VERSION_MINOR], [FLRIG_MINOR], [minor version number])
|
|
AC_DEFINE([FLRIG_VERSION_PATCH], ["FLRIG_PATCH"], [patch/alpha version string])
|
|
AC_DEFINE([FLRIG_VERSION], ["FLRIG_MAJOR.FLRIG_MINOR[]FLRIG_PATCH"], [version string])
|
|
|
|
AC_SUBST([AC_CONFIG_ARGS], [$ac_configure_args])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
# define build, build_cpu, build_vendor, build_os
|
|
AC_CANONICAL_BUILD
|
|
# define host, host_cpu, host_vendor, host_os
|
|
AC_CANONICAL_HOST
|
|
# define target, target_cpu, target_vendor, target_os
|
|
AC_CANONICAL_TARGET
|
|
|
|
AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign std-options subdir-objects 1.9.6])
|
|
|
|
#change the next config item for the specific application src's
|
|
AC_CONFIG_SRCDIR([src/main.cxx])
|
|
AC_CONFIG_HEADERS([src/config.h])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CXX
|
|
AC_PROG_CC
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
# Checks for libraries.
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([stdlib.h string.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_HEADER_STDBOOL
|
|
AC_TYPE_SIZE_T
|
|
|
|
# Checks for library functions.
|
|
AC_CHECK_FUNCS([getaddrinfo gethostbyname hstrerror gmtime_r localtime_r memmove memset mkdir select setenv snprintf socket socketpair strcasecmp strcasestr strchr strdup strerror strlcpy strncasecmp strrchr strstr strtol uname unsetenv vsnprintf])
|
|
|
|
### static flag
|
|
# Set ac_cv_static to yes/no
|
|
# Substitute RTLIB in Makefile
|
|
AC_FL_STATIC
|
|
|
|
### optimizations
|
|
# Set ac_cv_opt to arg
|
|
# Substitute OPT_FLAGS in Makefile
|
|
AC_FL_OPT
|
|
|
|
### debug flag
|
|
# Set ac_cv_debug to yes/no
|
|
# Override CXXFLAGS
|
|
# Set ENABLE_DEBUG Makefile conditional
|
|
# Substitute RDYNAMIC in Makefile
|
|
AC_FL_DEBUG
|
|
|
|
###### OS support
|
|
### OSX
|
|
# Set ac_cv_mac_universal to yes/no
|
|
# Set DARWIN Makefile conditional
|
|
# Substitute MAC_UNIVERSAL_CFLAGS and MAC_UNIVERSAL_LDFLAGS in Makefile
|
|
AC_FL_MACOSX
|
|
|
|
### win32
|
|
# Set WIN32 Makefile conditional
|
|
# Set HAVE_WINDRES Makefile conditional
|
|
# Substitute WINDRES in Makefile
|
|
AC_FL_WIN32
|
|
|
|
### Non-POSIX compatibility (i.e. mingw32)
|
|
# Sets various Makefile conditionals; see m4/np-compat.m4
|
|
AC_FLRIG_NP_COMPAT
|
|
|
|
### FLTK
|
|
# Substitute FLTK_CFLAGS and FLTK_LIBS in Makefile
|
|
# Set FLUID variable
|
|
# Set HAVE_FLUID Makefile conditional
|
|
AC_CHECK_FLTK
|
|
|
|
### X11
|
|
# Set ac_cv_x to yes/no
|
|
# Define USE_X in config.h
|
|
# Substitute X_CFLAGS and X_LIBS in Makefile
|
|
if test "x$target_darwin" = "xno" && test "x$target_win32" = "xno"; then
|
|
AC_FLRIG_PKG_CHECK([x], [x11], [no], [yes])
|
|
fi
|
|
|
|
### libgpiod
|
|
# Set ac_cv_libgpiod to yes/no
|
|
# Define USE_LIBGPIOD in config.h
|
|
# Substitute LIBGPIOD_CFLAGS and LIBGPIOD_LIBS in Makefile
|
|
AC_FLRIG_PKG_CHECK([libgpiod], [libgpiod >= 2.2.1], [no], [yes])
|
|
|
|
### build info
|
|
# Define various build variables in config.h
|
|
AC_FLRIG_BUILD_INFO
|
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile])
|
|
|
|
AC_OUTPUT
|
|
|
|
### summary
|
|
|
|
AC_MSG_RESULT([
|
|
Configuration summary:
|
|
|
|
Version ..................... $VERSION
|
|
|
|
Target OS ................... $target_os
|
|
|
|
libgpiod .................... $ac_cv_libgpiod
|
|
|
|
Static linking .............. $ac_cv_static
|
|
CPU optimizations ........... $ac_cv_opt
|
|
Debugging ................... $ac_cv_debug
|
|
|
|
])
|