2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(libdecnumber, [ ], gcc-bugs@gcc.gnu.org, libdecnumber)
6 AC_CONFIG_SRCDIR(decNumber.h)
7 AC_CONFIG_MACRO_DIR(../config)
14 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
15 AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
16 AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
17 AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
19 # Figure out what compiler warnings we can enable.
20 # See config/warnings.m4 for details.
22 ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
23 -Wmissing-prototypes -Wold-style-definition \
24 -Wmissing-format-attribute])
25 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
27 # Only enable with --enable-werror-always until existing warnings are
29 ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
31 # Checks for header files.
32 AC_CHECK_HEADERS(ctype.h stddef.h string.h stdio.h)
34 # Checks for typedefs, structures, and compiler characteristics.
40 # Checks for library functions.
43 AC_ARG_ENABLE(maintainer-mode,
44 [ --enable-maintainer-mode enable rules only needed by maintainers],,
45 enable_maintainer_mode=no)
47 if test "x$enable_maintainer_mode" = xno; then
56 AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
57 AC_CONFIG_FILES(Makefile)