Commit 256ee0d5 authored by Bruce Momjian's avatar Bruce Momjian

Use $PORTNAME consistently instead of $host_os, where appropriate.

parent 594be448
...@@ -3412,13 +3412,13 @@ fi; ...@@ -3412,13 +3412,13 @@ fi;
# readline on MinGW has problems with backslashes in psql and other bugs. # readline on MinGW has problems with backslashes in psql and other bugs.
# This is particularly a problem with non-US code pages. # This is particularly a problem with non-US code pages.
# Therefore disable its use until we understand the cause. 2004-07-20 # Therefore disable its use until we understand the cause. 2004-07-20
case $host_os in mingw*) if test "$PORTNAME" = "win32"; then
if test "$with_readline" = yes; then if test "$with_readline" = yes; then
{ echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;} echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
with_readline=no with_readline=no
fi;; fi
esac fi
# #
...@@ -10701,7 +10701,6 @@ fi ...@@ -10701,7 +10701,6 @@ fi
fi fi
## ##
## Functions, global variables ## Functions, global variables
## ##
...@@ -12054,12 +12053,12 @@ ac_cv_func_fseeko=yes ...@@ -12054,12 +12053,12 @@ ac_cv_func_fseeko=yes
esac esac
# Solaris has a very slow qsort in certain cases, so we replace it. # Solaris has a very slow qsort in certain cases, so we replace it.
case $host_os in solaris*) if test "$PORTNAME" = "solaris"; then
LIBOBJS="$LIBOBJS qsort.$ac_objext" ;; LIBOBJS="$LIBOBJS qsort.$ac_objext"
esac fi
# Win32 support # Win32 support
case $host_os in mingw*) if test "$PORTNAME" = "win32"; then
LIBOBJS="$LIBOBJS copydir.$ac_objext" LIBOBJS="$LIBOBJS copydir.$ac_objext"
LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
LIBOBJS="$LIBOBJS kill.$ac_objext" LIBOBJS="$LIBOBJS kill.$ac_objext"
...@@ -12070,8 +12069,7 @@ cat >>confdefs.h <<\_ACEOF ...@@ -12070,8 +12069,7 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_SYMLINK 1 #define HAVE_SYMLINK 1
_ACEOF _ACEOF
;; fi
esac
if test "$with_readline" = yes; then if test "$with_readline" = yes; then
echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
...@@ -18107,11 +18105,10 @@ ac_config_files="$ac_config_files GNUmakefile src/Makefile.global" ...@@ -18107,11 +18105,10 @@ ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}" ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
case $host_os in mingw*) if test "$PORTNAME" = "win32"; then
ac_config_commands="$ac_config_commands check_win32_symlinks" ac_config_commands="$ac_config_commands check_win32_symlinks"
;; fi
esac
ac_config_headers="$ac_config_headers src/include/pg_config.h" ac_config_headers="$ac_config_headers src/include/pg_config.h"
......
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.375 2004/09/02 15:39:56 tgl Exp $ dnl $PostgreSQL: pgsql/configure.in,v 1.376 2004/09/10 13:53:40 momjian Exp $
dnl dnl
dnl Developers, please strive to achieve this order: dnl Developers, please strive to achieve this order:
dnl dnl
...@@ -483,12 +483,12 @@ PGAC_ARG_BOOL(with, readline, yes, ...@@ -483,12 +483,12 @@ PGAC_ARG_BOOL(with, readline, yes,
# readline on MinGW has problems with backslashes in psql and other bugs. # readline on MinGW has problems with backslashes in psql and other bugs.
# This is particularly a problem with non-US code pages. # This is particularly a problem with non-US code pages.
# Therefore disable its use until we understand the cause. 2004-07-20 # Therefore disable its use until we understand the cause. 2004-07-20
case $host_os in mingw*) if test "$PORTNAME" = "win32"; then
if test "$with_readline" = yes; then if test "$with_readline" = yes; then
AC_MSG_WARN([*** Readline does not work on MinGW --- disabling]) AC_MSG_WARN([*** Readline does not work on MinGW --- disabling])
with_readline=no with_readline=no
fi;; fi
esac fi
# #
...@@ -798,7 +798,6 @@ if test "$with_krb5" = yes; then ...@@ -798,7 +798,6 @@ if test "$with_krb5" = yes; then
[#include <krb5.h>]) [#include <krb5.h>])
fi fi
## ##
## Functions, global variables ## Functions, global variables
## ##
...@@ -898,12 +897,12 @@ ac_cv_func_fseeko=yes ...@@ -898,12 +897,12 @@ ac_cv_func_fseeko=yes
esac esac
# Solaris has a very slow qsort in certain cases, so we replace it. # Solaris has a very slow qsort in certain cases, so we replace it.
case $host_os in solaris*) if test "$PORTNAME" = "solaris"; then
AC_LIBOBJ(qsort) ;; AC_LIBOBJ(qsort)
esac fi
# Win32 support # Win32 support
case $host_os in mingw*) if test "$PORTNAME" = "win32"; then
AC_LIBOBJ(copydir) AC_LIBOBJ(copydir)
AC_LIBOBJ(gettimeofday) AC_LIBOBJ(gettimeofday)
AC_LIBOBJ(kill) AC_LIBOBJ(kill)
...@@ -911,8 +910,7 @@ AC_LIBOBJ(open) ...@@ -911,8 +910,7 @@ AC_LIBOBJ(open)
AC_LIBOBJ(rand) AC_LIBOBJ(rand)
AC_DEFINE([HAVE_SYMLINK], 1, AC_DEFINE([HAVE_SYMLINK], 1,
[Define to 1 if you have the `symlink' function.]) [Define to 1 if you have the `symlink' function.])
;; fi
esac
if test "$with_readline" = yes; then if test "$with_readline" = yes; then
PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
...@@ -1262,7 +1260,7 @@ AC_CONFIG_LINKS([ ...@@ -1262,7 +1260,7 @@ AC_CONFIG_LINKS([
src/Makefile.port:src/makefiles/Makefile.${template} src/Makefile.port:src/makefiles/Makefile.${template}
]) ])
case $host_os in mingw*) if test "$PORTNAME" = "win32"; then
AC_CONFIG_COMMANDS([check_win32_symlinks],[ AC_CONFIG_COMMANDS([check_win32_symlinks],[
# Links sometimes fail undetected on Mingw - # Links sometimes fail undetected on Mingw -
# so here we detect it and warn the user # so here we detect it and warn the user
...@@ -1272,8 +1270,7 @@ for FILE in $CONFIG_LINKS ...@@ -1272,8 +1270,7 @@ for FILE in $CONFIG_LINKS
test -e `expr "$FILE" : '\([[^:]]*\)'` || AC_MSG_WARN([*** link for $FILE - please fix by hand]) test -e `expr "$FILE" : '\([[^:]]*\)'` || AC_MSG_WARN([*** link for $FILE - please fix by hand])
done done
]) ])
;; fi
esac
AC_CONFIG_HEADERS([src/include/pg_config.h], AC_CONFIG_HEADERS([src/include/pg_config.h],
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment