[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-user: seems GEDARCDIR not picked up from Makefile
well forget about GEDADATA, picked by the lib... had it installed
elsewhere...
sorry for the waste of Bandwidth...
bruno
On Tue, 6 Nov 2001, bruno schwander wrote:
> it also seems that the env var GEDADATA gets a false value. Where is it
> set BTW, I can not figure it out...
>
> In my build, using a special configure prefix, GEDADATA is always seen as
> /usr/local/share, instead of what I set in prefix, which should be the
> default unless directly overriden, I think.
>
> I am confused also by the fact that there is no mention of GEDADATA in the
> .in files like for the GEDADATARC and other variables...
>
> any help on this ?
>
> bruno
>
> On Mon, 5 Nov 2001, bruno schwander wrote:
>
> > ok, I always speak too fast.. but:
> >
> > why in the base configure.in do
> >
> > ########################################
> > if eval "test x$opt_rcdir = x"; then
> > # path was not specified with --with-rcdir
> > # don't set the GEDARCDIR in config.h
> > AC_DEFINE_UNQUOTED(GEDARCDIR, "none")
> > GEDARCDIR="$gedatopdir"
> > else
> > # path WAS specified with --with-rcdir
> > AC_DEFINE_UNQUOTED(GEDARCDIR, "$opt_rcdir")
> > GEDARCDIR="$opt_rcdir"
> > fi
> > ####################################
> >
> > it seems to me that since by default the GEDADATADIR is defined, GEDARCDIR
> > should be too...
> > why not do
> >
> > if eval "test x$opt_rcdir = x"; then
> > # path was not specified with --with-rcdir
> > # don't set the GEDARCDIR in config.h
> > AC_DEFINE_UNQUOTED(GEDARCDIR, "$gedatopdir")
> > GEDARCDIR="$gedatopdir"
> > else
> >
> > ?
> >
> > bruno
> >
> >
> >
> > On Mon, 5 Nov 2001, bruno schwander wrote:
> >
> > > I am finally doing the FreeBSD port update (to 20010722) and noticed that
> > > when a prefix is specified at configure time (configure
> > > --prefix=/home/bruno/...), for installing in a different directory, the
> > > variable GEDARCDIR is not passed on to the c source files...
> > >
> > > For example, although the Makefile contains the line
> > > GEDARCDIR = /home/bruno/devel/geda/share/gEDA
> > >
> > > this is not taken in any of the c files thorugh a -D option, or included
> > > in a .h file...
> > >
> > > same thing for GEDADATADIR
> > >
> > > I think the simplest fix is to add -DGEDADATADIR -DGEDARCDIR to the
> > > CPPFLAGS (or X_CFLAGS, whichever appropriate)
> > >
> > > bruno
> > >
> > >
> >
> >
>
>