@@ -14328,6 +14328,159 @@ done
14328
14328
14329
14329
fi
14330
14330
14331
+ if test "$PORTNAME" = "win32" ; then
14332
+
14333
+ for ac_header in crtdefs.h
14334
+ do
14335
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14336
+ if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14338
+ $as_echo_n "checking for $ac_header... " >&6; }
14339
+ if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14340
+ $as_echo_n "(cached) " >&6
14341
+ fi
14342
+ ac_res=`eval 'as_val=${'$as_ac_Header'}
14343
+ $as_echo "$as_val"'`
14344
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14345
+ $as_echo "$ac_res" >&6; }
14346
+ else
14347
+ # Is the header compilable?
14348
+ { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14349
+ $as_echo_n "checking $ac_header usability... " >&6; }
14350
+ cat >conftest.$ac_ext <<_ACEOF
14351
+ /* confdefs.h. */
14352
+ _ACEOF
14353
+ cat confdefs.h >>conftest.$ac_ext
14354
+ cat >>conftest.$ac_ext <<_ACEOF
14355
+ /* end confdefs.h. */
14356
+ $ac_includes_default
14357
+ #include <$ac_header>
14358
+ _ACEOF
14359
+ rm -f conftest.$ac_objext
14360
+ if { (ac_try="$ac_compile"
14361
+ case "(($ac_try" in
14362
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363
+ *) ac_try_echo=$ac_try;;
14364
+ esac
14365
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14366
+ $as_echo "$ac_try_echo") >&5
14367
+ (eval "$ac_compile") 2>conftest.er1
14368
+ ac_status=$?
14369
+ grep -v '^ *+' conftest.er1 >conftest.err
14370
+ rm -f conftest.er1
14371
+ cat conftest.err >&5
14372
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373
+ (exit $ac_status); } && {
14374
+ test -z "$ac_c_werror_flag" ||
14375
+ test ! -s conftest.err
14376
+ } && test -s conftest.$ac_objext; then
14377
+ ac_header_compiler=yes
14378
+ else
14379
+ $as_echo "$as_me: failed program was:" >&5
14380
+ sed 's/^/| /' conftest.$ac_ext >&5
14381
+
14382
+ ac_header_compiler=no
14383
+ fi
14384
+
14385
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386
+ { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14387
+ $as_echo "$ac_header_compiler" >&6; }
14388
+
14389
+ # Is the header present?
14390
+ { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14391
+ $as_echo_n "checking $ac_header presence... " >&6; }
14392
+ cat >conftest.$ac_ext <<_ACEOF
14393
+ /* confdefs.h. */
14394
+ _ACEOF
14395
+ cat confdefs.h >>conftest.$ac_ext
14396
+ cat >>conftest.$ac_ext <<_ACEOF
14397
+ /* end confdefs.h. */
14398
+ #include <$ac_header>
14399
+ _ACEOF
14400
+ if { (ac_try="$ac_cpp conftest.$ac_ext"
14401
+ case "(($ac_try" in
14402
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403
+ *) ac_try_echo=$ac_try;;
14404
+ esac
14405
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14406
+ $as_echo "$ac_try_echo") >&5
14407
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14408
+ ac_status=$?
14409
+ grep -v '^ *+' conftest.er1 >conftest.err
14410
+ rm -f conftest.er1
14411
+ cat conftest.err >&5
14412
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413
+ (exit $ac_status); } >/dev/null && {
14414
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14415
+ test ! -s conftest.err
14416
+ }; then
14417
+ ac_header_preproc=yes
14418
+ else
14419
+ $as_echo "$as_me: failed program was:" >&5
14420
+ sed 's/^/| /' conftest.$ac_ext >&5
14421
+
14422
+ ac_header_preproc=no
14423
+ fi
14424
+
14425
+ rm -f conftest.err conftest.$ac_ext
14426
+ { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427
+ $as_echo "$ac_header_preproc" >&6; }
14428
+
14429
+ # So? What about this header?
14430
+ case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14431
+ yes:no: )
14432
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14433
+ $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14435
+ $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14436
+ ac_header_preproc=yes
14437
+ ;;
14438
+ no:yes:* )
14439
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14440
+ $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14441
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14442
+ $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14443
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14444
+ $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14445
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14446
+ $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14447
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14448
+ $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14449
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14450
+ $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14451
+ ( cat <<\_ASBOX
14452
+ ## ---------------------------------------- ##
14453
+ ## Report this to pgsql-bugs@postgresql.org ##
14454
+ ## ---------------------------------------- ##
14455
+ _ASBOX
14456
+ ) | sed "s/^/$as_me: WARNING: /" >&2
14457
+ ;;
14458
+ esac
14459
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14460
+ $as_echo_n "checking for $ac_header... " >&6; }
14461
+ if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14462
+ $as_echo_n "(cached) " >&6
14463
+ else
14464
+ eval "$as_ac_Header=\$ac_header_preproc"
14465
+ fi
14466
+ ac_res=`eval 'as_val=${'$as_ac_Header'}
14467
+ $as_echo "$as_val"'`
14468
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14469
+ $as_echo "$ac_res" >&6; }
14470
+
14471
+ fi
14472
+ as_val=`eval 'as_val=${'$as_ac_Header'}
14473
+ $as_echo "$as_val"'`
14474
+ if test "x$as_val" = x""yes; then
14475
+ cat >>confdefs.h <<_ACEOF
14476
+ #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14477
+ _ACEOF
14478
+
14479
+ fi
14480
+
14481
+ done
14482
+
14483
+ fi
14331
14484
14332
14485
##
14333
14486
## Types, structures, compiler characteristics
@@ -17997,7 +18150,8 @@ fi
17997
18150
# compiler characteristic, but you'd be wrong. We must check this before
17998
18151
# probing existence of related functions such as fseeko, since the largefile
17999
18152
# defines can affect what is generated for that.
18000
- # Check whether --enable-largefile was given.
18153
+ if test "$PORTNAME" != "win32"; then
18154
+ # Check whether --enable-largefile was given.
18001
18155
if test "${enable_largefile+set}" = set; then
18002
18156
enableval=$enable_largefile;
18003
18157
fi
@@ -18353,6 +18507,7 @@ rm -rf conftest*
18353
18507
fi
18354
18508
fi
18355
18509
18510
+ fi
18356
18511
18357
18512
# Check for largefile support (must be after AC_SYS_LARGEFILE)
18358
18513
# The cast to long int works around a bug in the HP C Compiler
@@ -18808,7 +18963,7 @@ else
18808
18963
if test "${ac_cv_func_accept_arg3+set}" = set; then
18809
18964
$as_echo_n "(cached) " >&6
18810
18965
else
18811
- for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18966
+ for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI '; do
18812
18967
for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18813
18968
for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18814
18969
for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
0 commit comments