> > > > It seems to work if I cd to gii and run the failing command 
> > > > changing -L../gg to -L../gg/.libs
> > > 
> > > It doesn't seems so, it _is_ so. I have just completely uninstalled
> > > GGI from my machine and tried to recompile libgii. I got the same
> > > error and the same fix works for me, too.
> > 
> > 
> > I fixed Makefile.am and recompiled and reinstalled libgii and libggi.
> > 
> > But then, when I try to start any GGI demo I get this error:
> > 
> > --------------------------------------------------------------------
> > LibGII: fatal error - could not load ${prefix}/etc/ggi/libgii.conf
> > LibGGI: unable to initialize LibGII
> > unable to initialize LibGGI, exiting.
> > --------------------------------------------------------------------
> > 
> > Can anyone reproduce this error, too?
> > 
> > Has anyone an idea, why this happens?
> 
> I found a fix for libgii, which works for me.
> 
> Thayne: Is that the right fix or does it raise the confdir problem
> you tried to fix before again?
> 
> If it is the right fix, then I can fix libggi and all the other libs 
> quickly.


I have a more clean fix for libgii attached now.

Anyone here, who can test my attached patch, please?

Does the fix work for you or does it raise the previous confdir
problem again?


CU,

Christoph Egger
E-Mail: [EMAIL PROTECTED]
Index: Makefile.am
===================================================================
RCS file: /cvsroot/ggi/ggi-core/libgii/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- Makefile.am 2001/07/03 15:34:13     1.2
+++ Makefile.am 2001/07/05 11:13:02
@@ -3,7 +3,7 @@
 
 SUBDIRS = include gg gii input filter demos doc m4
 
-giiconfdatadir = $(sysconfdir)/@gii_confdir@
+giiconfdatadir = @gii_sysconfdir@/@gii_confdir@
 giiconfdata_DATA = libgii.conf
 
 DISTCLEANFILES = libgii.conf
Index: configure.in
===================================================================
RCS file: /cvsroot/ggi/ggi-core/libgii/configure.in,v
retrieving revision 1.2
diff -u -r1.2 configure.in
--- configure.in        2001/07/03 15:34:13     1.2
+++ configure.in        2001/07/05 11:13:05
@@ -651,13 +651,18 @@
 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
+eval foo="$libdir"
+eval gii_libdir="$foo"
 eval gii_confdir="ggi"
+eval gii_sysconfdir="$sysconfdir"
 
+AC_SUBST(gii_libdir)
 AC_SUBST(gii_confdir)
+AC_SUBST(gii_sysconfdir)
 AC_DEFINE_UNQUOTED(GIITAGLEN,$TAGLEN)
 AC_DEFINE_UNQUOTED(GIIPATHTAG,"$PATHTAG")
 AC_DEFINE_UNQUOTED(GIICONFFILE,"$gii_conffile")
-AC_DEFINE_UNQUOTED(GIICONFDIR,"$PATHTAG$sysconfdir/$gii_confdir")
+AC_DEFINE_UNQUOTED(GIICONFDIR,"$PATHTAG$gii_sysconfdir/$gii_confdir")
 
 AM_CONFIG_HEADER(config.h)
 
Index: libgii.conf.in
===================================================================
RCS file: /cvsroot/ggi/ggi-core/libgii/libgii.conf.in,v
retrieving revision 1.3
diff -u -r1.3 libgii.conf.in
--- libgii.conf.in      2001/07/03 15:34:13     1.3
+++ libgii.conf.in      2001/07/05 11:13:05
@@ -1,5 +1,5 @@
 # Mapping file for suggest-strings to libraries
-.root: @libdir@/ggi
+.root: @gii_libdir@/ggi
 #
 # suggest_name                 library_name                          versions
 # ------------                 -------------------------------       --------

Reply via email to