For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2006 > Automake Difficulties









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Automake Difficulties
Jonathan Lamothe

2006-07-15, 10:00 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey all. I believe I'm posting this in the right place, but if not,
please let me know.

So here's my problem. I've written a small shared library of
input/output routines that builds on top of the standard C library
because I'm not terribly fond of the default ones. I've bundled this
into a GNU Automake package called libxio.

Rather than forcing people to download libxio with all my programs, I've
included it with them by extracting it into a libxio directory, adding
the line
AC_CONFIG_SUBDIRS(libxio)
to configure.in, and the line
SUBDIRS = libxio
to Makefile.am.

This works just fine except for the fact that when one of these programs
is uninstalled, it removes libxio, in effect breaking all the other
programs that use it.

Short of using static library, is there any way I can fix this problem?

- --
Regards,
Jonathan Lamothe

/*
* Oops. The kernel tried to access some bad page. We'll have to
* terminate things with extreme prejudice.
*/

die_if_kernel("Oops", regs, error_code);
-- From linux/arch/i386/mm/fault.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEuZhCNrv4JaRC3JsRAh+DAJ9TWjnappDM
/OmMxewn4AgbnzwmVwCfRGzt
L02o3qVE0wiYASY4MyKldY4=
=noKz
-----END PGP SIGNATURE-----
Glenn

2006-07-16, 7:59 am

Jonathan Lamothe wrote:
> This works just fine except for the fact that when one of these programs
> is uninstalled, it removes libxio, in effect breaking all the other
> programs that use it.
>
> Short of using static library, is there any way I can fix this problem?


Well, there's an automake target called 'install-exec-local' which you
could use to "manually" install the library; then the 'make uninstall'
command would know nothing about it and leave it alone. But (1) it's
adding extra complexity, and (2) when users type 'make uninstall' they
expect it to be the complete inverse of 'make install', and not leave
stuff lying around. The only gain is a slightly smaller executable.
I'd stick with the static library.

Glenn

Jonathan Lamothe

2006-07-16, 7:59 am

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Glenn wrote:
>
> Well, there's an automake target called 'install-exec-local' which you
> could use to "manually" install the library; then the 'make uninstall'
> command would know nothing about it and leave it alone. But (1) it's
> adding extra complexity, and (2) when users type 'make uninstall' they
> expect it to be the complete inverse of 'make install', and not leave
> stuff lying around. The only gain is a slightly smaller executable.
> I'd stick with the static library.
>
> Glenn
>


Thanks for the input. I think that's the way I'll go. It's not very
large library anyway.

- --
Regards,
Jonathan Lamothe

/*
* Oops. The kernel tried to access some bad page. We'll have to
* terminate things with extreme prejudice.
*/

die_if_kernel("Oops", regs, error_code);
-- From linux/arch/i386/mm/fault.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEuiAdNrv4JaRC3JsRAvT3AJ0SU4Ye8t3T
iVI7FPGpMaKkmERffgCggzKT
k+KNfFbKNfk4iiItHvTULd4=
=VZse
-----END PGP SIGNATURE-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com