|
|
| version 1.14, 2011/12/24 17:48:03 | version 1.16, 2011/12/29 14:06:47 |
|---|---|
| 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-20111224,nonakap@gmail.com,xnp2) | AC_INIT(Xnp2,0.83-20111229,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 97 AC_ARG_ENABLE(ia32, | Line 97 AC_ARG_ENABLE(ia32, |
| AC_ARG_ENABLE(debug, | AC_ARG_ENABLE(debug, |
| AC_HELP_STRING([--enable-debug],[Enable debugging [[default=no]]]),, | AC_HELP_STRING([--enable-debug],[Enable debugging [[default=no]]]),, |
| [enable_debug="no"]) | [enable_debug="no"]) |
| AC_ARG_ENABLE(warning, | |
| AC_HELP_STRING([--enable-warning],[Enable warning [[default=no]]]),, | |
| [enable_warning="no"]) | |
| dnl | dnl |
| dnl Checks for GTK+ | dnl Checks for GTK+ |
| Line 162 dnl | Line 165 dnl |
| AC_MSG_CHECKING([whether to enable debugging]) | AC_MSG_CHECKING([whether to enable debugging]) |
| if test x"$enable_debug" = "xyes"; then | if test x"$enable_debug" = "xyes"; then |
| CFLAGS="$CFLAGS -DDEBUG -g -O0" | 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" | CFLAGS="$CFLAGS -Wstack-protector -fstack-protector --param ssp-buffer-size=1" |
| enable_warning=yes | |
| else | else |
| CFLAGS="$CFLAGS -DNDEBUG" | CFLAGS="$CFLAGS -DNDEBUG" |
| fi | fi |
| AC_MSG_RESULT($enable_debug) | AC_MSG_RESULT($enable_debug) |
| dnl | dnl |
| dnl Checks for warning | |
| dnl | |
| AC_MSG_CHECKING([whether to enable warning]) | |
| if test x"$enable_warning" = "xyes"; then | |
| 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" | |
| fi | |
| AC_MSG_RESULT($enable_warning) | |
| dnl | |
| dnl Checks for Xnp2 version | dnl Checks for Xnp2 version |
| dnl | dnl |
| NP2VER_X11=`echo $PACKAGE_VERSION | $AWK 'BEGIN {FS="-"} NF==2 {print $2}'` | NP2VER_X11=`echo $PACKAGE_VERSION | $AWK 'BEGIN {FS="-"} NF==2 {print $2}'` |