Index: trunk/config.auto.h.in =================================================================== --- trunk/config.auto.h.in (revision 2431) +++ trunk/config.auto.h.in (revision 2432) @@ -290,12 +290,12 @@ #include #endif +/* Coordinate type and properties, as detected by scconfig */ typedef @/local/pcb/coord_type@ Coord; #define COORD_MAX @/local/pcb/coord_max@ #define coord_abs @/local/pcb/coord_abs@ + +/* the dot-dir: where to save user config under ther user's home; it's used + as ~/DOT_PCB_RND/ */ +#define DOT_PCB_RND "@/local/pcb/dot_pcb_rnd@" @] - - - - - Index: trunk/config.manual.h.in =================================================================== --- trunk/config.manual.h.in (revision 2431) +++ trunk/config.manual.h.in (revision 2432) @@ -13,8 +13,4 @@ (memory debugging without valgrind) */ /* #define HAVE_LIBDMALLOC 1 */ -/* the dot-dir: where to save user config under ther user's home; it's used - as ~/DOT_PCB_RND/ */ -#define DOT_PCB_RND ".pcb-rnd" - @] Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 2431) +++ trunk/scconfig/hooks.c (revision 2432) @@ -44,6 +44,7 @@ printf(" --prefix=path change installation prefix from /usr to path\n"); printf(" --debug configure for building a debug version (-g -O0)\n"); printf(" --coord=32|64 set coordinate integer type's width in bits\n"); + printf(" --dot_pcb_pcb=path .pcb-rnd config path under $HOME/\n"); } static void help2(void) @@ -75,6 +76,8 @@ put("/local/pcb/coord_bits", value); return 1; } + if (strcmp(key, "coord") == 0) + put("/local/pcb/dot_pcb_rnd", value); if ((strcmp(key, "with-intl") == 0) || (strcmp(key, "enable-intl") == 0)) { want_intl = 1; return 1; @@ -113,6 +116,7 @@ put("/local/pcb/debug", sfalse); put("/local/pcb/coord_bits", "32"); + put("/local/pcb/dot_pcb_rnd", ".pcb-rnd"); return 0; } @@ -472,6 +476,7 @@ print_sum_setting("/local/pcb/want_nls", "Internationalization with gettext"); print_sum_setting("/local/pcb/debug", "Compilation for debugging"); print_sum_cfg_val("/local/pcb/coord_bits", "Coordinate type bits"); + print_sum_cfg_val("/local/pcb/dot_pcb_rnd", ".pcb_rnd config dir under /$HOME"); #undef plugin_def #undef plugin_header