777 |
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
778 |
esac |
esac |
779 |
|
|
780 |
# Make a symlink if possible; otherwise try a hard link. |
# Try a symlink, then a hard link, then a copy. |
781 |
ln -s $ac_rel_source $ac_dest 2>/dev/null || |
ln -s $ac_rel_source $ac_dest 2>/dev/null || |
782 |
ln $srcdir/$ac_source $ac_dest || |
ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
783 |
AC_MSG_ERROR([cannot link $ac_dest to $srcdir/$ac_source]) |
cp -p $srcdir/$ac_source $ac_dest || |
784 |
|
AC_MSG_ERROR([cannot link or copy $srcdir/$ac_source to $ac_dest]) |
785 |
m4_ifset([AC_LIST_LINKS_COMMANDS], |
m4_ifset([AC_LIST_LINKS_COMMANDS], |
786 |
[ # Run the commands associated with the file. |
[ # Run the commands associated with the file. |
787 |
case $ac_file in |
case $ac_file in |