|
|
| version 1.1, 2011/12/16 10:32:08 | version 1.7, 2011/12/23 04:20:46 |
|---|---|
| Line 6 dnl require autoconf 2.59 | Line 6 dnl require autoconf 2.59 |
| AC_PREREQ(2.59) | AC_PREREQ(2.59) |
| AC_REVISION($Revision$) | AC_REVISION($Revision$) |
| AC_INIT(Xnp2, 0.83, aw9k-nnk@asahi-net.or.jp, xnp2) | AC_INIT(Xnp2, 0.83-20111223, nonakap@gmail.com, xnp2) |
| AM_INIT_AUTOMAKE([no-define no-dist no-installinfo subdir-objects]) | AM_INIT_AUTOMAKE([no-define no-dist no-installinfo subdir-objects]) |
| AC_CONFIG_SRCDIR([../np2ver.h]) | AC_CONFIG_SRCDIR([../np2ver.h]) |
| AC_CONFIG_HEADERS(config.h) | AC_CONFIG_HEADERS(config.h) |
| Line 86 AC_ARG_ENABLE(sdl, | Line 86 AC_ARG_ENABLE(sdl, |
| AC_ARG_ENABLE(sdlmixer, | AC_ARG_ENABLE(sdlmixer, |
| AC_HELP_STRING([--enable-sdlmixer],[Use SDL_mixer library [[default=yes]]]),, | AC_HELP_STRING([--enable-sdlmixer],[Use SDL_mixer library [[default=yes]]]),, |
| [enable_sdlmixer="yes"]) | [enable_sdlmixer="yes"]) |
| AC_ARG_ENABLE(debug, | |
| AC_HELP_STRING([--enable-debug],[Enable debugging [[default=no]]]),, | |
| [enable_debug="no"]) | |
| dnl | dnl |
| dnl Checks for IA-32 CPU emulation | dnl Checks for IA-32 CPU emulation |
| Line 137 if test x"$enable_sdlmixer" = "xyes"; th | Line 140 if test x"$enable_sdlmixer" = "xyes"; th |
| fi | fi |
| dnl | dnl |
| dnl Checks for debug mode | |
| dnl | |
| AC_MSG_CHECKING([whether to enable debugging]) | |
| if test x"$enable_debug" = "xyes"; then | |
| CFLAGS="$CFLAGS -DDEBUG -g -O0" | |
| CFLAGS="$CFLAGS -Wall -Wcast-align" | |
| CFLAGS="$CFLAGS -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" | |
| CFLAGS="$CFLAGS -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers" | |
| CFLAGS="$CFLAGS -Wstack-protector -fstack-protector --param ssp-buffer-size=1" | |
| else | |
| CFLAGS="$CFLAGS -DNDEBUG" | |
| fi | |
| AC_MSG_RESULT($enable_debug) | |
| dnl | |
| dnl Output Makefiles | dnl Output Makefiles |
| dnl | dnl |
| AC_CONFIG_FILES([ | AC_CONFIG_FILES([Makefile]) |
| Makefile | |
| xnp2.1 | |
| xnp2.1j | |
| ]) | |
| AC_OUTPUT | AC_OUTPUT |