From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: mingw configure failure detection |
Date: | 2004-05-18 04:13:32 |
Message-ID: | 200405180413.i4I4DWx16759@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Andrew Dunstan wrote:
> following up our conversation last night, I have tested the following
> with autoconf 2.57 and it apparently does the right thing:
>
> # Links sometimes fail undetected on Mingw -
> # so here we detect it and warn the user
> case $host_os in mingw*)
> AC_CONFIG_COMMANDS([default],[
> for linkspec in : $config_links; do test "x$linkspec" = x: && continue
> linktry=`echo "$linkspec" | sed 's,:.*,,'`
> test -e $linktry || AC_MSG_WARN([ link for $linktry failed - please
> fix by hand])
> done
> ])
> ;;
> esac
OK, got it working nicely:
case $host_os in mingw*)
AC_CONFIG_COMMANDS([check_win32_symlinks],[
# Links sometimes fail undetected on Mingw -
# so here we detect it and warn the user
for FILE in "$CONFIG_LINKS"
do
# test -e works for symlinks in the MinGW console
test -e `expr "$FILE" : '\(^:*\)'` || AC_MSG_WARN([*** link for
$FILE - please fix by hand])
done
])
;;
esac
Applied.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2004-05-18 08:03:12 | Re: new aggregate functions v1 |
Previous Message | Bruce Momjian | 2004-05-18 03:26:30 | Re: new aggregate functions v1 |