-
Notifications
You must be signed in to change notification settings - Fork 14
/
configure.ac
50 lines (40 loc) · 1.04 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dnl Process this file with autoconf to produce a configure script.
AC_INIT([autocutsel],[0.10.1])
AC_CONFIG_SRCDIR([autocutsel.c])
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_HEADERS(config.h)
dnl Checks for programs.
AC_PROG_CC
LT_INIT
AC_PATH_XTRA
if test "$no_x" = "yes"
then
AC_MSG_ERROR([Unable to find X libraries])
fi
AC_CHECK_LIB(Xext, main, LIBS="$LIBS -lXext", [], $X_PRE_LIB $X_LIBS $LIBS -lX11 $X_EXTRA_LIBS)
LIBS="$X_PRE_LIBS $X_LIBS $LIBS -lX11 $X_EXTRA_LIBS"
AC_CHECK_LIB(Xaw, main,
LIBS="$LIBS -lXaw",
AC_MSG_ERROR(Unable to find Xaw library),
$LIBS)
AC_CHECK_LIB(Xt, XtDisplay,
LIBS="$LIBS -lXt",
AC_MSG_ERROR(Unable to find Xt library),
$LIBS)
AC_CHECK_LIB(Xmu, XmuGetHostname,
LIBS="$LIBS -lXmu",
AC_MSG_ERROR(Unable to find Xmu library),
$LIBS)
dnl Checks for library functions.
AC_FUNC_SETPGRP
dnl Warnings
AC_MSG_CHECKING([whether to enable -Wall])
if test -n "$GCC"; then
AC_MSG_RESULT(adding -Wall to CFLAGS.)
CFLAGS="$CFLAGS -Wall"
else
AC_MSG_RESULT(no)
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT