]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - aclocal.m4
ncurses 6.2 - patch 20200926
[ncurses.git] / aclocal.m4
index 55775a5f7f6b6fe561d56badc0b870c1d195eb1e..9d6f1e5694fd1c7fd397042cd815b5572fb81c53 100644 (file)
@@ -29,7 +29,7 @@ dnl***************************************************************************
 dnl
 dnl Author: Thomas E. Dickey 1995-on
 dnl
-dnl $Id: aclocal.m4,v 1.929 2020/08/29 13:05:21 tom Exp $
+dnl $Id: aclocal.m4,v 1.933 2020/09/26 23:57:07 tom Exp $
 dnl Macros used in NCURSES auto-configuration script.
 dnl
 dnl These macros are maintained separately from NCURSES.  The copyright on
@@ -1993,7 +1993,7 @@ if test "x$with_string_hacks" = "xyes"; then
 fi
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_ENABLE_WARNINGS version: 6 updated: 2020/08/28 04:10:22
+dnl CF_ENABLE_WARNINGS version: 7 updated: 2020/08/29 09:05:21
 dnl ------------------
 dnl Configure-option to enable gcc warnings
 dnl
@@ -2600,7 +2600,7 @@ esac
 
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_GCC_ATTRIBUTES version: 18 updated: 2020/03/10 18:53:47
+dnl CF_GCC_ATTRIBUTES version: 19 updated: 2020/08/29 09:05:21
 dnl -----------------
 dnl Test for availability of useful gcc __attribute__ directives to quiet
 dnl compiler warnings.  Though useful, not all are supported -- and contrary
@@ -6444,7 +6444,7 @@ AC_MSG_RESULT($cf_prog_ln_sf)
 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_REGEX version: 14 updated: 2020/07/11 19:09:29
+dnl CF_REGEX version: 16 updated: 2020/09/26 19:56:36
 dnl --------
 dnl Attempt to determine if we've got one of the flavors of regular-expression
 dnl code that we can support.
@@ -6452,24 +6452,36 @@ AC_DEFUN([CF_REGEX],
 [
 
 cf_regex_func=no
-
-cf_regex_libs="regex re"
+cf_regex_libs=
 case $host_os in
 (mingw*)
-       cf_regex_libs="systre gnurx $cf_regex_libs"
+       # -lsystre -ltre -lintl -liconv
+       AC_CHECK_LIB(systre,regcomp,[
+               AC_CHECK_LIB(iconv,libiconv_open,[CF_ADD_LIB(iconv)])
+               AC_CHECK_LIB(intl,libintl_gettext,[CF_ADD_LIB(intl)])
+               AC_CHECK_LIB(tre,tre_regcomp,[CF_ADD_LIB(tre)])
+               CF_ADD_LIB(systre)
+               cf_regex_func=regcomp
+       ],[
+               AC_CHECK_LIB(gnurx,regcomp,[
+                       CF_ADD_LIB(gnurx)
+                       cf_regex_func=regcomp])
+       ])
+       ;;
+(*)
+       cf_regex_libs="regex re"
+       AC_CHECK_FUNC(regcomp,[cf_regex_func=regcomp],[
+               for cf_regex_lib in $cf_regex_libs
+               do
+                       AC_CHECK_LIB($cf_regex_lib,regcomp,[
+                                       CF_ADD_LIB($cf_regex_lib)
+                                       cf_regex_func=regcomp
+                                       break])
+               done
+       ])
        ;;
 esac
 
-AC_CHECK_FUNC(regcomp,[cf_regex_func=regcomp],[
-       for cf_regex_lib in $cf_regex_libs
-       do
-               AC_CHECK_LIB($cf_regex_lib,regcomp,[
-                               CF_ADD_LIB($cf_regex_lib)
-                               cf_regex_func=regcomp
-                               break])
-       done
-])
-
 if test "$cf_regex_func" = no ; then
        AC_CHECK_FUNC(compile,[cf_regex_func=compile],[
                AC_CHECK_LIB(gen,compile,[