[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: call AC_DISABLE_SHARED "conditionally" for a certain host
From: |
Ralf Wildenhues |
Subject: |
Re: call AC_DISABLE_SHARED "conditionally" for a certain host |
Date: |
Tue, 14 Feb 2006 11:49:37 +0100 |
User-agent: |
Mutt/1.5.11 |
Hi Florian,
* Florian Schricker wrote on Tue, Feb 14, 2006 at 11:03:50AM CET:
>
> Currently I am on the way on moving some software projects from custom
> makefiles to autoconf. These projects mostly depend on Xerces-C; since
> we want to support Linux, Darwin & MinGW32 I ran into trouble with DLLs
> on MinGW32 depending on Xerces-C DLLs so, for the first releases I
> figured I might just want to disable shared libs on MinGW32 before
> digging deeper on where the problems are.
OK. This is a Libtool issue, not an Autoconf one. Cc:ing bug-libtool
for that purpose.
Please let us know where the MINGW32 problems are. If you did not use
`-no-undefined' while linking, please do so. Maybe that solves your
issues.
> To do so I did:
>
> AC_CANONICAL_HOST
> case "$host" in
> *-*-linux* | *-*-darwin*)
> ;;
> *-*-mingw32*)
> AC_DISABLE_SHARED
> ;;
> esac
>
> But I guess I am missing something; it does not work. Running this
> configure on GNU/Linux gives:
>
> checking whether to build shared libraries...
> checking whether to build static libraries... yes
Indeed. Confirmed with both branch-1-5 and HEAD. Thanks for reporting
this!
> Any help would be so much appreciated; it's one of the last obstacles
> before our first release ;-)
Well, hope this gets you set for the release: use
| AC_CANONICAL_HOST
| case "$host" in
| *-*-linux* | *-*-darwin*)
| AC_ENABLE_SHARED
| ;;
| *-*-mingw32*)
| AC_DISABLE_SHARED
| ;;
| esac
and make sure all of that comes before AC_PROG_LIBTOOL.
I'm inclined to "fix" this by adjusting the documentation, not the
implementation of these macros.
Cheers,
Ralf
Re: call AC_DISABLE_SHARED "conditionally" for a certain host, Christopher Hulbert, 2006/02/14