|
From: | Braden McDaniel |
Subject: | Re: specifying multiple with arguments |
Date: | Tue, 15 Mar 2005 16:14:00 -0500 |
User-agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
Patrick West wrote:
I am interested in doing something like this: ./configure --with-package=package1 --with-package=package2But I am not sure how to do this. I try to use AC_ARG_WITH, but that only takes package2 and ignores package1.Any help would be greatly appreciated.
A single switch (in your example "--with-package") can only take one value. The last one you provide wins.
While you can use any value you want as the argument to a --with-* option, anything other than "yes" or "no" usually complicates the UI and should generally be avoided unless it is a clear simplification (IMO).
So why not: ./configure --with-package1 --with-package2 Braden
[Prev in Thread] | Current Thread | [Next in Thread] |