[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] search ncurses via pkg-config first
From: |
Chris Allegretta |
Subject: |
Re: [Nano-devel] [PATCH] search ncurses via pkg-config first |
Date: |
Tue, 1 Apr 2014 11:01:13 -0400 |
This seems to be causing problems on my system:
./configure: line 7768: syntax error near unexpected token `NCURSESW,'
./configure: line 7768: ` PKG_CHECK_MODULES(NCURSESW, ncursesw,'
I thought it might be related to the issues listed at
https://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html
regarding PKG_CHECK_MODULES being invoked inside a conditional, but
even moving it outside it seems broken. Haven't been able to track it
down yet, is anyone else having a problem with trunk as of this
change?
On 3/23/14, Mike Frysinger <address@hidden> wrote:
> Newer ncurses installs include pkg-config files which tell us the right
> -I/-L paths we need, so default to that before trying the legacy ways.
> ---
> configure.ac | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index ee3ef71..87336f6 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -35,6 +35,7 @@ AC_PROG_CC
> AC_PROG_LN_S
> AC_ISC_POSIX
> AC_SYS_LARGEFILE
> +PKG_PROG_PKG_CONFIG
>
> dnl Internationalization macros.
>
> @@ -438,6 +439,23 @@ AC_CHECK_FUNCS(getopt_long)
> dnl Checks for libraries.
>
> if eval "test x$CURSES_LIB_NAME = x"; then
> + if test x$enable_utf8 != xno; then
> + PKG_CHECK_MODULES([NCURSESW], [ncursesw], [
> + CURSES_LIB=$NCURSESW_LIBS
> + CPPFLAGS="$NCURSESW_CFLAGS $CPPFLAGS"
> + CURSES_LIB_NAME=ncursesw
> + CURSES_LIB_WIDE=yes
> + ], [:])
> + else
> + PKG_CHECK_MODULES([NCURSES], [ncurses], [
> + CURSES_LIB=$NCURSES_LIBS
> + CPPFLAGS="$NCURSES_CFLAGS $CPPFLAGS"
> + CURSES_LIB_NAME=ncurses
> + ], [:])
> + fi
> +fi
> +
> +if eval "test x$CURSES_LIB_NAME = x"; then
> AC_CHECK_HEADERS(ncurses.h)
>
> if test x$enable_utf8 != xno; then
> --
> 1.9.0
>
>
> _______________________________________________
> Nano-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/nano-devel
>
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first,
Chris Allegretta <=
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Mike Frysinger, 2014/04/01
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Chris Allegretta, 2014/04/01
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Mike Frysinger, 2014/04/01
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Chris Allegretta, 2014/04/01
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Benno Schulenberg, 2014/04/01
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Mike Frysinger, 2014/04/01
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Chris Allegretta, 2014/04/03
- Re: [Nano-devel] [PATCH] search ncurses via pkg-config first, Mike Frysinger, 2014/04/01