Makefile.in (clean): Remove stray reference to libcpp.a.
* Makefile.in (clean): Remove stray reference to libcpp.a.
* decimal128.h, decContext.c, decRound.c, decimal32.c,
decNumber.c, decContext.h, decimal64.c, decimal32.h, decNumber.h,
decimal64.h, decUtility.c, decLibrary.c, configure.ac,
decNumberLocal.h, decUtility.h, decDPD.h, decimal128.c: Update FSF
office address.
From-SVN: r108024
2005-12-05 00:50:48 +01:00
|
|
|
# configure.ac for libdecnumber -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to generate a configuration script.
|
|
|
|
|
2022-01-03 10:42:10 +01:00
|
|
|
# Copyright (C) 2005-2022 Free Software Foundation, Inc.
|
Makefile.in (clean): Remove stray reference to libcpp.a.
* Makefile.in (clean): Remove stray reference to libcpp.a.
* decimal128.h, decContext.c, decRound.c, decimal32.c,
decNumber.c, decContext.h, decimal64.c, decimal32.h, decNumber.h,
decimal64.h, decUtility.c, decLibrary.c, configure.ac,
decNumberLocal.h, decUtility.h, decDPD.h, decimal128.c: Update FSF
office address.
From-SVN: r108024
2005-12-05 00:50:48 +01:00
|
|
|
|
|
|
|
# This file is part of GCC.
|
|
|
|
|
|
|
|
# GCC is free software; you can redistribute it and/or modify it under
|
|
|
|
# the terms of the GNU General Public License as published by the Free
|
2009-04-09 17:00:19 +02:00
|
|
|
# Software Foundation; either version 3, or (at your option) any
|
Makefile.in (clean): Remove stray reference to libcpp.a.
* Makefile.in (clean): Remove stray reference to libcpp.a.
* decimal128.h, decContext.c, decRound.c, decimal32.c,
decNumber.c, decContext.h, decimal64.c, decimal32.h, decNumber.h,
decimal64.h, decUtility.c, decLibrary.c, configure.ac,
decNumberLocal.h, decUtility.h, decDPD.h, decimal128.c: Update FSF
office address.
From-SVN: r108024
2005-12-05 00:50:48 +01:00
|
|
|
# later #version.
|
|
|
|
|
|
|
|
# GCC is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
|
|
# License #for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2009-04-09 17:00:19 +02:00
|
|
|
# along with GCC; see the file COPYING3. If not see
|
|
|
|
# <http://www.gnu.org/licenses/>.
|
2005-11-29 05:09:41 +01:00
|
|
|
|
|
|
|
AC_INIT(libdecnumber, [ ], gcc-bugs@gcc.gnu.org, libdecnumber)
|
|
|
|
AC_CONFIG_SRCDIR(decNumber.h)
|
|
|
|
AC_CONFIG_MACRO_DIR(../config)
|
2013-07-09 12:24:39 +02:00
|
|
|
AC_CONFIG_AUX_DIR(..)
|
2005-11-29 05:09:41 +01:00
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_RANLIB
|
2020-05-23 23:41:45 +02:00
|
|
|
AC_CHECK_TOOL(AR, ar)
|
2005-11-29 05:09:41 +01:00
|
|
|
|
|
|
|
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
|
|
|
|
AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
|
|
|
|
AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
|
|
|
|
AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
|
|
|
|
|
|
|
|
# Figure out what compiler warnings we can enable.
|
|
|
|
# See config/warnings.m4 for details.
|
|
|
|
|
|
|
|
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
|
|
|
|
-Wmissing-prototypes -Wold-style-definition \
|
configure.ac (ACX_PROG_CC_WARNING_OPTS): Add -Wcast-qual.
* configure.ac (ACX_PROG_CC_WARNING_OPTS): Add -Wcast-qual.
* configure, config.in: Regenerate.
* decContext.c (decContextStatusToString): Constify.
* decContext.h (decContextStatusToString): Likewise.
* decNumber.c (decNumberToString, decNumberToEngString,
decNumberAbs, decNumberAdd, decNumberCompare, decNumberDivide,
decNumberDivideInteger, decNumberMax, decNumberMin,
decNumberMinus, decNumberPlus, decNumberMultiply,
decNumberNormalize, decNumberQuantize, decNumberRescale,
decNumberRemainder, decNumberRemainderNear,
decNumberSameQuantum, decNumberSquareRoot, decNumberSubtract,
decNumberToIntegralValue, decNumberCopy, decToString, decAddOp,
decDivideOp, decMultiplyOp, decQuantizeOp, decCompareOp,
decCompare, decUnitCompare, decUnitAddSub, decRoundOperand,
decCopyFit, decSetCoeff, decGetInt, decNaNs, decGetDigits,
decNumberShow, decDumpAr, decCheckOperands, decCheckNumber):
Likewise.
* decNumber.h (decNumberToString, decNumberToEngString,
decNumberAbs, decNumberAdd, decNumberCompare, decNumberDivide,
decNumberDivideInteger, decNumberMax, decNumberMin,
decNumberMinus, decNumberMultiply, decNumberNormalize,
decNumberPlus, decNumberQuantize, decNumberRemainder,
decNumberRemainderNear, decNumberRescale,
decNumberSameQuantum, decNumberSquareRoot, decNumberSubtract,
decNumberToIntegralValue, decNumberCopy): Likewise.
* decUtility.c (decDensePackCoeff, decDenseUnpackCoeff):
Likewise.
* decUtility.h (decDensePackCoeff, decDenseUnpackCoeff):
Likewise.
* decimal128.c (decimal128FromNumber, decimal128ToNumber,
decimal128ToString, decimal128ToEngString, decimal128Show):
Likewise.
* decimal128.h (decimal128ToString, decimal128ToEngString,
decimal128FromNumber, decimal128ToNumber): Likewise.
* decimal32.c (decimal32FromNumber, decimal32ToNumber,
decimal32ToString, decimal32ToEngString, decimal32Show):
Likewise.
* decimal32.h (decimal32ToString, decimal32ToEngString,
decimal32FromNumber, decimal32ToNumber): Likewise.
* decimal64.c (decimal64FromNumber, decimal64ToNumber,
decimal64ToString, decimal64ToEngString, decimal64Show):
Likewise.
* decimal64.h (decimal64ToString, decimal64ToEngString,
decimal64FromNumber, decimal64ToNumber): Likewise.
From-SVN: r116738
2006-09-07 06:17:01 +02:00
|
|
|
-Wmissing-format-attribute -Wcast-qual])
|
2005-11-29 05:09:41 +01:00
|
|
|
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
|
|
|
|
|
2017-01-08 17:43:30 +01:00
|
|
|
ACX_PROG_CC_WARNING_OPTS([-fno-lto], [nolto_flags])
|
|
|
|
|
2005-11-29 05:09:41 +01:00
|
|
|
# Only enable with --enable-werror-always until existing warnings are
|
|
|
|
# corrected.
|
|
|
|
ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_CHECK_HEADERS(ctype.h stddef.h string.h stdio.h)
|
2006-01-02 19:53:27 +01:00
|
|
|
GCC_HEADER_STDINT(gstdint.h)
|
2005-11-29 05:09:41 +01:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_CHECK_SIZEOF(int)
|
|
|
|
AC_CHECK_SIZEOF(long)
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(maintainer-mode,
|
|
|
|
[ --enable-maintainer-mode enable rules only needed by maintainers],,
|
|
|
|
enable_maintainer_mode=no)
|
|
|
|
|
|
|
|
if test "x$enable_maintainer_mode" = xno; then
|
|
|
|
MAINT='#'
|
|
|
|
else
|
|
|
|
MAINT=
|
|
|
|
fi
|
|
|
|
AC_SUBST(MAINT)
|
|
|
|
|
2007-06-18 16:32:14 +02:00
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
|
2007-03-24 18:04:47 +01:00
|
|
|
# Default decimal format
|
|
|
|
# If you change the defaults here, be sure to change them in the GCC directory also
|
|
|
|
AC_MSG_CHECKING([for decimal floating point])
|
2010-09-03 15:14:14 +02:00
|
|
|
|
|
|
|
GCC_AC_ENABLE_DECIMAL_FLOAT([$target])
|
2007-03-24 18:04:47 +01:00
|
|
|
|
2010-09-06 16:52:54 +02:00
|
|
|
# Use default_decimal_float for dependency.
|
|
|
|
enable_decimal_float=$default_decimal_float
|
|
|
|
|
2007-10-31 18:54:43 +01:00
|
|
|
# If BID is being used, additional objects should be linked in.
|
|
|
|
if test x$enable_decimal_float = xbid; then
|
|
|
|
ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
|
|
|
|
else
|
|
|
|
ADDITIONAL_OBJS=
|
|
|
|
fi
|
|
|
|
|
2007-03-24 18:04:47 +01:00
|
|
|
AC_MSG_RESULT($enable_decimal_float)
|
|
|
|
AC_SUBST(enable_decimal_float)
|
2007-10-31 18:54:43 +01:00
|
|
|
AC_SUBST(ADDITIONAL_OBJS)
|
2007-03-24 18:04:47 +01:00
|
|
|
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
2013-10-15 22:33:55 +02:00
|
|
|
# Enable --enable-host-shared.
|
|
|
|
AC_ARG_ENABLE(host-shared,
|
|
|
|
[AS_HELP_STRING([--enable-host-shared],
|
|
|
|
[build host code as shared libraries])],
|
|
|
|
[PICFLAG=-fPIC], [PICFLAG=])
|
|
|
|
AC_SUBST(PICFLAG)
|
|
|
|
|
2020-05-12 18:19:14 +02:00
|
|
|
# Enable Intel CET on Intel CET enabled host if jit is enabled.
|
|
|
|
GCC_CET_HOST_FLAGS(CET_HOST_FLAGS)
|
|
|
|
case x$enable_languages in
|
|
|
|
*jit*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
CET_HOST_FLAGS=
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(CET_HOST_FLAGS)
|
|
|
|
|
|
|
|
|
2005-11-29 05:09:41 +01:00
|
|
|
# Output.
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
|
|
|
|
AC_CONFIG_FILES(Makefile)
|
|
|
|
AC_OUTPUT
|