[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: AC_CONFIG_LINKS and MSVC
From: |
David Byron |
Subject: |
RE: AC_CONFIG_LINKS and MSVC |
Date: |
Wed, 19 Apr 2006 14:18:13 -0700 |
On Tuesday 18 April, David Byron wrote:
> # TCS_CONFIG_INCLUDE(tag,source,dest)
> AC_DEFUN([TCS_CONFIG_INCLUDE],
> [
> # Prefix everything with the tag name so we use separate
> # shell variables for each command
> $1_config_cmd="$tcs_cv_config_include $srcdir/$2 $3"
>
AC_CONFIG_COMMANDS([$1],$$1_config_cmd,$1_config_cmd='$$1_config_cmd')
> ])
On linux and solaris, tcs_cv_config_include=ln -fs
I'm having trouble with this on solaris though because ln -fs complains
when the link already exists. So, I figure I'll remove it first,
changing the command from (for example)
ln -fs ../src/foo.h bar.h
to
rm -f bar.h && ln -fs ../src/foo.h bar.h
Trouble is, when I execute this back on linux in bash
2.05b.0(1)-release, everything seems to be treated as an argument to rm
and it blows away bar.h and ../src/foo.h, while complaining that -s
isn't a valid option.
This works when I execute it in the shell directly, but not via
config.status.
I also tried
rm -f -- bar.h && ln -fs ../src/foo.h bar.h
but that doesn't work either.
Any ideas?
Thanks much for your help.
-DB