Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12871241
db_enable_command.m4
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
db_enable_command.m4
View Options
AC_DEFUN([DB_ENABLE_COMMAND],
[
AC_MSG_CHECKING([whether to enable $1 command])
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--enable-$1],[enable $1 command @<:@$2@:>@]),
[db_cv_enable_command_$1=$enableval],
AC_CACHE_VAL([db_cv_enable_command_$1], [db_cv_enable_command_$1=$2]))
if test "[${db_cv_enable_command_$1}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_$3],[1],[whether to enable $1 command])
fi
if test "[${db_cv_enable_testing}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_$3],[1],[whether to enable $1 command (testing mode)])
db_cv_enable_command_$1=yes
fi
AC_MSG_RESULT([$db_cv_enable_command_$1])
])
AC_DEFUN([DB_ENABLE_COMMANDS],
[
AC_MSG_CHECKING([whether to enable $1 commands])
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--enable-$1],[enable $1 commands @<:@$2@:>@]),
[db_cv_enable_command_$1=$enableval],
AC_CACHE_VAL([db_cv_enable_command_$1], [db_cv_enable_command_$1=$2]))
if test "[${db_cv_enable_command_$1}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_$3],[1],[whether to enable $1 commands])
fi
if test "[${db_cv_enable_testing}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_$3],[1],[whether to enable $1 commands (testing mode)])
db_cv_enable_command_$1=yes
fi
AC_MSG_RESULT([$db_cv_enable_command_$1])
])
AC_DEFUN([DB_ENABLE_GENERIC],
[
AC_MSG_CHECKING([whether to enable $4])
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--enable-$1],[enable $4 @<:@$2@:>@]),
[db_cv_enable_$1=$enableval],
AC_CACHE_VAL([db_cv_enable_$1], [db_cv_enable_$1=$2]))
if test "[${db_cv_enable_$1}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_$3],[1],[whether to enable $4])
fi
if test "[${db_cv_enable_testing}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_$3],[1],[whether to enable $4 (testing mode)])
db_cv_enable_$1=yes
fi
AC_MSG_RESULT([$db_cv_enable_$1])
])
# FIXME: AC_ARG_WITH() is not the best choice, AC_ARG_VAR() may be better.
AC_DEFUN([DB_ENABLE_VALUE],
[
AC_MSG_CHECKING([value of $4])
AC_ARG_WITH([$1],
AS_HELP_STRING([--with-$1],[set $4 @<:@$2@:>@]),
[db_cv_with_$1=$withval],
AC_CACHE_VAL([db_cv_with_$1], [db_cv_with_$1=$2]))
AC_DEFINE_UNQUOTED([$3],[$db_cv_with_$1],[value of $4])
AC_MSG_RESULT([$db_cv_with_$1])
])
File Metadata
Details
Attached
Mime Type
text/x-m4
Expires
Mon, Nov 17, 16:10 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3170683
Default Alt Text
db_enable_command.m4 (2 KB)
Attached To
Mode
rDARKBOT Darkbot
Attached
Detach File
Event Timeline
Log In to Comment