-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
39 lines (28 loc) · 1011 Bytes
/
configure.ac
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
34
35
36
37
38
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([pg-password-generator], [1.0], [[email protected]])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
AC_PREFIX_DEFAULT([/usr])
AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CPP
AC_PROG_CC
# Use the C language and compiler for the following checks
AC_LANG([C])
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lpq':
AC_CHECK_LIB([pq], [main])
PKG_CHECK_MODULES([LIBPQ], [libpq], [have_libpq=yes])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([postgresql/libpq-fe.h libpq-fe.h],
[libpq_fe_found=1; break;])
AS_IF([test "x$libpq_fe_found" != "x1"],
[AC_MSG_ERROR([pkg-config unable to find "libpq-fe.h".])])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT