fixed autoconf problem with VERSION/PATCHLEVEL variables
[xboard.git] / configure.ac
index c7bf530..ece1356 100644 (file)
@@ -27,11 +27,7 @@ dnl| it portable to sites and systems other than your own), and run autoconf
 dnl| to regenerate configure.  Then submit your changes to be folded into\r
 dnl| the standard version of xboard.\r
 \r
-dnl| need to change these here and in AC_INIT\r
-PRODUCT=xboard\r
-VERSION=4.4  \r
-PATCHLEVEL=0j\r
-\r
+dnl| define second argument as VERSION.PATCHLEVEL. e.g. 4.4.0j\r
 AC_INIT([xboard],[4.4.0j],[bug-xboard@gnu.org])\r
 AM_INIT_AUTOMAKE\r
 \r
@@ -46,8 +42,6 @@ AH_TEMPLATE([HAVE_RANDOM],[template])
 AH_TEMPLATE([HAVE_SYS_SOCKET_H],[template])\r
 AH_TEMPLATE([IBMRTAIX],[template])\r
 AH_TEMPLATE([LAST_PTY_LETTER],[template])\r
-AH_TEMPLATE([PATCHLEVEL],[template])\r
-AH_TEMPLATE([PRODUCT],[template])\r
 AH_TEMPLATE([PTY_ITERATION],[template])\r
 AH_TEMPLATE([PTY_NAME_SPRINTF],[template])\r
 AH_TEMPLATE([PTY_OPEN],[template])\r
@@ -56,7 +50,6 @@ AH_TEMPLATE([REMOTE_SHELL],[template])
 AH_TEMPLATE([RTU],[template])\r
 AH_TEMPLATE([UNIPLUS],[template])\r
 AH_TEMPLATE([USE_PTYS],[template])\r
-AH_TEMPLATE([VERSION],[template])\r
 AH_TEMPLATE([X_WCHAR],[template])\r
 AH_TEMPLATE([ATTENTION],[template])\r
 AH_TEMPLATE([DEFINED_SYS_ERRLIST],[template])\r
@@ -116,7 +109,7 @@ AC_CHECK_LIB(seq, getpseudotty)
 \r
 AC_PATH_XTRA\r
 if test -n "$no_x" ; then\r
-  echo $PRODUCT requires the X Window System header files and libraries!\r
+  echo $PACKAGE requires the X Window System header files and libraries!\r
   echo They were not found on your system.  See FAQ topic C.2.\r
   echo configure failed\r
   exit 1\r
@@ -408,13 +401,6 @@ AC_ARG_ENABLE(sigint,
 fi],\r
 [AC_DEFINE(ATTENTION, 1)])\r
 \r
-AC_DEFINE_UNQUOTED(PRODUCT, "$PRODUCT")\r
-AC_DEFINE_UNQUOTED(VERSION, "$VERSION")\r
-AC_DEFINE_UNQUOTED(PATCHLEVEL, "$PATCHLEVEL")\r
-AC_SUBST(PRODUCT)\r
-AC_SUBST(VERSION)\r
-AC_SUBST(PATCHLEVEL)\r
-\r
 AC_CONFIG_FILES([Makefile cmail])\r
 AC_CONFIG_COMMANDS([test-stamp-h],[test -z "$CONFIG_HEADERS" || date > stamp-h])\r
 AC_CONFIG_COMMANDS([chmod-cmail],[chmod 755 cmail])\r