1 # configure.ac for GPGME
2 # Copyright (C) 2000 Werner Koch (dd9jn)
3 # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
4 # 2009, 2010, 2011, 2012, 2013, 2014, 2015 g10 Code GmbH
6 # This file is part of GPGME.
8 # GPGME is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU Lesser General Public License as
10 # published by the Free Software Foundation; either version 2.1 of the
11 # License, or (at your option) any later version.
13 # GPGME is distributed in the hope that it will be useful, but WITHOUT
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
16 # Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
21 # (Process this file with autoconf to produce a configure script.)
23 min_automake_version="1.14"
25 # To build a release you need to create a tag with the version number
26 # (git tag -s gpgme-n.m.k) and run "./autogen.sh --force". Please
27 # bump the version number immediately after the release and do another
28 # commit and push so that the git magic is able to work. See below
29 # for the LT versions.
30 m4_define(mym4_version_major, [1])
31 m4_define(mym4_version_minor, [7])
32 m4_define(mym4_version_micro, [0])
34 # Below is m4 magic to extract and compute the revision number, the
35 # decimalized short revision number, a beta version string, and a flag
36 # indicating a development version (mym4_isgit). Note that the m4
37 # processing is done by autoconf and not during the configure run.
38 m4_define(mym4_version,
39 [mym4_version_major.mym4_version_minor.mym4_version_micro])
40 m4_define([mym4_revision],
41 m4_esyscmd([git rev-parse --short HEAD | tr -d '\n\r']))
42 m4_define([mym4_revision_dec],
43 m4_esyscmd_s([echo $((0x$(echo ]mym4_revision[|head -c 4)))]))
44 m4_define([mym4_betastring],
45 m4_esyscmd_s([git describe --match 'gpgme-[0-9].*[0-9]' --long|\
46 awk -F- '$3!=0{print"-beta"$3}']))
47 m4_define([mym4_isgit],m4_if(mym4_betastring,[],[no],[yes]))
48 m4_define([mym4_full_version],[mym4_version[]mym4_betastring])
50 AC_INIT([gpgme],[mym4_full_version],[http://bugs.gnupg.org])
52 # LT Version numbers, remember to change them just *before* a release.
53 # (Code changed: REVISION++)
54 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
55 # (Interfaces added: AGE++)
56 # (Interfaces removed/changed: AGE=0)
58 LIBGPGME_LT_CURRENT=25
59 # Subtract 2 from this value if you want to make the LFS transition an
60 # ABI break. [Note to self: Remove this comment with the next regular break.]
62 LIBGPGME_LT_REVISION=0
64 LIBGPGMEPP_LT_CURRENT=6
66 LIBGPGMEPP_LT_REVISION=1
68 LIBQGPGME_LT_CURRENT=6
70 LIBQGPGME_LT_REVISION=1
72 # If the API is changed in an incompatible way: increment the next counter.
73 GPGME_CONFIG_API_VERSION=1
74 ##############################################
76 NEED_GPG_ERROR_VERSION=1.11
78 NEED_LIBASSUAN_VERSION=2.0.2
82 VERSION=$PACKAGE_VERSION
84 AC_CONFIG_AUX_DIR([build-aux])
85 AC_CONFIG_MACRO_DIR([m4])
86 AC_CONFIG_SRCDIR(src/gpgme.h.in)
87 AC_CONFIG_HEADER(config.h)
88 AM_INIT_AUTOMAKE([serial-tests dist-bzip2 no-dist-gzip])
92 AC_ARG_VAR(SYSROOT,[locate config scripts also below that directory])
94 # Enable GNU extensions on systems that have them.
97 AH_VERBATIM([_REENTRANT],
98 [/* To allow the use of GPGME in multithreaded programs we have to use
99 special features from the library.
100 IMPORTANT: gpgme is not yet fully reentrant and you should use it
101 only from one thread. */
103 # define _REENTRANT 1
109 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
110 AC_CHECK_PROGS(GITLOG_TO_CHANGELOG, gitlog-to-changelog, [gitlog-to-changelog])
112 AC_SUBST(LIBGPGME_LT_CURRENT)
113 AC_SUBST(LIBGPGME_LT_AGE)
114 AC_SUBST(LIBGPGME_LT_REVISION)
115 AC_SUBST(LIBGPGMEPP_LT_CURRENT)
116 AC_SUBST(LIBGPGMEPP_LT_AGE)
117 AC_SUBST(LIBGPGMEPP_LT_REVISION)
118 AC_SUBST(LIBQGPGME_LT_CURRENT)
119 AC_SUBST(LIBQGPGME_LT_AGE)
120 AC_SUBST(LIBQGPGME_LT_REVISION)
124 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package])
125 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version of this package])
126 VERSION_NUMBER=m4_esyscmd(printf "0x%02x%02x%02x" mym4_version_major \
127 mym4_version_minor mym4_version_micro)
128 AC_SUBST(VERSION_NUMBER)
130 # We need to compile and run a program on the build machine. A
131 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
132 # the AC archive is broken for autoconf 2.57. Given that there is no
133 # newer version of that macro, we assume that it is also broken for
134 # autoconf 2.61 and thus we use a simple but usually sufficient
136 AC_MSG_CHECKING(for cc for build)
137 if test "$cross_compiling" = "yes"; then
138 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
140 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
142 AC_MSG_RESULT($CC_FOR_BUILD)
143 AC_ARG_VAR(CC_FOR_BUILD,[build system C compiler])
146 # Don't default to build static libs.
148 LT_INIT([win32-dll disable-static])
149 LT_LANG([Windows Resource])
151 # For now we hardcode the use of version scripts. It would be better
152 # to write a test for this or even implement this within libtool.
153 have_ld_version_script=no
156 have_ld_version_script=yes
159 have_ld_version_script=yes
162 AC_DEFINE(_XOPEN_SOURCE, 500, Activate POSIX interface on MacOS X)
166 AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
172 component_system=None
173 have_dosish_system=no
174 have_android_system=no
179 available_languages="cl cpp python qt"
180 default_languages="cl cpp python qt"
186 have_w32ce_system=yes
189 have_android_system=yes
193 *-mingw32ce*|*-mingw32*)
194 have_dosish_system=yes
196 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
197 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
198 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
199 G13_DEFAULT='c:\\gnupg\\g13.exe'
200 #component_system='COM+'
203 AC_ARG_ENABLE(w32-glib,
204 AC_HELP_STRING([--enable-w32-glib], [build GPGME Glib for W32]),
205 build_w32_glib=$enableval)
209 AC_CHECK_LIB(pthread,pthread_create,have_pthread=yes)
210 if test "$have_pthread" = yes; then
211 AC_DEFINE(HAVE_PTHREAD, ,[Define if we have pthread.])
214 # XXX: Probably use exec-prefix here?
215 # GPG_DEFAULT='/usr/bin/gpg'
216 # GPGSM_DEFAULT='/usr/bin/gpgsm'
217 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
218 # G13_DEFAULT='/usr/bin/g13'
222 if test "$have_dosish_system" = yes; then
223 AC_DEFINE(HAVE_DOSISH_SYSTEM,1,
224 [Defined if we run on some of the PCDOS like systems
225 (DOS, Windoze. OS/2) with special properties like
228 AM_CONDITIONAL(HAVE_DOSISH_SYSTEM, test "$have_dosish_system" = yes)
230 if test "$have_w32_system" = yes; then
231 AC_DEFINE(HAVE_W32_SYSTEM,1,
232 [Defined if we run on any kind of W32 API based system])
234 AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)
236 if test "$have_w64_system" = yes; then
237 AC_DEFINE(HAVE_W64_SYSTEM,1,
238 [Defined if we run on a 64 bit W32 API based system])
240 AM_CONDITIONAL(HAVE_W64_SYSTEM, test "$have_w64_system" = yes)
242 if test "$have_w32ce_system" = yes; then
243 AC_DEFINE(HAVE_W32CE_SYSTEM,1,
244 [Defined if we run on a W32 CE API based system])
246 AM_CONDITIONAL(HAVE_W32CE_SYSTEM, test "$have_w32ce_system" = yes)
248 if test "$have_android_system" = yes; then
249 AC_DEFINE(HAVE_ANDROID_SYSTEM,1, [Defined if we build for an Android system])
251 AM_CONDITIONAL(HAVE_ANDROID_SYSTEM, test "$have_android_system" = yes)
253 AM_CONDITIONAL(BUILD_W32_GLIB, test "$build_w32_glib" = yes)
255 AM_CONDITIONAL(HAVE_PTHREAD, test "$have_pthread" = "yes")
258 AC_ARG_ENABLE([fixed-path],
259 AC_HELP_STRING([--enable-fixed-path=PATH],
260 [locate binaries only via this PATH]),
261 [fixed_search_path="$enableval"],
262 [fixed_search_path=""])
263 if test x$fixed_search_path != x ; then
264 AC_DEFINE_UNQUOTED(FIXED_SEARCH_PATH, "$fixed_search_path",
265 [Locate binaries only via this PATH])
269 # Note: You need to declare all possible langauges also in
270 # lang/Makefile.am's DIST_SUBDIRS.
271 AC_ARG_ENABLE([languages],
272 AC_HELP_STRING([--enable-languages=languages],
273 [enable only specific language bindings]),
274 [enabled_languages=`echo $enableval | \
275 tr ',:' ' ' | tr '[A-Z]' '[a-z]' | \
277 [enabled_languages="maybe"])
278 if test "x$enabled_languages" = "x" \
279 -o "$enabled_languages" = "no"; then
283 # If languages are explicitly set missing requirements
284 # for the languages are treated as errors otherwise
285 # there will be a warning.
287 if test "x$enabled_languages" = "xmaybe"; then
289 enabled_languages="$default_languages"
292 for language in $enabled_languages; do
293 LIST_MEMBER($language, $available_languages)
294 if test "$found" = "0"; then
295 AC_MSG_ERROR([unsupported language binding specified])
301 # Enable C++ 11 if cpp language is requested
302 LIST_MEMBER("cpp", $enabled_languages)
303 if test "$found" = "1"; then
304 AX_CXX_COMPILE_STDCXX(11, noext, optional)
305 if test "$HAVE_CXX11" != "1"; then
306 if test "$explicit_languages" = "1"; then
309 *** A compiler with c++11 support is required for the c++ binding.
312 enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
313 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
316 *** No c++11 support detected. C++ and Qt bindings will be disabled.
322 # Check that if qt is enabled cpp also is enabled
323 LIST_MEMBER("qt", $enabled_languages)
324 if test "$found" = "1"; then
325 # We need to ensure that in the langauge order qt comes after cpp
326 # so we remove qt first and explicitly add it as last list member.
327 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
328 LIST_MEMBER("cpp", $enabled_languages)
329 if test "$found" = "0"; then
332 *** Qt language binding depends on cpp binding.
336 if test "$have_qt5_libs" != "yes"; then
337 if test "$explicit_languages" = "1"; then
340 *** Qt5 (Qt5Core) is required for Qt binding.
345 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
349 enabled_languages=`echo $enabled_languages qt`
351 AC_CHECK_PROGS([DOXYGEN], [doxygen])
352 if test -z "$DOXYGEN";
353 # This is not highlighted becase it's not really important.
354 then AC_MSG_WARN([Doxygen not found - Qt binding doc will not be built.])
356 AC_CHECK_PROGS([GRAPHVIZ], [dot])
357 if test -z "$GRAPHVIZ";
358 then AC_MSG_WARN([Graphviz not found - Qt binding doc will not have diagrams.])
362 AM_CONDITIONAL([HAVE_DOXYGEN],
363 [test -n "$DOXYGEN"])
364 if test -n "$GRAPHVIZ"; then
372 LIST_MEMBER("python", $enabled_languages)
373 if test "$found" = "1"; then
375 if test -z "$SWIG"; then
376 if test "$explicit_languages" = "1"; then
379 *** You need SWIG to build the Python bindings.
382 enabled_languages=$(echo $enabled_languages | sed 's/python//')
385 AM_PATH_PYTHON([3.4])
387 if test -z "$PYTHON_VERSION"; then
388 if test "$explicit_languages" = "1"; then
391 *** Please install the python development packages.
394 enabled_languages=$(echo $enabled_languages | sed 's/python//')
400 AC_SUBST(ENABLED_LANGUAGES, $enabled_languages)
403 # Provide information about the build.
405 BUILD_REVISION="mym4_revision"
406 AC_SUBST(BUILD_REVISION)
407 AC_DEFINE_UNQUOTED(BUILD_REVISION, "$BUILD_REVISION",
408 [GIT commit id revision used to build this package])
411 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
413 BUILD_FILEVERSION="${BUILD_FILEVERSION}mym4_revision_dec"
414 AC_SUBST(BUILD_FILEVERSION)
416 AC_ARG_ENABLE([build-timestamp],
417 AC_HELP_STRING([--enable-build-timestamp],
418 [set an explicit build timestamp for reproducibility.
419 (default is the current time in ISO-8601 format)]),
420 [if test "$enableval" = "yes"; then
421 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
423 BUILD_TIMESTAMP="$enableval"
425 [BUILD_TIMESTAMP="<none>"])
426 AC_SUBST(BUILD_TIMESTAMP)
427 AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP",
428 [The time this package was configured for a build])
432 # Options to disable some regression tests
434 run_gpgconf_test="yes"
435 AC_ARG_ENABLE(gpgconf-test,
436 AC_HELP_STRING([--disable-gpgconf-test], [disable GPGCONF regression test]),
437 run_gpgconf_test=$enableval)
438 AM_CONDITIONAL(RUN_GPGCONF_TESTS, test "$run_gpgconf_test" = "yes")
441 AC_ARG_ENABLE(gpg-test,
442 AC_HELP_STRING([--disable-gpg-test], [disable GPG regression test]),
443 run_gpg_test=$enableval)
444 AM_CONDITIONAL(RUN_GPG_TESTS, test "$run_gpg_test" = "yes")
447 AC_ARG_ENABLE(gpgsm-test,
448 AC_HELP_STRING([--disable-gpgsm-test], [disable GPGSM regression test]),
449 run_gpgsm_test=$enableval)
450 AM_CONDITIONAL(RUN_GPGSM_TESTS, test "$run_gpgsm_test" = "yes")
453 AC_ARG_ENABLE(g13-test,
454 AC_HELP_STRING([--disable-g13-test], [disable G13 regression test]),
455 run_g13_test=$enableval)
456 AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes")
459 # Checks for header files.
460 AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h
461 unistd.h sys/time.h sys/types.h sys/stat.h])
466 AC_CHECK_SIZEOF(unsigned int)
471 # A simple compile time check in gpgme.h for GNU/Linux systems that
472 # prevents a file offset bits mismatch between gpgme and the application.
473 NEED__FILE_OFFSET_BITS=0
474 if test "$have_w32_system" != yes; then
475 case "$ac_cv_sys_file_offset_bits" in
476 "" | no | unknown) ;;
478 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
482 AC_SUBST(NEED__FILE_OFFSET_BITS)
484 # Figure out platform dependent typedefs for gpgme.h
485 if test "$have_w32_system" = yes; then
486 INSERT__TYPEDEFS_FOR_GPGME_H="
489 typedef int64_t gpgme_off_t;
490 typedef int64_t gpgme_ssize_t;
492 typedef long gpgme_off_t;
493 typedef long gpgme_ssize_t;
495 API__OFF_T="gpgme_off_t"
496 API__SSIZE_T="gpgme_ssize_t"
498 INSERT__TYPEDEFS_FOR_GPGME_H="
499 #include <sys/types.h>
500 typedef off_t gpgme_off_t;
501 typedef ssize_t gpgme_ssize_t;"
503 API__SSIZE_T="ssize_t"
505 AC_SUBST(INSERT__TYPEDEFS_FOR_GPGME_H)
506 AM_SUBST_NOTMAKE(INSERT__TYPEDEFS_FOR_GPGME_H)
508 AM_SUBST_NOTMAKE(API__OFF_T)
509 AC_SUBST(API__SSIZE_T)
510 AM_SUBST_NOTMAKE(API__SSIZE_T)
512 # Checks for compiler features.
513 if test "$GCC" = yes; then
514 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
515 if test "$have_w32_system" = yes; then
516 CFLAGS="$CFLAGS -mms-bitfields"
520 # Only used for debugging, so no serious test needed (for actual
521 # functionality you have to test libc as well, this only tests the
523 AC_CACHE_CHECK([for __thread],[gpgme_cv_tls_works],
524 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([__thread int foo;])],
525 gpgme_cv_tls_works=yes,gpgme_cv_tls_works=no))
526 if test "$gpgme_cv_tls_works" = yes; then
527 AC_DEFINE(HAVE_TLS, [1], [Define if __thread is supported])
531 # Checks for library functions.
532 AC_MSG_NOTICE([checking for libraries])
536 AC_REPLACE_FUNCS(vasprintf)
537 if test "$ac_cv_func_vasprintf" != yes; then
541 # Try to find a thread-safe version of ttyname().
542 gnupg_REPLACE_TTYNAME_R
543 if test "$ac_cv_func_ttyname_r" != yes; then
546 *** ttyname() is not thread-safe and ttyname_r() does not exist
550 # Try to find a thread-safe version of getenv().
551 have_thread_safe_getenv=no
553 if test $GLIBC21 = yes; then
554 have_thread_safe_getenv=yes
556 if test $have_thread_safe_getenv = yes; then
557 AC_DEFINE(HAVE_THREAD_SAFE_GETENV, [1], [Define if getenv() is thread-safe])
560 AC_CHECK_FUNCS(getenv_r, have_getenv_r=yes)
561 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
564 *** getenv() is not thread-safe and getenv_r() does not exist
568 # For converting time strings to seconds since Epoch, we need the timegm
570 AC_CHECK_FUNCS(timegm)
571 if test "$ac_cv_func_timegm" != yes; then
574 *** timegm() not available - a non-thread-safe kludge will be used
575 *** and the TZ variable might be changed at runtime.
579 AC_CHECK_FUNCS(setlocale)
581 # Checking for libgpg-error.
583 AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
584 have_gpg_error=yes, have_gpg_error=no)
585 AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME,
586 [The default error source for GPGME.])
590 AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
591 have_libassuan=yes, have_libassuan=no)
592 if test "$have_libassuan" = "yes"; then
593 AC_DEFINE_UNQUOTED(GPGME_LIBASSUAN_VERSION, "$libassuan_version",
594 [version of the libassuan library])
603 AC_CHECK_FUNCS(funopen)
604 if test $ac_cv_func_funopen != yes; then
605 # No funopen but we can implement that in terms of fopencookie.
606 AC_CHECK_FUNCS(fopencookie)
607 if test $ac_cv_func_fopencookie = yes; then
608 AC_REPLACE_FUNCS(funopen)
612 *** No implementation of fopencookie or funopen available
617 # Check for getgid etc
618 AC_CHECK_FUNCS(getgid getegid)
621 # Replacement functions.
622 AC_REPLACE_FUNCS(stpcpy)
623 AC_REPLACE_FUNCS(setenv)
625 # Assuan check for descriptor passing.
626 AC_CHECK_MEMBER(struct cmsghdr.cmsg_len,
627 [supports_descriptor_passing=yes],
628 [supports_descriptor_passing=no
631 *** Data structure for sending ancillary data missing.
632 *** Descriptor passing won't work.
637 #include <sys/types.h>
638 #include <sys/socket.h>
647 dnl There seems to be a problem with Apple and decriptor passing.
648 dnl Until we found a solution we change the default to no.
652 use_descriptor_passing=no
655 use_descriptor_passing=yes
658 AC_ARG_ENABLE(fd-passing,
659 AC_HELP_STRING([--disable-fd-passing], [do not use FD passing]),
660 use_descriptor_passing=$enableval)
662 if test "$supports_descriptor_passing" != "yes"; then
663 use_descriptor_passing=no
666 if test "$use_descriptor_passing" = "yes"; then
667 AC_DEFINE(USE_DESCRIPTOR_PASSING,1,
668 [Defined if descriptor passing is enabled and supported])
671 AM_CONDITIONAL(USE_DESCRIPTOR_PASSING, test "$use_descriptor_passing" = "yes")
675 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
678 if test "$uiserver" != "no"; then
679 AC_DEFINE(ENABLE_UISERVER, 1,
680 [Defined if we are building with uiserver support.])
682 AM_CONDITIONAL(HAVE_UISERVER, test "$uiserver" != "no")
685 # Add a few constants to help porting to W32
686 AH_VERBATIM([SEPCONSTANTS],
688 /* Separators as used in $PATH and file name. */
689 #ifdef HAVE_DOSISH_SYSTEM
690 #define PATHSEP_C ';'
691 #define DIRSEP_C '\\'
692 #define DIRSEP_S "\\"
694 #define PATHSEP_C ':'
701 /* Definition of GCC specific attributes. */
703 # define GPGME_GCC_A_PURE __attribute__ ((__pure__))
705 # define GPGME_GCC_A_PURE
708 /* Under WindowsCE we need gpg-error's strerror macro. */
709 #define GPG_ERR_ENABLE_ERRNO_MACROS 1
711 #define CRIGHTBLURB "Copyright (C) 2000 Werner Koch\n" \
712 "Copyright (C) 2001--2015 g10 Code GmbH\n"
716 # Substitution used for gpgme-config
717 GPGME_CONFIG_LIBS="-lgpgme"
718 GPGME_CONFIG_CFLAGS=""
719 GPGME_CONFIG_HOST="$host"
720 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
721 AC_SUBST(GPGME_CONFIG_API_VERSION)
722 AC_SUBST(GPGME_CONFIG_LIBS)
723 AC_SUBST(GPGME_CONFIG_CFLAGS)
724 AC_SUBST(GPGME_CONFIG_HOST)
725 AC_SUBST(GPGME_CONFIG_AVAIL_LANG)
728 LTLIBOBJS=`echo "$LIB@&t@OBJS" |
729 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
732 # Some checks for gpgme-tool
733 # Done at top: AC_CHECK_HEADER([argp.h])
734 AC_CHECK_TYPES([error_t], [],
735 [AC_DEFINE([error_t], [int],
736 [Define to a type to use for `error_t' if it is not otherwise available.])],
737 [#include <errno.h>])
740 # A substitution to set generated files in a Emacs buffer to read-only.
741 AC_SUBST(emacs_local_vars_begin, [['Local][ ][Variables:']])
742 AC_SUBST(emacs_local_vars_read_only, ['buffer-read-only: t'])
743 AC_SUBST(emacs_local_vars_end, ['End:'])
747 if test "$have_gpg_error" = "no"; then
751 *** You need libgpg-error to build this program.
752 ** This library is for example available at
753 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
754 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
757 if test "$have_libassuan" = "no"; then
761 *** You need libassuan to build this program.
762 *** This library is for example available at
763 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
764 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
768 if test "$die" = "yes"; then
771 *** Required libraries not found. Please consult the above messages
772 *** and install them before running configure again.
778 # Create config files
780 AC_CONFIG_FILES(Makefile src/Makefile
784 tests/opassuan/Makefile
788 AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)
789 AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile)
790 AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig.cmake.in)
791 AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfigVersion.cmake)
792 AC_CONFIG_FILES(lang/cpp/src/gpgmepp_version.h)
793 AC_CONFIG_FILES(lang/qt/Makefile lang/qt/src/Makefile)
794 AC_CONFIG_FILES(lang/qt/src/QGpgmeConfig.cmake.in)
795 AC_CONFIG_FILES(lang/qt/src/QGpgmeConfigVersion.cmake)
796 AC_CONFIG_FILES(lang/qt/tests/Makefile)
797 AC_CONFIG_FILES(lang/qt/src/qgpgme_version.h)
798 AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd])
799 AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([lang/qt/doc/Doxyfile])])
800 AC_CONFIG_FILES(lang/qt/doc/Makefile)
801 AC_CONFIG_FILES([lang/python/Makefile
803 lang/python/pyme/version.py
804 lang/python/tests/Makefile])
808 GPGME v${VERSION} has been configured as follows:
810 Revision: mym4_revision (mym4_revision_dec)
814 FD Passing: $use_descriptor_passing
815 GPGME Pthread: $have_pthread
817 Language bindings: $enabled_languages
819 if test "x${gpg_config_script_warn}" != x; then
821 Mismatches between the target platform and the to
822 be used libraries have been been detected for:
823 ${gpg_config_script_warn}
824 Please check above for warning messages.