OSDN Git Service

Move win32 changes from configure to configure.in, per Tom, autoconf
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2004 16:00:49 +0000 (16:00 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2004 16:00:49 +0000 (16:00 +0000)
run.

configure.in

index 29dd95c..8710907 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.311 2004/01/19 21:20:05 tgl Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.312 2004/02/02 16:00:49 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -261,7 +261,7 @@ AC_MSG_NOTICE([using CFLAGS=$CFLAGS])
 
 # We already have this in Makefile.win32, but configure needs it too
 if test "$PORTNAME" = "win32"; then
-  CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
+  CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
 fi
 
 # Check if the compiler still works with the template settings
@@ -905,10 +905,11 @@ esac
 
 # Win32 can't to rename or unlink on an open file
 case $host_os in mingw*)
-AC_LIBOBJ(dirmod)
 AC_LIBOBJ(copydir)
+AC_LIBOBJ(dirmod)
 AC_LIBOBJ(gettimeofday)
-AC_LIBOBJ(pipe) ;;
+AC_LIBOBJ(pipe)
+AC_LIBOBJ(rand) ;;
 esac
 
 if test "$with_readline" = yes; then