From: Fabrice B. <li...@gm...> - 2013-08-02 09:22:59
|
Hello, configure.ac can handle 3 useful environment variables: MOUNT_FUSE_PATH, UDEV_RULES_PATH and INIT_D_PATH. However, they are largely undocumented (they do not appear when ./configure is run). The below patch makes ./configure indicate that a default value is used when the env var is not set, telling the user that she can change it. >From 7dcecc1da9aac86a99532c5ac907a6b4bfbc9f77 Mon Sep 17 00:00:00 2001 From: Fabrice Bauzac <fb...@am...> Date: Fri, 2 Aug 2013 11:15:54 +0200 Subject: [PATCH] Advertize the existence of some "configure" env vars. Advertize the existence of env vars MOUNT_FUSE_PATH, UDEV_RULES_PATH and INIT_D_PATH in the execution of ./configure. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f477694..1d57022 100644 --- a/configure.ac +++ b/configure.ac @@ -81,15 +81,18 @@ AM_CONDITIONAL(ICONV, test "$am_cv_func_iconv" = yes) AC_SUBST(libfuse_libs) if test -z "$MOUNT_FUSE_PATH"; then - MOUNT_FUSE_PATH=/sbin + MOUNT_FUSE_PATH=/sbin + AC_MSG_NOTICE([MOUNT_FUSE_PATH env var not set, using default $MOUNT_FUSE_PATH]) fi AC_SUBST(MOUNT_FUSE_PATH) if test -z "$UDEV_RULES_PATH"; then UDEV_RULES_PATH=/etc/udev/rules.d + AC_MSG_NOTICE([UDEV_RULES_PATH env var not set, using default $UDEV_RULES_PATH]) fi AC_SUBST(UDEV_RULES_PATH) if test -z "$INIT_D_PATH"; then INIT_D_PATH=/etc/init.d + AC_MSG_NOTICE([INIT_D_PATH env var not set, using default $INIT_D_PATH]) fi AC_SUBST(INIT_D_PATH) -- 1.8.1.2 Thanks! Best regards Fabrice |