File: geanypg.m4

package info (click to toggle)
geany-plugins 2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,832 kB
  • sloc: ansic: 107,883; sh: 5,567; makefile: 1,531; sed: 16
file content (30 lines) | stat: -rw-r--r-- 940 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
AC_DEFUN([GP_CHECK_GEANYPG],
[
    GP_ARG_DISABLE([geanypg], [auto])
    if test "$enable_geanypg" = "auto"; then
        enable_geanypg=no
        m4_ifdef([AM_PATH_GPGME], [AM_PATH_GPGME(, enable_geanypg=auto)])
    elif test "$enable_geanypg" = "yes"; then
        m4_ifdef([AM_PATH_GPGME],
                [AM_PATH_GPGME(,, [AC_MSG_ERROR([Could not find GPGME. Please define GPGME_CFLAGS and GPGME_LIBS if it is installed.])])],
                [AC_MSG_ERROR([Could not find GPGME. Please install it])])

    fi

    AS_IF([test "$enable_geanypg" != "no"], [
        AC_CHECK_FUNCS([fdopen],,[
            AS_IF([test "$enable_geanypg" = "yes"],
                  [AC_MSG_ERROR([Could not find fdopen])],
                  [enable_geanypg=no])
        ])
    ])

    # necessary for gpgme
    AC_SYS_LARGEFILE

    GP_COMMIT_PLUGIN_STATUS([GeanyPG])
    AC_CONFIG_FILES([
        geanypg/Makefile
        geanypg/src/Makefile
    ])
])