comparison rogue5/configure.ac @ 221:71cb5b647f2b

Rogue V5: remove troublesome automatic platform detection. configure.ac used AC_CANONICAL_SYSTEM to guess the GNU system description triplets. The target description was substituted into the Makefile and formatted into the filename for the binary distribution tarball. But 'target' is only intended for cross-compilers. 'host_os' might have been a better choice. The tarball filename can still be changed manually, by running make with an argument of 'DESTSYS=systemname'. Cross-compiling may be more difficult now, but I am not certain that it worked properly previously, and due to pending autoconf changes, it was likely to break anyway. The top-level config.guess and config.sub are no longer needed, but they may reappear if better support for cross-compilation is added.
author John "Elwin" Edwards
date Fri, 12 Feb 2016 14:25:47 -0500
parents 3c0abb714974
children 0e99eade579c
comparison
equal deleted inserted replaced
213:3c0abb714974 221:71cb5b647f2b
4 AC_PREREQ(2.56) 4 AC_PREREQ(2.56)
5 AC_INIT([Rogue],[5.4.5], [yendor@rogueforge.net]) 5 AC_INIT([Rogue],[5.4.5], [yendor@rogueforge.net])
6 AC_CONFIG_SRCDIR([armor.c]) 6 AC_CONFIG_SRCDIR([armor.c])
7 AC_CONFIG_HEADER([config.h]) 7 AC_CONFIG_HEADER([config.h])
8 AC_CONFIG_FILES([Makefile rogue.6 rogue.cat rogue.doc rogue.html rogue.me]) 8 AC_CONFIG_FILES([Makefile rogue.6 rogue.cat rogue.doc rogue.html rogue.me])
9 AC_CANONICAL_SYSTEM([])
10 9
11 # Checks for programs. 10 # Checks for programs.
12 AC_PROG_CC 11 AC_PROG_CC
13 AC_PROG_INSTALL 12 AC_PROG_INSTALL
14 13
274 AC_DEFINE([UCOUNT], [], [define if we should use program's user counting function instead of system's]) 273 AC_DEFINE([UCOUNT], [], [define if we should use program's user counting function instead of system's])
275 AC_DEFINE_UNQUOTED([UTMP], [$enable_ucount], [utmp like file to pass to ucount() when counting online users (unlikely to work)]) 274 AC_DEFINE_UNQUOTED([UTMP], [$enable_ucount], [utmp like file to pass to ucount() when counting online users (unlikely to work)])
276 AC_MSG_RESULT([$enable_ucount]) 275 AC_MSG_RESULT([$enable_ucount])
277 fi 276 fi
278 277
279 TARGET=$target
280 AC_SUBST(TARGET)
281
282 AC_MSG_CHECKING([whether to docdir is defined]) 278 AC_MSG_CHECKING([whether to docdir is defined])
283 if test "x$docdir" = "x" ; then 279 if test "x$docdir" = "x" ; then
284 AC_MSG_RESULT([docdir undefined]) 280 AC_MSG_RESULT([docdir undefined])
285 docdir=\${datadir}/doc/\${PACKAGE_TARNAME} 281 docdir=\${datadir}/doc/\${PACKAGE_TARNAME}
286 AC_SUBST(docdir) 282 AC_SUBST(docdir)