[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Output from AC_DEFINE_UNQUOTED not appearing in config.h
From: |
Robert Norris |
Subject: |
Output from AC_DEFINE_UNQUOTED not appearing in config.h |
Date: |
Fri, 30 May 2003 14:16:55 +1000 |
User-agent: |
Mutt/1.5.4i |
My configure.in has the following:
---
dnl storage drivers
want_storage='db'
AC_MSG_CHECKING(which storage drivers to build)
AC_ARG_ENABLE(storage, AC_HELP_STRING(--enable-storage=drivers, [storage
drivers to build (default: db)]),
[ if test "x-$enableval" = "x-no" ; then
want_storage=''
elif test "x-$enableval" != "x-yes" ; then
want_storage=$enableval
fi ])
AC_MSG_RESULT($want_storage)
for opt in $want_storage ; do
eval "j2_want_storage_$opt=yes"
def="WANT_STORAGE_`echo $opt | tr 'a-z' 'A-Z'`"
AC_DEFINE_UNQUOTED($def)
done
---
However, any preprocessor symbols defined here do not appear in config.h
(contrary to what the documentation on AC_DEFINE_UNQUOTED says).
(They do appear in confdefs.h, but of course this file is deleted when
configure completes).
Can anyone suggest a fix or workaround for this? My thought was that I
could do this instead:
CFLAGS="$CFLAGS -D$def"
That feels a little brute-force though - surely there's a better way?
Thanks,
Rob.
--
Robert Norris GPG: 1024D/FC18E6C2
Email+Jabber: address@hidden Web: http://cataclysm.cx/
pgpzKTr1qg_N2.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Output from AC_DEFINE_UNQUOTED not appearing in config.h,
Robert Norris <=