File configure.ac of Package libfatfs
dnl SPDX-License-Identifier: LGPL-3.0-or-later dnl Copyright (C) 2023 Perry Werneck <perry.werneck@gmail.com> dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation, either version 3 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU Lesser General Public License dnl along with this program. If not, see <https://www.gnu.org/licenses/>. dnl Process this file with autoconf to produce a configure script. dnl The minimum version of autoconf required. AC_PREREQ([2.69]) dnl Initialise automake with the package name, version and dnl bug-reporting address. AC_INIT([libfatfs],[0.15],[perry.werneck@gmail.com],[libudjat],[https://github.com/PerryWerneck/libudjat.git]) dnl Place auxilliary scripts here. AC_CONFIG_AUX_DIR([scripts]) dnl Compute the canonical host-system type AC_CANONICAL_HOST dnl Put macro definitions here (though they aren't used). dnl AC_CONFIG_HEADER([src/include/config.h]) dnl Initialise automake stuff. AM_INIT_AUTOMAKE dnl Check for iconv AM_ICONV LT_INIT AC_CONFIG_MACRO_DIRS([m4]) dnl Set gettext version AM_GNU_GETTEXT_VERSION([0.14]) dnl Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_SED AC_PROG_LN_S AC_LANG([C]) dnl --------------------------------------------------------------------------- dnl Version info dnl --------------------------------------------------------------------------- app_vrs_major=$(echo $VERSION | cut -d. -f1) app_vrs_minor=$(echo $VERSION | cut -d. -f2) AC_DEFINE_UNQUOTED(PACKAGE_MAJOR_VERSION, $app_vrs_major, [The module major version]) AC_DEFINE_UNQUOTED(PACKAGE_MINOR_VERSION, $app_vrs_minor, [The module minor version]) AC_SUBST(PACKAGE_MAJOR_VERSION,$app_vrs_major) AC_SUBST(PACKAGE_MINOR_VERSION,$app_vrs_minor) dnl --------------------------------------------------------------------------- dnl Set the ELF symbol visibility support dnl --------------------------------------------------------------------------- AC_DEFINE(HAVE_GNUC_VISIBILITY, 1, [supports GCC visibility attributes]) dnl --------------------------------------------------------------------------- dnl Check for pic dnl --------------------------------------------------------------------------- CFLAGS="$CFLAGS -fPIC" dnl --------------------------------------------------------------------------- dnl Configure which files to generate. dnl --------------------------------------------------------------------------- AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(pkgconfig.pc) dnl --------------------------------------------------------------------------- dnl Output the generated config.status script. dnl --------------------------------------------------------------------------- AC_OUTPUT