From: Vincent Bernat Date: Fri, 12 Jul 2013 08:00:01 +0000 (+0200) Subject: osx: fix postinstall script X-Git-Tag: 0.7.6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09587df0ed7135d65d0ba7c419553ee1b8dbf83a;p=thirdparty%2Flldpd.git 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. --- 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)