* Makefile.am
authorChristoph Hohmann <reboot@gmx.ch>
Mon, 24 Feb 2003 20:11:50 +0000 (20:11 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Mon, 24 Feb 2003 20:11:50 +0000 (20:11 +0000)
* configure.ac
        fix gnome prefix problems, the configure script now removed
        `gnome-config --prefix` from `gnome-config --datadir`
        and adds $(prefix} instead

ChangeLog.claws
Makefile.am
configure.ac

index 880dc600645fd07af11dbe0a0de739f8fcd07b10..c5ae0cf04bcbb43e1b2e4f3898aa108a389e3f65 100644 (file)
@@ -1,3 +1,11 @@
+2003-02-24 [christoph]
+
+       * Makefile.am
+       * configure.ac
+               fix gnome prefix problems, the configure script now removed
+               `gnome-config --prefix` from `gnome-config --datadir`
+               and adds $(prefix} instead
+
 2003-02-24 [christoph] 0.8.10claws49
 
        * src/news.c
index f0fe8986ef987c975289c8f2878ced6707fbf3aa..26c4a0e8056f80c4846b5746317f04908da295b3 100644 (file)
@@ -17,9 +17,9 @@ EXTRA_DIST = \
        autogen.sh 
 
 if SYLPHEED_GNOME
-pixmapdir=$(gnomedir)/share/pixmaps
+pixmapdir=$(gnomedatadir)/pixmaps
 pixmap_DATA=sylpheed.png
-gnomapdir=$(gnomedir)/share/gnome/apps/Internet
+gnomapdir=$(gnomedatadir)/gnome/apps/Internet
 gnomap_DATA=sylpheed.desktop
 else
 pixmapdir=
index e3607c9b3de00a5e9f1ad08d93067761a531ab8c..f9bd699f4458db14e8f876531976d9f578a086d4 100644 (file)
@@ -27,10 +27,12 @@ AC_SUBST(VERSION)
 dnl GNOME installed?
 AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
 if test "$GNOME_CONFIG" != no; then
-       gnomedir="`gnome-config --prefix`"
-       AC_SUBST(gnomedir)
+       gnomedatadir="`gnome-config --datadir`"
+       gnomeprefix="`gnome-config --prefix`"
+       gnomedatadir="${prefix}/${gnomedatadir#${gnomeprefix}}"
+       AC_SUBST(gnomedatadir)
 fi
-AM_CONDITIONAL(SYLPHEED_GNOME, test -d "$gnomedir")
+AM_CONDITIONAL(SYLPHEED_GNOME, test -n "$gnomedatadir")
 
 dnl Claws version
 AC_DEFINE(CLAWS, 1, Compiling Claws branch of sylpheed)