Fix license info ( BSD-3-Clause -> BSD-2.0 )
[platform/upstream/bzip2.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.57])
5 AC_INIT([bzip2], [1.0.5], [Julian Seward <jseward@bzip.org>])
6 BZIP2_LT_CURRENT=1
7 BZIP2_LT_REVISION=6
8 BZIP2_LT_AGE=0
9 AC_CONFIG_SRCDIR([bzlib.h])
10 AC_CONFIG_MACRO_DIR([m4])
11
12 AM_INIT_AUTOMAKE([foreign subdir-objects])
13 AM_MAINTAINER_MODE
14
15 # Checks for programs.
16 AC_PROG_AWK
17 AC_PROG_CC_STDC
18 AC_PROG_CC_C_O
19 AC_USE_SYSTEM_EXTENSIONS
20 AC_PROG_INSTALL
21 AC_PROG_LN_S
22 AC_PROG_MAKE_SET
23 LT_INIT([disable-static pic-only])
24 PKG_PROG_PKG_CONFIG
25 gl_VISIBILITY
26 # Checks for libraries.
27
28 # Checks for header files.
29
30 # Checks for typedefs, structures, and compiler characteristics.
31
32 # Check for system features.
33 AC_SYS_LARGEFILE
34
35 AC_MSG_CHECKING([whether compiler understands -Wall])
36 save_CFLAGS="$CFLAGS"
37 CFLAGS="$CFLAGS -Wall"
38 AC_TRY_COMPILE([], [], [
39         AC_MSG_RESULT([yes])
40 ], [
41         AC_MSG_RESULT([no])
42         CFLAGS="$save_CFLAGS"
43 ])
44
45 AC_MSG_CHECKING([whether compiler understands -Winline])
46 save_CFLAGS="$CFLAGS"
47 CFLAGS="$CFLAGS -Winline"
48 AC_TRY_COMPILE([], [], [
49         AC_MSG_RESULT([yes])
50 ], [
51         AC_MSG_RESULT([no])
52         CFLAGS="$save_CFLAGS"
53 ])
54
55 # Checks for library functions.
56
57 # Write the output.
58 AC_SUBST([BZIP2_LT_CURRENT])
59 AC_SUBST([BZIP2_LT_REVISION])
60 AC_SUBST([BZIP2_LT_AGE])
61 AC_CONFIG_FILES([Makefile bzip2.pc])
62 AC_OUTPUT