Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d2ae69fe
Commit
d2ae69fe
authored
Sep 09, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed nextstep buglet; check for libreadline w/o libterm*
parent
2e6d584f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
14 deletions
+24
-14
configure.in
configure.in
+24
-14
No files found.
configure.in
View file @
d2ae69fe
...
...
@@ -99,7 +99,7 @@ then
esac
fi
if test
-z
"$ac_arch_flags"
if test "$ac_arch_flags"
then
OPT="$OPT $ac_arch_flags"
fi
...
...
@@ -242,20 +242,30 @@ AC_DEFINE(WITH_READLINE)
if test -d "$withval"
then LDFLAGS="$LDFLAGS -L$withval"
fi
termcap=
AC_CHECK_LIB(termcap, tgetent, [termcap=termcap], [
AC_CHECK_LIB(termlib, tgetent, [termcap=termlib], [
AC_ERROR(no working termcap/termlib -- do not use --with-readline)])])
AC_CHECK_LIB(readline, readline, [
# first check if we can compile without lib termcap
AC_MSG_CHECKING(for -lreadline without -ltermcap)
# check if a libreadline exists
LIBS="$LIBS -lreadline"
# Avoid possible conflict between shared libraries termcap and gl
# on IRIX 5: both contain a routine called clear.
if test -f /usr/lib/lib$termcap.a
then LIBS="$LIBS /usr/lib/lib$termcap.a"
else LIBS="$LIBS -l$termcap"
fi
], [AC_ERROR(no working GNU readline -- do not use --with-readline)],
-l$termcap)],
AC_TRY_LINK(extern char *readline();,char *line=readline();,[
AC_MSG_RESULT(yes)],[
AC_MSG_RESULT(no)
AC_CHECKING(for -lreadline that needs -ltermcap)
termcap=
AC_CHECK_LIB(termcap, tgetent, [termcap=termcap], [
AC_CHECK_LIB(termlib, tgetent, [termcap=termlib], [
AC_ERROR(no working -ltermcap/termlib found -- do not use --with-readline)])])
# Avoid possible conflict between shared libraries termcap and gl
# on IRIX 5: both contain a routine called clear.
if test -f /usr/lib/lib$termcap.a
then LIBS="$LIBS /usr/lib/lib$termcap.a"
else LIBS="$LIBS -l$termcap"
fi
AC_MSG_CHECKING(for -lreadline)
AC_TRY_LINK(extern char *readline();, char *line=readline();,[
AC_MSG_RESULT(yes)],[
AC_ERROR(no working GNU readline library found -- do not use --with-readline)])
])
],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-thread)
...
...
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