From a320c1d9f619d2d79a358948861e81dcc57c262e Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 24 Aug 2002 07:49:58 +0000 Subject: [PATCH] New Autoheader scripts to create a better config.h Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@206 --- acinclude.m4 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 28772e8e..825305ca 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -159,3 +159,31 @@ int main (int argc, char *argv[]) AC_SUBST(SDL_LIBS) rm -f conf.sdltest ]) + +AH_TOP([ +/* + * Copyright (C) 2002 The DOSBox Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ +]) +AH_BOTTOM([#define INLINE inline]) +AH_BOTTOM([ +#if C_HAS_ATTRIBUTE +#define GCC_ATTRIBUTE __attribute__ +#else +#define GCC_ATTRIBUTE(x) /* attribute not supported */ +#endif +}) \ No newline at end of file