10770 |
Options}). The following example will make this clearer. |
Options}). The following example will make this clearer. |
10771 |
|
|
10772 |
@example |
@example |
10773 |
AC_DEFUN(TEST_MACRO, |
AC_DEFUN([TEST_MACRO], |
10774 |
[AC_ARG_WITH(foo, |
[AC_ARG_WITH([foo], |
10775 |
AC_HELP_STRING([--with-foo], |
AC_HELP_STRING([--with-foo], |
10776 |
[use foo (default is NO)]), |
[use foo (default is NO)]), |
10777 |
ac_cv_use_foo=$withval, ac_cv_use_foo=no), |
[ac_cv_use_foo=$withval], [ac_cv_use_foo=no]) |
10778 |
AC_CACHE_CHECK(whether to use foo, |
AC_CACHE_CHECK([whether to use foo], |
10779 |
ac_cv_use_foo, ac_cv_use_foo=no)]) |
[ac_cv_use_foo], [ac_cv_use_foo=no])]) |
10780 |
@end example |
@end example |
10781 |
|
|
10782 |
Please note that the call to @code{AC_HELP_STRING} is @strong{unquoted}. |
Please note that the call to @code{AC_HELP_STRING} is @strong{unquoted}. |