File:  [Coherent Logic Development] / freem / configure.ac
Revision 1.12: download - view: text, annotated - select for diffs
Sat Mar 29 16:50:42 2025 UTC (4 months, 2 weeks ago) by snw
Branches: MAIN
CVS tags: HEAD
Back to cvs-current as version for development; temp fix for double-free issue in global_dispatch

    1: #
    2: #   $Id: configure.ac,v 1.12 2025/03/29 16:50:42 snw Exp $
    3: #    autoconf rules for FreeM
    4: #
    5: #  
    6: #   Author: Serena Willis <jpw@coherent-logic.com>
    7: #    Copyright (C) 1998 MUG Deutschland
    8: #    Copyright (C) 2020, 2025 Coherent Logic Development LLC
    9: #
   10: #
   11: #   This file is part of FreeM.
   12: #
   13: #   FreeM is free software: you can redistribute it and/or modify
   14: #   it under the terms of the GNU Affero Public License as published by
   15: #   the Free Software Foundation, either version 3 of the License, or
   16: #   (at your option) any later version.
   17: #
   18: #   FreeM is distributed in the hope that it will be useful,
   19: #   but WITHOUT ANY WARRANTY; without even the implied warranty of
   20: #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21: #   GNU Affero Public License for more details.
   22: #
   23: #   You should have received a copy of the GNU Affero Public License
   24: #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   25: #
   26: #   $Log: configure.ac,v $
   27: #   Revision 1.12  2025/03/29 16:50:42  snw
   28: #   Back to cvs-current as version for development; temp fix for double-free issue in global_dispatch
   29: #
   30: #   Revision 1.11  2025/03/27 03:31:16  snw
   31: #   Prepare for release of FreeM cvs-current
   32: #
   33: #   Revision 1.10  2025/03/23 19:42:18  snw
   34: #   Back to cvs-current versioning for continued development work
   35: #
   36: #   Revision 1.9  2025/03/23 04:42:33  snw
   37: #   Prepare for release of FreeM cvs-current
   38: #
   39: #   Revision 1.8  2025/03/16 16:08:26  snw
   40: #   Back on cvs-current versioning for continued development
   41: #
   42: #   Revision 1.7  2025/03/15 03:19:33  snw
   43: #   Fix broken build and update to cvs-current
   44: #
   45: #   Revision 1.6  2025/03/15 02:26:35  snw
   46: #   Prepare for cvs-current release
   47: #
   48: #   Revision 1.5  2025/03/09 19:14:24  snw
   49: #   First phase of REUSE compliance and header reformat
   50: #
   51: #
   52: # SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
   53: # SPDX-License-Identifier: AGPL-3.0-or-later
   54: 
   55: 
   56: AC_INIT([freem],[cvs-current],[snw@coherent-logic.com])
   57: AC_CONFIG_HEADERS([src/config.h])
   58: AC_CONFIG_MACRO_DIR([m4])
   59: 
   60: AX_LIB_READLINE
   61: 
   62: # check for libm
   63: AC_CHECK_LIB([m], [powf])
   64: AC_CHECK_LIB([m], [pow])
   65: 
   66: AC_CANONICAL_HOST
   67: 
   68: # find out if we need to link with -lsocket and/or -lnsl to get
   69: # BSD sockets support
   70: 
   71: AU_ALIAS([LIB_SOCKET_NSL], [AX_LIB_SOCKET_NSL])
   72: 
   73: AC_DEFUN([AX_LIB_SOCKET_NSL],
   74: [
   75:         AC_SEARCH_LIBS([gethostbyname], [nsl])
   76:         AC_SEARCH_LIBS([socket], [socket], [], [
   77:                 AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"],
   78:                 [], [-lnsl])])
   79: ])
   80: 
   81: AX_LIB_SOCKET_NSL
   82: 
   83: #
   84: # check for getopt.h and getopt_long
   85: #
   86: AC_CHECK_HEADERS(getopt.h)
   87: AC_CHECK_FUNCS([getopt_long])
   88: 
   89: #
   90: # bring in X11, X Toolkit, and Motif if --enable-mwapi is passed to configure
   91: #
   92: AC_ARG_ENABLE([mwapi],  AS_HELP_STRING([--enable-mwapi], [Enable MWAPI (OSF/Motif) support (EXPERIMENTAL)]))
   93: 
   94: AS_IF([test "x$enable_mwapi" = "xyes"], [
   95:   AX_LIB_MOTIF
   96: ]) 
   97: 
   98: # check for wiringPi headers and library linkage for
   99: # ^$ZRPI ssv on Raspberry Pi SBCs
  100: AC_CHECK_HEADERS(wiringPi.h)
  101: 
  102: AC_DEFUN([AX_LIB_WIRINGPI],
  103: [
  104:         AC_SEARCH_LIBS([wiringPiSetup], [wiringPi], [], [
  105:                 AC_CHECK_LIB([wiringPi], [wiringPiSetup], [LIBS="-lwiringPi $LIBS"],
  106:                 [], [-lwiringPi])])
  107: ])
  108: 
  109: AX_LIB_WIRINGPI
  110: 
  111: AC_ENABLE_SHARED
  112: AC_DISABLE_STATIC
  113: LT_INIT
  114: AM_INIT_AUTOMAKE
  115: AC_CONFIG_FILES(Makefile src/Makefile doc/Makefile)
  116: AC_PROG_CC
  117: # AC_PATH_XTRA
  118: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>