Running:
#!/bin/bash -x
make distclean;
export CC=/opt/bin/gcc;
export CFLAGS="-O3 -march=i686 -fexpensive-optimizations
$(/opt/glib/bin/glib-config --libs)";
./configure \
--prefix=/opt/gtk/1.2.10\
--with-glib=$(/opt/glib/bin/glib-config --prefix) \
--disable-nls \
--with-x\
&&
make all check;
Fails with:
configure: error: GLIB directory (/opt/glib) not present or not configured
(see attached: configure-out, config.log).
Checking:
$ ls -l /opt/glib
total 4
drwxrwsr-x8 lembark bin 4096 Sep 8 21:40 1.2.10
lrwxrwxrwx1 lembark bin10 Sep 8 21:40 bin -> 1.2.10/bin
lrwxrwxrwx1 lembark bin14 Sep 8 21:40 include ->
1.2.10/include
lrwxrwxrwx1 lembark bin11 Sep 8 21:40 info -> 1.2.10/info
lrwxrwxrwx1 lembark bin10 Sep 8 21:40 lib -> 1.2.10/lib
lrwxrwxrwx1 lembark bin10 Sep 8 21:40 man -> 1.2.10/man
lrwxrwxrwx1 lembark bin12 Sep 8 21:40 share ->
1.2.10/share
$ ls /opt/glib/lib/
glib libglib.lalibgmodule.a
libgthread-1.2.so.0.0.10 pkgconfig
libglib-1.2.so.0 libglib.solibgmodule.la
libgthread.a
libglib-1.2.so.0.0.10 libgmodule-1.2.so.0 libgmodule.so
libgthread.la
libglib.a libgmodule-1.2.so.0.0.10 libgthread-1.2.so.0
libgthread.so
"make check install" exits zero for ./glib-1.2.10, so
glib thinks it was installed correctly.
Checking config.log it ends with:
configure:4177: /opt/bin/gcc -c -O3 -march=i686 -fexpensive-optimizations
-Wall conftest.c 1>&5
configure: In function `main':
configure:4173: warning: unused variable `dir'
and has no "error:" entries.
I have tried adding "--with-glib-prefix" to the configs, didn't
make a difference. USing "-with-glib=/opt/glib/1.2.10" did not
help either, and running /opt/glib/bin/glib-config didn't improve
things either.
Checking glib-config output:
$ /opt/glib/bin/glib-config --prefix
/opt/glib/1.2.10
$ /opt/glib/bin/glib-config --prefix glib
/opt/glib/1.2.10
$ /opt/glib/bin/glib-config --exec-prefix glib
/opt/glib/1.2.10
It certianly looks like it's out there.
I don't remember having to hack the install when I did it last time,
but could have forgotten something...
Environment is heavily updated RH-6.2 w/ gcc-3.2.
The FAQ doesn't have anything specific to this, only thing I can
see is the entry that "./confgure" is all that I usually need.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582
configure-out
Description: Binary data
config.log
Description: Binary data