aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-01-27Release 1.44libgpg-error-1.44gpgrt-1.44Werner Koch1-1/+1
* configure.ac: Bump LT version to C32/A32/R2.
2022-01-18build: Detect more flexible musl variants of GNUDaniel Kahn Gillmor1-1/+1
* configure.ac: expand *-*-linux-musl to *-*-linux-musl*. -- GnuPG-bug-id: 5762 Reported-by: Helmut Grohne <[email protected]> Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2021-12-15build: Update configure.ac for newer autoconf.NIIBE Yutaka1-3/+2
* configure.ac (AC_PREREQ): Require 2.69 or later. (AC_CONFIG_HEADERS): Replace AC_CONFIG_HEADER. (AC_HEADER_STDC): Remove. * m4/codeset.m4: Update from gnulib. -- Signed-off-by: NIIBE Yutaka <[email protected]>
2021-12-13build: Fix have_lock_optimization code for 'guessing yes'.NIIBE Yutaka1-2/+6
* configure.ac: Support 'guessing yes' for gl_cv_have_weak. -- Signed-off-by: NIIBE Yutaka <[email protected]>
2021-12-13build: Detect a system with musl, as a variant of GNU System.NIIBE Yutaka1-1/+1
* configure.ac: Add *-*-linux-musl. -- Reported-by: Alexander Kanavin <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>
2021-12-07configure: Add missing check for loggingJakub Jelen1-1/+1
* configure.ac: Add missing check for inet_pton to avoid using inet_addr in modern systems. -- Signed-off-by: Jakub Jelen <[email protected]>
2021-11-25build,tests: Run t-lock-single-posix only on platforms supported.NIIBE Yutaka1-0/+9
* configure.ac (HAVE_LOCK_OPTIMIZATION): New. * tests/Makefile.am: Use HAVE_LOCK_OPTIMIZATION for t-lock-single-posix. -- GnuPG-bug-id: 5699 Signed-off-by: NIIBE Yutaka <[email protected]>
2021-11-12configure: Escape includedir/libdir to defer interpretation of vars.NIIBE Yutaka1-7/+7
configure.ac: Escape includedir for GPG_ERROR_CONFIG_CFLAGS. Escape libdir for GPG_ERROR_CONFIG_LIBS. -- This can offer nice-looking gpg-error.pc. Signed-off-by: NIIBE Yutaka <[email protected]>
2021-11-03Post-release updatesWerner Koch1-1/+1
--
2021-11-03Release 1.43libgpg-error-1.43gpgrt-1.43Werner Koch1-1/+1
2021-08-06posix-lock: Support GNU C library 2.34 or later.NIIBE Yutaka1-0/+1
* configure.ac: Add check for sys/single_threaded.h. * src/posix-lock.c [USE_POSIX_THREADS_FROM_LIBC]: Use __libc_single_threaded to detect if it's single threaded. -- GnuPG-bug-id: 5547 Signed-off-by: NIIBE Yutaka <[email protected]>
2021-08-05build: Simplify checking headers.NIIBE Yutaka1-1/+1
* configure.ac (AC_HEADER_STDC): Remove stdlib.h. -- It is supported by AC_HEADER_STDC. Signed-off-by: NIIBE Yutaka <[email protected]>
2021-06-08core: Avoid truncation of error message in the middle of a character.NIIBE Yutaka1-0/+1
* configure.ac (AM_LANGINFO_CODESET): Add. * src/strerror.c (_gpg_strerror_r): Check the boundary of character. -- GnuPG-bug-id: 5048 Signed-off-by: NIIBE Yutaka <[email protected]>
2021-05-21build: _DARWIN_C_SOURCE should be 1.NIIBE Yutaka1-1/+1
* configure.ac (*-apple-darwin*): Set _DARWIN_C_SOURCE 1. -- GnuPG-bug-id: 5440 Reported-by: Jay Freeman Signed-off-by: NIIBE Yutaka <[email protected]>
2021-03-22Post release updatesWerner Koch1-1/+1
--
2021-03-22Release 1.42libgpg-error-1.42gpgrt-1.42Werner Koch1-3/+3
2021-02-18build: Support --disable-threads by gen-lock-obj.sh.NIIBE Yutaka1-2/+8
* configure.ac: Supply --disable-threads to gen-lock-obj.sh. Tighten the condition of using gen-lock-obj.sh for GNU/Linux. * src/gen-lock-obj.sh: Support --disable-threads. -- GnuPG-bug-id: 5296 Signed-off-by: NIIBE Yutaka <[email protected]>
2020-12-21Post release updatesWerner Koch1-1/+1
--
2020-12-21Release 1.41libgpg-error-1.41gpgrt-1.41Werner Koch1-1/+1
2020-12-21Post release updatesWerner Koch1-1/+1
--
2020-12-21Release 1.40libgpg-error-1.40gpgrt-1.40Werner Koch1-2/+2
* configure.ac: Bump LT version to C31/A31/R0.
2020-12-07build: Use AC_CHECK_TOOL to detect objdump for cross build.NIIBE Yutaka1-3/+3
* configure.ac (CROSS_HOST_OBJDUMP): Remove, but use AC_CHECK_TOOL. -- Co-authored-by: John Ericson Signed-off-by: NIIBE Yutaka <[email protected]>
2020-11-17build: Update to new autoconf constructs.NIIBE Yutaka1-11/+12
* configure.ac Replace AC_GNU_SOURCE to Use AC_USE_SYSTEM_EXTENSIONS. Replace AC_HELP_STRING to AS_HELP_STRING. * m4/estream.m4: Replace AC_TRY_LINK to AC_LINK_IFELSE. * m4/gnupg-misc.m4: Replace AC_TRY_COMPILE to AC_COMPILE_IFELSE. * m4/libtool.m4: Use AC_LANG_PUSH/AC_LANG_POP instead of AC_LANG_SAVE/AC_LANG_RESTORE. * m4/readline.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Fix quote for _combo. * m4/threadlib.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Signed-off-by: NIIBE Yutaka <[email protected]>
2020-08-24Post release updatesWerner Koch1-1/+1
--
2020-08-24Release 1.39libgpg-error-1.39gpgrt-1.39Werner Koch1-2/+2
2020-06-11build: Fix command-line to make 'src 'dir.NIIBE Yutaka1-1/+1
* configure.ac: Mistake, then, fix it. Fixes-commit: ce97528fa3dcc58d86e18d4d8820f210a624f63d Signed-off-by: NIIBE Yutaka <[email protected]>
2020-06-11build: On cross build, detect host's objdump.NIIBE Yutaka1-8/+13
* configure.ac [*-*-linux*] (CROSS_HOST_OBJDUMP): New. -- To support widely, we could also use objdump configured for multiple archs which supports host's format (instead of $host_alias-objdump), like objdump in binutils-multiarch of Debian, but it's not that easy to maintain the code to determine format name from $host_alias. Or we could use eu-size in elfutils. GnuPG-bug-id: 4973 Signed-off-by: NIIBE Yutaka <[email protected]>
2020-06-03build: Fix cross-compiling into a separate build dir.David Michael1-0/+1
* configure.ac: Create the src directory before writing into it. * src/Makefile.am (EXTRA_DIST): Add gen-lock-obj.sh. -- Signed-off-by: David Michael <[email protected]>
2020-05-29Post release updatesWerner Koch1-1/+1
--
2020-05-29Release 1.38libgpg-error-1.38gpgrt-1.38Werner Koch1-2/+2
2020-04-09build: Use gen-lock-obj.sh script when possible.NIIBE Yutaka1-0/+14
* configure.ac (HAVE_GENERATED_LOCK_OBJ_H): New. * src/Makefile.am: Support HAVE_GENERATED_LOCK_OBJ_H. -- For cross build, when possible (currently for GNU/Linux), generate lock-obj-pub.native.h by the script. GnuPG-bug-id: 4774 Signed-off-by: NIIBE Yutaka <[email protected]>
2020-02-18core: Add a high level option/argument parser.Werner Koch1-1/+1
* gpg-error.h.in (GPGRT_CONFDIR_USER, GPGRT_CONFDIR_SYS): New consts. (ARGPARSE_FLAG_SYS, ARGPARSE_FLAG_USER, ARGPARSE_FLAG_VERBOSE) (ARGPARSE_NO_CONFFILE, ARGPARSE_CONFFILE, ARGPARSE_OPT_CONFFILE): New consts. (ARGPARSE_conffile, ARGPARSE_noconffile): New macros. (gpgrt_set_confdir): New func. (gpgrt_argparser): New func. * src/argparse.c (confdir): New var. (enum argparser_states): New. (struct _gpgrt_argparse_internal_s): Add a couple of new fields. (initialize): Init them. (any_opt_conffile): New. (_gpgrt_argparser): New. (_gpgrt_set_confdir): New. * src/visibility.c (gpgrt_argparser): New. (gpgrt_set_confdir): New. * src/gpg-error.def.in, src/gpg-error.vers: Add those functions. * tests/t-argparse.c (main): Reworked. * tests/etc/t-argparse.conf: New file. * tests/t-argparse.conf: New file. -- gpgrt_argparser is a high level version of gpgrt_argparse. It handles reading of configuration files internally and allows allows for a global configuration file. The design is so that it minimizes the work to replace the existing option parsing in gpg and friends by this one and to allow global configuration files for them. This is the just the basic code which should allow replacement of the parsers. A forthcoming patch will implement flags for options given in the global config file. GnuPG-bug-id: 4788 Signed-off-by: Werner Koch <[email protected]>
2020-02-18core: Add gpgrt_fnameconcat and gpgrt_absfnameconcat.Werner Koch1-2/+2
* src/gpg-error.h.in (gpgrt_fnameconcat): New. (gpgrt_absfnameconcat): New. * src/visibility.c (gpgrt_fnameconcat, gpgrt_absfnameconcat): New. * src/stringutils.c: New file. (_gpgrt_vfnameconcat): New. (_gpgrt_fnameconcat, _gpgrt_absfnameconcat): New. * src/gpg-error.def.in: Add new functions. * src/gpg-error.vers: Ditto. * src/sysutils.c: Include pwd.h. (_gpgrt_getpwdir): New. * configure.ac: Test for pwd.h, getpwnam, getpwuid, and their _r variants. * src/Makefile.am (libgpg_error_la_SOURCES): Add new file. * tests/t-stringutils.c: New. * tests/t-common.h (xmalloc, xstrdup, xfree): New. (die): Kludge to avoid compiler warnings. -- The new functions are based on the code of make_filename from GnuPG. They have been written by me ages ago with only minor modifications by David Shaw. I re-license them from LGPL-3.0+ OR GPL-2.0+ to LGPL-2.1-or-later. Signed-off-by: Werner Koch <[email protected]>
2020-02-18w32: Support static link with -lws2_32.NIIBE Yutaka1-0/+3
* configure.ac (GPG_ERROR_CONFIG_LIBS_PRIVATE): New. * src/Makefile.am (socklibs): Use GPG_ERROR_CONFIG_LIBS_PRIVATE. * src/gpg-error.pc.in: Require @GPG_ERROR_CONFIG_LIBS_PRIVATE@. -- GnuPG-bug-id: 4623 Signed-off-by: NIIBE Yutaka <[email protected]>
2020-02-07Post release updatesWerner Koch1-1/+1
--
2020-02-07Release 1.37libgpg-error-1.37gpgrt-1.37Werner Koch1-2/+2
2019-06-26estream: Use poll(2) when available.NIIBE Yutaka1-1/+1
* configure.ac: Detect poll.h. * src/estream.c [HAVE_POLL_H] (_gpgrt_poll): Use poll. -- Here, we use C99 feature of array declaration with variable. Signed-off-by: NIIBE Yutaka <[email protected]>
2019-06-18build: Take care of POSIX shell path.NIIBE Yutaka1-0/+6
* configure.ac (INSTALLSHELLPATH): New. * src/Makefile.am: Change invocation of gpg-error-config-test.sh. * src/gpgrt-config.in (INSTALLSHELLPATH): To be substituted. * src/gpg-error-config-test.sh.in: Likewise. -- GnuPG-bug-id: 4574 Signed-off-by: NIIBE Yutaka <[email protected]>
2019-05-29Detect to use strerror_s.NIIBE Yutaka1-0/+3
* configure.ac [mingw32*] (strerror_s): Detect. * src/strerror.c [HAVE_STRERROR_S] (system_strerror_r): Use strerror_s. -- GnuPG-bug-id: 4539 Signed-off-by: NIIBE Yutaka <[email protected]>
2019-03-19post release updatesWerner Koch1-1/+1
--
2019-03-19Release 1.36libgpg-error-1.36gpgrt-1.36Werner Koch1-3/+3
* configure.ac: Bump LT version to C27/A27/R0. Signed-off-by: Werner Koch <[email protected]>
2019-01-28Post release updatesWerner Koch1-1/+1
--
2019-01-28Release 1.35libgpg-error-1.35gpgrt-1.35Werner Koch1-1/+1
-- Because gpgrt-config is not anymore generated from gpgrt-config.in and a stale (generated) gpgrt-config was hanging around in the build directory the make distcheck target didn't caught this situation and we accidently distributed the old gpgrt-config from the build directory. Signed-off-by: Werner Koch <[email protected]>
2019-01-16Post release updatesWerner Koch1-1/+1
--
2019-01-16Release 1.34libgpg-error-1.34gpgrt-1.34Werner Koch1-2/+2
* configure.ac: Bump LT version to C26/A26/R0. Signed-off-by: Werner Koch <[email protected]>
2019-01-10build: Build with LD_LIBRARY_PATH, use of DT_RPATH (2/2).NIIBE Yutaka1-3/+6
* configure.ac (LDADD_FOR_TESTS_KLUDGE): New for --disable-new-dtags. * tests/Makefile.am (LDADD): Use LDADD_FOR_TESTS_KLUDGE. (t_lock_LDADD, t_poll_LDADD): Use LDADD. -- GnuPG-bug-id: 4298 Signed-off-by: NIIBE Yutaka <[email protected]>
2019-01-10build: Build with LD_LIBRARY_PATH, use of DT_RPATH (1/2).NIIBE Yutaka1-0/+32
* configure.ac: Check against --disable-new-dtags. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-12-07Post release updatesWerner Koch1-1/+1
--
2018-12-07Release 1.33.libgpg-error-1.33gpgrt-1.33Werner Koch1-3/+3
* configure.ac: Set LT version to C25/A25/R0. GnuPG-bug-id: 4205 Signed-off-by: Werner Koch <[email protected]>
2018-10-29gpgrt-config: Better architecture independent support.NIIBE Yutaka1-12/+0
* configure.ac: Don't generate gpgrt-config. * src/gpgrt-config: Rename from gpgrt-config.in. (--prefix, --exec-prefix, --libdir): Use --libdir to determine PKG_CONFIG_LIBDIR. * src/Makefile.am (EXTRA_DIST): Remove gpgrt-config.in. * src/gpg-error-config-test.sh: Fix for path to gpgrt-config. * src/gpg-error.m4: Provide --prefix, --exec-prefix, --libdir option from configure. Don't use CC because we have --libdir. Bump version date. * src/gpgrt.m4: Likewise. -- Considering multilib support as well as multiarch support, it is better to provide the information for PKG_CONFIG_LIBDIR by --libdir directly, instead of CC. Difficulty is that configure allows variable reference like: --libdir='${exec_prefix}/i386-linux' So, it should also support --prefix and --exec_prefix options. Signed-off-by: NIIBE Yutaka <[email protected]>