From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] mingw configure failure workaround |
Date: | 2004-05-17 19:13:15 |
Message-ID: | 200405171913.i4HJDFV20749@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-hackers-win32 pgsql-patches |
Andrew Dunstan wrote:
> A lot of reading and some experimentation showed that putting this in
> configure.in:
>
> AC_OUTPUT_COMMANDS([
> for linktarget in src/backend/port/dynloader.c
> src/backend/port/pg_sema.c src/backend/port/pg_shmem.c
> src/include/dynloader.h src/include/pg_config_os.h src/Makefile.port ; do
> test -e $linktarget || echo " ***" link for $linktarget failed -
> please fix by hand
> done
> ])
>
>
> yielded results looking like this:
>
> config.status: executing default-1 commands
> *** link for src/backend/port/pg_shmem.c failed - please fix by hand
> *** link for src/include/dynloader.h failed - please fix by hand
Change made and applied:
case $host_os in mingw*)
AC_OUTPUT_COMMANDS([
# 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
# We can't call AC_MSG_WARN from here, so we expand it
test -e `expr "$FILE" : '\(^:*\)'` || { echo "$as_me:$LINENO:
WARNING: *** link for $FILE - please fix by hand" >&5
echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
done
])
;;
esac
The macro only runs on MinGW, of course.
--
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 | Simon Riggs | 2004-05-17 19:15:21 | Re: Call for 7.5 feature completion |
Previous Message | Andrew Dunstan | 2004-05-17 18:47:30 | Re: Table Spaces |
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Luckhurst | 2004-05-18 03:54:40 | Runtime Problems |
Previous Message | Bruce Momjian | 2004-05-17 12:24:26 | Re: Runtime Problems |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2004-05-17 20:57:06 | Timezone code, one more try |
Previous Message | Bruce Momjian | 2004-05-17 18:12:58 | Re: new aggregate functions v1 |