Re: mingw configure failure detection - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: mingw configure failure detection
Date
Msg-id 200405282052.i4SKqhn09761@candle.pha.pa.us
Whole thread Raw
In response to Re: mingw configure failure detection  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-patches
OK, fixed.

---------------------------------------------------------------------------

Andrew Dunstan wrote:
> Bruce Momjian wrote:
>
> >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"
> >
> >
>
> The quotes in the line above are spurious and need to be removed - they
> inhibit expansion of the variable into words, which is needed. I have
> checked that with the quotes removed the macro works correctly.
>
> cheers
>
> andrew
>
> >     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.
> >
> >
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Thomas Hallgren
Date:
Subject: Re: Link errors on win32
Next
From: Tom Lane
Date:
Subject: Re: Link errors on win32