Author: biurrun Date: Wed Oct 7 19:33:29 2009 New Revision: 1044 Log: Document the autoconf trickery necessary to expand the sysconfdir variable and override the default value for sysconfdir. Modified: trunk/configure.ac Modified: trunk/configure.ac ============================================================================== --- trunk/configure.ac Wed Oct 7 19:25:53 2009 (r1043) +++ trunk/configure.ac Wed Oct 7 19:33:29 2009 (r1044) @@ -193,14 +193,16 @@ AC_SUBST(PISA_PERFORMANCE_LIB_STATIC, "$PISA_PERFORMANCE_LIB/libperformance.a") AC_SUBST(PISA_PERFORMANCE_LIB_DYNAMIC, "$PISA_PERFORMANCE_LIB/libperformance.so") +# If no --prefix option is passed to configure, $prefix is empty. But we want +# to expand $sysconfdir, which defaults to ${prefix}/etc. So set $prefix. if test "x$prefix" = "xNONE"; then prefix="$ac_default_prefix" fi - # Our configuration files should be located in a subdirectory of their own. AC_SUBST(sysconfdir, ${sysconfdir}/pisa) +# This is needed to export the _expanded_ value of the variable to ac_config.h. AC_DEFINE_UNQUOTED(PISA_SYSCONFDIR, "$(eval echo $sysconfdir)") AH_TEMPLATE([PISA_SYSCONFDIR])