X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=configure.in;h=5e86a696ebe555854c96cb2ca351c73baa08cfbd;hp=b42214598d7d106aa36fd320aa2f6dbc0929a7fe;hb=df51c7005b77c6dcc78565d8cc87f8f68a8525c2;hpb=d60228973b72d3b457e3ec2653ea5b2cb38fc0c9 diff --git a/configure.in b/configure.in index b4221459..5e86a696 100644 --- a/configure.in +++ b/configure.in @@ -28,14 +28,14 @@ dnl*************************************************************************** dnl dnl Author: Thomas E. Dickey 1995-on dnl -dnl $Id: configure.in,v 1.659 2018/06/16 21:26:41 tom Exp $ +dnl $Id: configure.in,v 1.664 2018/08/18 20:27:17 tom Exp $ dnl Process this file with autoconf to produce a configure script. dnl dnl See https://invisible-island.net/autoconf/ for additional information. dnl dnl --------------------------------------------------------------------------- AC_PREREQ(2.52.20170501) -AC_REVISION($Revision: 1.659 $) +AC_REVISION($Revision: 1.664 $) AC_INIT(ncurses/base/lib_initscr.c) AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin) @@ -217,7 +217,7 @@ AC_ARG_PROGRAM CF_PROG_AWK CF_PROG_EGREP -CF_PROG_INSTALL +AC_PROG_INSTALL CF_PROG_LINT CF_PROG_LN_S @@ -521,6 +521,7 @@ if test "$with_gpm" != no ; then CF_CHECK_GPM_WGETCH fi +CF_WITH_PCRE2 CF_WITH_SYSMOUSE # pretend that ncurses==ncursesw==ncursest @@ -533,7 +534,7 @@ CF_ARG_DISABLE(lib-suffixes, AC_MSG_RESULT($disable_lib_suffixes) ### If we're building with rpath, try to link non-standard libs that way too. -if test "$DFT_LWR_MODEL" = "shared"; then +if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then CF_DISABLE_RPATH_HACK fi @@ -1480,6 +1481,21 @@ AC_SUBST(ECHO_LINK) # --disable-stripping is used for debugging CF_INSTALL_OPTS +# If we're avoiding relinking of shared libraries during install, that is to +# avoid modifying the build-tree. For the same reason, avoid doing ranlib if +# the install program has "-p" (for preserving timestamps). +cf_cv_do_reranlib=yes +if test "x$cf_cv_install_p" = xyes +then + if test "x$cf_cv_do_relink" != xyes + then + cf_cv_do_reranlib=no + INSTALL_OPT_P="-p" + INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P" + fi +fi +AC_SUBST(INSTALL_OPT_P) + ### use option --enable-warnings to turn on all gcc warnings AC_MSG_CHECKING(if you want to see compiler warnings) AC_ARG_ENABLE(warnings, @@ -2395,6 +2411,7 @@ WITH_OVERWRITE="$with_overwrite" cf_LIST_MODELS="$cf_list_models" cf_cv_abi_version="$cf_cv_abi_version" cf_cv_do_relink="$cf_cv_do_relink" +cf_cv_do_reranlib="$cf_cv_do_reranlib" cf_cv_do_symlinks="$cf_cv_do_symlinks" cf_cv_enable_lp64="$cf_cv_enable_lp64" cf_cv_enable_opaque="$cf_cv_enable_opaque"