]> cygwin.com Git - cygwin-apps/cygutils.git/blob - configure.ac
5354872d8039ee6c1229c52b4d22a909e68c4bc4
[cygwin-apps/cygutils.git] / configure.ac
1 # Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.52)
3 AC_INIT(cygutils, 0.9.6, cwilson@ece.gatech.edu)
4 AC_CONFIG_SRCDIR([config.h.in])
5 AM_CONFIG_HEADER([config.h])
6 AM_INIT_AUTOMAKE(cygutils, 0.9.6)
7 AM_MAINTAINER_MODE
8
9 # Checks for programs.
10 AC_PROG_CC
11 AC_PROG_INSTALL
12
13 # Checks for libraries.
14 AC_CHECK_LIB(popt, poptPrintHelp)
15 AC_CHECK_LIB(cygipc, semget)
16 AC_CHECK_LIB(intl, gettext)
17
18 # Checks for header files.
19 AC_HEADER_STDC
20 AC_CHECK_HEADERS([errno.h limits.h malloc.h stdlib.h string.h popt.h windows.h])
21 AC_CHECK_HEADERS([sys/sem.h sys/shm.h sys/msg.h ])
22 AC_CHECK_HEADERS([langinfo.h libintl.h locale.h sys/param.h sys/fcntl.h unistd.h])
23 AC_CHECK_HEADERS([wchar.h wctype.h])
24
25 # Checks for typedefs, structures, and compiler characteristics.
26 AC_C_CONST
27 AC_STRUCT_TM
28
29 # Checks for library functions.
30 AC_FUNC_MALLOC
31 AC_CHECK_FUNCS([strcasecmp strchr strdup strrchr strerror])
32 AC_CHECK_FUNCS([bzero getcwd memset nl_langinfo setlocale])
33 AC_FUNC_LSTAT
34 AC_FUNC_STAT
35 AC_FUNC_VPRINTF
36 dnl should only exist on windows, I hope
37 AC_CHECK_STDCALL_FUNC([OpenClipboard],[void *])
38
39 dnl Set Conditionals for Makefile.am
40 AM_CONDITIONAL(WITH_WINDOWS_PROGRAMS, test "$ac_cv_func_OpenClipboard" = yes)
41 AM_CONDITIONAL(WITH_CYGIPC_PROGRAMS, test "$ac_cv_lib_cygipc_semget" = yes)
42
43 AC_CONFIG_FILES([Makefile src-gpl/Makefile src-pd/Makefile src-bsd/Makefile])
44 AC_OUTPUT
This page took 0.035939 seconds and 5 git commands to generate.