Re: how to set up configure.in for a libglade app
- From: Archit Baweja <bighead users sourceforge net>
- To: Joergen Scheibengruber <Joergen Scheibengruber informatik uni-ulm de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to set up configure.in for a libglade app
- Date: 07 May 2002 22:05:11 +0530
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey
Ok here's what I do...
Here's what my configure.in looks like (the part which of interest)
dnl Set PACKAGE_GLADE_DIR in config.h
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_GLADE_DIR, "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/glade")
else
AC_DEFINE_UNQUOTED(PACKAGE_GLADE_DIR, "${prefix}/${DATADIRNAME}/${PACKAGE}/glade")
fi
HTH
Archit Baweja
P.S. You could add another "if" to check if "~/" has been specified and
so use $HOME. hmm, maybe I should add that too.
Joergen Scheibengruber <Joergen Scheibengruber informatik uni-ulm de> writes:
Hi!
I'm currently setting up the autoconf/make environment for my libglade
app and encountered a little problem. When running the app I need to
know where the .glade files for the app are.
I install the glade-files in ${prefix}share/myapp/glade/.
So, I added the following line to configure.in:
AC_DEFINE_UNQUOTED(MYAPPGLADEDIR, "${prefix}/share/myapp/glade/")
But this does not work:
- when the user does not specify a prefix (MYAPPGLADEDIR =
"NONE/share/myapp/glade/)
- when the user specifies a prefix beginning with ~/ (the glade loader
doesn't seem to know that ~/ is the homedirectory of the current user)
Does anyone know a better way to achieve the whole thing?
Regards,
Jörgen
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
- --
Homepage: http://symonds.net/~bighead/
GPG Key: http://symonds.net/~bighead/bighead-gpg-key.asc
Gnome in Hindi: http://symonds.net/~bighead/gnome/gnome-devnag-howto/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>
iD8DBQE82AI/2rWNPKmGjMcRArqpAJ9gXE11y/mIzumr0tOy+i6QsHW1HwCcD5WW
7pMd2xo1lc0fdzr1k081YlE=
=bO0B
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]