Use of brackets with autoconf
Julien ÉLIE
julien at trigofacile.com
Thu Aug 20 22:32:18 UTC 2009
Hi,
I see that we for instance have in "./configure --help":
--enable-libtool Use libtool for lib generation default=no
--with-syslog-facility=LOG_FAC
Syslog facility [LOG_NEWS], [or], [LOG_LOCAL1]
instead of:
--enable-libtool Use libtool for lib generation [default=no]
--with-syslog-facility=LOG_FAC
Syslog facility [LOG_NEWS or LOG_LOCAL1]
I tried to use double brackets ("[[" and "]]") but it did not work.
I found out what Autoconf calls "quadrigraphs", for instance writing
"@<:@" instead of "[".
That's not very useful to use...
Isn't there a better solution for our mere strings?
Index: m4/syslog.m4
===================================================================
--- m4/syslog.m4 (révision 8572)
+++ m4/syslog.m4 (copie de travail)
@@ -13,7 +13,7 @@
AC_DEFUN([INN_ARG_SYSLOG],
[AC_ARG_WITH([syslog-facility],
[AS_HELP_STRING([--with-syslog-facility=LOG_FAC],
- [Syslog facility [LOG_NEWS or LOG_LOCAL1]])],
+ [Syslog facility @<:@LOG_NEWS or LOG_LOCAL1@:>@]])],
SYSLOG_FACILITY=$with_syslog_facility,
SYSLOG_FACILITY=none)])
Index: configure.ac
===================================================================
--- configure.ac (révision 8572)
+++ configure.ac (copie de travail)
@@ -85,11 +85,12 @@
dnl setup macros if they do. Keep this call together with the libtool setup
dnl so that the arguments to configure will be together in configure --help.
inn_use_libtool=no
-AC_ARG_ENABLE(libtool,
- [ --enable-libtool Use libtool for lib generation [default=no]],
- if test "$enableval" = yes ; then
+AC_ARG_ENABLE([libtool],
+ [AS_HELP_STRING([--enable-libtool],
+ [Use libtool for lib generation @<:@default=no@:>@])],
+ [if test x"$enableval" = xyes ; then
inn_use_libtool=yes
- fi)
+ fi])
if test x"$inn_use_libtool" = xyes ; then
LT_INIT
EXTLIB='la'
--
Julien ÉLIE
« La vraie paresse, c'est de se lever à 6 heures du matin
pour avoir plus longtemps à ne rien faire. » (Tristan Bernard)
More information about the inn-workers
mailing list