root/xsel/trunk/configure.ac

Revision 218, 1.1 kB (checked in by conrad, 10 months ago)

Release 1.2.0

Line 
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT([xsel.c])
3 AM_INIT_AUTOMAKE(xsel, 1.2.0)
4 AC_CONFIG_SRCDIR([xsel.c])
5 AM_CONFIG_HEADER(config.h)
6
7 # Checks for programs.
8 AC_ISC_POSIX
9 AC_PROG_CC
10 AC_PROG_CPP
11 AC_PROG_INSTALL
12 AC_PROG_MAKE_SET
13
14 # Checks for libraries.
15 AC_PATH_XTRA
16 AC_SUBST(X_CFLAGS)
17 AC_SUBST(X_LDFLAGS)
18 AC_SUBST(X_LIBS)
19 AC_SUBST(X_EXTRA_LIBS)
20
21 AC_CHECK_LIB([X11], [XOpenDisplay])
22
23 # Error out on compile warnings
24 dnl Add some useful warnings if we have gcc.
25 dnl changequote(,)dnl
26 if test "x$ac_cv_prog_gcc" = xyes ; then
27   CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Werror -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused"
28 fi
29 dnl changequote([,])dnl
30
31 # Checks for header files.
32 AC_HEADER_STDC
33 AC_CHECK_HEADERS([errno.h fcntl.h stdlib.h string.h sys/time.h unistd.h])
34
35 # Checks for typedefs, structures, and compiler characteristics.
36 AC_C_CONST
37 AC_TYPE_PID_T
38 AC_TYPE_SIZE_T
39 AC_CHECK_MEMBERS([struct stat.st_blksize])
40 AC_HEADER_TIME
41 AC_TYPE_UID_T
42
43 # Checks for library functions.
44 AC_FUNC_FORK
45 AC_FUNC_MALLOC
46 AC_TYPE_SIGNAL
47 AC_CHECK_FUNCS([dup2 select strdup strerror strtol])
48
49 AC_CONFIG_FILES([Makefile])
50 AC_OUTPUT
Note: See TracBrowser for help on using the browser.