autoconf
[Top][All Lists]
Advanced

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

Re: Removing '--enable/disable-shared/static' options from configure scr


From: Asfand Yar Qazi
Subject: Re: Removing '--enable/disable-shared/static' options from configure script
Date: Mon, 13 Feb 2006 20:48:28 +0000
User-agent: Mozilla Thunderbird 1.0.7 (X11/20060129)

Ralf Wildenhues wrote:
<snip>

check at configure time that it has not been used.

So should they run a script that patches their configure script after it is generated, or can some shell programming be placed in their configure.in script that will end up in the configure script in the right place?


Yes.  First, I'd advise you to use AC_ENABLE_SHARED and
AC_DISABLE_STATIC (before AC_PROG_LIBTOOL) to set the correct defaults.
They can still be overridden by the user, however.  I'd still regard
that as a good thing: the user should be in control, and the package
author often cannot foresee issues on every system.  If you however are
certain to take that choice away from the user, you could check the
environment variables $enable_shared and $enable_static (after
AC_PROG_LIBTOOL).  It would probably be the most useful to output a
warning instead of an error; for example with AC_MSG_WARN.

Feel free to ask if you need more help.

BTW, to get PACKAGE_NAME to be `OGRE' not `ogre', use the three-option
style of AC_INIT:
  AC_INIT([OGRE], [1.1.0], address@hidden)
  AM_INIT_AUTOMAKE([1.7.0 foreign no-installinfo no-installman subdir-objects])

Cheers,
Ralf



OK, thanks




reply via email to

[Prev in Thread] Current Thread [Next in Thread]