diff options
| author | Andrew Dunstan | 2009-02-12 15:12:47 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2009-02-12 15:12:47 +0000 |
| commit | 30735adfe4a6682a35545b5b830263740655c923 (patch) | |
| tree | b6467d647717c6819c22da96da36f6e12a9ef246 /configure.in | |
| parent | 71936fc5eb6330ace4205163b3d2f731a7db5a41 (diff) | |
do not use unsetenv.c on mingw
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.in b/configure.in index eedd745b166..93230792e70 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.590 2009/02/11 20:02:39 tgl Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.591 2009/02/12 15:12:47 adunstan Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1242,7 +1242,19 @@ fi pgac_save_LIBS="$LIBS" LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'` -AC_REPLACE_FUNCS([crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv]) +AC_REPLACE_FUNCS([crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul]) + +case $host_os in + + # Windows uses a specialised env handler + mingw*) + AC_DEFINE(HAVE_UNSETENV, 1, [Define to 1 because replacement version used.]) + ac_cv_func_unsetenv=yes;; + *) + AC_REPLACE_FUNCS([unsetenv]) + ;; +esac + LIBS="$pgac_save_LIBS" |
