-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
77 lines (61 loc) · 1.96 KB
/
configure.in
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# configure.in
# Original Author was [email protected]
# Modified by Stephan Kulow and Janos Farkas
# Modified by Kurt Granroth ([email protected])
# Modified by Carsten Pfeiffer ([email protected])
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acinclude.m4) dnl a source file from your sub dir
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM
dnl This is your app name and version number. Change as necessary
AM_INIT_AUTOMAKE(kuickshow, 0.6.1)
dnl make $KDEDIR the default for the installation
AC_PREFIX_DEFAULT(${KDEDIR:-/opt/kde})
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
AC_CHECK_COMPILERS
KDE_PROG_LIBTOOL
dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS
dnl I need to check for libsocket before testing X
AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lsocket -lnsl"]) dnl for Solaris
AC_SUBST(LIBSOCKET)
AC_PATH_KDE
AC_LANG_C
dnl Checks for libraries.
AC_CHECK_LIB(compat, main, [LIBCOMPAT="-lcompat"]) dnl for FreeBSD
AC_SUBST(LIBCOMPAT)
AC_CHECK_LIB(crypt, main, [LIBCRYPT="-lcrypt"]) dnl for BSD
AC_SUBST(LIBCRYPT)
AC_LANG_CPLUSPLUS
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/types.h sys/stat.h re_comp.h net/errno.h getopt.h sys/param.h)
AC_CHECK_FUNCS(flock)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME
dnl check if the compiler has bool
AC_CHECK_BOOL
dnl Checks for library functions. MISCOBJS is for kdecore
AC_CHECK_SETENV
dnl Check if Imlib is installed properly
AC_FIND_IMLIB_CONFIG
if test -z "$ac_imlib_config"; then
AC_FIND_GIF
AC_FIND_JPEG
AC_FIND_TIFF
AC_FIND_PNG
AC_FIND_IMLIB
fi
dnl output files
dnl Add all your Makefiles here. These are created by configure
AC_OUTPUT(Makefile \
src/Makefile \
pics/Makefile \
pics/toolbar/Makefile \
doc/Makefile \
doc/en/Makefile \
etc/Makefile \
po/Makefile)