1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
dnl add plugin status message, e.g. GP_STATUS_PLUGIN_ADD(plugin,yes)
AC_DEFUN([GP_STATUS_PLUGIN_ADD],
[
plugins_statusmsg="${plugins_statusmsg}$1:$2
"
])
dnl add feature status message, e.g. GP_STATUS_FEATURE_ADD(feature,yes)
AC_DEFUN([GP_STATUS_FEATURE_ADD],
[
feature_statusmsg="${feature_statusmsg}$1:$2
"
])
dnl add build feature status message, e.g.
dnl GP_STATUS_BUIL_FEATURE_ADD(build_feature,yes)
AC_DEFUN([GP_STATUS_BUILD_FEATURE_ADD],
[
build_feature_statusmsg="${build_feature_statusmsg}$1:$2
"
])
dnl indent $1_statusmsg with RHS at col $2
AC_DEFUN([_GP_STATUS_PRINT_INDENT_],
[
while read line; do
test -z "$line" && break;
plugin=" ${line%:*}:"
status=${line#*:}
printf "%-*s%s\n" "$2" "$plugin" "$status"
done << GPEOF
$$1_statusmsg
GPEOF
])
dnl print status message
AC_DEFUN([GP_STATUS_PRINT],
[
GP_EXPAND_DIR(datadir)
GP_EXPAND_DIR(libdir)
GP_EXPAND_DIR(docdir)
cat <<GPEOF
${PACKAGE}-${VERSION}
Build Environment:
Geany version: ${GEANY_VERSION} (GTK${GP_GTK_VERSION_MAJOR})
Install prefix: ${prefix}
Datadir: ${expanded_datadir}/${PACKAGE_TARNAME}
Libdir: ${expanded_libdir}/${PACKAGE_TARNAME}
Docdir: ${expanded_docdir}
Plugins path: ${geanypluginsdir}
Build Features:
GPEOF
_GP_STATUS_PRINT_INDENT_(build_feature, 34)
echo
echo " Plugins:"
_GP_STATUS_PRINT_INDENT_(plugins, 34)
echo
echo " Features:"
_GP_STATUS_PRINT_INDENT_(feature, 34)
echo
])
|