5762865 [rkeene@sledge /home/rkeene/devel/backuppcd/all/backuppcd-200601171056]$ cat -n configure.ac
 1 AC_REVISION($Revision $)
 2 AC_INIT(backuppcd, 0.1.1)
 3 AC_CONFIG_HEADER(config.h)
 4 
 5 dnl Check OS info
 6 DC_CHK_OS_INFO
 7 
 8 dnl Checks for programs.
 9 AC_PROG_CC
10 AC_PROG_MAKE_SET
11 AC_PROG_INSTALL
12 AC_PROG_RANLIB
13 AC_AIX
14 AC_GNU_SOURCE
15 AC_CHECK_TOOL(AR, ar, true)
16 
17 AC_CHECK_HEADERS(stdlib.h string.h unistd.h time.h sys/time.h sys/types.h signal.h syslog.h sys/select.h netinet/in.h
	arpa/inet.h sys/socket.h ssl.h openssl/ssl.h ssl/ssl.h fcntl.h dirent.h ctype.h assert.h endian.h stdarg.h utime.h
	fnmatch.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h sys/resource.h)
18 AC_HEADER_TIME
19 AC_CHECK_FUNCS(sysinfo openlog syslog setsid fork fcntl stat lstat lchown symlink readlink signal getenv utime statfs
	getmntinfo setpriority)
20 AC_REPLACE_FUNCS(htonll ntohll chown link fnmatch)
21 
22 DC_DO_NETWORK
23 
24 DC_DO_TYPE(uint64_t, unsigned, 8)
25 DC_DO_TYPE(int64_t, signed, 8)
26 DC_DO_TYPE(uint32_t, unsigned, 4)
27 DC_DO_TYPE(int32_t, signed, 4)
28 DC_DO_TYPE(uint16_t, unsigned, 2)
29 DC_DO_TYPE(int16_t, signed, 2)
30 
31 dnl Checks for Win32 specific things.
32 DC_DO_WIN32
33 
34 dnl Large file support
35 AC_SYS_LARGEFILE
36 AC_FUNC_FSEEKO
37 AC_TYPE_OFF_T
38 
39 dnl Check for libconfig
40 DC_ASK_OPTLIB(config, lc_process, libconfig.h, [Process configuration files using libconfig], libconfig, HAVE_LIBCONFIG,
	HAVE_LIBCONFIG_H,, [
41     AC_MSG_ERROR([Libconfig is required.  http://www.rkeene.org/oss/libconfig/])
42 ])
43 
44 dnl Check for libconfig
45 DC_ASK_OPTLIB(opennet, fopen_net,opennet.h, [Support opennet (required for automatic updates)], opennet,
	HAVE_LIBOPENNET, HAVE_OPENNET_H)
46 
47 DC_ASK_OPTLIB(ssl, SSL_library_init,, [Allow encrypted connections using SSL], openssl, HAVE_LIBSSL,
	THIS_MAKES_STUPID_AUTOHEADER_HAPPY, [-lwsock32 -lcrypto -lgdi32])
48 
49 AC_ARG_WITH(nt4, AC_HELP_STRING([--with-nt4], [Enable support for Windows NT 4 (only applies for Windows)]), [
	winntfoursupport=$withval ], [ winntfoursupport=no ])
50 if test "$winntfoursupport" = "no"; then
51     AC_DEFINE(NO_WIN32_NT4, [1], [Define if you wish to disallow support for Windows NT 4])
52 fi
53 
54 AC_ARG_WITH(masterpw, AC_HELP_STRING([--with-masterpw], [Enable support for a hard-coded master password]), [
	masterpw=$withval ], [ masterpw=no ])
55 if test "$masterpw" != "no"; then
56     if test "$masterpw" = "yes"; then
57         AC_MSG_ERROR([Master password must be specified on the command line.])
58     fi
59     AC_DEFINE_UNQUOTED(MASTER_PASSWORD, "$masterpw", [Define to the master password])
60 fi
61 
62 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging support.]), [ debugenabled=$enableval ], [
	debugenabled=no ])
63 if test "$debugenabled" = "no"; then
64     AC_DEFINE(NDEBUG, [1], [Define if you wish to disable debugging support])
65 else
66     AC_DEFINE(DEBUG, [1], [Define if you wish to enable debugging support])
67 fi
68 
69 AC_C_BIGENDIAN(,, [
70     AC_DEFINE(ENDIAN_UNKNOWN, [1], [Define this to 1 if you do not know what endian-ness your platform is.])
71 ])
72 
73 AC_ARG_ENABLE(static, AC_HELP_STRING([--enable-static], [Enable (mostly) static build.]), [ staticbuild=$enableval ], [
	staticbuild=no ])
74 if test ! "$staticbuild" = "no"; then
75     DC_MAKE_STATIC
76 fi
77 
78 
79 AC_OUTPUT(Makefile)
5762866 [rkeene@sledge /home/rkeene/devel/backuppcd/all/backuppcd-200601171056]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2005-12-05 22:18:32