comparison configure.in @ 1352:c643342f3f33

Disable freaking autoheader. :)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 09 Feb 2006 05:46:55 +0000
parents 905dc98a40fa
children 7ba544e2888d
comparison
equal deleted inserted replaced
1351:82c38796c7ca 1352:c643342f3f33
1 dnl Process this file with autoconf to produce a configure script. 1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(README) 2 AC_INIT(README)
3 AH_TOP([/*
4 SDL - Simple DirectMedia Layer
5 Copyright (C) 1997-2006 Sam Lantinga
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
21 Sam Lantinga
22 slouken@libsdl.org
23 */
24
25 #ifndef _SDL_config_h
26 #define _SDL_config_h
27
28 /* This is a set of defines to configure the SDL features */
29
30 /* Comment this if you want to build without any libc requirements */
31 #undef HAVE_LIBC
32 #ifdef HAVE_LIBC
33 ])
34 AC_CONFIG_HEADER(include/SDL_config.h) 3 AC_CONFIG_HEADER(include/SDL_config.h)
35 AH_BOTTOM([
36 #endif /* HAVE_LIBC */
37
38 #endif /* _SDL_config_h */
39 ])
40 4
41 dnl Set various version strings - taken gratefully from the GTk sources 5 dnl Set various version strings - taken gratefully from the GTk sources
42 # 6 #
43 # Making releases: 7 # Making releases:
44 # Edit include/SDL/SDL_version.h and change the version, then: 8 # Edit include/SDL/SDL_version.h and change the version, then:
78 AC_CANONICAL_SYSTEM 42 AC_CANONICAL_SYSTEM
79 43
80 dnl Setup for automake 44 dnl Setup for automake
81 AM_INIT_AUTOMAKE(SDL, $SDL_VERSION) 45 AM_INIT_AUTOMAKE(SDL, $SDL_VERSION)
82 46
47 dnl Disable autoheader
48 AUTOHEADER=:
49
83 dnl Check for tools 50 dnl Check for tools
84 51
85 AC_LIBTOOL_WIN32_DLL 52 AC_LIBTOOL_WIN32_DLL
86 AM_PROG_LIBTOOL 53 AM_PROG_LIBTOOL
87 AC_PROG_MAKE_SET 54 AC_PROG_MAKE_SET
151 fi 118 fi
152 119
153 dnl See whether we are allowed to use the system C library 120 dnl See whether we are allowed to use the system C library
154 AC_ARG_ENABLE(libc, 121 AC_ARG_ENABLE(libc,
155 [ --enable-libc Use the system C library [default=yes]], 122 [ --enable-libc Use the system C library [default=yes]],
156 , AC_DEFINE(HAVE_LIBC)) 123 , AC_DEFINE([HAVE_LIBC]))
157 124
158 dnl Checks for header files. 125 dnl Checks for header files.
159 AC_CHECK_HEADERS(alloca.h stdint.h stdlib.h stdarg.h malloc.h) 126 AC_CHECK_HEADERS(alloca.h stdint.h stdlib.h stdarg.h malloc.h)
160 AC_CHECK_HEADERS(ctype.h) 127 AC_CHECK_HEADERS(ctype.h)
161 AC_CHECK_HEADERS(string.h) 128 AC_CHECK_HEADERS(string.h)
173 AC_CHECK_SIZEOF(long long, 8) 140 AC_CHECK_SIZEOF(long long, 8)
174 141
175 dnl Checks for library functions. 142 dnl Checks for library functions.
176 AC_FUNC_ALLOCA 143 AC_FUNC_ALLOCA
177 AC_CHECK_FUNCS(malloc calloc realloc free) 144 AC_CHECK_FUNCS(malloc calloc realloc free)
178 AC_CHECK_FUNCS(getenv putenv qsort abs) 145 AC_CHECK_FUNCS(getenv putenv unsetenv qsort abs)
179 AC_CHECK_FUNCS(memset memcpy memmove memcmp) 146 AC_CHECK_FUNCS(memset memcpy memmove memcmp)
180 AC_CHECK_FUNCS(strlen strcpy strncpy strcat strncat strdup) 147 AC_CHECK_FUNCS(strlen strcpy strncpy strcat strncat strdup)
181 AC_CHECK_FUNCS(_strrev _strupr _strlwr) 148 AC_CHECK_FUNCS(_strrev _strupr _strlwr)
182 AC_CHECK_FUNCS(strchr strrchr strstr) 149 AC_CHECK_FUNCS(strchr strrchr strstr)
183 AC_CHECK_FUNCS(itoa _ltoa _uitoa _ultoa strtol _i64toa _ui64toa strtoll strtod atoi atof) 150 AC_CHECK_FUNCS(itoa _ltoa _uitoa _ultoa strtol _i64toa _ui64toa strtoll strtod atoi atof)