forked from Sjord/checkmate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
35 lines (26 loc) · 1.02 KB
/
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT([checkmate], [0.21], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR([mpck/main.c])
# AC_CONFIG_HEADER(config.h)
# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADER([getopt.h], , CPPFLAGS="$CPPFLAGS -I../libgnugetopt-1.2")
AC_CHECK_HEADERS([unistd.h errno.h getopt.h malloc.h memory.h sys/mman.h fcntl.h])
AC_HEADER_DIRENT
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CHECK_FUNCS([vsnprintf])
AC_CONFIG_LIBOBJ_DIR([libgnugetopt-1.2])
AC_CHECK_FUNC([getopt_long], [GETOPT_LONG_LIB=], [GETOPT_LONG_LIB=../libgnugetopt-1.2/libgnugetopt.a] )
AC_SUBST(GETOPT_LONG_LIB)
AM_CONDITIONAL(COMPILE_GETOPT_LIB, test x$GETOPT_LONG_LIB != x)
AC_PROG_RANLIB
AC_CONFIG_FILES([Makefile mpck/Makefile libgnugetopt-1.2/Makefile])
AC_OUTPUT