File: configure.ac

package info (click to toggle)
yubikey-server-c 0.5-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 424 kB
  • sloc: sh: 1,113; ansic: 700; sql: 21; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (2)
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
31
32
33

AC_INIT([yubikey-server-c], [0.5],
  [tfheen@err.no], [yubikey-server-c],
  )
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC

AC_MSG_CHECKING([for PostgreSQL libraries])

AC_PATH_PROG([PG_CONFIG], [pg_config], [])
if test "$PG_CONFIG" != "no"; then
   POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
   POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir` -lpq"
   AC_SUBST([POSTGRESQL_CFLAGS])
   AC_SUBST([POSTGRESQL_LDFLAGS])
   AC_MSG_RESULT([yes])
else
   AC_MSG_ERROR([$PG_CONFIG is not installed - install it and postgresql headers?])
fi

PKG_CHECK_MODULES([libmicrohttpd], [libmicrohttpd])

AM_PATH_LIBGCRYPT
AC_CHECK_LIB([yubikey], [yubikey_modhex_decode],[], AC_MSG_ERROR([libyubikey is not installed or not new enough]))
AM_CONFIG_HEADER(src/config.h)
AC_CONFIG_FILES([
  Makefile
  src/Makefile
])

AC_OUTPUT