Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 190 lines (163 sloc) 7.611 kb
35e0eb0 @syzdek initial import
authored
1 #
a4aef1d @syzdek Rebranding as DMS Tools and Utilities (dmstools).
authored
2 # DMS Tools and Utilities
a14ecd6 @syzdek Preparing for release v0.9
authored
3 # Copyright (C) 2008, 2009, 2010 David M. Syzdek <david@syzdek.net>
35e0eb0 @syzdek initial import
authored
4 #
5 # @SYZDEK_LICENSE_HEADER_START@
86fd7e1 @syzdek Removed trailing spaces in copyright notice.
authored
6 #
ac38e5e @syzdek Updating license to modified BSD license.
authored
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions are
9 # met:
10 #
11 # * Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 # * Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
15 # documentation and/or other materials provided with the distribution.
16 # * Neither the name of David M. Syzdek nor the
17 # names of its contributors may be used to endorse or promote products
18 # derived from this software without specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21 # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR
24 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 # SUCH DAMAGE.
86fd7e1 @syzdek Removed trailing spaces in copyright notice.
authored
31 #
35e0eb0 @syzdek initial import
authored
32 # @SYZDEK_LICENSE_HEADER_END@
33 #
34 # configure.in - automate compiling on a unix platform
35 #
36
37 AC_PREREQ(2.61)
38
c20787a @syzdek Updating package to use bindletools build tools.
authored
39 AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013 David M. Syzdek <david@syzdek.net>.])
35e0eb0 @syzdek initial import
authored
40 AC_REVISION($Revision: 1.13 $)
3899ecf @syzdek Incrementing verion numbers.
authored
41 AC_INIT([DMS Tools and Utilities],[1.3],[david@syzdek.net],[dmstools])
35e0eb0 @syzdek initial import
authored
42
3899ecf @syzdek Incrementing verion numbers.
authored
43 AC_SUBST([RELEASE_MONTH], ["July 2014"])
c20787a @syzdek Updating package to use bindletools build tools.
authored
44 AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013 David M. Syzdek."])
35e0eb0 @syzdek initial import
authored
45 AC_DEFINE_UNQUOTED(PACKAGE_COPYRIGHT, ["$PACKAGE_COPYRIGHT"], ["Copyright info"])
46
47 # Version Info:
48 # Current -- the current version number of this API
49 # Revision -- the revision of the implementation of the API version
50 # Age -- How many seqential past API versions is supported by
51 # this implementation
52 # Format => Current:Revision:Age
c20787a @syzdek Updating package to use bindletools build tools.
authored
53 AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0)
35e0eb0 @syzdek initial import
authored
54
c20787a @syzdek Updating package to use bindletools build tools.
authored
55 # autoconf options
35e0eb0 @syzdek initial import
authored
56 AC_CONFIG_AUX_DIR([build-aux])
79e1eb4 @syzdek Updating AC_CONFIG_SRCDIR in configure.ac
authored
57 AC_CONFIG_SRCDIR([build-aux/dmstools.tags])
35e0eb0 @syzdek initial import
authored
58 AC_CONFIG_HEADERS([config.h])
6923364 @syzdek Adding m4 include directory to configure.ac
authored
59 AC_CONFIG_MACRO_DIR([m4])
35e0eb0 @syzdek initial import
authored
60
61 # determines host type
62 AC_CANONICAL_BUILD
63 AC_CANONICAL_HOST
64 AC_CANONICAL_TARGET
65
66 # configures for automake
c20787a @syzdek Updating package to use bindletools build tools.
authored
67 AM_INIT_AUTOMAKE(gnu std-options subdir-objects color-tests)
35e0eb0 @syzdek initial import
authored
68
69 # Compilers
70 AC_PROG_CC
71 #AC_PROG_OBJC
b11fcb0 @syzdek Cleaning up autoconf file.
authored
72 AC_PROG_CXX
35e0eb0 @syzdek initial import
authored
73 AM_PROG_CC_C_O
74 AC_PROG_INSTALL
c20787a @syzdek Updating package to use bindletools build tools.
authored
75 #AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX
35e0eb0 @syzdek initial import
authored
76 AC_C_BIGENDIAN
77
78 # binary locations
c20787a @syzdek Updating package to use bindletools build tools.
authored
79 AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH])
80 AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])])
81 AC_CHECK_TOOLS(LD, ld gld, [AC_MSG_ERROR([missing binutil "ld"])])
82 AC_CHECK_TOOLS(NM, nm gnm, [AC_MSG_ERROR([missing binutil "nm"])])
83 AC_CHECK_TOOLS(RANLIB, ranlib granlib, [AC_MSG_ERROR([missing binutil "ranlib"])])
84 AC_CHECK_TOOLS(STRIP, strip gstrip, [AC_MSG_ERROR([missing binutil "strip"])])
35e0eb0 @syzdek initial import
authored
85
5323a6e @syzdek Updating configure.ac to follow my boilerplate.
authored
86 # shell programs
87 AC_PROG_AWK
88 AC_PROG_EGREP
89 AC_PROG_FGREP
90 AM_PROG_LEX
91 AC_PROG_LN_S
92
35e0eb0 @syzdek initial import
authored
93 # GNU Libtool Support
c20787a @syzdek Updating package to use bindletools build tools.
authored
94 LT_INIT(dlopen disable-fast-install win32-dll)
5323a6e @syzdek Updating configure.ac to follow my boilerplate.
authored
95
b11fcb0 @syzdek Cleaning up autoconf file.
authored
96 # check for common functions
97 AC_FUNC_FORK
98 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
99 AC_FUNC_MALLOC
100 AC_FUNC_OBSTACK
101 AC_FUNC_REALLOC
102 AC_FUNC_STRERROR_R
103
104 # Type checks
105 AC_TYPE_INT8_T
106 AC_TYPE_INT16_T
107 AC_TYPE_INT32_T
108 AC_TYPE_INT64_T
109 AC_TYPE_MODE_T
110 AC_TYPE_OFF_T
111 AC_TYPE_SIZE_T
112 AC_TYPE_SSIZE_T
113 AC_TYPE_UID_T
114 AC_TYPE_UINT8_T
115 AC_TYPE_UINT16_T
116 AC_TYPE_UINT32_T
117 AC_TYPE_UINT64_T
118
119 # check for required functions
120 AC_CHECK_FUNCS([bzero], [], [AC_MSG_ERROR([missing required functions])])
121 AC_CHECK_FUNCS([gettimeofday], [], [AC_MSG_ERROR([missing required functions])])
122 AC_CHECK_FUNCS([memset], [], [AC_MSG_ERROR([missing required functions])])
123 AC_CHECK_FUNCS([regcomp], [], [AC_MSG_ERROR([missing required functions])])
124 AC_CHECK_FUNCS([setlocale], [], [AC_MSG_ERROR([missing required functions])])
125 AC_CHECK_FUNCS([socket], [], [AC_MSG_ERROR([missing required functions])])
126 AC_CHECK_FUNCS([strcasecmp], [], [AC_MSG_ERROR([missing required functions])])
127 AC_CHECK_FUNCS([strchr], [], [AC_MSG_ERROR([missing required functions])])
128 AC_CHECK_FUNCS([strdup], [], [AC_MSG_ERROR([missing required functions])])
129 AC_CHECK_FUNCS([strerror], [], [AC_MSG_ERROR([missing required functions])])
130 AC_CHECK_FUNCS([strncasecmp], [], [AC_MSG_ERROR([missing required functions])])
131 AC_CHECK_FUNCS([strtol], [], [AC_MSG_ERROR([missing required functions])])
132 AC_CHECK_FUNCS([strtoul], [], [AC_MSG_ERROR([missing required functions])])
133 AC_CHECK_FUNCS([strtoumax], [], [AC_MSG_ERROR([missing required functions])])
134
135 # check for headers
136 AC_CHECK_HEADERS([arpa/inet.h], [], [AC_MSG_ERROR([missing required headers])])
137 AC_CHECK_HEADERS([fcntl.h], [], [AC_MSG_ERROR([missing required headers])])
138 AC_CHECK_HEADERS([getopt.h], [], [AC_MSG_ERROR([missing required headers])])
139 AC_CHECK_HEADERS([locale.h], [], [AC_MSG_ERROR([missing required headers])])
140 AC_CHECK_HEADERS([netdb.h], [], [AC_MSG_ERROR([missing required headers])])
141 AC_CHECK_HEADERS([sgtty.h], [], [AC_MSG_ERROR([missing required headers])])
142 AC_CHECK_HEADERS([stddef.h], [], [AC_MSG_ERROR([missing required headers])])
143 AC_CHECK_HEADERS([sys/socket.h], [], [AC_MSG_ERROR([missing required headers])])
144 AC_CHECK_HEADERS([sys/time.h], [], [AC_MSG_ERROR([missing required headers])])
145 AC_CHECK_HEADERS([termios.h], [], [AC_MSG_ERROR([missing required headers])])
146 AC_CHECK_HEADERS([utime.h], [], [AC_MSG_ERROR([missing required headers])])
147 AC_CHECK_HEADERS([wchar.h], [], [AC_MSG_ERROR([missing required headers])])
148 AC_CHECK_HEADERS([wctype.h], [], [AC_MSG_ERROR([missing required headers])])
149
150 # check types
151 AC_CHECK_TYPES([ptrdiff_t], [], [AC_MSG_ERROR([missing required data type])])
c20787a @syzdek Updating package to use bindletools build tools.
authored
152
153 # Symbol checks
154 AC_CHECK_DECLS([environ])
b11fcb0 @syzdek Cleaning up autoconf file.
authored
155 AC_CHECK_LIB([c], [arc4random], [], [AC_DEFINE_UNQUOTED([USE_RANDOM], 1, [Use random()])])
156 AC_CHECK_LIB([dl], [dlclose], [], [AC_MSG_ERROR([missing required library -ldl])])
157 AC_CHECK_LIB([dl], [dlerror], [], [AC_MSG_ERROR([missing required library -ldl])])
158 AC_CHECK_LIB([dl], [dlopen], [], [AC_MSG_ERROR([missing required library -ldl])])
159 AC_CHECK_LIB([dl], [dlsym], [], [AC_MSG_ERROR([missing required library -ldl])])
eb026bf @syzdek Adding autoconf checks for regex library functions
authored
160
18f044d @syzdek Adding support for pulling Package version from Git.
authored
161
b11fcb0 @syzdek Cleaning up autoconf file.
authored
162 AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])])
af5c861 @syzdek Adding utility suicide.
authored
163
b41682f @syzdek Updating bindletools.
authored
164 # initiates bindle tools macros
165 AC_BINDLE(contrib/bindletools)
166
c20787a @syzdek Updating package to use bindletools build tools.
authored
167 # determine PACKAGE_VERSION via Git
168 AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh])
169
b41682f @syzdek Updating bindletools.
authored
170 # custom configure options
171 AC_BINDLE_ENABLE_WARNINGS
172 AC_BINDLE_WITH_PERL
b11fcb0 @syzdek Cleaning up autoconf file.
authored
173 AC_DMS_REGEX
174 AC_DMS_SIGNAL
175 AC_DMS_WIN32
176
b41682f @syzdek Updating bindletools.
authored
177
35e0eb0 @syzdek initial import
authored
178 # Creates outputs
522a88c @syzdek Removing GNU Gettext from package.
authored
179 AC_CONFIG_FILES([Makefile])
35e0eb0 @syzdek initial import
authored
180 AC_OUTPUT
181
182 # Show local config
183 AC_MSG_NOTICE([ ])
184 AC_MSG_NOTICE([ Please send suggestions to: $PACKAGE_BUGREPORT])
185 AC_MSG_NOTICE([ ])
186 AC_MSG_NOTICE([ run `make all'])
187 AC_MSG_NOTICE([ ])
188
189 # end of autoconf script
Something went wrong with that request. Please try again.