summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Bump Emacs version to 27.1Nicolas Petton2020-07-281-1/+1
| | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version.
* Bump Emacs version to 27.0.91Nicolas Petton2020-04-161-1/+1
| | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version.
* Bump Emacs version to 27.0.90Nicolas Petton2020-02-271-1/+1
| | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version.
* Cater for 3-argument version of pthread_setname_npRobert Pluim2020-02-031-0/+15
| | | | | | | | | | Fixes Bug#39363. * configure.ac: Add check for 3-argument version of pthread_setname_np. * src/systhread.c (sys_thread_set_name) [HAVE_PTHREAD_SETNAME_NP_3ARG]: Call pthread_setname_np with 3 arguments.
* Extend workaround for Cygwin O_PATH bugKen Brown2020-01-311-2/+2
| | | | | * configure.ac (HAVE_CYGWIN_O_PATH_BUG): Extend to Cygwin versions 3.1.0 through 3.1.2. (Bug#39371)
* Fix help text about configure module supportMarco Wahl2020-01-261-1/+1
|
* Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38632)Mattias Engdegård2020-01-071-0/+17
| | | | | | | | | | | | | | | pthread_setname_np takes only a single argument on BSD and macOS, and affects the current thread only. * configure.ac: Add check for single-argument pthread_setname_np * src/systhread.c (sys_thread_set_name): New (w32 and pthread versions). (sys_thread_create): Remove name argument and name-setting. (w32_beginthread_wrapper): Remove name-setting. * src/systhread.h (sys_thread_create, sys_thread_set_name): Update prototypes. * src/thread.c (run_thread): Call sys_thread_set_name. (Fmake_thread): Adapt call to sys_thread_create. * src/thread.h (struct thread_state): Adjust comment.
* Use pthread_setname_np to set thread nameRobert Pluim2020-01-061-2/+2
| | | | | | | | | | | | * configure.ac: Remove check for sys/prctl.h and prctl, check for pthread_setname_np instead. * systhread.c: Remove sys/prctl.h include. (sys_thread_create) [HAVE_PTHREAD_SETNAME_NP]: Use pthread_setname_np to set the name of the newly created thread (Bug#38632). * thread.c (Fmake_thread): Use ENCODE_SYSTEM instead of ENCODE_UTF_8 on the thread name.
* Fix copyright years by handPaul Eggert2020-01-011-2/+2
| | | | These are dates that admin/update-copyright did not update.
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Cut the emacs-27 release branchEli Zaretskii2019-12-231-1/+1
| | | | | | | | | | * lisp/cus-edit.el (customize-changed-options-previous-release): Change the value to 26.3. * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 27.0.60.
* Remove the error-out test for with_harfbuzzLars Ingebrigtsen2019-11-181-5/+0
| | | | | | * configure.ac (HAVE_HARFBUZZ): Remove the check for explicit harfbuzz -- have_harfbuzz defaults to "yes", so we have no way of checking whether the user really asked for it, apparently.
* Error out on --with-harfbuzz without HarfBuzz supportLars Ingebrigtsen2019-11-171-0/+5
| | | | | * configure.ac: Error out if the user says --with-harfbuzz, but HarfBuzz isn't available.
* Portcheck only if --enable-gcc-warningsPaul Eggert2019-10-211-9/+10
| | | | | | | | | Problem reported by Richard Copley (Bug#37852). This patch causes the problem to not occur if one uses plain ‘configure’. The problem can still occur if with ‘configure --enable-gcc-warnings’, so a further fix may be needed. * configure.ac (GNULIB_PORTCHECK, _FORTIFY_SOURCE): Define these only with an explicit --enable-gcc-warnings.
* Enable modules by default.Philipp Stephani2019-10-141-1/+1
| | | | | | | The interface has been stable since Emacs 25, and most bugs are fixed by now. * configure.ac: Enable modules by default.
* Make --with-imagemagick bug out if there's no support for itLars Ingebrigtsen2019-09-241-0/+3
| | | | | | * configure.ac (HAVE_IMAGEMAGICK): Stop configuration if the user has said --with-imagemagick, but there's no support for it (bug#24455).
* Port to platforms with Xrender lib but not headerPaul Eggert2019-09-041-1/+2
| | | | | | * configure.ac (HAVE_XRENDER): Also require ‘#include <X11/extensions/Xrender.h>’ to work. Problem found on gcc119 in GCC compile farm.
* Don't worry about pre-1.0.0 alsa-lib includePaul Eggert2019-08-281-20/+0
| | | | | | | Problem reported by Ergus in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00563.html * configure.ac (ALSA_SUBDIR_INCLUDE): Do not define. * src/sound.c: Assume ALSA_SUBDIR_INCLUDE.
* * configure.ac (HAVE_JPEG): Test for window system. (Bug#36995)Ulrich Müller2019-08-201-38/+40
|
* Debug out-of-range make_fixnum argsPaul Eggert2019-08-151-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | With --enable-checking, make_fixnum (N) now checks that N is in fixnum range. Suggested by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00548.html A new function make_ufixnum (N) is for the rare cases where N is intended to be unsigned and is in the range 0..INTMASK. * configure.ac (AC_C_TYPEOF): Add. (HAVE_STATEMENT_EXPRESSIONS): Resurrect this macro. * src/fns.c (Frandom, hashfn_eq, hashfn_equal, hashfn_user_defined): * src/profiler.c (hashfn_profiler): Use make_ufixnum rather than make_fixum, since the argument is an unsigned integer in the range 0..INTMASK rather than a signed integer in the range MOST_NEGATIVE_FIXNUM..MOST_POSITIVE_FIXNUM. Typically this is for hashes. * src/lisp.h (lisp_h_make_fixnum_wrap) [USE_LSB_TAG]: Rename from lisp_h_make_fixnum. (lisp_h_make_fixnum): Redefine in terms of lisp_h_make_fixnum_wrap. Check for fixnum overflow on compilers like GCC that have statement expressions and typeof. (FIXNUM_OVERFLOW_P): Move up. (make_fixnum): Check for fixnum overflow. (make_ufixnum): New function, which checks that the arg fits into 0..INTMASK range.
* Merge from origin/emacs-26Michael Albinus2019-07-121-1/+1
|\ | | | | | | | | 305abae50e Raise required librsvg version so as to match the current use c6775bc9ca * lisp/net/tramp-sh.el (tramp-inline-compress-start-size):...
| * Raise required librsvg version so as to match the current useYAMAMOTO Mitsuharu2019-07-121-1/+1
| | | | | | | | | | * configure.ac: Set RSVG_REQUIRED to 2.14.0 as rsvg_handle_get_dimensions needs it.
| * Bump Emacs version to 26.2.90Nicolas Petton2019-06-121-1/+1
| | | | | | | | | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version.
| * Port to platforms where tputs is in libtinfowPaul Eggert2019-04-271-1/+2
| | | | | | | | | | | | * configure.ac (tputs_library): Also try tinfow, ncursesw (Bug#33977). (cherry picked from commit a3d52b3057c98bce581bc94912ef3ced6fad6f14)
| * Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26Eli Zaretskii2019-04-211-1/+1
| |\
| | * ; Bump Emacs version to 26.2.50Glenn Morris2019-04-201-1/+1
| | |
| * | Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)Noam Postavsky2019-04-211-9/+6
| |/ | | | | | | | | | | | | | | | | * configure.ac: Use EMACS_CHECK_MODULES fors LCMS2 rather than AC_SEARCH_LIBS. * src/Makefile.in: Get LCMS2_LIBS and LCMS2_CFLAGS from configure, instead of just LIBLCMS2. (cherry picked from commit cb3863370cbe574810f796726faa39ba0de0a429)
| * Bump Emacs version to 26.2emacs-26.2Nicolas Petton2019-04-111-1/+1
| | | | | | | | | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version to 26.2.
* | Simplify workaround for Cygwin O_PATH bugKen Brown2019-06-291-0/+3
| | | | | | | | | | | | | | | | Suggested by Paul Eggert (Bug#36405#22). * configure.ac (HAVE_CYGWIN_O_PATH_BUG): New AC_DEFINE, for Cygwin versions 3.0.0 through 3.0.7. * src/dired.c (O_PATH) [__CYGWIN__]: Remove #undef. (file_attributes) [HAVE_CYGWIN_O_PATH_BUG]: Don't use O_PATH.
* | * configure.ac: Set HAVE_XFT to no for summary if HAVE_CAIRO is yes.YAMAMOTO Mitsuharu2019-06-251-0/+2
| |
* | Bring macuvs.h back under Git controlPaul Eggert2019-06-221-2/+2
| | | | | | | | | | | | | | | | | | * admin/unidata/Makefile.in (maintainer-clean): Instead of removing macuvs.h here ... (extraclean): ... Remove it here. * admin/unidata/uvs.el (uvs-print-table-ivd): Add to comment explaining why macuvs.h is in Git. * src/macuvs.h: Regenerate and re-add to Git.
* | Fix default build-from-Git on macOSPaul Eggert2019-06-211-1/+4
| | | | | | | | | | * configure.ac (NS_IMPL_COCOA): Do not default to "yes" if src/macuvs.h is absent, which is possible in a build from Git.
* | --with-cairo is no longer experimentalPaul Eggert2019-06-191-1/+1
| | | | | | | | | | | | | | Suggested by YAMAMOTO Mitsuharu in: https://lists.gnu.org/r/emacs-devel/2019-06/msg00686.html * configure.ac: Do not say --with-cairo is experimental. * etc/NEWS: Say that --with-cairo is no longer experimental.
* | * configure.ac: Lower required cairo version to 1.8.0.YAMAMOTO Mitsuharu2019-06-151-1/+1
| |
* | Support X core font driver on cairo (Bug#28236)YAMAMOTO Mitsuharu2019-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (HAVE_X_WINDOWS): Add xfont.o to FONT_OBJ if HAVE_CAIRO. * doc/lispref/frames.texi (Font and Color Parameters): Mention X core font driver with Cairo drawing. * src/font.c (syms_of_font) [HAVE_X_WINDOWS && USE_CAIRO]: Call syms_of_xfont. * src/xfns.c (x_create_tip_frame) [USE_CAIRO]: Register xfont_driver. * src/xterm.c (x_cr_gc_clip) [USE_CAIRO]: New function extracted from x_begin_cr_clip. (x_begin_cr_clip) [USE_CAIRO]: Use it. (xlib_surface_key, saved_drawable_key) [USE_CAIRO]: New variables. (x_cr_destroy_xlib_surface, x_try_cr_xlib_drawable) (x_end_cr_xlib_drawable) [USE_CAIRO]: New functions. (x_draw_composite_glyph_string_foreground) (x_draw_glyph_string_foreground) [USE_CAIRO]: Get Xlib surface when drawing text with X core fonts into bitmap surfaces. Add fallback code for drawing into outline surfaces.
* | Implement the get_variation_glyphs method for FreeType >= 2.3.6YAMAMOTO Mitsuharu2019-06-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check availability of FT_Face_GetCharVariantIndex. * src/ftfont.c (ftfont_variation_glyphs) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: Add function implementation. * src/ftcrfont.c (ftcrfont_variation_glyphs) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: Use function implementation for HAVE_OTF_GET_VARIATION_GLYPHS. * src/ftfont.c (ftfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: * src/xftfont.c (xftfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: * src/ftxfont.c (ftxfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: * src/ftcrfont.c (ftcrfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: Populate the get_variation_glyphs method.
* | Revert previous commitYAMAMOTO Mitsuharu2019-06-021-7/+0
| | | | | | | | | | This reverts commit 1ab69630dcb8c7a1b1b4171211a7c8ebf11b0d1c. It has a wrong commit message.
* | Make fthbfont and derivatives use common HarfBuzz code in hbfont.cYAMAMOTO Mitsuharu2019-06-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/font.h (fthbfont_shape, fthbfont_combining_capability) [HAVE_HARFBUZZ]: Remove prototypes. * src/ftfont.c: Don't include math.h. (uni_combining, uni_general, uni_mirroring, get_hb_unicode_funcs) (fthbfont_shape_by_hb, fthbfont_combining_capability, fthbfont_shape) [HAVE_HARFBUZZ]: Remove functions. * src/ftfont.c (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/xftfont.c (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/ftcrfont.c (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]: Use hbfont_shape and hbfont_combining_capability for fthbfont_shape and fthbfont_combining_capability, respectively.
* | Move common HarfBuzz code to a common file hbfont.cEli Zaretskii2019-06-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/hbfont.c: New file, with code moved from w32uniscribe.c and renamed/modified as appropriate. * src/w32uniscribe.c: Move to hbfont.c DEF_DLL_FN and macro definitions for HarfBuzz functions used in hbfont.c (load_harfbuzz_funcs): Move loading of HarfBuzz functions used by hbfont.c to hbfont.c:hbfont_init_w32_funcs, and call that function from here. (syms_of_w32uniscribe_for_pdumper): Fill the 'shape' and 'combining_capability' members with hbfont.c function names. * src/w32common.h (hbfont_init_w32_funcs) [HAVE_HARFBUZZ]: Add prototype. * src/font.h (hbfont_shape, hbfont_combining_capability) [HAVE_HARFBUZZ]: Add prototypes. * src/Makefile.in (SOME_MACHINE_OBJECTS): Add hbfont.o. * configure.ac (FONT_OBJ): Add hbfont.o if HAVE_HARFBUZZ.
* | Add HarfBuzz font backend for MS-WindowsEli Zaretskii2019-05-311-40/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32uniscribe.c [HAVE_HARFBUZZ]: Include math.h and hb.h. (bswap_32): Define for GCC 4.3.0 and later; else include <byteswap.h> from Gnulib. (struct uniscribe_font_info): Extend for HarfBuzz; 'cache' is now a 'void *' (all users changed). [HAVE_HARFBUZZ]: Define typedefs for HarfBuzz functions to be loaded dynamically from the HarfBuzz DLL. Define macros to call those functions via function pointers. (uniscribe_open) [HAVE_HARFBUZZ]: Use the HarfBuzz font driver if the type of the font entity is 'harfbuzz'. (uniscribe_close) [HAVE_HARFBUZZ]: For fonts using the HarfBuzz backend, call hb_font_destroy to free memory used for the cached hb_font data. (uniscribe_shape): Fix assignment of character codepoints to glyphs from a single cluster. (w32hb_list, w32hb_match, free_cb, w32hb_get_font_table) (w32hb_get_font, w32hb_encode_char, w32hb_begin_font) (w32uni_combining, w32uni_general, w32uni_mirroring) (get_hb_unicode_funcs, w32hb_shape) (w32hb_combining_capability, load_harfbuzz_funcs) [HAVE_HARFBUZZ]: New functions. (syms_of_w32uniscribe_for_pdumper) [HAVE_HARFBUZZ]: Load the HarfBuzz DLL and register the HarfBuzz backend with its functions. * src/w32font.c (syms_of_w32font) <Qharfbuzz>: New DEFSYM. * src/w32fns.c (Fx_create_frame, w32_create_tip_frame) [HAVE_HARFBUZZ]: Register the harfbuzz font backend. * src/lisp.h (get_unicode_property): Declare prototype. * src/font.h (harfbuzz_font_driver) [HAVE_NTGUI]: Declare. * src/chartab.c (get_unicode_property): New function, body taken from get-unicode-property-internal. (Fget_unicode_property_internal): Call get_unicode_property after validating input. * doc/lispref/frames.texi (Font and Color Parameters): * doc/emacs/msdos.texi (Windows Fonts): Document support for HarfBuzz text shaping on MS-Windows. * configure.ac (HAVE_HARFBUZZ): Move out of the X-specific part, and consider HarfBuzz also for HAVE_W32 systems. Require HarfBuzz v1.2.3 for w32.
* | Merge branch 'master' into harfbuzzYAMAMOTO Mitsuharu2019-05-231-3/+4
|\ \
| * | Distribute test cases in tarballs by defaultPaul Eggert2019-05-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * INSTALL, INSTALL.REPO, admin/make-tarball.txt: Mention ‘make check’. * configure.ac: Update comment. * etc/NEWS: Say that tarballs have a test directory. * make-dist (with_tests): Default to "yes". Add an option --no-tests to make it "no".
| * | Default to disabling ImageMagick (Bug#33587)Paul Eggert2019-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | ImageMagick has continuing stability and security problems, suggesting that 'configure' should disable it by default. See Glenn Morris's notes at: https://lists.gnu.org/r/emacs-devel/2018-12/msg00036.html * INSTALL, etc/NEWS, nt/INSTALL.W64: Mention this. * configure.ac (imagemagick): Default to off.
| * | Export major version of latest Emacs supported by emacs-module.h.Philipp Stephani2019-04-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful if module authors want to support multiple versions of emacs-module.h. * configure.ac (emacs_major_version): Define substitution. * src/emacs-module.h.in (EMACS_MAJOR_VERSION): Define macro. * doc/lispref/internals.texi (Module Initialization): Document EMACS_MAJOR_VERSION preprocessor macro. * test/data/emacs-module/mod-test.c (emacs_module_init): Verify behavior of EMACS_MAJOR_VERSION.
* | | Merge branch 'master' into harfbuzzYAMAMOTO Mitsuharu2019-04-271-158/+294
|\ \ \ | |/ /
| * | Don't link libXft when using cairoYAMAMOTO Mitsuharu2019-04-241-19/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check cairo early. Don't try Xft if cairo is used. * lwlib/lwlib-utils.h [USE_CAIRO]: Include cairo.h and fontconfig.h. (XftFont, XftDraw, XftColor, XGlyphInfo) [USE_CAIRO]: New typedefs. (XftFontOpenName, XftFontClose, XftDrawCreate, XftDrawDestroy) (XftDrawRect, XftDrawStringUtf8, XftTextExtentsUtf8) [USE_CAIRO]: New macros. (crxft_font_open_name, crxft_font_close, crxft_draw_create) (crxft_draw_rect, crxft_draw_string, crxft_text_extents) [USE_CAIRO]: New externs. * lwlib/lwlib-utils.c [USE_CAIRO]: Include math.h, cairo-ft.h, and cairo-xlib.h. (crxft_font_open_name, crxft_font_close, crxft_draw_create) (crxft_set_source_color, crxft_draw_rect, crxft_draw_string) (crxft_text_extents) [USE_CAIRO]: New Xft compatibility functions. * lwlib/xlwmenuP.h [USE_CAIRO]: Include lwlib-utils.h. * lwlib/xlwmenu.c (display_menu_item) [USE_CAIRO]: Call cairo_surface_mark_dirty and cairo_surface_flush. * lwlib/lwlib-Xaw.c [USE_CAIRO]: Include stdlib.h and lwlib-utils.h. (draw_text) [USE_CAIRO]: Call cairo_surface_flush. * src/xsettings.c [USE_CAIRO]: Include fontconfig.h (apply_xft_settings) [!HAVE_XFT]: Don't call XftDefaultSubstitute or XftDefaultSet. * lwlib/lwlib-Xaw.c: * lwlib/lwlib-int.h: * lwlib/xlwmenu.c: * lwlib/xlwmenuP.h: * src/xrdb.c: * src/xsettings.c: * src/xterm.c: Replace all #ifdef HAVE_XFT with #if defined USE_CAIRO || defined HAVE_XFT. * src/xfns.c (x_default_font_parameter): Replace #ifdef HAVE_XFT with #if defined USE_CAIRO || defined HAVE_XFT.
| * | Let plain ‘make’ work even not GNU MakePaul Eggert2019-04-221-1/+9
| | | | | | | | | | | | | | | | | | * Makefile.in (top_distclean): Clean makefile as well as Makefile. * configure.ac: If not using plain ‘make’, create a makefile so that plain ‘make’ simply calls $(MAKE).
| * | Remove --enable-checking=xmallocoverrunPaul Eggert2019-04-211-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It doesn’t work anymore, and these days ‘gcc -fsanitize=address’ does a better job anyway. * configure.ac: Remove the option. * configure.ac (ac_xmalloc_overrun, XMALLOC_OVERRUN_CHECK): * src/alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD) (XMALLOC_OVERRUN_CHECK_SIZE, XMALLOC_OVERRUN_SIZE_SIZE) (xmalloc_overrun_check_header, xmalloc_overrun_check_trailer) (xmalloc_put_size, xmalloc_get_size, overrun_check_malloc) (overrun_check_realloc, overrun_check_free): Remove. All uses removed. * etc/NEWS: Mention this.
| * | Remove --enablechecking=conslist configure optionPaul Eggert2019-04-211-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Remove the option. * configure.ac (ac_gc_check_cons_list, GC_CHECK_CONS_LIST): * src/alloc.c (check_cons_list) [GC_CHECK_CONS_LIST]: * src/lisp.h (lisp_h_check_cons_list, check_cons_list): Remove. All uses removed. * etc/NEWS: Mention this.
| * | * src/configure.ac: Check for GTK 2 features only on GTK 2Alexander Gramiak2019-04-201-14/+17
| | |