mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 06:33:02 +01:00
Fix configure for Free BSD
* seems that /usr/local is not in the default ld path on FreeBSD, so add it manually * search for wget_wch instead of get_wch, on FreeBSD get_wch seems to be available as a macro, which does not automatically mean that wide char support is really available
This commit is contained in:
parent
1bcd2e863a
commit
c7dcf04248
14
configure.ac
14
configure.ac
@ -82,9 +82,13 @@ case $host_os in
|
|||||||
*mingw*)
|
*mingw*)
|
||||||
WIN32="yes"
|
WIN32="yes"
|
||||||
;;
|
;;
|
||||||
|
*freebsd*)
|
||||||
|
LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
||||||
|
CFLAGS="$CFLAGS -I/usr/local/include"
|
||||||
|
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
@ -235,13 +239,13 @@ if test "x$NCURSES_FOUND" = "xno"; then
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
AC_CHECK_LIB([ncursesw], [get_wch],
|
AC_CHECK_LIB([ncursesw], [wget_wch],
|
||||||
[
|
[
|
||||||
NCURSES_WIDECHAR_SUPPORT="yes"
|
NCURSES_WIDECHAR_SUPPORT="yes"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
unset ac_cv_lib_ncursesw_get_wch
|
unset ac_cv_lib_ncursesw_wget_wch
|
||||||
AC_CHECK_LIB([ncursesw], [get_wch],
|
AC_CHECK_LIB([ncursesw], [wget_wch],
|
||||||
[
|
[
|
||||||
NCURSES_WIDECHAR_SUPPORT="yes"
|
NCURSES_WIDECHAR_SUPPORT="yes"
|
||||||
],
|
],
|
||||||
@ -250,7 +254,7 @@ if test "x$NCURSES_FOUND" = "xno"; then
|
|||||||
AC_CHECK_LIB([ncurses], [clear],
|
AC_CHECK_LIB([ncurses], [clear],
|
||||||
[],
|
[],
|
||||||
[
|
[
|
||||||
unset ac_cv_lib_ncursesw_get_wch
|
unset ac_cv_lib_ncurses_clear
|
||||||
AC_CHECK_LIB([ncurses], [clear],
|
AC_CHECK_LIB([ncurses], [clear],
|
||||||
[],
|
[],
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user