Re: call AC_DISABLE_SHARED "conditionally" for a certain host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Ralf Wildenhues wrote on Tue, Feb 14, 2006 at 11:49:37AM CET:
> 
> 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.

D'oh.  That should be something like

| AC_CANONICAL_HOST
| case "$host" in
|   *-*-linux* | *-*-darwin*)
|     AC_ENABLE_SHARED
|     ;;
|   *-*-mingw32*)
|     AC_DISABLE_SHARED
|     ;;
|   *)
|     AC_ENABLE_SHARED
|     ;;
| esac

of course: why keep other systems out in the cold on purpose?
(Of course you could just eliminate the case for linux/darwin
then, too.)

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux