Autoconfiscate this directory:
[gcc.git] / libdecnumber / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
5 AC_INIT(libdecnumber, [ ], gcc-bugs@gcc.gnu.org, libdecnumber)
6 AC_CONFIG_SRCDIR(decNumber.h)
7 AC_CONFIG_MACRO_DIR(../config)
8
9 # Checks for programs.
10 AC_PROG_MAKE_SET
11 AC_PROG_CC
12 AC_PROG_RANLIB
13
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])
18
19 # Figure out what compiler warnings we can enable.
20 # See config/warnings.m4 for details.
21
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])
26
27 # Only enable with --enable-werror-always until existing warnings are
28 # corrected.
29 ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
30
31 # Checks for header files.
32 AC_CHECK_HEADERS(ctype.h stddef.h string.h stdio.h)
33
34 # Checks for typedefs, structures, and compiler characteristics.
35 AC_C_CONST
36 AC_TYPE_OFF_T
37 AC_CHECK_SIZEOF(int)
38 AC_CHECK_SIZEOF(long)
39
40 # Checks for library functions.
41 AC_HEADER_STDC
42
43 AC_ARG_ENABLE(maintainer-mode,
44 [ --enable-maintainer-mode enable rules only needed by maintainers],,
45 enable_maintainer_mode=no)
46
47 if test "x$enable_maintainer_mode" = xno; then
48 MAINT='#'
49 else
50 MAINT=
51 fi
52 AC_SUBST(MAINT)
53
54 # Output.
55
56 AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
57 AC_CONFIG_FILES(Makefile)
58 AC_OUTPUT