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
9d90de5d
Commit
9d90de5d
authored
Aug 17, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes so that it actually checks for <readline/history.h>, instead
of assuming it does exist
parent
54102039
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
78 deletions
+122
-78
src/bin/psql/psql.c
src/bin/psql/psql.c
+3
-3
src/configure
src/configure
+115
-75
src/configure.in
src/configure.in
+1
-0
src/include/config.h.in
src/include/config.h.in
+3
-0
No files found.
src/bin/psql/psql.c
View file @
9d90de5d
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.8
1 1997/08/03 02:37:58 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.8
2 1997/08/17 00:48:45 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -37,12 +37,12 @@
#ifdef HAVE_LIBREADLINE
# ifdef HAVE_READLINE_H
# include <readline.h>
# if defined(HAVE_HISTORY)
|| defined(HAVE_LIBHISTORY)
# if defined(HAVE_HISTORY)
# include <history.h>
# endif
# else
# include <readline/readline.h>
# if defined(HAVE_
HISTORY) || defined(HAVE_LIBHISTORY
)
# if defined(HAVE_
READLINE_HISTORY_H
)
# include <readline/history.h>
# endif
# endif
...
...
src/configure
View file @
9d90de5d
...
...
@@ -643,7 +643,7 @@ EOT
TEMPLATE
=
generic
GUESS
=
`
grep
"
$host_os
"
template/.similar 2>/dev/null
`
if
test
!
"
$GUESS
"
then
host_os_no_ver
=
`
echo
"
$host_os
"
|
sed
's/[0-9.]
*$//'
`
then
host_os_no_ver
=
`
echo
"
$host_os
"
|
sed
's/0-9.
*$//'
`
GUESS
=
`
grep
"
$host_os_no_ver
"
template/.similar 2>/dev/null
`
fi
if
test
"
$GUESS
"
...
...
@@ -2773,14 +2773,54 @@ else
fi
done
for
ac_hdr
in
readline/history.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:2781: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2786 "configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:2791:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
eval
"ac_cv_header_
$ac_safe
=yes"
else
echo
"
$ac_err
"
>
&5
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_header_
$ac_safe
=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_tr_hdr
=
HAVE_
`
echo
$ac_hdr
|
sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'
`
cat
>>
confdefs.h
<<
EOF
#define
$ac_tr_hdr
1
EOF
else
echo
"
$ac_t
""no"
1>&6
fi
done
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:2
77
9: checking for working const"
>
&5
echo
"configure:2
81
9: checking for working const"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
78
4 "configure"
#line 2
82
4 "configure"
#include "confdefs.h"
int main() {
...
...
@@ -2829,7 +2869,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:28
3
3:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:28
7
3:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -2850,12 +2890,12 @@ EOF
fi
echo
$ac_n
"checking for uid_t in sys/types.h""...
$ac_c
"
1>&6
echo
"configure:28
5
4: checking for uid_t in sys/types.h"
>
&5
echo
"configure:28
9
4: checking for uid_t in sys/types.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_uid_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 28
5
9 "configure"
#line 28
9
9 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
...
...
@@ -2884,21 +2924,21 @@ EOF
fi
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
"configure:2
88
8: checking for inline"
>
&5
echo
"configure:2
92
8: checking for inline"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_inline
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_cv_c_inline
=
no
for
ac_kw
in
inline __inline__ __inline
;
do
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
89
5 "configure"
#line 2
93
5 "configure"
#include "confdefs.h"
int main() {
}
$ac_kw
foo() {
; return 0; }
EOF
if
{
(
eval echo
configure:29
0
2:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:29
4
2:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_inline
=
$ac_kw
;
break
else
...
...
@@ -2924,12 +2964,12 @@ EOF
esac
echo
$ac_n
"checking for mode_t""...
$ac_c
"
1>&6
echo
"configure:29
2
8: checking for mode_t"
>
&5
echo
"configure:29
6
8: checking for mode_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_mode_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 29
3
3 "configure"
#line 29
7
3 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -2957,12 +2997,12 @@ EOF
fi
echo
$ac_n
"checking for off_t""...
$ac_c
"
1>&6
echo
"configure:
296
1: checking for off_t"
>
&5
echo
"configure:
300
1: checking for off_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_off_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
296
6 "configure"
#line
300
6 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -2990,12 +3030,12 @@ EOF
fi
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:
299
4: checking for size_t"
>
&5
echo
"configure:
303
4: checking for size_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
299
9 "configure"
#line
303
9 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -3023,12 +3063,12 @@ EOF
fi
echo
$ac_n
"checking whether time.h and sys/time.h may both be included""...
$ac_c
"
1>&6
echo
"configure:30
2
7: checking whether time.h and sys/time.h may both be included"
>
&5
echo
"configure:30
6
7: checking whether time.h and sys/time.h may both be included"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_time
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 30
3
2 "configure"
#line 30
7
2 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
...
...
@@ -3037,7 +3077,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
if
{
(
eval echo
configure:30
4
1:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:30
8
1:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_header_time
=
yes
else
...
...
@@ -3058,12 +3098,12 @@ EOF
fi
echo
$ac_n
"checking whether struct tm is in sys/time.h or time.h""...
$ac_c
"
1>&6
echo
"configure:3
06
2: checking whether struct tm is in sys/time.h or time.h"
>
&5
echo
"configure:3
10
2: checking whether struct tm is in sys/time.h or time.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_struct_tm
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
06
7 "configure"
#line 3
10
7 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
...
...
@@ -3071,7 +3111,7 @@ int main() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
if
{
(
eval echo
configure:3
07
5:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
11
5:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_struct_tm
=
time.h
else
...
...
@@ -3093,16 +3133,16 @@ fi
echo
$ac_n
"checking for int timezone""...
$ac_c
"
1>&6
echo
"configure:3
09
7: checking for int timezone"
>
&5
echo
"configure:3
13
7: checking for int timezone"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
09
9 "configure"
#line 3
13
9 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
int res = timezone / 60;
; return 0; }
EOF
if
{
(
eval echo
configure:31
0
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:31
4
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_INT_TIMEZONE 1
...
...
@@ -3117,9 +3157,9 @@ fi
rm
-f
conftest
*
echo
$ac_n
"checking for union semun""...
$ac_c
"
1>&6
echo
"configure:31
2
1: checking for union semun"
>
&5
echo
"configure:31
6
1: checking for union semun"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 31
2
3 "configure"
#line 31
6
3 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/ipc.h>
...
...
@@ -3128,7 +3168,7 @@ int main() {
union semun semun;
; return 0; }
EOF
if
{
(
eval echo
configure:31
3
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:31
7
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_UNION_SEMUN 1
...
...
@@ -3144,13 +3184,13 @@ rm -f conftest*
if
test
$ac_cv_prog_gcc
=
yes
;
then
echo
$ac_n
"checking whether
${
CC
-cc
}
needs -traditional""...
$ac_c
"
1>&6
echo
"configure:31
4
8: checking whether
${
CC
-cc
}
needs -traditional"
>
&5
echo
"configure:31
8
8: checking whether
${
CC
-cc
}
needs -traditional"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_gcc_traditional
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_pattern
=
"Autoconf.*'x'"
cat
>
conftest.
$ac_ext
<<
EOF
#line 31
5
4 "configure"
#line 31
9
4 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
...
...
@@ -3168,7 +3208,7 @@ rm -f conftest*
if
test
$ac_cv_prog_gcc_traditional
=
no
;
then
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
17
2 "configure"
#line 3
21
2 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
...
...
@@ -3190,7 +3230,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
fi
echo
$ac_n
"checking for 8-bit clean memcmp""...
$ac_c
"
1>&6
echo
"configure:3
19
4: checking for 8-bit clean memcmp"
>
&5
echo
"configure:3
23
4: checking for 8-bit clean memcmp"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_memcmp_clean
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -3198,7 +3238,7 @@ else
ac_cv_func_memcmp_clean
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 32
0
2 "configure"
#line 32
4
2 "configure"
#include "confdefs.h"
main()
...
...
@@ -3208,7 +3248,7 @@ main()
}
EOF
if
{
(
eval echo
configure:32
1
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:32
5
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_func_memcmp_clean
=
yes
else
...
...
@@ -3226,12 +3266,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
test
$ac_cv_func_memcmp_clean
=
no
&&
LIBOBJS
=
"
$LIBOBJS
memcmp.o"
echo
$ac_n
"checking return type of signal handlers""...
$ac_c
"
1>&6
echo
"configure:32
3
0: checking return type of signal handlers"
>
&5
echo
"configure:32
7
0: checking return type of signal handlers"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_signal
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 32
3
5 "configure"
#line 32
7
5 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
...
...
@@ -3248,7 +3288,7 @@ int main() {
int i;
; return 0; }
EOF
if
{
(
eval echo
configure:32
5
2:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:32
9
2:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_type_signal
=
void
else
...
...
@@ -3267,12 +3307,12 @@ EOF
echo
$ac_n
"checking for vprintf""...
$ac_c
"
1>&6
echo
"configure:3
27
1: checking for vprintf"
>
&5
echo
"configure:3
31
1: checking for vprintf"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_vprintf
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
27
6 "configure"
#line 3
31
6 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vprintf(); below. */
...
...
@@ -3295,7 +3335,7 @@ vprintf();
; return 0; }
EOF
if
{
(
eval echo
configure:3
29
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
33
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_vprintf=yes"
else
...
...
@@ -3319,12 +3359,12 @@ fi
if
test
"
$ac_cv_func_vprintf
"
!=
yes
;
then
echo
$ac_n
"checking for _doprnt""...
$ac_c
"
1>&6
echo
"configure:33
2
3: checking for _doprnt"
>
&5
echo
"configure:33
6
3: checking for _doprnt"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func__doprnt
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 33
2
8 "configure"
#line 33
6
8 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _doprnt(); below. */
...
...
@@ -3347,7 +3387,7 @@ _doprnt();
; return 0; }
EOF
if
{
(
eval echo
configure:33
5
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:33
9
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func__doprnt=yes"
else
...
...
@@ -3374,12 +3414,12 @@ fi
for
ac_func
in
isinf tzset getrusage vfork memmove sigsetjmp
kill
sysconf
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3
37
8: checking for
$ac_func
"
>
&5
echo
"configure:3
41
8: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
38
3 "configure"
#line 3
42
3 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -3402,7 +3442,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:34
0
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:34
4
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -3429,12 +3469,12 @@ done
for
ac_func
in
sigprocmask waitpid setsid random fcvt
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:34
3
3: checking for
$ac_func
"
>
&5
echo
"configure:34
7
3: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 34
3
8 "configure"
#line 34
7
8 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -3457,7 +3497,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:3
46
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
50
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -3482,12 +3522,12 @@ fi
done
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
"configure:3
48
6: checking for inet_aton"
>
&5
echo
"configure:3
52
6: 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
49
1 "configure"
#line 3
53
1 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
...
...
@@ -3510,7 +3550,7 @@ inet_aton();
; return 0; }
EOF
if
{
(
eval echo
configure:35
1
4:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:35
5
4:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_aton=yes"
else
...
...
@@ -3534,12 +3574,12 @@ INET_ATON='inet_aton.o'
fi
echo
$ac_n
"checking for strerror""...
$ac_c
"
1>&6
echo
"configure:35
3
8: checking for strerror"
>
&5
echo
"configure:35
7
8: 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 35
4
3 "configure"
#line 35
8
3 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
...
...
@@ -3562,7 +3602,7 @@ strerror();
; return 0; }
EOF
if
{
(
eval echo
configure:3
56
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
60
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strerror=yes"
else
...
...
@@ -3586,12 +3626,12 @@ STRERROR='strerror.o'
fi
echo
$ac_n
"checking for strerror""...
$ac_c
"
1>&6
echo
"configure:3
59
0: checking for strerror"
>
&5
echo
"configure:3
63
0: 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 3
59
5 "configure"
#line 3
63
5 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
...
...
@@ -3614,7 +3654,7 @@ strerror();
; return 0; }
EOF
if
{
(
eval echo
configure:36
1
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:36
5
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strerror=yes"
else
...
...
@@ -3638,12 +3678,12 @@ STRERROR2='../../backend/port/strerror.o'
fi
echo
$ac_n
"checking for strdup""...
$ac_c
"
1>&6
echo
"configure:36
4
2: checking for strdup"
>
&5
echo
"configure:36
8
2: 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 36
4
7 "configure"
#line 36
8
7 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strdup(); below. */
...
...
@@ -3666,7 +3706,7 @@ strdup();
; return 0; }
EOF
if
{
(
eval echo
configure:3
67
0:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
71
0:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strdup=yes"
else
...
...
@@ -3694,12 +3734,12 @@ fi
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
"configure:3
69
8: checking for cbrt"
>
&5
echo
"configure:3
73
8: 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 37
0
3 "configure"
#line 37
4
3 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char cbrt(); below. */
...
...
@@ -3722,7 +3762,7 @@ cbrt();
; return 0; }
EOF
if
{
(
eval echo
configure:37
2
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:37
6
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_cbrt=yes"
else
...
...
@@ -3743,7 +3783,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
"configure:37
4
7: checking for cbrt in -lm"
>
&5
echo
"configure:37
8
7: 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
...
...
@@ -3751,7 +3791,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 37
5
5 "configure"
#line 37
9
5 "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
...
...
@@ -3762,7 +3802,7 @@ int main() {
cbrt()
; return 0; }
EOF
if
{
(
eval echo
configure:3
76
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
80
6:
\"
$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
...
...
@@ -3788,12 +3828,12 @@ fi
fi
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
"configure:3
79
2: checking for rint"
>
&5
echo
"configure:3
83
2: 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 3
79
7 "configure"
#line 3
83
7 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
...
...
@@ -3816,7 +3856,7 @@ rint();
; return 0; }
EOF
if
{
(
eval echo
configure:38
2
0:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:38
6
0:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_rint=yes"
else
...
...
@@ -3837,7 +3877,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
"configure:38
4
1: checking for rint in -lm"
>
&5
echo
"configure:38
8
1: 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
...
...
@@ -3845,7 +3885,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 38
4
9 "configure"
#line 38
8
9 "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
...
...
@@ -3856,7 +3896,7 @@ int main() {
rint()
; return 0; }
EOF
if
{
(
eval echo
configure:3
86
0:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
90
0:
\"
$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
...
...
@@ -3883,7 +3923,7 @@ fi
echo
$ac_n
"checking setting USE_LOCALE""...
$ac_c
"
1>&6
echo
"configure:3
88
7: checking setting USE_LOCALE"
>
&5
echo
"configure:3
92
7: checking setting USE_LOCALE"
>
&5
if
test
"
$USE_LOCALE
"
=
"yes"
then
echo
"
$ac_t
""enabled"
1>&6
...
...
@@ -3895,14 +3935,14 @@ else
echo
"
$ac_t
""disabled"
1>&6
fi
echo
$ac_n
"checking setting DEF_PGPORT""...
$ac_c
"
1>&6
echo
"configure:3
89
9: checking setting DEF_PGPORT"
>
&5
echo
"configure:3
93
9: 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:39
0
6: checking setting HBA"
>
&5
echo
"configure:39
4
6: checking setting HBA"
>
&5
if
test
"
$NOHBA
"
=
"no"
then
echo
"
$ac_t
""enabled"
1>&6
...
...
src/configure.in
View file @
9d90de5d
...
...
@@ -383,6 +383,7 @@ AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
AC_CHECK_HEADERS(sys/resource.h netdb.h)
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
AC_CHECK_HEADERS(readline/history.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
...
...
src/include/config.h.in
View file @
9d90de5d
...
...
@@ -44,6 +44,9 @@
/* Set to 1 if you have <history.h> */
#undef HAVE_HISTORY
/* Set to 1 if you have <readline/history.h> */
#undef HAVE_READLINE_HISTORY_H
/* Set to 1 if you have <dld.h> */
#undef HAVE_DLD_H
...
...
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