[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: making part of package optional at ./configure time
From: |
Stepan Kasal |
Subject: |
Re: making part of package optional at ./configure time |
Date: |
Tue, 19 Sep 2006 11:46:34 +0200 |
User-agent: |
Mutt/1.4.2.1i |
Hello,
> >> Use something like
> >> AC_ARG_ENABLE([webcam],
> >> [AS_HELP_STRING([--disable-webcam], [disable use of webcam])],
> >> [AC_DEFINE([USE_WEBCAM], [1], [enable/disable webcam broadcaster])])
a modified example:
AC_ARG_ENABLE([webcam],
[AS_HELP_STRING([--disable-webcam], [disable use of webcam])])
if "$enable_webcam" != no; then
AC_DEFINE([USE_WEBCAM], [1], [enable/disable webcam broadcaster])
fi
It might also help to study the examples in
http://www.gnu.org/software/autoconf/manual/html_node/External-Software.html#External-Software
(They are about AC_ARG_WITH, but the usage of AC_ARG_ENABLE is
analogical.)
HTH,
Stepan Kasal