Switched back to configure generating SDL_config.h
It was very confusing to have configure generate an SDL_config.h and then not have it be used when building on Mac OS X or Windows. I'll just have to remember to use SDL_config_windows.h when building official releases that are supposed to be ABI compatible with Visual Studio. --HG-- rename : include/SDL_config_generated.h.in => include/SDL_config.h.in
This commit is contained in:
parent
a49a88676f
commit
5546f5ad65
6 changed files with 17 additions and 26 deletions
|
@ -8,7 +8,6 @@ sdl-config
|
||||||
SDL.spec
|
SDL.spec
|
||||||
SDL.qpg
|
SDL.qpg
|
||||||
build
|
build
|
||||||
include/SDL_config_generated.h
|
|
||||||
|
|
||||||
# for Xcode
|
# for Xcode
|
||||||
*.orig
|
*.orig
|
||||||
|
|
11
Makefile.in
11
Makefile.in
|
@ -46,13 +46,6 @@ HDRS = \
|
||||||
SDL_audio.h \
|
SDL_audio.h \
|
||||||
SDL_blendmode.h \
|
SDL_blendmode.h \
|
||||||
SDL_clipboard.h \
|
SDL_clipboard.h \
|
||||||
SDL_config.h \
|
|
||||||
SDL_config_android.h \
|
|
||||||
SDL_config_iphoneos.h \
|
|
||||||
SDL_config_macosx.h \
|
|
||||||
SDL_config_minimal.h \
|
|
||||||
SDL_config_nintendods.h \
|
|
||||||
SDL_config_windows.h \
|
|
||||||
SDL_compat.h \
|
SDL_compat.h \
|
||||||
SDL_cpuinfo.h \
|
SDL_cpuinfo.h \
|
||||||
SDL_endian.h \
|
SDL_endian.h \
|
||||||
|
@ -137,7 +130,7 @@ install-hdrs: update-revision
|
||||||
for file in $(HDRS); do \
|
for file in $(HDRS); do \
|
||||||
$(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL/$$file; \
|
$(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL/$$file; \
|
||||||
done
|
done
|
||||||
$(INSTALL) -m 644 include/SDL_config_generated.h $(DESTDIR)$(includedir)/SDL/SDL_config_generated.h
|
$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL/SDL_config.h
|
||||||
if test -f include/SDL_revision.h; then \
|
if test -f include/SDL_revision.h; then \
|
||||||
$(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL/SDL_revision.h; \
|
$(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL/SDL_revision.h; \
|
||||||
else \
|
else \
|
||||||
|
@ -162,7 +155,7 @@ uninstall-hdrs:
|
||||||
for file in $(HDRS); do \
|
for file in $(HDRS); do \
|
||||||
rm -f $(DESTDIR)$(includedir)/SDL/$$file; \
|
rm -f $(DESTDIR)$(includedir)/SDL/$$file; \
|
||||||
done
|
done
|
||||||
rm -f $(DESTDIR)$(includedir)/SDL/SDL_config_generated.h
|
rm -f $(DESTDIR)$(includedir)/SDL/SDL_config.h
|
||||||
rm -f $(DESTDIR)$(includedir)/SDL/SDL_revision.h
|
rm -f $(DESTDIR)$(includedir)/SDL/SDL_revision.h
|
||||||
-rmdir $(DESTDIR)$(includedir)/SDL
|
-rmdir $(DESTDIR)$(includedir)/SDL
|
||||||
uninstall-lib:
|
uninstall-lib:
|
||||||
|
|
10
configure
vendored
10
configure
vendored
|
@ -2025,7 +2025,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
|
||||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
ac_config_headers="$ac_config_headers include/SDL_config_generated.h"
|
ac_config_headers="$ac_config_headers include/SDL_config.h"
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
@ -15529,11 +15529,11 @@ if test x$srcdir != x.; then
|
||||||
elif test -d .hg; then
|
elif test -d .hg; then
|
||||||
{ { echo "$as_me:$LINENO: error:
|
{ { echo "$as_me:$LINENO: error:
|
||||||
*** When building from Mercurial you should configure and build in a
|
*** When building from Mercurial you should configure and build in a
|
||||||
separate directory so you don't clobber SDL_revision.h
|
separate directory so you don't clobber SDL_config.h, SDL_revision.h
|
||||||
" >&5
|
" >&5
|
||||||
echo "$as_me: error:
|
echo "$as_me: error:
|
||||||
*** When building from Mercurial you should configure and build in a
|
*** When building from Mercurial you should configure and build in a
|
||||||
separate directory so you don't clobber SDL_revision.h
|
separate directory so you don't clobber SDL_config.h, SDL_revision.h
|
||||||
" >&2;}
|
" >&2;}
|
||||||
{ (exit 1); exit 1; }; }
|
{ (exit 1); exit 1; }; }
|
||||||
fi
|
fi
|
||||||
|
@ -15551,7 +15551,7 @@ esac
|
||||||
# Uncomment the following line if you want to force SDL and applications
|
# Uncomment the following line if you want to force SDL and applications
|
||||||
# built with it to be compiled for a particular architecture.
|
# built with it to be compiled for a particular architecture.
|
||||||
#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
|
#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
|
||||||
BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DGENERATED_CONFIG_H"
|
BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
|
||||||
# The default optimization for SDL 1.3 is -O3 (Bug #31)
|
# The default optimization for SDL 1.3 is -O3 (Bug #31)
|
||||||
if test x$orig_CFLAGS = x; then
|
if test x$orig_CFLAGS = x; then
|
||||||
BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
|
BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
|
||||||
|
@ -28871,7 +28871,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF
|
||||||
for ac_config_target in $ac_config_targets
|
for ac_config_target in $ac_config_targets
|
||||||
do
|
do
|
||||||
case $ac_config_target in
|
case $ac_config_target in
|
||||||
"include/SDL_config_generated.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config_generated.h" ;;
|
"include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
|
||||||
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
||||||
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
|
||||||
"sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;;
|
"sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(README)
|
AC_INIT(README)
|
||||||
AC_CONFIG_HEADER(include/SDL_config_generated.h)
|
AC_CONFIG_HEADER(include/SDL_config.h)
|
||||||
AC_GNU_SOURCE
|
AC_GNU_SOURCE
|
||||||
AC_CONFIG_AUX_DIR(build-scripts)
|
AC_CONFIG_AUX_DIR(build-scripts)
|
||||||
AC_CONFIG_MACRO_DIR([acinclude])
|
AC_CONFIG_MACRO_DIR([acinclude])
|
||||||
|
@ -65,7 +65,7 @@ if test x$srcdir != x.; then
|
||||||
elif test -d .hg; then
|
elif test -d .hg; then
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
*** When building from Mercurial you should configure and build in a
|
*** When building from Mercurial you should configure and build in a
|
||||||
separate directory so you don't clobber SDL_revision.h
|
separate directory so you don't clobber SDL_config.h, SDL_revision.h
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
case "$host" in
|
case "$host" in
|
||||||
|
@ -82,7 +82,7 @@ esac
|
||||||
# Uncomment the following line if you want to force SDL and applications
|
# Uncomment the following line if you want to force SDL and applications
|
||||||
# built with it to be compiled for a particular architecture.
|
# built with it to be compiled for a particular architecture.
|
||||||
#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
|
#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
|
||||||
BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DGENERATED_CONFIG_H"
|
BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
|
||||||
# The default optimization for SDL 1.3 is -O3 (Bug #31)
|
# The default optimization for SDL 1.3 is -O3 (Bug #31)
|
||||||
if test x$orig_CFLAGS = x; then
|
if test x$orig_CFLAGS = x; then
|
||||||
BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
|
BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
|
||||||
|
|
|
@ -40,13 +40,12 @@
|
||||||
#elif defined(__NINTENDODS__)
|
#elif defined(__NINTENDODS__)
|
||||||
#include "SDL_config_nintendods.h"
|
#include "SDL_config_nintendods.h"
|
||||||
#else
|
#else
|
||||||
#ifdef MINIMAL_CONFIG_H
|
|
||||||
/* This is a minimal configuration just to get SDL running on new platforms */
|
/* This is a minimal configuration just to get SDL running on new platforms */
|
||||||
#include "SDL_config_minimal.h"
|
#include "SDL_config_minimal.h"
|
||||||
#else
|
|
||||||
/* This is generated by configure for your platform */
|
|
||||||
#include "SDL_config_generated.h"
|
|
||||||
#endif
|
|
||||||
#endif /* platform config */
|
#endif /* platform config */
|
||||||
|
|
||||||
|
#ifdef USING_GENERATED_CONFIG_H
|
||||||
|
#error Wrong SDL_config.h, check your include path?
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _SDL_config_h */
|
#endif /* _SDL_config_h */
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SDL_config_generated_h
|
#ifndef _SDL_config_h
|
||||||
#define _SDL_config_generated_h
|
#define _SDL_config_h
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_config.h.in
|
* \file SDL_config.h.in
|
||||||
|
@ -297,4 +297,4 @@
|
||||||
#undef SDL_ASSEMBLY_ROUTINES
|
#undef SDL_ASSEMBLY_ROUTINES
|
||||||
#undef SDL_ALTIVEC_BLITTERS
|
#undef SDL_ALTIVEC_BLITTERS
|
||||||
|
|
||||||
#endif /* _SDL_config_generated_h */
|
#endif /* _SDL_config_h */
|
Loading…
Add table
Add a link
Reference in a new issue