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
0e04982e
Commit
0e04982e
authored
Feb 04, 2006
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First attempt at removing some AC_CHECK_LIB(foo, main) calls.
parent
8b109ebf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
405 additions
and
146 deletions
+405
-146
configure
configure
+397
-133
configure.in
configure.in
+8
-13
No files found.
configure
View file @
0e04982e
...
...
@@ -4818,14 +4818,13 @@ _ACEOF
fi
fi
echo
"
$as_me
:
$LINENO
: checking for setproctitle in -lutil"
>
&5
echo
$ECHO_N
"checking for setproctitle in -lutil...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_lib_util_setproctitle
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for library containing setproctitle"
>
&5
echo
$ECHO_N
"checking for library containing setproctitle...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_search_setproctitle
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_
check_lib
_save_LIBS
=
$LIBS
LIBS
=
"-lutil
$LIBS
"
ac_
func_search
_save_LIBS
=
$LIBS
ac_cv_search_setproctitle
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
...
...
@@ -4870,36 +4869,88 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_
lib_util_setproctitle
=
yes
ac_cv_
search_setproctitle
=
"none required"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_util_setproctitle
=
no
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_util_setproctitle
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_util_setproctitle
"
>
&6
if
test
$ac_cv_lib_util_setproctitle
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBUTIL 1
if
test
"
$ac_cv_search_setproctitle
"
=
no
;
then
for
ac_lib
in
util
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
LIBS
=
"-lutil
$LIBS
"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char setproctitle ();
int
main ()
{
setproctitle ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_search_setproctitle
=
"-l
$ac_lib
"
break
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
done
fi
LIBS
=
$ac_func_search_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_search_setproctitle
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_search_setproctitle
"
>
&6
if
test
"
$ac_cv_search_setproctitle
"
!=
no
;
then
test
"
$ac_cv_search_setproctitle
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_setproctitle
$LIBS
"
fi
echo
"
$as_me
:
$LINENO
: checking for
main in -lm
"
>
&5
echo
$ECHO_N
"checking for
main in -lm
...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_
lib_m_main
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for
library containing pow
"
>
&5
echo
$ECHO_N
"checking for
library containing pow
...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_
search_pow
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_
check_lib
_save_LIBS
=
$LIBS
LIBS
=
"-lm
$LIBS
"
ac_
func_search
_save_LIBS
=
$LIBS
ac_cv_search_pow
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
...
...
@@ -4907,11 +4958,17 @@ cat confdefs.h >>conftest.$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pow ();
int
main ()
{
main
();
pow
();
;
return 0;
}
...
...
@@ -4938,36 +4995,88 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_
lib_m_main
=
yes
ac_cv_
search_pow
=
"none required"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_m_main
=
no
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_m_main
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_m_main
"
>
&6
if
test
$ac_cv_lib_m_main
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBM 1
if
test
"
$ac_cv_search_pow
"
=
no
;
then
for
ac_lib
in
m
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
LIBS
=
"-lm
$LIBS
"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pow ();
int
main ()
{
pow ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_search_pow
=
"-l
$ac_lib
"
break
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
done
fi
LIBS
=
$ac_func_search_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_search_pow
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_search_pow
"
>
&6
if
test
"
$ac_cv_search_pow
"
!=
no
;
then
test
"
$ac_cv_search_pow
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_pow
$LIBS
"
fi
echo
"
$as_me
:
$LINENO
: checking for
main in -ldl
"
>
&5
echo
$ECHO_N
"checking for
main in -ldl
...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_
lib_dl_mai
n
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for
library containing dlopen
"
>
&5
echo
$ECHO_N
"checking for
library containing dlopen
...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_
search_dlope
n
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_
check_lib
_save_LIBS
=
$LIBS
LIBS
=
"-ldl
$LIBS
"
ac_
func_search
_save_LIBS
=
$LIBS
ac_cv_search_dlopen
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
...
...
@@ -4975,11 +5084,17 @@ cat confdefs.h >>conftest.$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dlopen ();
int
main ()
{
mai
n ();
dlope
n ();
;
return 0;
}
...
...
@@ -5006,25 +5121,78 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_
lib_dl_main
=
yes
ac_cv_
search_dlopen
=
"none required"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_dl_main
=
no
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_dl_main
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_dl_main
"
>
&6
if
test
$ac_cv_lib_dl_main
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBDL 1
if
test
"
$ac_cv_search_dlopen
"
=
no
;
then
for
ac_lib
in
dl
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
LIBS
=
"-ldl
$LIBS
"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dlopen ();
int
main ()
{
dlopen ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_search_dlopen
=
"-l
$ac_lib
"
break
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
done
fi
LIBS
=
$ac_func_search_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_search_dlopen
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_search_dlopen
"
>
&6
if
test
"
$ac_cv_search_dlopen
"
!=
no
;
then
test
"
$ac_cv_search_dlopen
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_dlopen
$LIBS
"
fi
...
...
@@ -5096,14 +5264,13 @@ _ACEOF
fi
echo
"
$as_me
:
$LINENO
: checking for main in -lsocket"
>
&5
echo
$ECHO_N
"checking for main in -lsocket...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_lib_socket_main
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for library containing socket"
>
&5
echo
$ECHO_N
"checking for library containing socket...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_search_socket
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_
check_lib
_save_LIBS
=
$LIBS
LIBS
=
"-lsocket
$LIBS
"
ac_
func_search
_save_LIBS
=
$LIBS
ac_cv_search_socket
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
...
...
@@ -5111,11 +5278,17 @@ cat confdefs.h >>conftest.$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket ();
int
main ()
{
main
();
socket
();
;
return 0;
}
...
...
@@ -5142,25 +5315,78 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_
lib_socket_main
=
yes
ac_cv_
search_socket
=
"none required"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_socket_main
=
no
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_socket_main
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_socket_main
"
>
&6
if
test
$ac_cv_lib_socket_main
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBSOCKET 1
if
test
"
$ac_cv_search_socket
"
=
no
;
then
for
ac_lib
in
socket wsock32
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
LIBS
=
"-lsocket
$LIBS
"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket ();
int
main ()
{
socket ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_search_socket
=
"-l
$ac_lib
"
break
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
done
fi
LIBS
=
$ac_func_search_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_search_socket
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_search_socket
"
>
&6
if
test
"
$ac_cv_search_socket
"
!=
no
;
then
test
"
$ac_cv_search_socket
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_socket
$LIBS
"
fi
...
...
@@ -5368,14 +5594,13 @@ _ACEOF
fi
echo
"
$as_me
:
$LINENO
: checking for main in -ldld"
>
&5
echo
$ECHO_N
"checking for main in -ldld...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_lib_dld_main
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for library containing shl_load"
>
&5
echo
$ECHO_N
"checking for library containing shl_load...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_search_shl_load
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_
check_lib
_save_LIBS
=
$LIBS
LIBS
=
"-ldld
$LIBS
"
ac_
func_search
_save_LIBS
=
$LIBS
ac_cv_search_shl_load
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
...
...
@@ -5383,11 +5608,17 @@ cat confdefs.h >>conftest.$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char shl_load ();
int
main ()
{
main
();
shl_load
();
;
return 0;
}
...
...
@@ -5414,25 +5645,78 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_
lib_dld_main
=
yes
ac_cv_
search_shl_load
=
"none required"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_dld_main
=
no
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_dld_main
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_dld_main
"
>
&6
if
test
$ac_cv_lib_dld_main
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBDLD 1
if
test
"
$ac_cv_search_shl_load
"
=
no
;
then
for
ac_lib
in
dld
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char shl_load ();
int
main ()
{
shl_load ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_search_shl_load
=
"-l
$ac_lib
"
break
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
LIBS
=
"-ldld
$LIBS
"
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
done
fi
LIBS
=
$ac_func_search_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_search_shl_load
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_search_shl_load
"
>
&6
if
test
"
$ac_cv_search_shl_load
"
!=
no
;
then
test
"
$ac_cv_search_shl_load
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_shl_load
$LIBS
"
fi
...
...
@@ -6293,14 +6577,13 @@ if test "$ac_cv_search_fdatasync" != no; then
fi
# Cygwin:
echo
"
$as_me
:
$LINENO
: checking for shmget in -lcygipc"
>
&5
echo
$ECHO_N
"checking for shmget in -lcygipc...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_lib_cygipc_shmget
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for library containing shmget"
>
&5
echo
$ECHO_N
"checking for library containing shmget...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_search_shmget
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_
check_lib
_save_LIBS
=
$LIBS
LIBS
=
"-lcygipc
$LIBS
"
ac_
func_search
_save_LIBS
=
$LIBS
ac_cv_search_shmget
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
...
...
@@ -6345,51 +6628,35 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_
lib_cygipc_shmget
=
yes
ac_cv_
search_shmget
=
"none required"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_cygipc_shmget
=
no
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_cygipc_shmget
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_cygipc_shmget
"
>
&6
if
test
$ac_cv_lib_cygipc_shmget
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBCYGIPC 1
_ACEOF
LIBS
=
"-lcygipc
$LIBS
"
fi
# WIN32:
if
test
"
$PORTNAME
"
=
"win32"
then
echo
"
$as_me
:
$LINENO
: checking for main in -lwsock32"
>
&5
echo
$ECHO_N
"checking for main in -lwsock32...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_lib_wsock32_main
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_check_lib_save_LIBS
=
$LIBS
LIBS
=
"-lwsock32
$LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
if
test
"
$ac_cv_search_shmget
"
=
no
;
then
for
ac_lib
in
cygipc
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char shmget ();
int
main ()
{
main
();
shmget
();
;
return 0;
}
...
...
@@ -6416,30 +6683,27 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_lib_wsock32_main
=
yes
ac_cv_search_shmget
=
"-l
$ac_lib
"
break
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_wsock32_main
=
no
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
done
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_wsock32_main
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_wsock32_main
"
>
&6
if
test
$ac_cv_lib_wsock32_main
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBWSOCK32 1
_ACEOF
LIBS
=
"-lwsock32
$LIBS
"
LIBS
=
$ac_func_search_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_search_shmget
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_search_shmget
"
>
&6
if
test
"
$ac_cv_search_shmget
"
!=
no
;
then
test
"
$ac_cv_search_shmget
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_shmget
$LIBS
"
fi
if
test
"
$with_readline
"
=
yes
;
then
...
...
configure.in
View file @
0e04982e
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.44
4 2006/02/03 13:53:15 momjian
Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.44
5 2006/02/04 00:42:54 petere
Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -594,15 +594,15 @@ if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
then
AC_CHECK_LIB(bsd, main)
fi
AC_
CHECK_LIB(util, setproctitle
)
AC_
CHECK_LIB(m, main
)
AC_
CHECK_LIB(dl, main
)
AC_
SEARCH_LIBS(setproctitle, util
)
AC_
SEARCH_LIBS(pow, m
)
AC_
SEARCH_LIBS(dlopen, dl
)
AC_CHECK_LIB(nsl, main)
AC_
CHECK_LIB(socket, main
)
AC_
SEARCH_LIBS(socket, [socket wsock32]
)
AC_CHECK_LIB(ipc, main)
AC_CHECK_LIB(IPC, main)
AC_CHECK_LIB(lc, main)
AC_
CHECK_LIB(dld, main
)
AC_
SEARCH_LIBS(shl_load, dld
)
AC_CHECK_LIB(ld, main)
AC_CHECK_LIB(compat, main)
AC_CHECK_LIB(BSD, main)
...
...
@@ -612,16 +612,11 @@ AC_CHECK_LIB(resolv, main)
AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
# QNX:
AC_CHECK_LIB(unix, main)
AC_SEARCH_LIBS(crypt,
crypt)
AC_SEARCH_LIBS(crypt, crypt)
# Solaris:
AC_SEARCH_LIBS(fdatasync, [rt posix4])
# Cygwin:
AC_CHECK_LIB(cygipc, shmget)
# WIN32:
if test "$PORTNAME" = "win32"
then
AC_CHECK_LIB(wsock32, main)
fi
AC_SEARCH_LIBS(shmget, cygipc)
if test "$with_readline" = yes; then
PGAC_CHECK_READLINE
...
...
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