Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
43416529
Commit
43416529
authored
Jan 13, 1998
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isinf() doesn't exist under i386_solaris, so code it such that
it is (!isnan() && !finite()) instead
parent
06356b89
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
46 deletions
+101
-46
src/backend/port/Makefile.in
src/backend/port/Makefile.in
+2
-2
src/configure
src/configure
+95
-43
src/configure.in
src/configure.in
+4
-1
No files found.
src/backend/port/Makefile.in
View file @
43416529
...
...
@@ -13,7 +13,7 @@
# be converted to Method 2.
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.1
3 1998/01/13 15:31:09
scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.1
4 1998/01/13 19:21:40
scrappy Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -25,7 +25,7 @@ INCLUDE_OPT = -I..
CFLAGS
+=
${INCLUDE_OPT}
OBJS
=
dynloader.o @INET_ATON@ @STRERROR@ @MISSING_RANDOM@ @SRANDOM@
OBJS
+=
@GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@ @STRDUP@ @TAS@
OBJS
+=
@GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@ @STRDUP@ @TAS@
@ISINF@
all
:
SUBSYS.o
...
...
src/configure
View file @
43416529
...
...
@@ -3455,7 +3455,7 @@ fi
fi
for
ac_func
in
isinf
tzset vfork memmove sigsetjmp
kill
sysconf
for
ac_func
in
tzset vfork memmove sigsetjmp
kill
sysconf
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3462: checking for
$ac_func
"
>
&5
...
...
@@ -3565,13 +3565,65 @@ else
fi
done
echo
$ac_n
"checking for isinf""...
$ac_c
"
1>&6
echo
"configure:3570: checking for isinf"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_isinf
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3575 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char isinf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char isinf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_isinf) || defined (__stub___isinf)
choke me
#else
isinf();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:3598:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_isinf=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_isinf=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
isinf
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_ISINF 1
EOF
else
echo
"
$ac_t
""no"
1>&6
ISINF
=
'isinf.o'
fi
echo
$ac_n
"checking for getrusage""...
$ac_c
"
1>&6
echo
"configure:3
570
: checking for getrusage"
>
&5
echo
"configure:3
622
: checking for getrusage"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_getrusage
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
575
"configure"
#line 3
627
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getrusage(); below. */
...
...
@@ -3594,7 +3646,7 @@ getrusage();
; return 0; }
EOF
if
{
(
eval echo
configure:3
598
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
650
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_getrusage=yes"
else
...
...
@@ -3618,12 +3670,12 @@ GETRUSAGE='getrusage.o'
fi
echo
$ac_n
"checking for srandom""...
$ac_c
"
1>&6
echo
"configure:36
22
: checking for srandom"
>
&5
echo
"configure:36
74
: checking for srandom"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_srandom
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 36
27
"configure"
#line 36
79
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char srandom(); below. */
...
...
@@ -3646,7 +3698,7 @@ srandom();
; return 0; }
EOF
if
{
(
eval echo
configure:3
650
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
702
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_srandom=yes"
else
...
...
@@ -3670,12 +3722,12 @@ SRANDOM='srandom.o'
fi
echo
$ac_n
"checking for gethostname""...
$ac_c
"
1>&6
echo
"configure:3
674
: checking for gethostname"
>
&5
echo
"configure:3
726
: checking for gethostname"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_gethostname
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
679
"configure"
#line 3
731
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostname(); below. */
...
...
@@ -3698,7 +3750,7 @@ gethostname();
; return 0; }
EOF
if
{
(
eval echo
configure:37
02
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:37
54
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_gethostname=yes"
else
...
...
@@ -3722,12 +3774,12 @@ GETHOSTNAME='gethostname.o'
fi
echo
$ac_n
"checking for random""...
$ac_c
"
1>&6
echo
"configure:37
26
: checking for random"
>
&5
echo
"configure:37
78
: checking for random"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_random
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 37
31
"configure"
#line 37
83
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char random(); below. */
...
...
@@ -3750,7 +3802,7 @@ random();
; return 0; }
EOF
if
{
(
eval echo
configure:3
754
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
806
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_random=yes"
else
...
...
@@ -3774,12 +3826,12 @@ MISSING_RANDOM='random.o'
fi
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
"configure:3
778
: checking for inet_aton"
>
&5
echo
"configure:3
830
: checking for inet_aton"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_aton
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
783
"configure"
#line 3
835
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
...
...
@@ -3802,7 +3854,7 @@ inet_aton();
; return 0; }
EOF
if
{
(
eval echo
configure:38
06
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:38
58
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_aton=yes"
else
...
...
@@ -3826,12 +3878,12 @@ INET_ATON='inet_aton.o'
fi
echo
$ac_n
"checking for strerror""...
$ac_c
"
1>&6
echo
"configure:38
30
: checking for strerror"
>
&5
echo
"configure:38
82
: checking for strerror"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strerror
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 38
35
"configure"
#line 38
87
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
...
...
@@ -3854,7 +3906,7 @@ strerror();
; return 0; }
EOF
if
{
(
eval echo
configure:3
858
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
910
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strerror=yes"
else
...
...
@@ -3878,12 +3930,12 @@ STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
fi
echo
$ac_n
"checking for strdup""...
$ac_c
"
1>&6
echo
"configure:3
882
: checking for strdup"
>
&5
echo
"configure:3
934
: checking for strdup"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strdup
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
887
"configure"
#line 3
939
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strdup(); below. */
...
...
@@ -3906,7 +3958,7 @@ strdup();
; return 0; }
EOF
if
{
(
eval echo
configure:39
10
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:39
62
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strdup=yes"
else
...
...
@@ -3930,12 +3982,12 @@ STRDUP='../../utils/strdup.o'
fi
echo
$ac_n
"checking for strtol""...
$ac_c
"
1>&6
echo
"configure:39
34
: checking for strtol"
>
&5
echo
"configure:39
86
: checking for strtol"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strtol
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 39
39
"configure"
#line 39
91
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strtol(); below. */
...
...
@@ -3958,7 +4010,7 @@ strtol();
; return 0; }
EOF
if
{
(
eval echo
configure:
3962
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:
4014
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strtol=yes"
else
...
...
@@ -3982,12 +4034,12 @@ STRDUP='strtol.o'
fi
echo
$ac_n
"checking for strcasecmp""...
$ac_c
"
1>&6
echo
"configure:
3986
: checking for strcasecmp"
>
&5
echo
"configure:
4038
: checking for strcasecmp"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strcasecmp
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
3991
"configure"
#line
4043
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strcasecmp(); below. */
...
...
@@ -4010,7 +4062,7 @@ strcasecmp();
; return 0; }
EOF
if
{
(
eval echo
configure:40
14
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:40
66
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strcasecmp=yes"
else
...
...
@@ -4043,12 +4095,12 @@ fi
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
"configure:40
47
: checking for cbrt"
>
&5
echo
"configure:40
99
: checking for cbrt"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_cbrt
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
052
"configure"
#line 4
104
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char cbrt(); below. */
...
...
@@ -4071,7 +4123,7 @@ cbrt();
; return 0; }
EOF
if
{
(
eval echo
configure:4
075
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:4
127
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_cbrt=yes"
else
...
...
@@ -4092,7 +4144,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
"configure:4
096
: checking for cbrt in -lm"
>
&5
echo
"configure:4
148
: checking for cbrt in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
cbrt |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4100,7 +4152,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 41
04
"configure"
#line 41
56
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4111,7 +4163,7 @@ int main() {
cbrt()
; return 0; }
EOF
if
{
(
eval echo
configure:41
15
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:41
67
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4137,12 +4189,12 @@ fi
fi
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
"configure:41
41
: checking for rint"
>
&5
echo
"configure:41
93
: checking for rint"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_rint
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 41
46
"configure"
#line 41
98
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
...
...
@@ -4165,7 +4217,7 @@ rint();
; return 0; }
EOF
if
{
(
eval echo
configure:4
169
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:4
221
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_rint=yes"
else
...
...
@@ -4186,7 +4238,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
"configure:4
190
: checking for rint in -lm"
>
&5
echo
"configure:4
242
: checking for rint in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
rint |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4194,7 +4246,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
198
"configure"
#line 4
250
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4205,7 +4257,7 @@ int main() {
rint()
; return 0; }
EOF
if
{
(
eval echo
configure:42
09
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:42
61
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4232,7 +4284,7 @@ fi
echo
$ac_n
"checking setting USE_LOCALE""...
$ac_c
"
1>&6
echo
"configure:42
36
: checking setting USE_LOCALE"
>
&5
echo
"configure:42
88
: checking setting USE_LOCALE"
>
&5
if
test
"
$USE_LOCALE
"
=
"yes"
then
echo
"
$ac_t
""enabled"
1>&6
...
...
@@ -4244,14 +4296,14 @@ else
echo
"
$ac_t
""disabled"
1>&6
fi
echo
$ac_n
"checking setting DEF_PGPORT""...
$ac_c
"
1>&6
echo
"configure:4
248
: checking setting DEF_PGPORT"
>
&5
echo
"configure:4
300
: checking setting DEF_PGPORT"
>
&5
cat
>>
confdefs.h
<<
EOF
#define DEF_PGPORT "
${
DEF_PGPORT
}
"
EOF
echo
"
$ac_t
""
$DEF_PGPORT
"
1>&6
echo
$ac_n
"checking setting HBA""...
$ac_c
"
1>&6
echo
"configure:4
255
: checking setting HBA"
>
&5
echo
"configure:4
307
: checking setting HBA"
>
&5
if
test
"
$NOHBA
"
=
"no"
then
echo
"
$ac_t
""enabled"
1>&6
...
...
src/configure.in
View file @
43416529
...
...
@@ -461,8 +461,11 @@ AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(
isinf
tzset vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(tzset vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt)
AC_CHECK_FUNC(isinf,
AC_DEFINE(HAVE_ISINF),
ISINF='isinf.o')
AC_CHECK_FUNC(getrusage,
AC_DEFINE(HAVE_GETRUSAGE),
GETRUSAGE='getrusage.o')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment