Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 183 lines (161 sloc) 5.353 kb
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [0])
a10d4235 »
2011-03-11 Write/read new magic header and fix version number in configure.ac
4 m4_define([v_min], [6])
d5c00f96 »
2013-09-09 Bump version number to 0.616
5 m4_define([v_mic], [16])
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
6 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3e484bba »
2011-03-09 Fix version number
7 m4_define([v_v], m4_join([], v_min, v_mic))
8 m4_define([v_ver], [v_maj.v_v])
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
9 m4_define([lt_rev], m4_eval(v_maj + v_min))
f0828d5b »
2011-03-09 split-minor-micro-versions
10 m4_define([lt_cur], v_mic)
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
11 m4_define([lt_age], v_min)
12 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14
15
6dcceb0b »
2010-03-29 Initial import
16 dnl Process this file with autoconf to produce a configure script.
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
17 AC_INIT([lrzip],[v_ver],[kernel@kolivas.org])
18 AC_PREREQ([2.59])
19 AC_CONFIG_SRCDIR([configure.ac])
20 AC_CONFIG_MACRO_DIR([m4])
21 AC_CONFIG_HEADERS([config.h])
22
23 AM_INIT_AUTOMAKE([1.6 dist-bzip2 foreign])
24 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
73316ae2 »
2012-07-07 Use system extensions in configure.ac to allow to build on non-gnu-li…
25 AC_USE_SYSTEM_EXTENSIONS
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
26
27 AC_PROG_LIBTOOL
28 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
29 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
30 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
31 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
68cca4de »
2011-03-22 More streamlining of version number. Fixes problems with osx version …
32 AC_DEFINE_UNQUOTED(LRZIP_MAJOR_VERSION, [v_maj], [Major version])
33 AC_DEFINE_UNQUOTED(LRZIP_MINOR_VERSION, [v_min], [Minor version])
34 AC_DEFINE_UNQUOTED(LRZIP_MINOR_SUBVERSION, [v_mic], [Micro version])
f0828d5b »
2011-03-09 split-minor-micro-versions
35 version_info="lt_rev:lt_cur:lt_age"
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
36 release_info="v_rel"
37 AC_SUBST(version_info)
38 AC_SUBST(release_info)
39 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
40 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
41 VMAJ=v_maj
42 AC_SUBST(VMAJ)
43
44 AC_CANONICAL_BUILD
6dcceb0b »
2010-03-29 Initial import
45 AC_CANONICAL_HOST
46
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
47 dnl Checks for programs.
48 AC_PROG_CC
49 AC_PROG_CXX
50 AC_PROG_INSTALL
51 AC_PROG_LN_S
52 AC_SUBST(SHELL)
ebd32203 »
2011-03-09 Reinstate largefile check.
53 AC_SYS_LARGEFILE
d7495cee »
2011-08-12 add alloca check
54 AC_FUNC_ALLOCA
f225f9f1 »
2012-03-07 Move to c99 in preparation for pedantic warning compatibility.
55 AC_PROG_CC_C99
56 AS_IF([test "x$ac_cv_prog_cc_c99" = "xno"],
57 AC_MSG_ERROR([C compiler does not support C99], 1))
7b59e41a »
2011-03-24 Check for podman since we'll be calling it.
58 AC_CHECK_PROG([HAVE_POD2MAN], [pod2man], [yes])
59 AS_IF([test "$HAVE_POD2MAN" != "yes"],
60 AC_MSG_FAILURE([pod2man is needed to generate manual from POD]))
61
62
65e8ca4b »
2012-03-07 Revert "Add a debug build option to allow optimising out checks in ho…
63 AC_ARG_ENABLE(
6dcceb0b »
2010-03-29 Initial import
64 asm,
65 [AC_HELP_STRING([--enable-asm],[Enable native Assembly code])],
66 ASM=$enableval,
67 ASM=yes
68 )
69 if test x"$ASM" = xyes; then
1fea416d »
2010-04-03 Minor changes
70 AC_CHECK_PROG( ASM_PROG, nasm, yes, no )
71 if test x"$ASM_PROG" = x"no "; then
72 ASM=no
73 fi
6dcceb0b »
2010-03-29 Initial import
74 fi
75
0efcec63 »
2011-03-23 Reenable static binary compilation with --enable-static-bin configura…
76 static=no
77 AC_ARG_ENABLE([static-bin],
78 [AC_HELP_STRING([--enable-static-bin],[Build statically linked binary @<:@default=no@:>@])],
79 [static=$enableval]
80 )
81 AM_CONDITIONAL([STATIC], [test "x$static" = "xyes"])
82
1827dd35 »
2011-03-09 remove-unnecessary-header-checks
83 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/mman.h)
84 AC_CHECK_HEADERS(ctype.h errno.h sys/resource.h)
70e78662 »
2011-03-22 Include arpa/inet.h for those OSs that have endian details elsewhere.
85 AC_CHECK_HEADERS(endian.h sys/endian.h arpa/inet.h)
901e507b »
2012-07-07 Include test for pthread.h and include header in lrzip_private.h.
86 AC_CHECK_HEADERS(alloca.h pthread.h)
6dcceb0b »
2010-03-29 Initial import
87
88 AC_TYPE_OFF_T
89 AC_TYPE_SIZE_T
f6f0a25e »
2011-03-09 rebase-of-function-split-and-control-additions-to-fu
90 AC_C___ATTRIBUTE__
6dcceb0b »
2010-03-29 Initial import
91 AC_CHECK_SIZEOF(int)
92 AC_CHECK_SIZEOF(long)
93 AC_CHECK_SIZEOF(short)
94
2b49ca9d »
2011-03-24 Forgot to install the lrzuntar, lrunzip symlinks and the pod based ma…
95 if test $ac_cv_sizeof_long != 4 -a "x$ASM" = "xyes" ; then
96 AC_MSG_WARN([64bit arch detected, disabling ASM])
97 ASM=no
98 fi
99
100
6dcceb0b »
2010-03-29 Initial import
101 AC_CACHE_CHECK([for large file support],rzip_cv_HAVE_LARGE_FILES,[
102 AC_RUN_IFELSE([AC_LANG_SOURCE([[
103 #include <stdio.h>
104 #include <sys/types.h>
105 main() { return (sizeof(off_t) == 4); }]])],[rzip_cv_HAVE_LARGE_FILES=yes],[rzip_cv_HAVE_LARGE_FILES=no],[rzip_cv_HAVE_LARGE_FILES=cross])])
106 if test x"$rzip_cv_HAVE_LARGE_FILES" = x"yes"; then
107 AC_DEFINE(HAVE_LARGE_FILES, 1, [ ])
108 fi
109
110 AC_C_INLINE
111
73e921b8 »
2012-12-30 Check endianness of build with autotools to enable md5 support on mor…
112 AC_C_BIGENDIAN
113
6dcceb0b »
2010-03-29 Initial import
114 AC_CHECK_LIB(pthread, pthread_create, ,
115 AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
116 AC_CHECK_LIB(m, sqrt, ,
117 AC_MSG_ERROR([Could not find math library - please install libm]))
118 AC_CHECK_LIB(z, compress2, ,
119 AC_MSG_ERROR([Could not find zlib library - please install zlib-dev]))
120 AC_CHECK_LIB(bz2, BZ2_bzBuffToBuffCompress, ,
121 AC_MSG_ERROR([Could not find bz2 library - please install libbz2-dev]))
122 AC_CHECK_LIB(lzo2, lzo1x_1_compress, ,
123 AC_MSG_ERROR([Could not find lzo2 library - please install liblzo2-dev]))
124
125 AC_CHECK_FUNCS(mmap strerror)
126 AC_CHECK_FUNCS(getopt_long)
127
128 # final checks for x86 and/or assembler
129 if test x"$ASM" = x"no"; then
130 ASM_OBJ=7zCrc.o
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
131 ASM=no
6dcceb0b »
2010-03-29 Initial import
132 else
133 case $host in
134 i?86-*)
135 ASM_OBJ="7zCrcT8.o 7zCrcT8U.o"
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
136 ASM_CMD="$ASM_PROG -f elf" ;;
6dcceb0b »
2010-03-29 Initial import
137 # x86_64 code is broken still
138 # x86_64-*)
139 # ASM_OBJ="7zCrcT8.o 7zCrcT8U_64.o"
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
140 # ASM_CMD="$ASM_PROG -f elf64" ;;
6dcceb0b »
2010-03-29 Initial import
141 *) ASM_OBJ=7zCrc.o ;;
142 esac
143 fi
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
144 AM_CONDITIONAL([USE_ASM], [test "x$ASM" != "xyes" -a "x$ASM" != "xno"])
6dcceb0b »
2010-03-29 Initial import
145 AC_SUBST([ASM_OBJ])
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
146 AC_SUBST([ASM_CMD])
754ed90e »
2012-03-07 Full doxygen implementation courtesy of discomfitor <mike@zentific.com>
147 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
148
149 AC_CONFIG_FILES([
150 Makefile
584dbc75 »
2011-11-23 add pc file
151 lrzip.pc
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
152 lzma/Makefile
153 lzma/C/Makefile
154 doc/Makefile
155 man/Makefile
156 ])
6dcceb0b »
2010-03-29 Initial import
157 AC_OUTPUT
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
158
159 echo
160 echo
161 echo
162 echo "------------------------------------------------------------------------"
163 echo "$PACKAGE $VERSION"
164 echo "------------------------------------------------------------------------"
165 echo
166 echo
167 echo "Configuration Options Summary:"
168 echo
2b49ca9d »
2011-03-24 Forgot to install the lrzuntar, lrunzip symlinks and the pod based ma…
169 echo " ASM.(32 bit only)..: $ASM"
0efcec63 »
2011-03-23 Reenable static binary compilation with --enable-static-bin configura…
170 echo " Static binary......: $static"
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
171 echo
754ed90e »
2012-03-07 Full doxygen implementation courtesy of discomfitor <mike@zentific.com>
172 echo "Documentation..........: ${build_doc}"
173 echo
5eaa1cc4 »
2011-02-27 Updated autotools/conf system courtesy of Michael Blumenkrantz <mike@…
174 echo "Compilation............: make (or gmake)"
175 echo " CPPFLAGS.............: $CPPFLAGS"
176 echo " CFLAGS...............: $CFLAGS"
177 echo " CXXFLAGS.............: $CXXFLAGS"
178 echo " LDFLAGS..............: $LDFLAGS"
179 echo
180 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
181 echo " prefix...............: $prefix"
182 echo
Something went wrong with that request. Please try again.