From 09587df0ed7135d65d0ba7c419553ee1b8dbf83a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 12 Jul 2013 10:00:01 +0200 Subject: [PATCH] osx: fix postinstall script `@PRIVSEP_USER@` and `@PRIVSEP_GROUP@` were not substituted with the appropriate values because they were not declared as an output variable. --- m4/args.m4 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/m4/args.m4 b/m4/args.m4 index 9c9dc19c..cc6263bd 100644 --- a/m4/args.m4 +++ b/m4/args.m4 @@ -7,10 +7,12 @@ dnl lldp_ARG_WITH(name, help1, default) AC_DEFUN([lldp_ARG_WITH],[ AC_ARG_WITH([$1], AS_HELP_STRING([--with-$1], - [$2 @<:@default=$3@:>@]), - AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$withval"], [$2]), - AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$3"], [$2])) -]) + [$2 @<:@default=$3@:>@]),[ + AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$withval"], [$2]) + AC_SUBST(AS_TR_CPP([$1]), [$withval])],[ + AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$3"], [$2]) + AC_SUBST(AS_TR_CPP([$1]), [$3]) +])]) dnl lldp_ARG_ENABLE(name, help1, default) -- 2.39.5