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

Re: Autoconf/configure info

Shaleh wrote:
> Well I need it for my package and I have already done it wrong enough
> times (-=;  What I need to do is add --with/without support so that I
> can turn off whether a lib is compiled in or not.
add to your configure.in something like this:

dnl dnl is a comment ;)
AC_ARG_WITH(lib,  dnl argument to use
    [  --with-lib              compile the lib in], dnl help text
    [  ac_should_i_or_not=$withval ], dnl the case, when --with is given
    [  ac_should_i_or_not=no       ] dnl this is the default

if test "$ac_should_i_or_not" = yes; then
  echo "I should compile the lib"
  echo "I should not compile the lib"

I hope, you understood it. I can't really suggest the info pages,
but I would suggest to learn a year by your own mistakes ;-)

Greets, Stephan

Mit einer Frau zum Karneval zu gehen, ist wie mit einem Kasten Bier
in eine Kneipe zu kommen. Das macht man einfach nicht! * 4 nach 10

To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: