Changeset 892


Ignore:
Timestamp:
Nov 26, 2009, 6:56:47 AM (11 years ago)
Author:
Peter Johansson
Message:

define PACKAGE_URL in configure.ac also for autoconf 2.63 and older. Use PACKAGE_URL in footer rather than hard-coded value.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Parameter.cc

    r847 r892  
    4444#include <string>
    4545#include <sys/stat.h>
    46 
    47 // FIXME: remove this when we require autoconf 2.64
    48 // autoconf 2.64 defines PACKAGE_URL in config.h (from AC_INIT)
    49 #ifndef PACKAGE_URL
    50 #define PACKAGE_URL "http://dev.thep.lu.se/svndigest"
    51 #endif
    5246
    5347namespace theplu {
  • trunk/configure.ac

    r891 r892  
    3939AC_CONFIG_MACRO_DIR([m4])
    4040AC_PREFIX_DEFAULT([/usr/local])
     41
     42dnl FIXME remove when we assume autoconf 2.64
     43m4_ifndef([AC_PACKAGE_URL],
     44          [AC_DEFINE([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"],
     45                     [Define to home page for this package])])
    4146
    4247AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION])
  • trunk/lib/html_utility.cc

    r847 r892  
    6767    os << "<p class=\"footer\">\nGenerated on ";
    6868    hs << date("%a %b %e %H:%M:%S %Y") << " (UTC) by ";
    69     os << anchor("http://dev.thep.lu.se/svndigest/",
    70                  PACKAGE_STRING, 0, "");
     69    os << anchor(PACKAGE_URL, PACKAGE_STRING, 0, "");
    7170    if (DEV_BUILD)
    7271      os << " (dev build " << svn_revision() << ")";
Note: See TracChangeset for help on using the changeset viewer.