Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
5c1cfb5f
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5c1cfb5f
编写于
5月 19, 2004
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Configure adjustments for irix.
David Turover
上级
29fcd220
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
145 addition
and
129 deletion
+145
-129
config/programs.m4
config/programs.m4
+3
-3
configure
configure
+130
-122
configure.in
configure.in
+12
-4
未找到文件。
config/programs.m4
浏览文件 @
5c1cfb5f
# $PostgreSQL: pgsql/config/programs.m4,v 1.1
3 2003/11/29 19:51:17 pgsql
Exp $
# $PostgreSQL: pgsql/config/programs.m4,v 1.1
4 2004/05/19 22:12:30 momjian
Exp $
# PGAC_PATH_FLEX
...
...
@@ -87,9 +87,9 @@ for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
pgac_save_LIBS=$LIBS
LIBS="${pgac_rllib}${pgac_lib} $LIBS"
AC_TRY_LINK_FUNC([readline], [[
# NetBSD
and OpenBSD
have a broken linker that does not
# NetBSD
, OpenBSD, and Irix
have a broken linker that does not
# recognize dependent libraries
case $host_os in netbsd* | openbsd* )
case $host_os in netbsd* | openbsd*
| irix*
)
case $pgac_lib in
*curses*) ;;
*) pgac_lib=" -lcurses" ;;
...
...
configure
浏览文件 @
5c1cfb5f
...
...
@@ -4293,25 +4293,25 @@ _ACEOF
fi
fi
# Irix has nsl, socket, gen, and sun in its libc, but also
# keeps separate libs around for backwords compatibility.
# Using them creates warnings in config.log. This test quiets that.
# See also: http://freeware.sgi.com/howto.html
if test "$PORTNAME" != "irix"
then
echo "$as_me:$LINENO: checking for
setproctitle in -luti
l" >&5
echo $ECHO_N "checking for
setproctitle in -luti
l... $ECHO_C" >&6
if test "${ac_cv_lib_
util_setproctitle
+set}" = set; then
echo "$as_me:$LINENO: checking for
main in -lns
l" >&5
echo $ECHO_N "checking for
main in -lns
l... $ECHO_C" >&6
if test "${ac_cv_lib_
nsl_main
+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-l
uti
l $LIBS"
LIBS="-l
ns
l $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "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 setproctitle ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
...
...
@@ -4321,7 +4321,7 @@ char setproctitle ();
int
main ()
{
setproctitle
();
main
();
;
return 0;
}
...
...
@@ -4338,34 +4338,34 @@ 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_lib_
nsl_main
=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_
util_setproctitle
=no
ac_cv_lib_
nsl_main
=no
fi
rm -f 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
echo "$as_me:$LINENO: result: $ac_cv_lib_
nsl_main
" >&5
echo "${ECHO_T}$ac_cv_lib_
nsl_main
" >&6
if test $ac_cv_lib_
nsl_main
= yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIB
UTI
L 1
#define HAVE_LIB
NS
L 1
_ACEOF
LIBS="-l
uti
l $LIBS"
LIBS="-l
ns
l $LIBS"
fi
echo "$as_me:$LINENO: checking for main in -l
m
" >&5
echo $ECHO_N "checking for main in -l
m
... $ECHO_C" >&6
if test "${ac_cv_lib_
m
_main+set}" = set; then
echo "$as_me:$LINENO: checking for main in -l
socket
" >&5
echo $ECHO_N "checking for main in -l
socket
... $ECHO_C" >&6
if test "${ac_cv_lib_
socket
_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-l
m
$LIBS"
LIBS="-l
socket
$LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
...
...
@@ -4397,34 +4397,34 @@ 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_lib_
socket
_main=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_
m
_main=no
ac_cv_lib_
socket
_main=no
fi
rm -f 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
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_LIB
M
1
#define HAVE_LIB
SOCKET
1
_ACEOF
LIBS="-l
m
$LIBS"
LIBS="-l
socket
$LIBS"
fi
echo "$as_me:$LINENO: checking for main in -l
dl
" >&5
echo $ECHO_N "checking for main in -l
dl
... $ECHO_C" >&6
if test "${ac_cv_lib_
dl
_main+set}" = set; then
echo "$as_me:$LINENO: checking for main in -l
gen
" >&5
echo $ECHO_N "checking for main in -l
gen
... $ECHO_C" >&6
if test "${ac_cv_lib_
gen
_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-l
dl
$LIBS"
LIBS="-l
gen
$LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
...
...
@@ -4456,34 +4456,101 @@ 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_lib_
gen
_main=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_
dl
_main=no
ac_cv_lib_
gen
_main=no
fi
rm -f 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
echo "$as_me:$LINENO: result: $ac_cv_lib_
gen
_main" >&5
echo "${ECHO_T}$ac_cv_lib_
gen
_main" >&6
if test $ac_cv_lib_
gen
_main = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIB
DL
1
#define HAVE_LIB
GEN
1
_ACEOF
LIBS="-l
dl
$LIBS"
LIBS="-l
gen
$LIBS"
fi
fi
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_main+set}" = set; then
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 $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl $LIBS"
LIBS="-lutil $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "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 setproctitle ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
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>&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_lib_util_setproctitle=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_util_setproctitle=no
fi
rm -f 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
_ACEOF
LIBS="-lutil $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 $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
...
...
@@ -4515,34 +4582,34 @@ 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_
nsl
_main=yes
ac_cv_lib_
m
_main=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_
nsl
_main=no
ac_cv_lib_
m
_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_
nsl
_main" >&5
echo "${ECHO_T}$ac_cv_lib_
nsl
_main" >&6
if test $ac_cv_lib_
nsl
_main = yes; then
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_LIB
NSL
1
#define HAVE_LIB
M
1
_ACEOF
LIBS="-l
nsl
$LIBS"
LIBS="-l
m
$LIBS"
fi
echo "$as_me:$LINENO: checking for main in -l
socket
" >&5
echo $ECHO_N "checking for main in -l
socket
... $ECHO_C" >&6
if test "${ac_cv_lib_
socket
_main+set}" = set; then
echo "$as_me:$LINENO: checking for main in -l
dl
" >&5
echo $ECHO_N "checking for main in -l
dl
... $ECHO_C" >&6
if test "${ac_cv_lib_
dl
_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-l
socket
$LIBS"
LIBS="-l
dl
$LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
...
...
@@ -4574,23 +4641,23 @@ 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_lib_
dl
_main=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_
socket
_main=no
ac_cv_lib_
dl
_main=no
fi
rm -f 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
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_LIB
SOCKET
1
#define HAVE_LIB
DL
1
_ACEOF
LIBS="-l
socket
$LIBS"
LIBS="-l
dl
$LIBS"
fi
...
...
@@ -5008,65 +5075,6 @@ _ACEOF
fi
echo "$as_me:$LINENO: checking for main in -lgen" >&5
echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
if test "${ac_cv_lib_gen_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
main ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 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_lib_gen_main=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gen_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
if test $ac_cv_lib_gen_main = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF
LIBS="-lgen $LIBS"
fi
echo "$as_me:$LINENO: checking for main in -lPW" >&5
echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
if test "${ac_cv_lib_PW_main+set}" = set; then
...
...
configure.in
浏览文件 @
5c1cfb5f
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.35
2 2004/05/19 21:37:42
momjian Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.35
3 2004/05/19 22:12:30
momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -580,11 +580,20 @@ if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
then
AC_CHECK_LIB(bsd, main)
fi
# Irix has nsl, socket, gen, and sun in its libc, but also
# keeps separate libs around for backwords compatibility.
# Using them creates warnings in config.log. This test quiets that.
# See also: http://freeware.sgi.com/howto.html
if test "$PORTNAME" != "irix"
then
AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(socket, main)
AC_CHECK_LIB(gen, main)
fi
AC_CHECK_LIB(util, setproctitle)
AC_CHECK_LIB(m, main)
AC_CHECK_LIB(dl, main)
AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(socket, main)
AC_CHECK_LIB(ipc, main)
AC_CHECK_LIB(IPC, main)
AC_CHECK_LIB(lc, main)
...
...
@@ -592,7 +601,6 @@ AC_CHECK_LIB(dld, main)
AC_CHECK_LIB(ld, main)
AC_CHECK_LIB(compat, main)
AC_CHECK_LIB(BSD, main)
AC_CHECK_LIB(gen, main)
AC_CHECK_LIB(PW, main)
AC_CHECK_LIB(resolv, main)
AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录