Home | History | Annotate | Download | only in m4
      1 dnl AX_COPY_IF_CHANGE(source, dest)
      2 dnl copy source to dest if they don't compare equally or if dest doesn't exist
      3 AC_DEFUN([AX_COPY_IF_CHANGE], [
      4 if test -r $2; then
      5 	if cmp $1 $2 > /dev/null; then
      6 		echo $2 is unchanged
      7 	else
      8 		cp -f $1 $2
      9 	fi
     10 else
     11 	cp -f $1 $2
     12 fi
     13 ])
     14