]> cygwin.com Git - cygwin-apps/cygutils.git/blame_incremental - configure.ac
Fold in latest clip fixes
[cygwin-apps/cygutils.git] / configure.ac
... / ...
CommitLineData
1# Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.69)
3AC_INIT(cygutils, 1.4.17, cygwin@cygwin.com)
4AC_CONFIG_SRCDIR([config.h.in])
5AC_CONFIG_AUX_DIR([build-aux])
6AC_CONFIG_MACRO_DIR([m4])
7AM_INIT_AUTOMAKE([1.12 silent-rules dist-xz no-dist-gzip])
8AC_CONFIG_HEADER([config.h])
9AM_MAINTAINER_MODE
10
11VERSION_MAJOR=`echo $VERSION | cut -f1 -d.`
12VERSION_MINOR=`echo $VERSION | cut -f2 -d.`
13VERSION_PATCH=`echo $VERSION | cut -f3 -d.`
14
15AC_SUBST(VERSION_MAJOR)
16AC_SUBST(VERSION_MINOR)
17AC_SUBST(VERSION_PATCH)
18
19AC_CANONICAL_HOST
20
21# Checks for programs.
22AC_PROG_CC
23AC_PROG_CXX
24AM_PROG_CC_C_O
25AC_PROG_INSTALL
26AC_PROG_LN_S
27AM_PROG_AR
28
29LT_INIT([win32-dll dlopen disable-static])
30LT_LANG([Windows Resource])
31
32# Checks for libraries.
33AC_CHECK_LIB(popt, poptPrintHelp,[
34 AC_DEFINE(HAVE_LIBPOPT,1,[Define to 1 if you have the `popt' library (-lpopt).])])dnl '`
35AC_CHECK_FUNC(shmget,[
36 HAVE_INTRINSIC_IPC="yes"
37 ],[
38 HAVE_INTRINSIC_IPC="no"
39 ])
40
41# AC_CHECK_LIB(intl, gettext)
42AM_GNU_GETTEXT(external,[],[])
43AM_GNU_GETTEXT_VERSION([0.18])
44BUILD_INCLUDED_LIBINTL=no
45USE_INCLUDED_LIBINTL=no
46AC_SUBST(BUILD_INCLUDED_LIBINTL)
47AC_SUBST(USE_INCLUDED_LIBINTL)
48
49CYGICONS_DLL_VERSION=0
50AC_SUBST(CYGICONS_DLL_VERSION)
51
52# Checks for header files.
53AC_HEADER_STDC
54AC_HEADER_TIME
55AC_CHECK_HEADERS([stdlib.h stddef.h errno.h limits.h malloc.h \
56ctype.h getopt.h popt.h windows.h])
57AC_CHECK_HEADERS([string.h strings.h], break)
58AC_CHECK_HEADERS([stdarg.h varargs.h], break)
59AC_CHECK_HEADERS([sys/ipc.h sys/sem.h sys/shm.h sys/msg.h])
60AC_CHECK_HEADERS([langinfo.h sys/param.h fcntl.h unistd.h \
61termios.h sys/ioctl.h])
62AC_CHECK_HEADERS([wchar.h])
63AC_CHECK_HEADERS([locale.h])
64AC_CHECK_FUNCS([setlocale])
65AC_HEADER_TIOCGWINSZ
66
67# Checks for typedefs, structures, and compiler characteristics.
68AC_C_CONST
69AC_STRUCT_TM
70
71# Checks for library functions.
72AC_FUNC_MALLOC
73AC_CHECK_FUNCS([strcasecmp strchr strdup strrchr strerror])
74AC_CHECK_FUNCS([bzero getcwd memset nl_langinfo gettimeofday])
75AC_FUNC_LSTAT
76AC_FUNC_STAT
77AC_FUNC_VPRINTF
78dnl should only exist on windows, I hope
79AC_CHECK_STDCALL_FUNC([OpenClipboard],[void *])
80AC_CHECK_DECLS([cygwin_conv_path], [],[
81case "$host" in
82*cygwin* ) AC_MSG_ERROR([At least cygwin-1.7 is required]) ;;
83esac],dnl
84 [[#include <sys/cygwin.h>]])
85
86dnl Set Conditionals for Makefile.am
87AM_CONDITIONAL(WITH_WINDOWS_PROGRAMS, test "$ac_cv_func_OpenClipboard" = yes)
88AM_CONDITIONAL(WITH_NATIVE_IPC_PROGRAMS, test "$HAVE_INTRINSIC_IPC" = yes)
89host_is_cygwin=no
90case "$host" in
91*cygwin* ) host_is_cygwin=yes ;;
92esac
93AM_CONDITIONAL(WITH_CYGWIN_SPECIFIC_PROGRAMS, test "$host_is_cygwin" = yes)
94
95AC_CONFIG_FILES([Makefile po/Makefile.in src/cygicons/cygicons.rc])
96
97AC_OUTPUT
This page took 0.022878 seconds and 6 git commands to generate.