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
d7046ada
Commit
d7046ada
authored
Dec 19, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update configure so that it auto-detects and configures for missing
functions...
parent
2b4db36c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
318 additions
and
33 deletions
+318
-33
src/configure
src/configure
+286
-26
src/configure.in
src/configure.in
+32
-7
No files found.
src/configure
View file @
d7046ada
...
@@ -3448,7 +3448,7 @@ fi
...
@@ -3448,7 +3448,7 @@ fi
fi
fi
for
ac_func
in
isinf tzset
getrusage
vfork memmove sigsetjmp
kill
sysconf
for
ac_func
in
isinf tzset vfork memmove sigsetjmp
kill
sysconf
do
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3455: checking for
$ac_func
"
>
&5
echo
"configure:3455: checking for
$ac_func
"
>
&5
...
@@ -3503,7 +3503,7 @@ else
...
@@ -3503,7 +3503,7 @@ else
fi
fi
done
done
for
ac_func
in
sigprocmask waitpid setsid
random srandom fcvt gethostname
for
ac_func
in
sigprocmask waitpid setsid
fcvt
do
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3510: checking for
$ac_func
"
>
&5
echo
"configure:3510: checking for
$ac_func
"
>
&5
...
@@ -3558,13 +3558,221 @@ else
...
@@ -3558,13 +3558,221 @@ else
fi
fi
done
done
echo
$ac_n
"checking for getrusage""...
$ac_c
"
1>&6
echo
"configure:3563: 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 3568 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getrusage(); 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 getrusage();
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_getrusage) || defined (__stub___getrusage)
choke me
#else
getrusage();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:3591:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_getrusage=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_getrusage=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
getrusage
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_GETRUSAGE 1
EOF
else
echo
"
$ac_t
""no"
1>&6
GETRUSAGE
=
'getrusage.o'
fi
echo
$ac_n
"checking for srandom""...
$ac_c
"
1>&6
echo
"configure:3615: 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 3620 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char srandom(); 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 srandom();
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_srandom) || defined (__stub___srandom)
choke me
#else
srandom();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:3643:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_srandom=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_srandom=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
srandom
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_SRANDOM 1
EOF
else
echo
"
$ac_t
""no"
1>&6
SRANDOM
=
'srandom.o'
fi
echo
$ac_n
"checking for gethostname""...
$ac_c
"
1>&6
echo
"configure:3667: 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 3672 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostname(); 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 gethostname();
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_gethostname) || defined (__stub___gethostname)
choke me
#else
gethostname();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:3695:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_gethostname=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_gethostname=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
gethostname
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_GETHOSTNAME 1
EOF
else
echo
"
$ac_t
""no"
1>&6
GETHOSTNAME
=
'gethostname.o'
fi
echo
$ac_n
"checking for random""...
$ac_c
"
1>&6
echo
"configure:3719: 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 3724 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char random(); 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 random();
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_random) || defined (__stub___random)
choke me
#else
random();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:3747:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_random=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_random=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
random
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_RANDOM 1
EOF
else
echo
"
$ac_t
""no"
1>&6
RANDOM
=
'random.o'
fi
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
"configure:3
563
: checking for inet_aton"
>
&5
echo
"configure:3
771
: checking for inet_aton"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_aton
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_aton
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
568
"configure"
#line 3
776
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
which can conflict with char inet_aton(); below. */
...
@@ -3587,7 +3795,7 @@ inet_aton();
...
@@ -3587,7 +3795,7 @@ inet_aton();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
591
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
799
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_inet_aton=yes"
eval
"ac_cv_func_inet_aton=yes"
else
else
...
@@ -3611,12 +3819,12 @@ INET_ATON='inet_aton.o'
...
@@ -3611,12 +3819,12 @@ INET_ATON='inet_aton.o'
fi
fi
echo
$ac_n
"checking for strerror""...
$ac_c
"
1>&6
echo
$ac_n
"checking for strerror""...
$ac_c
"
1>&6
echo
"configure:3
615
: checking for strerror"
>
&5
echo
"configure:3
823
: checking for strerror"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strerror
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strerror
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
620
"configure"
#line 3
828
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
which can conflict with char strerror(); below. */
...
@@ -3639,7 +3847,7 @@ strerror();
...
@@ -3639,7 +3847,7 @@ strerror();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
643
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
851
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_strerror=yes"
eval
"ac_cv_func_strerror=yes"
else
else
...
@@ -3663,12 +3871,12 @@ STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
...
@@ -3663,12 +3871,12 @@ STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
fi
fi
echo
$ac_n
"checking for strdup""...
$ac_c
"
1>&6
echo
$ac_n
"checking for strdup""...
$ac_c
"
1>&6
echo
"configure:3
667
: checking for strdup"
>
&5
echo
"configure:3
875
: checking for strdup"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strdup
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strdup
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
672
"configure"
#line 3
880
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strdup(); below. */
which can conflict with char strdup(); below. */
...
@@ -3691,7 +3899,7 @@ strdup();
...
@@ -3691,7 +3899,7 @@ strdup();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
695
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
903
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_strdup=yes"
eval
"ac_cv_func_strdup=yes"
else
else
...
@@ -3714,17 +3922,69 @@ else
...
@@ -3714,17 +3922,69 @@ else
STRDUP
=
'../../utils/strdup.o'
STRDUP
=
'../../utils/strdup.o'
fi
fi
echo
$ac_n
"checking for strcasecmp""...
$ac_c
"
1>&6
echo
"configure:3927: 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 3932 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strcasecmp(); 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 strcasecmp();
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_strcasecmp) || defined (__stub___strcasecmp)
choke me
#else
strcasecmp();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:3955:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strcasecmp=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_strcasecmp=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
strcasecmp
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_STRCASECMP 1
EOF
else
echo
"
$ac_t
""no"
1>&6
STRCASECMP
=
'strcasecmp.o'
fi
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
"configure:3
72
3: checking for cbrt"
>
&5
echo
"configure:3
98
3: checking for cbrt"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_cbrt
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_cbrt
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
72
8 "configure"
#line 3
98
8 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char cbrt(); below. */
which can conflict with char cbrt(); below. */
...
@@ -3747,7 +4007,7 @@ cbrt();
...
@@ -3747,7 +4007,7 @@ cbrt();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:
375
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:
401
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_cbrt=yes"
eval
"ac_cv_func_cbrt=yes"
else
else
...
@@ -3768,7 +4028,7 @@ EOF
...
@@ -3768,7 +4028,7 @@ EOF
else
else
echo
"
$ac_t
""no"
1>&6
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
"configure:
377
2: checking for cbrt in -lm"
>
&5
echo
"configure:
403
2: checking for cbrt in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
cbrt |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
m
'_'
cbrt |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3776,7 +4036,7 @@ else
...
@@ -3776,7 +4036,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line
378
0 "configure"
#line
404
0 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3787,7 +4047,7 @@ int main() {
...
@@ -3787,7 +4047,7 @@ int main() {
cbrt()
cbrt()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:
379
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:
405
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3813,12 +4073,12 @@ fi
...
@@ -3813,12 +4073,12 @@ fi
fi
fi
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
"configure:
381
7: checking for rint"
>
&5
echo
"configure:
407
7: checking for rint"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_rint
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_rint
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line
382
2 "configure"
#line
408
2 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
which can conflict with char rint(); below. */
...
@@ -3841,7 +4101,7 @@ rint();
...
@@ -3841,7 +4101,7 @@ rint();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:
384
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:
410
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_rint=yes"
eval
"ac_cv_func_rint=yes"
else
else
...
@@ -3862,7 +4122,7 @@ EOF
...
@@ -3862,7 +4122,7 @@ EOF
else
else
echo
"
$ac_t
""no"
1>&6
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
"configure:
386
6: checking for rint in -lm"
>
&5
echo
"configure:
412
6: checking for rint in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
rint |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
m
'_'
rint |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3870,7 +4130,7 @@ else
...
@@ -3870,7 +4130,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line
387
4 "configure"
#line
413
4 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3881,7 +4141,7 @@ int main() {
...
@@ -3881,7 +4141,7 @@ int main() {
rint()
rint()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:
388
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:
414
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3908,7 +4168,7 @@ fi
...
@@ -3908,7 +4168,7 @@ fi
echo
$ac_n
"checking setting USE_LOCALE""...
$ac_c
"
1>&6
echo
$ac_n
"checking setting USE_LOCALE""...
$ac_c
"
1>&6
echo
"configure:
391
2: checking setting USE_LOCALE"
>
&5
echo
"configure:
417
2: checking setting USE_LOCALE"
>
&5
if
test
"
$USE_LOCALE
"
=
"yes"
if
test
"
$USE_LOCALE
"
=
"yes"
then
then
echo
"
$ac_t
""enabled"
1>&6
echo
"
$ac_t
""enabled"
1>&6
...
@@ -3920,14 +4180,14 @@ else
...
@@ -3920,14 +4180,14 @@ else
echo
"
$ac_t
""disabled"
1>&6
echo
"
$ac_t
""disabled"
1>&6
fi
fi
echo
$ac_n
"checking setting DEF_PGPORT""...
$ac_c
"
1>&6
echo
$ac_n
"checking setting DEF_PGPORT""...
$ac_c
"
1>&6
echo
"configure:
392
4: checking setting DEF_PGPORT"
>
&5
echo
"configure:
418
4: checking setting DEF_PGPORT"
>
&5
cat
>>
confdefs.h
<<
EOF
cat
>>
confdefs.h
<<
EOF
#define DEF_PGPORT "
${
DEF_PGPORT
}
"
#define DEF_PGPORT "
${
DEF_PGPORT
}
"
EOF
EOF
echo
"
$ac_t
""
$DEF_PGPORT
"
1>&6
echo
"
$ac_t
""
$DEF_PGPORT
"
1>&6
echo
$ac_n
"checking setting HBA""...
$ac_c
"
1>&6
echo
$ac_n
"checking setting HBA""...
$ac_c
"
1>&6
echo
"configure:
393
1: checking setting HBA"
>
&5
echo
"configure:
419
1: checking setting HBA"
>
&5
if
test
"
$NOHBA
"
=
"no"
if
test
"
$NOHBA
"
=
"no"
then
then
echo
"
$ac_t
""enabled"
1>&6
echo
"
$ac_t
""enabled"
1>&6
...
...
src/configure.in
View file @
d7046ada
...
@@ -454,17 +454,42 @@ AC_PROG_GCC_TRADITIONAL
...
@@ -454,17 +454,42 @@ AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(isinf tzset vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(sigprocmask waitpid setsid random srandom fcvt gethostname)
AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt)
AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON), INET_ATON='inet_aton.o')
AC_CHECK_FUNC(getrusage,
AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), [STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'])
AC_DEFINE(HAVE_GETRUSAGE),
AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o')
GETRUSAGE='getrusage.o')
AC_CHECK_FUNC(srandom,
AC_DEFINE(HAVE_SRANDOM),
SRANDOM='srandom.o')
AC_CHECK_FUNC(gethostname,
AC_DEFINE(HAVE_GETHOSTNAME),
GETHOSTNAME='gethostname.o')
AC_CHECK_FUNC(random,
AC_DEFINE(HAVE_RANDOM),
RANDOM='random.o')
AC_CHECK_FUNC(inet_aton,
AC_DEFINE(HAVE_INET_ATON),
INET_ATON='inet_aton.o')
AC_CHECK_FUNC(strerror,
AC_DEFINE(HAVE_STRERROR),
[STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'])
AC_CHECK_FUNC(strdup,
AC_DEFINE(HAVE_STRDUP),
STRDUP='../../utils/strdup.o')
AC_CHECK_FUNC(strcasecmp,
AC_DEFINE(HAVE_STRCASECMP),
STRCASECMP='strcasecmp.o')
AC_SUBST(STRDUP)
AC_SUBST(STRDUP)
AC_SUBST(INET_ATON)
AC_SUBST(INET_ATON)
AC_SUBST(STRERROR)
AC_SUBST(STRERROR)
AC_SUBST(STRERROR2)
AC_SUBST(STRERROR2)
AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
AC_CHECK_FUNC(cbrt,
AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))
AC_DEFINE(HAVE_CBRT),
AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
AC_CHECK_FUNC(rint,
AC_DEFINE(HAVE_RINT),
AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))
AC_MSG_CHECKING(setting USE_LOCALE)
AC_MSG_CHECKING(setting USE_LOCALE)
if test "$USE_LOCALE" = "yes"
if test "$USE_LOCALE" = "yes"
...
...
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