mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Make sure to only export if new --enable-termcap is set.
This commit is contained in:
parent
576e437290
commit
60245e5e51
2
configure
vendored
2
configure
vendored
@ -11269,6 +11269,7 @@ AM_CFLAGS="-std=gnu99 $inline_cflags -W -Wall -Wundef -Wunused -Wstrict-prototyp
|
|||||||
|
|
||||||
### The following magic for determining the location of termcap library is from GNU Texinfo
|
### The following magic for determining the location of termcap library is from GNU Texinfo
|
||||||
### http://www.tex.ac.uk/tex-archive/macros/texinfo/texinfo/configure.ac
|
### http://www.tex.ac.uk/tex-archive/macros/texinfo/texinfo/configure.ac
|
||||||
|
if test x$enable_termcap = "xyes"; then
|
||||||
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
|
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
|
||||||
# rather ncurses. So we check for it.
|
# rather ncurses. So we check for it.
|
||||||
TERMLIBS=
|
TERMLIBS=
|
||||||
@ -11387,6 +11388,7 @@ if test -n "$ac_cv_var_ospeed" \
|
|||||||
TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
|
TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
fi
|
||||||
|
|
||||||
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
|
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
|
||||||
# Must come after the termlib tests.
|
# Must come after the termlib tests.
|
||||||
|
@ -112,6 +112,7 @@ AC_SUBST(AM_CFLAGS)
|
|||||||
|
|
||||||
### The following magic for determining the location of termcap library is from GNU Texinfo
|
### The following magic for determining the location of termcap library is from GNU Texinfo
|
||||||
### http://www.tex.ac.uk/tex-archive/macros/texinfo/texinfo/configure.ac
|
### http://www.tex.ac.uk/tex-archive/macros/texinfo/texinfo/configure.ac
|
||||||
|
if test x$enable_termcap = "xyes"; then
|
||||||
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
|
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
|
||||||
# rather ncurses. So we check for it.
|
# rather ncurses. So we check for it.
|
||||||
TERMLIBS=
|
TERMLIBS=
|
||||||
@ -167,6 +168,7 @@ if test -n "$ac_cv_var_ospeed" \
|
|||||||
TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
|
TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(TERMLIBS)#
|
AC_SUBST(TERMLIBS)#
|
||||||
|
fi
|
||||||
|
|
||||||
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
|
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
|
||||||
# Must come after the termlib tests.
|
# Must come after the termlib tests.
|
||||||
|
Loading…
Reference in New Issue
Block a user