print [@ /***** Generated by scconfig - DO NOT EDIT *****/

/* Source: config.h.in; to regenerate run ./configure */

#ifndef LIBRND_MAIN_CONFIG_H
#define LIBRND_MAIN_CONFIG_H

#include <librnd/config.h>

/****************************************************************************/
/* Package properties */

/* Name of package */
#define PCB_PACKAGE "pcb-rnd"

/****************************************************************************/
/* These ones are already autodetected by scconfig */
@]

# calculate the /local/confdir: either specified conf-time or compatibility fallback
switch /local/confdir
	case {^$} put /local/confdir_final {PCBSHAREDIR}; end
	default put /local/confdir_final [@"@/local/confdir@"@]; end
end

print [@
/****************************************************************************/
/* Paths */
@]

switch sys/class
	case {win32}
		print [@
#define RND_PREFIX rnd_w32_root
#define PCBSHAREDIR rnd_w32_sharedir
#define PCBLIBDIR rnd_w32_libdir
#define BINDIR rnd_w32_bindir
#define PCBCONFDIR @/local/confdir_final@
@]
		end;
	default
		print [@
#define RND_PREFIX "@/local/prefix@"
#define LIBRNDSHAREDIR RND_PREFIX "/share/librnd"
#define LIBRNDLIBDIR RND_PREFIX "/lib/librnd"
#define BINDIR RND_PREFIX "/bin"
#define PCBCONFDIR @/local/confdir_final@
@]
		end;
end;

print [@

/* Relative path from bindir to exec_prefix */
#define BINDIR_TO_EXECPREFIX ".."

/* Version number of package */
#define PCB_VERSION "@/local/version@"
#define PCB_REVISION "@/local/revision@"

/* librnd transition */
#define RND_DAD_CFG_NOLABEL 1

#endif
@]
