Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 147 lines (125 sloc) 5.577 kb
35e0eb09 »
2008-10-03 initial import
1 #
a4aef1da »
2009-02-02 Rebranding as DMS Tools and Utilities (dmstools).
2 # DMS Tools and Utilities
a14ecd68 »
2010-01-06 Preparing for release v0.9
3 # Copyright (C) 2008, 2009, 2010 David M. Syzdek <david@syzdek.net>
35e0eb09 »
2008-10-03 initial import
4 #
5 # @SYZDEK_LICENSE_HEADER_START@
86fd7e1d »
2009-02-09 Removed trailing spaces in copyright notice.
6 #
ac38e5ed »
2012-02-05 Updating license to modified BSD license.
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.
86fd7e1d »
2009-02-09 Removed trailing spaces in copyright notice.
31 #
35e0eb09 »
2008-10-03 initial import
32 # @SYZDEK_LICENSE_HEADER_END@
33 #
34 # configure.in - automate compiling on a unix platform
35 #
36
37 AC_PREREQ(2.61)
38
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
39 AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013 David M. Syzdek <david@syzdek.net>.])
35e0eb09 »
2008-10-03 initial import
40 AC_REVISION($Revision: 1.13 $)
b76ee51e »
2011-08-06 Updating configure.ac version.
41 AC_INIT([DMS Tools and Utilities],[1.2],[david@syzdek.net],[dmstools])
35e0eb09 »
2008-10-03 initial import
42
b76ee51e »
2011-08-06 Updating configure.ac version.
43 AC_SUBST([RELEASE_MONTH], ["August 2011"])
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
44 AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013 David M. Syzdek."])
35e0eb09 »
2008-10-03 initial import
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
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
53 AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0)
35e0eb09 »
2008-10-03 initial import
54
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
55 # autoconf options
35e0eb09 »
2008-10-03 initial import
56 AC_CONFIG_AUX_DIR([build-aux])
79e1eb4d »
2010-06-24 Updating AC_CONFIG_SRCDIR in configure.ac
57 AC_CONFIG_SRCDIR([build-aux/dmstools.tags])
35e0eb09 »
2008-10-03 initial import
58 AC_CONFIG_HEADERS([config.h])
69233647 »
2009-12-31 Adding m4 include directory to configure.ac
59 AC_CONFIG_MACRO_DIR([m4])
35e0eb09 »
2008-10-03 initial import
60
61 # determines host type
62 AC_CANONICAL_BUILD
63 AC_CANONICAL_HOST
64 AC_CANONICAL_TARGET
65
66 # configures for automake
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
67 AM_INIT_AUTOMAKE(gnu std-options subdir-objects color-tests)
35e0eb09 »
2008-10-03 initial import
68
69 # Compilers
70 AC_PROG_CC
71 #AC_PROG_OBJC
72 #AC_PROG_CXX
73 AM_PROG_CC_C_O
74 AC_PROG_INSTALL
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
75 #AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX
35e0eb09 »
2008-10-03 initial import
76 AC_C_BIGENDIAN
77
78 # binary locations
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
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"])])
35e0eb09 »
2008-10-03 initial import
85
5323a6e8 »
2009-02-07 Updating configure.ac to follow my boilerplate.
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
35e0eb09 »
2008-10-03 initial import
93 # GNU Libtool Support
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
94 LT_INIT(dlopen disable-fast-install win32-dll)
5323a6e8 »
2009-02-07 Updating configure.ac to follow my boilerplate.
95
1d811f1d »
2010-01-18 Adding compiler warnings.
96 # custom configure options
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
97 AC_BINDLE_ENABLE_WARNINGS
98 AC_BINDLE_WITH_PERL
1d811f1d »
2010-01-18 Adding compiler warnings.
99
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
100 # enables getopt_long if header and functions were found
101 AC_CHECK_HEADERS([getopt.h], [AC_DEFINE_UNQUOTED(USE_GETOPT_LONG, 1, [Use GNU getopt_long])])
102
103 # Symbol checks
104 AC_CHECK_DECLS([environ])
105 AC_CHECK_LIB([c], [arc4random],,[AC_DEFINE_UNQUOTED([USE_RANDOM], 1, [Use random()])])
106 AC_CHECK_LIB([dl], [dlclose],,[AC_MSG_ERROR([missing required library -ldl])])
107 AC_CHECK_LIB([dl], [dlerror],,[AC_MSG_ERROR([missing required library -ldl])])
108 AC_CHECK_LIB([dl], [dlopen],,[AC_MSG_ERROR([missing required library -ldl])])
109 AC_CHECK_LIB([dl], [dlsym],,[AC_MSG_ERROR([missing required library -ldl])])
77053e55 »
2009-12-31 Working on dynamically updating Git package version on 'make all'
110
e15dd0b5 »
2009-08-14 Conditionally compiling codetagger if not on Win32
111 # tests for windows platform
112 case $host in
113 *mingw*) win32_host='yes';;
114 *) win32_host='no';;
115 esac
116 AM_CONDITIONAL([IS_WIN32], [test x$win32_host = xyes])
117
eb026bfe »
2009-08-14 Adding autoconf checks for regex library functions
118 have_regex=yes
119 AC_SEARCH_LIBS([regcomp], [regex],,[have_regex=no])
120 AC_SEARCH_LIBS([regexec], [regex],,[have_regex=no])
121 AC_SEARCH_LIBS([regfree], [regex],,[have_regex=no])
122 AC_SEARCH_LIBS([regerror], [regex],,[have_regex=no])
123 AM_CONDITIONAL([HAVE_REGEX], [test x$have_regex = xyes])
124
9b253863 »
2009-02-15 Adding bogus autoconf check for noobs in -lusers.
125 AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])])
18f044d5 »
2009-01-19 Adding support for pulling Package version from Git.
126
af5c8618 »
2010-09-28 Adding utility suicide.
127 have_signal=yes
128 AC_CHECK_HEADERS([signal.h], ,[have_signal=no])
129 AC_CHECK_TYPES([sig_t], ,[have_signal=no],[#include <signal.h>])
130 AC_SEARCH_LIBS([signal], ,,[have_signal=no])
131 AM_CONDITIONAL([HAVE_SIGNAL], [test x$have_signal = xyes])
132
c20787a5 »
2013-12-02 Updating package to use bindletools build tools.
133 # determine PACKAGE_VERSION via Git
134 AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh])
135
35e0eb09 »
2008-10-03 initial import
136 # Creates outputs
522a88cd »
2010-09-28 Removing GNU Gettext from package.
137 AC_CONFIG_FILES([Makefile])
35e0eb09 »
2008-10-03 initial import
138 AC_OUTPUT
139
140 # Show local config
141 AC_MSG_NOTICE([ ])
142 AC_MSG_NOTICE([ Please send suggestions to: $PACKAGE_BUGREPORT])
143 AC_MSG_NOTICE([ ])
144 AC_MSG_NOTICE([ run `make all'])
145 AC_MSG_NOTICE([ ])
146
147 # end of autoconf script
Something went wrong with that request. Please try again.