Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
b64159af
Commit
b64159af
authored
Feb 27, 2014
by
Dmitrij D. Czarkoff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When using libedit also search for curses
parent
1ab7185f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
1 deletion
+58
-1
README.md
README.md
+1
-1
configure
configure
+56
-0
configure.ac
configure.ac
+1
-0
No files found.
README.md
View file @
b64159af
...
...
@@ -78,7 +78,7 @@ Install these packages (or *ports*):
Then build:
$ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
LIBS="-lcurses"
./configure
$ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure
$ make
#### Other UNIX
...
...
configure
View file @
b64159af
...
...
@@ -3467,6 +3467,62 @@ $as_echo "#define READLINE_GNU 1" >>confdefs.h
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for library containing tgetnum"
>
&5
$as_echo_n
"checking for library containing tgetnum... "
>
&6
;
}
if
${
ac_cv_search_tgetnum
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_func_search_save_LIBS
=
$LIBS
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char tgetnum ();
int
main ()
{
return tgetnum ();
;
return 0;
}
_ACEOF
for
ac_lib
in
''
ncursesw ncurses curses
;
do
if
test
-z
"
$ac_lib
"
;
then
ac_res
=
"none required"
else
ac_res
=
-l
$ac_lib
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
fi
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_search_tgetnum
=
$ac_res
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
if
${
ac_cv_search_tgetnum
+
:
}
false
;
then
:
break
fi
done
if
${
ac_cv_search_tgetnum
+
:
}
false
;
then
:
else
ac_cv_search_tgetnum
=
no
fi
rm
conftest.
$ac_ext
LIBS
=
$ac_func_search_save_LIBS
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_search_tgetnum
"
>
&5
$as_echo
"
$ac_cv_search_tgetnum
"
>
&6
;
}
ac_res
=
$ac_cv_search_tgetnum
if
test
"
$ac_res
"
!=
no
;
then
:
test
"
$ac_res
"
=
"none required"
||
LIBS
=
"
$ac_res
$LIBS
"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for rl_set_prompt in -ledit"
>
&5
$as_echo_n
"checking for rl_set_prompt in -ledit... "
>
&6
;
}
if
${
ac_cv_lib_edit_rl_set_prompt
+
:
}
false
;
then
:
...
...
configure.ac
View file @
b64159af
...
...
@@ -22,6 +22,7 @@ AC_CHECK_LIB([readline], [rl_save_prompt],
[ EXTRA_LIBS="${EXTRA_LIBS} -lreadline" ; ]
],
[
AC_SEARCH_LIBS([tgetnum], [ncursesw ncurses curses])
AC_CHECK_LIB([edit], [rl_set_prompt])
AC_DEFINE([READLINE_EDIT], [1], [Use libedit])
[ EXTRA_LIBS="${EXTRA_LIBS} -ledit" ; ]
...
...
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