dnl***************************************************************************
-dnl Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. *
+dnl Copyright (c) 1998-2017,2018 Free Software Foundation, Inc. *
dnl *
dnl Permission is hereby granted, free of charge, to any person obtaining a *
dnl copy of this software and associated documentation files (the *
dnl
dnl Author: Thomas E. Dickey 1995-on
dnl
-dnl $Id: configure.in,v 1.645 2017/07/26 22:24:31 tom Exp $
+dnl $Id: configure.in,v 1.653 2018/01/19 22:45:56 tom Exp $
dnl Process this file with autoconf to produce a configure script.
dnl
-dnl See http://invisible-island.net/autoconf/ for additional information.
+dnl See https://invisible-island.net/autoconf/ for additional information.
dnl
dnl ---------------------------------------------------------------------------
AC_PREREQ(2.52.20170501)
-AC_REVISION($Revision: 1.645 $)
+AC_REVISION($Revision: 1.653 $)
AC_INIT(ncurses/base/lib_initscr.c)
AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
AC_SYS_LONG_FILE_NAMES
-# if we find pkg-config, check if we should install the ".pc" files.
+# Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
+# of package conflict.
+cf_config_suffix=
+AC_ARG_WITH(config-suffix,
+ [ --with-config-suffix=X suffixes ncursesXX-config file],
+ [case "x$withval" in
+ (xyes|xno)
+ AC_MSG_WARN(expected a value for config-suffix option)
+ ;;
+ (*) cf_config_suffix="$withval"
+ ;;
+ esac])
+AC_SUBST(cf_config_suffix)
+
+# If we find pkg-config, check if we should install the ".pc" files.
CF_PKG_CONFIG
CF_WITH_PKG_CONFIG_LIBDIR
CF_ENABLE_PC_FILES
fi
AC_SUBST(NCURSES_WATTR_MACROS)
+CF_WITH_X11_RGB
+
### use option --with-bool to override bool's type
AC_MSG_CHECKING(for type of bool)
AC_ARG_WITH(bool,
AC_DEFINE(NCURSES_EXT_COLORS,1,[Define to 1 to compile for 256-color support])
AC_DEFINE(HAVE_ALLOC_PAIR,1,[Define to 1 to enable alloc_pair() function])
AC_DEFINE(HAVE_INIT_EXTENDED_COLOR,1,[Define to 1 to enable init_extended_color() function in test-programs])
+ AC_DEFINE(HAVE_RESET_COLOR_PAIRS,1,[Define to 1 to enable reset_color_pairs() function in test-programs])
fi
fi
AC_SUBST(NCURSES_EXT_COLORS)
fi
AC_SUBST(ECHO_LINK)
+# --disable-stripping is used for debugging
+CF_INSTALL_OPTS
+
### use option --enable-warnings to turn on all gcc warnings
AC_MSG_CHECKING(if you want to see compiler warnings)
AC_ARG_ENABLE(warnings,
strdup \
strstr \
tcgetpgrp \
+tdestroy \
times \
+tsearch \
vsnprintf \
)