dnl# AX_EXPAND_PATH(path,var)
dnl# expand the path to a fully qualified path and assign it to var
dnl# Copyright (C) 2014,2015 Associated Universities, Inc. Washington DC, USA.
dnl# Copying and distribution of this file, with or without modification, are
dnl# permitted in any medium without royalty provided the copyright notice
dnl# and this notice are preserved. This file is offered as-is, without any
AC_DEFUN([AX_EXPAND_PATH], [dnl
m4_if([$1], [], [m4_fatal([first argument of AX_EXPAND_PATH missing])])dnl
m4_if([$2], [],[m4_fatal([second argument of AX_EXPAND_PATH missing])])dnl
$2=`cd $(dirname $1) && pwd`/$(basename $1)