diff options
Diffstat (limited to 'm4/fp_copy_shellvar.m4')
-rw-r--r-- | m4/fp_copy_shellvar.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/fp_copy_shellvar.m4 b/m4/fp_copy_shellvar.m4 new file mode 100644 index 0000000000..f58601a3f1 --- /dev/null +++ b/m4/fp_copy_shellvar.m4 @@ -0,0 +1,3 @@ +# Helper for cloning a shell variable's state +AC_DEFUN([FP_COPY_SHELLVAR], +[if test -n "${$1+set}"; then $2="$$1"; else unset $2; fi ]) |