openvpn 2.3.10
[tomato.git] / release / src / router / openvpn / configure.ac
blob773cdeddbb74c51fc65b98c853c9373b499415b8
1 dnl  OpenVPN -- An application to securely tunnel IP networks
2 dnl             over a single UDP port, with support for SSL/TLS-based
3 dnl             session authentication and key exchange,
4 dnl             packet encryption, packet authentication, and
5 dnl             packet compression.
6 dnl
7 dnl  Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
8 dnl  Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
9 dnl
10 dnl  This program is free software; you can redistribute it and/or modify
11 dnl  it under the terms of the GNU General Public License as published by
12 dnl  the Free Software Foundation; either version 2 of the License, or
13 dnl  (at your option) any later version.
14 dnl
15 dnl  This program is distributed in the hope that it will be useful,
16 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 dnl  GNU General Public License for more details.
19 dnl
20 dnl  You should have received a copy of the GNU General Public License
21 dnl  along with this program (see the file COPYING included with this
22 dnl  distribution); if not, write to the Free Software Foundation, Inc.,
23 dnl  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25 dnl Process this file with autoconf to produce a configure script.
27 AC_PREREQ(2.59)
29 m4_include(version.m4)
30 AC_INIT([PRODUCT_NAME], [PRODUCT_VERSION], [PRODUCT_BUGREPORT], [PRODUCT_TARNAME])
31 m4_include(compat.m4)
32 AC_DEFINE([OPENVPN_VERSION_RESOURCE], [PRODUCT_VERSION_RESOURCE], [Version in windows resource format])
34 AC_CONFIG_AUX_DIR([.])
35 AC_CONFIG_HEADERS([config.h])
36 AC_CONFIG_SRCDIR([src/openvpn/syshead.h])
37 AC_CONFIG_MACRO_DIR([m4])
39 dnl Initialize automake.  automake < 1.12 didn't have serial-tests and
40 dnl gives an error if it sees this, but for automake >= 1.13
41 dnl serial-tests is required so we have to include it.  Solution is to
42 dnl test for the version of automake (by running an external command)
43 dnl and provide it if necessary.  Note we have to do this entirely using
44 dnl m4 macros since automake queries this macro by running
45 dnl 'autoconf --trace ...'.
46 m4_define([serial_tests], [
47     m4_esyscmd([automake --version |
48                 head -1 |
49                 awk '{split ($NF,a,"."); if (a[1] == 1 && a[2] >= 12) { print "serial-tests" }}'
50     ])
52 AM_INIT_AUTOMAKE(foreign serial_tests) dnl NB: Do not [quote] this parameter.
53 AC_CANONICAL_HOST
54 AC_USE_SYSTEM_EXTENSIONS
56 AC_ARG_ENABLE(
57         [lzo],
58         [AS_HELP_STRING([--disable-lzo], [disable LZO compression support @<:@default=yes@:>@])],
59         ,
60         [enable_lzo="yes"]
63 AC_ARG_ENABLE(
64         [lzo-stub],
65         [AS_HELP_STRING([--enable-lzo-stub], [don't compile LZO compression support but still allow limited interoperability with LZO-enabled peers @<:@default=no@:>@])],
66         ,
67         [enable_lzo_stub="no"]
70 AC_ARG_ENABLE(
71         [crypto],
72         [AS_HELP_STRING([--disable-crypto], [disable crypto support @<:@default=yes@:>@])],
73         ,
74         [enable_crypto="yes"]
77 AC_ARG_ENABLE(
78         [ofb-cfb],
79         [AS_HELP_STRING([--disable-ofb-cfb], [disable support for OFB and CFB cipher modes @<:@default=yes@:>@])],
80         ,
81         [enable_crypto_ofb_cfb="yes"]
84 AC_ARG_ENABLE(
85         [ssl],
86         [AS_HELP_STRING([--disable-ssl], [disable SSL support for TLS-based key exchange @<:@default=yes@:>@])],
87         ,
88         [enable_ssl="yes"]
91 AC_ARG_ENABLE(
92         [x509-alt-username],
93         [AS_HELP_STRING([--enable-x509-alt-username], [enable the --x509-username-field feature @<:@default=no@:>@])],
94         ,
95         [enable_x509_alt_username="no"]
98 AC_ARG_ENABLE(
99         [multi],
100         [AS_HELP_STRING([--disable-multi], [disable client/server support (--mode server + client mode) @<:@default=yes@:>@])],
101         ,
102         [enable_multi="yes"]
105 AC_ARG_ENABLE(
106         [server],
107         [AS_HELP_STRING([--disable-server], [disable server support only (but retain client support) @<:@default=yes@:>@])],
108         ,
109         [enable_server="yes"]
112 AC_ARG_ENABLE(
113         [plugins],
114         [AS_HELP_STRING([--disable-plugins], [disable plug-in support @<:@default=yes@:>@])],
115         ,
116         [enable_plugins="yes"]
119 AC_ARG_ENABLE(
120         [management],
121         [AS_HELP_STRING([--disable-management], [disable management server support @<:@default=yes@:>@])],
122         ,
123         [enable_management="yes"]
126 AC_ARG_ENABLE(
127         [pkcs11],
128         [AS_HELP_STRING([--enable-pkcs11], [enable pkcs11 support @<:@default=no@:>@])],
129         ,
130         [enable_pkcs11="no"]
133 AC_ARG_ENABLE(
134         [socks],
135         [AS_HELP_STRING([--disable-socks], [disable Socks support @<:@default=yes@:>@])],
136         ,
137         [enable_socks="yes"]
140 AC_ARG_ENABLE(
141         [http-proxy],
142         [AS_HELP_STRING([--disable-http-proxy], [disable HTTP proxy support @<:@default=yes@:>@])],
143         ,
144         [enable_http_proxy="yes"]
147 AC_ARG_ENABLE(
148         [fragment],
149         [AS_HELP_STRING([--disable-fragment], [disable internal fragmentation support (--fragment) @<:@default=yes@:>@])],
150         ,
151         [enable_fragment="yes"]
154 AC_ARG_ENABLE(
155         [multihome],
156         [AS_HELP_STRING([--disable-multihome], [disable multi-homed UDP server support (--multihome) @<:@default=yes@:>@])],
157         ,
158         [enable_multihome="yes"]
161 AC_ARG_ENABLE(
162         [port-share],
163         [AS_HELP_STRING([--disable-port-share], [disable TCP server port-share support (--port-share) @<:@default=yes@:>@])],
164         ,
165         [enable_port_share="yes"]
168 AC_ARG_ENABLE(
169         [debug],
170         [AS_HELP_STRING([--disable-debug], [disable debugging support (disable gremlin and verb 7+ messages) @<:@default=yes@:>@])],
171         ,
172         [enable_debug="yes"]
175 AC_ARG_ENABLE(
176         [small],
177         [AS_HELP_STRING([--enable-small], [enable smaller executable size (disable OCC, usage message, and verb 4 parm list) @<:@default=no@:>@])],
178         ,
179         [enable_small="no"]
182 AC_ARG_ENABLE(
183         [iproute2],
184         [AS_HELP_STRING([--enable-iproute2], [enable support for iproute2 @<:@default=no@:>@])],
185         ,
186         [enable_iproute2="no"]
189 AC_ARG_ENABLE(
190         [def-auth],
191         [AS_HELP_STRING([--disable-def-auth], [disable deferred authentication @<:@default=yes@:>@])],
192         ,
193         [enable_def_auth="yes"]
196 AC_ARG_ENABLE(
197         [pf],
198         [AS_HELP_STRING([--disable-pf], [disable internal packet filter @<:@default=yes@:>@])],
199         ,
200         [enable_pf="yes"]
203 AC_ARG_ENABLE(
204         [plugin-auth-pam],
205         [AS_HELP_STRING([--disable-plugin-auth-pam], [disable auth-pam plugin @<:@default=platform specific@:>@])],
206         ,
207         [
208                 case "$host" in
209                         *-*-openbsd*) enable_plugin_auth_pam="no";;
210                         *-mingw*) enable_plugin_auth_pam="no";;
211                         *) enable_plugin_auth_pam="yes";;
212                 esac
213         ]
216 AC_ARG_ENABLE(
217         [plugin-down-root],
218         [AS_HELP_STRING([--disable-plugin-down-root], [disable down-root plugin @<:@default=platform specific@:>@])],
219         ,
220         [
221                 case "$host" in
222                         *-mingw*) enable_plugin_down_root="no";;
223                         *) enable_plugin_down_root="yes";;
224                 esac
225         ]
228 AC_ARG_ENABLE(
229         [pam-dlopen],
230         [AS_HELP_STRING([--enable-pam-dlopen], [dlopen libpam @<:@default=no@:>@])],
231         ,
232         [enable_pam_dlopen="no"]
235 AC_ARG_ENABLE(
236         [strict],
237         [AS_HELP_STRING([--enable-strict], [enable strict compiler warnings (debugging option) @<:@default=no@:>@])],
238         ,
239         [enable_strict="no"]
242 AC_ARG_ENABLE(
243         [pedantic],
244         [AS_HELP_STRING([--enable-pedantic], [enable pedantic compiler warnings, will not generate a working executable (debugging option) @<:@default=no@:>@])],
245         ,
246         [enable_pedantic="no"]
249 AC_ARG_ENABLE(
250         [strict-options],
251         [AS_HELP_STRING([--enable-strict-options], [enable strict options check between peers (debugging option) @<:@default=no@:>@])],
252         ,
253         [enable_strict_options="no"]
256 AC_ARG_ENABLE(
257         [selinux],
258         [AS_HELP_STRING([--enable-selinux], [enable SELinux support @<:@default=no@:>@])],
259         ,
260         [enable_selinux="no"]
263 AC_ARG_ENABLE(
264         [systemd],
265         [AS_HELP_STRING([--enable-systemd], [enable systemd suppport @<:@default=no@:>@])],
266         ,
267         [enable_systemd="no"]
270 AC_ARG_WITH(
271         [special-build],
272         [AS_HELP_STRING([--with-special-build=STRING], [specify special build string])],
273         [test -n "${withval}" && AC_DEFINE_UNQUOTED([CONFIGURE_SPECIAL_BUILD], ["${withval}"], [special build string])]
276 AC_ARG_WITH(
277         [mem-check],
278         [AS_HELP_STRING([--with-mem-check=TYPE], [build with debug memory checking, TYPE=no|dmalloc|valgrind|ssl @<:@default=no@:>@])],
279         [
280                 case "${withval}" in
281                         dmalloc|valgrind|ssl|no) ;;
282                         *) AC_MSG_ERROR([bad value ${withval} for --mem-check]) ;;
283                 esac
284         ],
285         [with_mem_check="no"]
288 AC_ARG_WITH(
289         [crypto-library],
290         [AS_HELP_STRING([--with-crypto-library=library], [build with the given crypto library, TYPE=openssl|polarssl @<:@default=openssl@:>@])],
291         [
292                 case "${withval}" in 
293                         openssl|polarssl) ;;
294                         *) AC_MSG_ERROR([bad value ${withval} for --with-crypto-library]) ;;
295                 esac
296         ],
297         [with_crypto_library="openssl"]
300 AC_ARG_WITH(
301         [plugindir],
302         [AS_HELP_STRING([--with-plugindir], [plugin directory @<:@default=LIBDIR/openvpn@:>@])],
303         ,
304         [with_plugindir="\$(libdir)/openvpn/plugins"]
308 AC_DEFINE_UNQUOTED([TARGET_ALIAS], ["${host}"], [A string representing our host])
309 case "$host" in
310         *-*-linux*)
311                 AC_DEFINE([TARGET_LINUX], [1], [Are we running on Linux?])
312                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["L"], [Target prefix])
313                 ;;
314         *-*-solaris*)
315                 AC_DEFINE([TARGET_SOLARIS], [1], [Are we running on Solaris?])
316                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["S"], [Target prefix])
317                 ;;
318         *-*-openbsd*)
319                 AC_DEFINE([TARGET_OPENBSD], [1], [Are we running on OpenBSD?])
320                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["O"], [Target prefix])
321                 ;;
322         *-*-freebsd*)
323                 AC_DEFINE([TARGET_FREEBSD], [1], [Are we running on FreeBSD?])
324                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["F"], [Target prefix])
325                 ;;
326         *-*-netbsd*)
327                 AC_DEFINE([TARGET_NETBSD], [1], [Are we running NetBSD?])
328                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["N"], [Target prefix])
329                 ;;
330         *-*-darwin*)
331                 AC_DEFINE([TARGET_DARWIN], [1], [Are we running on Mac OS X?])
332                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["M"], [Target prefix])
333                 have_tap_header="yes"
334                 dnl some Mac OS X tendering (we use vararg macros...)
335                 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
336                 ;;
337         *-mingw*)
338                 AC_DEFINE([TARGET_WIN32], [1], [Are we running WIN32?])
339                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["W"], [Target prefix])
340                 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
341                 CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
342                 WIN32=yes
343                 ;;
344         *-*-dragonfly*)
345                 AC_DEFINE([TARGET_DRAGONFLY], [1], [Are we running on DragonFlyBSD?])
346                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["D"], [Target prefix])
347                 ;;
348         *)
349                 AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["X"], [Target prefix])
350                 have_tap_header="yes"
351                 ;;
352 esac
354 PKG_PROG_PKG_CONFIG
355 AC_PROG_CPP
356 AC_PROG_INSTALL
357 AC_PROG_LN_S
358 AC_PROG_SED
359 AC_PROG_MAKE_SET
361 AC_ARG_VAR([IFCONFIG], [full path to ipconfig utility])
362 AC_ARG_VAR([ROUTE], [full path to route utility])
363 AC_ARG_VAR([IPROUTE], [full path to ip utility])
364 AC_ARG_VAR([NETSTAT], [path to netstat utility]) # tests
365 AC_ARG_VAR([MAN2HTML], [path to man2html utility])
366 AC_ARG_VAR([GIT], [path to git utility])
367 AC_ARG_VAR([SYSTEMD_ASK_PASSWORD], [path to systemd-ask-password utility])
368 AC_PATH_PROGS([IFCONFIG], [ifconfig],, [$PATH:/usr/local/sbin:/usr/sbin:/sbin])
369 AC_PATH_PROGS([ROUTE], [route],, [$PATH:/usr/local/sbin:/usr/sbin:/sbin])
370 AC_PATH_PROGS([IPROUTE], [ip],, [$PATH:/usr/local/sbin:/usr/sbin:/sbin])
371 AC_PATH_PROGS([SYSTEMD_ASK_PASSWORD], [systemd-ask-password],, [$PATH:/usr/local/bin:/usr/bin:/bin])
372 AC_CHECK_PROGS([NETSTAT], [netstat], [netstat], [$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc]) # tests
373 AC_CHECK_PROGS([MAN2HTML], [man2html])
374 AC_CHECK_PROGS([GIT], [git]) # optional
375 AC_DEFINE_UNQUOTED([IFCONFIG_PATH], ["$IFCONFIG"], [Path to ifconfig tool])
376 AC_DEFINE_UNQUOTED([IPROUTE_PATH], ["$IPROUTE"], [Path to iproute tool])
377 AC_DEFINE_UNQUOTED([ROUTE_PATH], ["$ROUTE"], [Path to route tool])
378 AC_DEFINE_UNQUOTED([SYSTEMD_ASK_PASSWORD_PATH], ["$SYSTEMD_ASK_PASSWORD"], [Path to systemd-ask-password tool])
381 # Libtool
383 ifdef(
384         [LT_INIT],
385         [
386                 LT_INIT([win32-dll])
387                 LT_LANG([Windows Resource])
388         ],
389         [
390                 AC_LIBTOOL_WIN32_DLL
391                 AC_LIBTOOL_RC
392                 AC_PROG_LIBTOOL
393         ]
396 AC_C_CONST
397 AC_C_INLINE
398 AC_C_VOLATILE
399 AC_TYPE_OFF_T
400 AC_TYPE_PID_T
401 AC_TYPE_SIZE_T
402 AC_TYPE_UID_T
403 AC_TYPE_INT8_T
404 AC_TYPE_INT16_T
405 AC_TYPE_INT32_T
406 AC_TYPE_INT64_T
407 AC_TYPE_UINT8_T
408 AC_TYPE_UINT16_T
409 AC_TYPE_UINT32_T
410 AC_TYPE_UINT64_T
411 AC_TYPE_SIGNAL
412 AX_CPP_VARARG_MACRO_ISO
413 AX_CPP_VARARG_MACRO_GCC
414 AX_TYPE_SOCKLEN_T
415 AX_EMPTY_ARRAY
416 AC_CHECK_SIZEOF([unsigned int])
417 AC_CHECK_SIZEOF([unsigned long])
418 AC_CHECK_HEADERS([ \
419         stdio.h stdarg.h stdbool.h limits.h \
420         time.h errno.h fcntl.h io.h direct.h \
421         ctype.h sys/types.h sys/socket.h \
422         signal.h unistd.h dlfcn.h \
423         netinet/in.h netinet/in_systm.h \
424         netinet/tcp.h arpa/inet.h netdb.h \
425         windows.h winsock2.h ws2tcpip.h \
426         versionhelpers.h \
428 AC_CHECK_HEADERS([ \
429         sys/time.h sys/ioctl.h sys/stat.h \
430         sys/mman.h sys/file.h sys/wait.h \
431         unistd.h signal.h libgen.h stropts.h \
432         syslog.h pwd.h grp.h \
433         sys/sockio.h sys/uio.h linux/sockios.h \
434         linux/types.h sys/poll.h sys/epoll.h err.h \
437 SOCKET_INCLUDES="
438 #ifdef HAVE_STDLIB_H
439 #include <stdlib.h>
440 #endif
441 #ifdef HAVE_SYS_TYPES_H
442 #include <sys/types.h>
443 #endif
444 #ifdef HAVE_SYS_SOCKET_H
445 #include <sys/socket.h>
446 #endif
447 #ifdef HAVE_NETINET_IN_H
448 #include <netinet/in.h>
449 #endif
450 #ifdef HAVE_WINDOWS_H
451 #include <windows.h>
452 #endif
453 #ifdef HAVE_WINSOCK2_H
454 #include <winsock2.h>
455 #endif
456 #ifdef HAVE_WS2TCPIP_H
457 #include <ws2tcpip.h>
458 #endif
459 #ifdef HAVE_NETINET_IN_SYSTM_H
460 #include <netinet/in_systm.h>
461 #endif
462 #ifdef HAVE_NETINET_IP_H
463 #include <netinet/ip.h>
464 #endif
467 AC_CHECK_HEADERS(
468         [net/if.h netinet/ip.h resolv.h sys/un.h net/if_utun.h sys/kern_control.h],
469         ,
470         ,
471         [[${SOCKET_INCLUDES}]]
474 AC_CHECK_TYPES(
475         [in_addr_t],
476         ,
477         [AC_DEFINE([in_addr_t], [uint32_t], [Workaround missing in_addr_t])],
478         [[${SOCKET_INCLUDES}]]
480 AC_CHECK_TYPE(
481         [struct iphdr],
482         [AC_DEFINE([HAVE_IPHDR], [1], [struct iphdr needed for IPv6 support])],
483         ,
484         [[${SOCKET_INCLUDES}]]
486 AC_CHECK_TYPE(
487         [struct sock_extended_err],
488         [AC_DEFINE([HAVE_SOCK_EXTENDED_ERR], [1], [struct sock_extended_err needed for extended socket error support])],
489         ,
490         [[${SOCKET_INCLUDES}]]
492 AC_CHECK_TYPE(
493         [struct msghdr],
494         [AC_DEFINE([HAVE_MSGHDR], [1], [struct msghdr needed for extended socket error support])],
495         ,
496         [[${SOCKET_INCLUDES}]]
498 AC_CHECK_TYPE(
499         [struct cmsghdr],
500         [AC_DEFINE([HAVE_CMSGHDR], [1], [struct cmsghdr needed for extended socket error support])],
501         ,
502         [[${SOCKET_INCLUDES}]]
504 AC_CHECK_TYPE(
505         [struct in_pktinfo],
506         [AC_DEFINE([HAVE_IN_PKTINFO], [1], [struct in_pktinfo needed for IP_PKTINFO support])],
507         ,
508         [[${SOCKET_INCLUDES}]]
510 AC_CHECK_TYPE(
511         [struct sockaddr_in6],
512         ,
513         [AC_MSG_ERROR([struct sockaddr_in6 not found, needed for ipv6 transport support.])],
514         [[${SOCKET_INCLUDES}]]
516 AC_CHECK_DECLS(
517         [SO_MARK],
518         ,
519         ,
520         [[${SOCKET_INCLUDES}]]
523 dnl We emulate signals in Windows
524 AC_CHECK_DECLS(
525         [SIGHUP],
526         ,
527         [AC_DEFINE([SIGHUP], [1], [SIGHUP replacement])],
528         [[
529                 #ifdef HAVE_SIGNAL_H
530                 #include <signal.h>
531                 #endif
532         ]]
534 AC_CHECK_DECLS(
535         [SIGINT],
536         ,
537         [AC_DEFINE([SIGINT], [2], [SIGINT replacement])],
538         [[
539                 #ifdef HAVE_SIGNAL_H
540                 #include <signal.h>
541                 #endif
542         ]]
544 AC_CHECK_DECLS(
545         [SIGUSR1],
546         ,
547         [AC_DEFINE([SIGUSR1], [10], [SIGUSR1 replacement])],
548         [[
549                 #ifdef HAVE_SIGNAL_H
550                 #include <signal.h>
551                 #endif
552         ]]
554 AC_CHECK_DECLS(
555         [SIGUSR2],
556         ,
557         [AC_DEFINE([SIGUSR2], [12], [SIGUSR2 replacement])],
558         [[
559                 #ifdef HAVE_SIGNAL_H
560                 #include <signal.h>
561                 #endif
562         ]]
564 AC_CHECK_DECLS(
565         [SIGTERM],
566         ,
567         [AC_DEFINE([SIGTERM], [15], [SIGTERM replacement])],
568         [[
569                 #ifdef HAVE_SIGNAL_H
570                 #include <signal.h>
571                 #endif
572         ]]
575 AC_FUNC_FORK
577 AC_CHECK_FUNCS([ \
578         daemon chroot getpwnam setuid nice system getpid dup dup2 \
579         getpass strerror syslog openlog mlockall getgrnam setgid \
580         setgroups stat flock readv writev time gettimeofday \
581         ctime memset vsnprintf strdup \
582         setsid chdir putenv getpeername unlink \
583         chsize ftruncate execve getpeereid umask basename dirname access \
584         epoll_create \
587 AC_CHECK_LIB(
588         [dl],
589         [dlopen],
590         [DL_LIBS="-ldl"]
592 AC_SUBST([DL_LIBS])
594 AC_CHECK_LIB(
595         [nsl],
596         [inet_ntoa],
597         [SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl"]
599 AC_CHECK_LIB(
600         [socket],
601         [socket],
602         [SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket"]
604 AC_CHECK_LIB(
605         [resolv],
606         [gethostbyname],
607         [SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv"]
609 AC_SUBST([SOCKETS_LIBS])
611 old_LIBS="${LIBS}"
612 LIBS="${LIBS} ${SOCKETS_LIBS}"
613 AC_CHECK_FUNCS([sendmsg recvmsg inet_ntop inet_pton])
614 # Windows use stdcall for winsock so we cannot auto detect these
615 m4_define(
616         [SOCKET_FUNCS],
617 [socket recv recvfrom send sendto listen dnl
618 accept connect bind select gethostbyname inet_ntoa]dnl
620 m4_define(
621         [SOCKET_OPT_FUNCS],
622         [setsockopt getsockopt getsockname poll]dnl
624 if test "${WIN32}" = "yes"; then
625         m4_foreach(
626                 [F],
627                 m4_split(SOCKET_FUNCS SOCKET_OPT_FUNCS),
628                         m4_define([UF], [[m4_join([_], [HAVE], m4_toupper(F))]])
629                         AC_DEFINE([UF], [1], [Win32 builtin])
630         )
631 else
632         AC_CHECK_FUNCS(
633                 SOCKET_FUNCS,
634                 ,
635                 [AC_MSG_ERROR([Required library function not found])]
636         )
637         AC_CHECK_FUNCS(SOCKET_OPT_FUNCS)
639 LIBS="${old_LIBS}"
641 # we assume res_init() always exist, but need to find out *where*...
642 AC_SEARCH_LIBS(__res_init, resolv bind, ,
643     AC_SEARCH_LIBS(res_9_init, resolv bind, ,
644         AC_SEARCH_LIBS(res_init, resolv bind, , )))
646 AC_ARG_VAR([TAP_CFLAGS], [C compiler flags for tap])
647 old_CFLAGS="${CFLAGS}"
648 CFLAGS="${CFLAGS} ${TAP_CFLAGS}"
649 AC_CHECK_HEADERS(
650         [ \
651                 net/if_tun.h net/tun/if_tun.h \
652                 linux/if_tun.h \
653                 tap-windows.h \
654         ],
655         [have_tap_header="yes"]
657 AC_CHECK_DECLS(
658         [TUNSETPERSIST],
659         [AC_DEFINE([ENABLE_FEATURE_TUN_PERSIST], [1], [We have persist tun capability])],
660         ,
661         [[
662                 #ifdef HAVE_LINUX_IF_TUN_H
663                 #include <linux/if_tun.h>
664                 #endif
665         ]]
667 CFLAGS="${old_CFLAGS}"
668 test "${have_tap_header}" = "yes" || AC_MSG_ERROR([no tap header could be found])
670 AC_CHECK_LIB(
671         [selinux],
672         [setcon],
673         [SELINUX_LIBS="-lselinux"]
675 AC_SUBST([SELINUX_LIBS])
677 AC_ARG_VAR([LIBPAM_CFLAGS], [C compiler flags for libpam])
678 AC_ARG_VAR([LIBPAM_LIBS], [linker flags for libpam])
679 if test -z "${LIBPAM_LIBS}"; then
680         AC_CHECK_LIB(
681                 [pam],
682                 [pam_start],
683                 [LIBPAM_LIBS="-lpam"]
684         )
687 case "${with_mem_check}" in
688         valgrind)
689                 AC_CHECK_HEADER(
690                         [valgrind/memcheck.h],
691                         [
692                                 CFLAGS="${CFLAGS} -g -fno-inline"
693                                 AC_DEFINE(
694                                         [USE_VALGRIND],
695                                         [1],
696                                         [Use valgrind memory debugging library]
697                                 )
698                         ],
699                         [AC_MSG_ERROR([valgrind headers not found.])]
700                 )
701                 ;;
702         dmalloc)
703                 AC_CHECK_HEADER(
704                         [dmalloc.h],
705                         [AC_CHECK_LIB(
706                                 [dmalloc],
707                                 [malloc],
708                                 [
709                                         LIBS="${LIBS} -ldmalloc"
710                                         AC_DEFINE(
711                                                 [DMALLOC],
712                                                 [1],
713                                                 [Use dmalloc memory debugging library]
714                                         )
715                                 ],
716                                 [AC_MSG_ERROR([dmalloc library not found.])]
717                         )],
718                         [AC_MSG_ERROR([dmalloc headers not found.])]
719                 )
720                 ;;
721         ssl)
722                 AC_CHECK_LIB(
723                         [ssl],
724                         [CRYPTO_mem_ctrl],
725                         [
726                                 AC_DEFINE(
727                                         [CRYPTO_MDEBUG],
728                                         [1],
729                                         [Use memory debugging function in OpenSSL]
730                                 )
731                                 AC_MSG_NOTICE([NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG])
732                         ],
733                         [AC_MSG_ERROR([Memory Debugging function in OpenSSL library not found.])]
734                 )
735                 ;;
736 esac
738 PKG_CHECK_MODULES(
739         [PKCS11_HELPER],
740         [libpkcs11-helper-1 >= 1.11],
741         [have_pkcs11_helper="yes"],
742         []
745 PKG_CHECK_MODULES(
746         [OPENSSL_CRYPTO],
747         [libcrypto >= 0.9.6],
748         [have_openssl_crypto="yes"],
749         [AC_CHECK_LIB(
750                 [crypto],
751                 [RSA_new],
752                 [
753                         have_openssl_crypto="yes"
754                         OPENSSL_CRYPTO_LIBS="-lcrypto"
755                 ]
756         )]
759 PKG_CHECK_MODULES(
760         [OPENSSL_SSL],
761         [libssl >= 0.9.6],
762         [have_openssl_ssl="yes"],
763         [AC_CHECK_LIB(
764                 [ssl],
765                 [SSL_CTX_new],
766                 [
767                         have_openssl_ssl="yes"
768                         OPENSSL_SSL_LIBS="-lssl"
769                 ],
770                 [],
771                 [-lcrypto]
772         )]
775 if test "${have_openssl_crypto}" = "yes"; then
776         saved_CFLAGS="${CFLAGS}"
777         saved_LIBS="${LIBS}"
778         CFLAGS="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
779         LIBS="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
780         AC_CHECK_FUNCS([EVP_CIPHER_CTX_set_key_length])
781         have_openssl_engine="yes"
782         AC_CHECK_FUNCS(
783                 [ \
784                         ENGINE_load_builtin_engines \
785                         ENGINE_register_all_complete \
786                         ENGINE_cleanup \
787                 ],
788                 ,
789                 [have_openssl_engine="no"; break]
790         )
792         CFLAGS="${saved_CFLAGS}"
793         LIBS="${saved_LIBS}"
796 AC_ARG_VAR([POLARSSL_CFLAGS], [C compiler flags for polarssl])
797 AC_ARG_VAR([POLARSSL_LIBS], [linker flags for polarssl])
798 have_polarssl_ssl="yes"
799 have_polarssl_crypto="yes"
800 if test -z "${POLARSSL_LIBS}"; then
801         AC_CHECK_LIB(
802                 [polarssl],
803                 [ssl_init],
804                 [POLARSSL_LIBS="-lpolarssl"],
805                 [
806                         have_polarssl_ssl="no"
807                         AC_CHECK_LIB(
808                                 [polarssl],
809                                 [aes_crypt_cbc],
810                                 ,
811                                 [have_polarssl_crypto="no"],
812                                 [${PKCS11_HELPER_LIBS}]
813                         )
814                 ],
815                 [${PKCS11_HELPER_LIBS}]
816         )
819 if test "${with_crypto_library}" = "polarssl" ; then
820         AC_MSG_CHECKING([polarssl version])
821         old_CFLAGS="${CFLAGS}"
822         CFLAGS="${POLARSSL_CFLAGS} ${CFLAGS}"
823         AC_COMPILE_IFELSE(
824                 [AC_LANG_PROGRAM(
825                         [[
826 #include <polarssl/version.h>
827                         ]],
828                         [[
829 #if POLARSSL_VERSION_NUMBER < 0x01030800 || POLARSSL_VERSION_NUMBER >= 0x01040000
830 #error invalid version
831 #endif
832                         ]]
833                 )],
834                 [AC_MSG_RESULT([ok])],
835                 [AC_MSG_ERROR([PolarSSL 1.3.x required and must be 1.3.8 or later])]
836         )
838         polarssl_with_pkcs11="no"
839         AC_COMPILE_IFELSE(
840                 [AC_LANG_PROGRAM(
841                         [[
842 #include <polarssl/config.h>
843                         ]],
844                         [[
845 #ifndef POLARSSL_PKCS11_C
846 #error pkcs11 wrapper missing
847 #endif
848                         ]]
849                 )],
850                 polarssl_with_pkcs11="yes")
851         CFLAGS="${old_CFLAGS}"
853         AC_MSG_CHECKING([polarssl pkcs11 support])
854         if test "${enable_pkcs11}" = "yes"; then
855                 if test "${polarssl_with_pkcs11}" = "yes"; then
856                         AC_MSG_RESULT([ok])
857                 else
858                         AC_MSG_ERROR([polarssl has no pkcs11 wrapper compiled in])
859                 fi
860         else
861                 if test "${polarssl_with_pkcs11}" != "yes"; then
862                         AC_MSG_RESULT([ok])
863                 else
864                         AC_MSG_ERROR([PolarSSL compiled with PKCS11, while OpenVPN is not])
865                 fi
866         fi
870 AC_ARG_VAR([LZO_CFLAGS], [C compiler flags for lzo])
871 AC_ARG_VAR([LZO_LIBS], [linker flags for lzo])
872 have_lzo="yes"
873 if test -z "${LZO_LIBS}"; then
874         AC_CHECK_LIB(
875                 [lzo2],
876                 [lzo1x_1_15_compress],
877                 [LZO_LIBS="-llzo2"],
878                 [AC_CHECK_LIB(
879                         [lzo],
880                         [lzo1x_1_15_compress],
881                         [LZO_LIBS="-llzo"],
882                         [have_lzo="no"]
883                 )]
884         )
886 if test "${have_lzo}" = "yes"; then
887         saved_CFLAGS="${CFLAGS}"
888         CFLAGS="${CFLAGS} ${LZO_CFLAGS}"
889         AC_CHECK_HEADERS(
890                 [lzo/lzoutil.h],
891                 ,
892                 [AC_CHECK_HEADERS(
893                         [lzoutil.h],
894                         ,
895                         [AC_MSG_ERROR([lzoutil.h is missing])]
896                 )]
897         )
898         AC_CHECK_HEADERS(
899                 [lzo/lzo1x.h],
900                 ,
901                 [AC_CHECK_HEADERS(
902                         [lzo1x.h],
903                         ,
904                         [AC_MSG_ERROR([lzo1x.h is missing])]
905                 )]
906         )
907         CFLAGS="${saved_CFLAGS}"
912 dnl Check for systemd
915 if test "$enable_systemd" = "yes" ; then
916     PKG_CHECK_MODULES([libsystemd], [systemd libsystemd],
917                       [],
918                       [PKG_CHECK_MODULES([libsystemd], [libsystemd-daemon])]
919                       )
920     AC_CHECK_HEADERS(systemd/sd-daemon.h,
921        ,
922        [
923            AC_MSG_ERROR([systemd development headers not found.])
924        ])
926     saved_LIBS="${LIBS}"
927     LIBS="${LIBS} ${libsystemd_LIBS}"
928     AC_CHECK_FUNCS([sd_booted], [], [AC_MSG_ERROR([systemd library is missing sd_booted()])])
929     OPTIONAL_SYSTEMD_LIBS="${libsystemd_LIBS}"
930     AC_DEFINE(ENABLE_SYSTEMD, 1, [Enable systemd integration])
931     LIBS="${saved_LIBS}"
935 AC_MSG_CHECKING([git checkout])
936 GIT_CHECKOUT="no"
937 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
938         AC_DEFINE([HAVE_CONFIG_VERSION_H], [1], [extra version available in config-version.h])
939         GIT_CHECKOUT="yes"
941 AC_MSG_RESULT([${GIT_CHECKOUT}])
943 if test -n "${SP_PLATFORM_WINDOWS}"; then
944         AC_DEFINE_UNQUOTED([PATH_SEPARATOR], ['\\\\'], [Path separator]) #"
945         AC_DEFINE_UNQUOTED([PATH_SEPARATOR_STR], ["\\\\"], [Path separator]) #"
946 else
947         AC_DEFINE_UNQUOTED([PATH_SEPARATOR], ['/'], [Path separator])
948         AC_DEFINE_UNQUOTED([PATH_SEPARATOR_STR], ["/"], [Path separator])
951 dnl enable --x509-username-field feature if requested
952 if test "${enable_x509_alt_username}" = "yes"; then
953         if test "${with_crypto_library}" = "polarssl" ; then
954                 AC_MSG_ERROR([PolarSSL does not support the --x509-username-field feature])
955         fi
957         AC_DEFINE([ENABLE_X509ALTUSERNAME], [1], [Enable --x509-username-field feature])
960 test "${ac_cv_header_sys_uio_h}" = "yes" && AC_DEFINE([HAVE_IOVEC], [1], [struct iovec needed for IPv6 support])
961 test "${enable_multi}" = "yes" && AC_DEFINE([ENABLE_CLIENT_SERVER], [1], [Enable client/server capability])
962 test "${enable_server}" = "no" && AC_DEFINE([ENABLE_CLIENT_ONLY], [1], [Enable client capability only])
963 test "${enable_management}" = "yes" && AC_DEFINE([ENABLE_MANAGEMENT], [1], [Enable management server capability])
964 test "${enable_socks}" = "yes" && AC_DEFINE([ENABLE_SOCKS], [1], [Enable Socks proxy support])
965 test "${enable_http_proxy}" = "yes" && AC_DEFINE([ENABLE_HTTP_PROXY], [1], [Enable HTTP proxy support])
966 test "${enable_multihome}" = "yes" && AC_DEFINE([ENABLE_MULTIHOME], [1], [Enable multi-homed UDP server capability])
967 test "${enable_debug}" = "yes" && AC_DEFINE([ENABLE_DEBUG], [1], [Enable debugging support])
968 test "${enable_small}" = "yes" && AC_DEFINE([ENABLE_SMALL], [1], [Enable smaller executable size])
969 test "${enable_fragment}" = "yes" && AC_DEFINE([ENABLE_FRAGMENT], [1], [Enable internal fragmentation support])
970 test "${enable_port_share}" = "yes" && AC_DEFINE([ENABLE_PORT_SHARE], [1], [Enable TCP Server port sharing])
971 test "${enable_def_auth}" = "yes" && AC_DEFINE([ENABLE_DEF_AUTH], [1], [Enable deferred authentication])
972 test "${enable_pf}" = "yes" && AC_DEFINE([ENABLE_PF], [1], [Enable internal packet filter])
973 test "${enable_strict_options}" = "yes" && AC_DEFINE([ENABLE_STRICT_OPTIONS_CHECK], [1], [Enable strict options check between peers])
975 case "${with_crypto_library}" in
976         openssl)
977                 have_crypto_crypto="${have_openssl_crypto}"
978                 have_crypto_ssl="${have_openssl_ssl}"
979                 CRYPTO_CRYPTO_CFLAGS="${OPENSSL_CRYPTO_CFLAGS}"
980                 CRYPTO_CRYPTO_LIBS="${OPENSSL_CRYPTO_LIBS}"
981                 CRYPTO_SSL_CFLAGS="${OPENSSL_SSL_CFLAGS}"
982                 CRYPTO_SSL_LIBS="${OPENSSL_SSL_LIBS}"
983                 AC_DEFINE([ENABLE_CRYPTO_OPENSSL], [1], [Use OpenSSL library])
984                 test "${have_openssl_engine}" = "yes" && AC_DEFINE([HAVE_OPENSSL_ENGINE], [1], [Use crypto library])
985                 ;;
986         polarssl)
987                 have_crypto_crypto="${have_polarssl_crypto}"
988                 have_crypto_ssl="${have_polarssl_ssl}"
989                 CRYPTO_CRYPTO_CFLAGS="${POLARSSL_CFLAGS}"
990                 CRYPTO_CRYPTO_LIBS="${POLARSSL_LIBS}"
991                 AC_DEFINE([ENABLE_CRYPTO_POLARSSL], [1], [Use PolarSSL library])
992                 ;;
993 esac
995 if test "${enable_ssl}" = "yes"; then
996         test "${enable_crypto}" != "yes" && AC_MSG_ERROR([crypto must be enabled for ssl])
997         test "${have_crypto_ssl}" != "yes" && AC_MSG_ERROR([${with_ssl_library} ssl is required but missing])
998         OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
999         OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
1000         AC_DEFINE([ENABLE_SSL], [1], [Enable ssl library])
1003 if test "${enable_crypto}" = "yes"; then
1004         test "${have_crypto_crypto}" != "yes" && AC_MSG_ERROR([${with_crypto_library} crypto is required but missing])
1005         test "${enable_crypto_ofb_cfb}" = "yes" && AC_DEFINE([ENABLE_OFB_CFB_MODE], [1], [Enable OFB and CFB cipher modes])
1006         OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
1007         OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
1008         AC_DEFINE([ENABLE_CRYPTO], [1], [Enable crypto library])
1011 if test "${enable_plugins}" = "yes"; then
1012         OPTIONAL_DL_LIBS="${DL_LIBS}"
1013         AC_DEFINE([ENABLE_PLUGIN], [1], [Enable plug-in support])
1014 else
1015         enable_plugin_auth_pam="no"
1016         enable_plugin_down_root="no"
1019 if test "${enable_iproute2}" = "yes"; then
1020         test -z "${IPROUTE}" && AC_MSG_ERROR([ip utility is required but missing])
1021         AC_DEFINE([ENABLE_IPROUTE], [1], [enable iproute2 support])
1022 else
1023         if test "${WIN32}" != "yes"; then
1024                 test -z "${ROUTE}" && AC_MSG_ERROR([route utility is required but missing])
1025                 test -z "${IFCONFIG}" && AC_MSG_ERROR([ifconfig utility is required but missing])
1026         fi
1029 if test "${enable_selinux}" = "yes"; then
1030         test -z "${SELINUX_LIBS}" && AC_MSG_ERROR([libselinux required but missing])
1031         OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}"
1032         AC_DEFINE([ENABLE_SELINUX], [1], [SELinux support])
1035 if test "${enable_lzo}" = "yes"; then
1036         test "${have_lzo}" != "yes" && AC_MSG_ERROR([lzo enabled but missing])
1037         OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}"
1038         OPTIONAL_LZO_LIBS="${LZO_LIBS}"
1039         AC_DEFINE([ENABLE_LZO], [1], [Enable LZO compression library])
1041 if test "${enable_lzo_stub}" = "yes"; then
1042         test "${enable_lzo}" = "yes" && AC_MSG_ERROR([Cannot have both lzo stub and lzo enabled])
1043         AC_DEFINE([ENABLE_LZO_STUB], [1], [Enable LZO stub capability])
1044         AC_DEFINE([ENABLE_LZO], [1], [Enable LZO compression library])
1047 if test "${enable_pkcs11}" = "yes"; then
1048         test "${have_pkcs11_helper}" != "yes" && AC_MSG_ERROR([PKCS11 enabled but libpkcs11-helper is missing])
1049         test "${enable_ssl}" != "yes" && AC_MSG_ERROR([PKCS11 can be enabled only if SSL is enabled])
1050         OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}"
1051         OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}"
1052         AC_DEFINE([ENABLE_PKCS11], [1], [Enable PKCS11])
1053         PKG_CHECK_MODULES(
1054                 [P11KIT],
1055                 [p11-kit-1],
1056                 [proxy_module="`$PKG_CONFIG --variable=proxy_module p11-kit-1`"
1057                  AC_DEFINE_UNQUOTED([DEFAULT_PKCS11_MODULE], "${proxy_module}", [p11-kit proxy])],
1058                 []
1059         )
1062 if test "${enable_pedantic}" = "yes"; then
1063         enable_strict="yes"
1064         CFLAGS="${CFLAGS} -pedantic"
1065         test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi"
1067 if test "${enable_strict}" = "yes"; then
1068         CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
1071 if test "${WIN32}" = "yes"; then
1072         test -z "${MAN2HTML}" && AC_MSG_ERROR([man2html is required for win32])
1075 if test "${enable_plugin_auth_pam}" = "yes"; then
1076         PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}"
1077         if test "${enable_pam_dlopen}" = "yes"; then
1078                 AC_DEFINE([USE_PAM_DLOPEN], [1], [dlopen libpam])
1079                 PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}"
1080         else
1081                 test -z "${LIBPAM_LIBS}" && AC_MSG_ERROR([libpam required but missing])
1082                 PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}"
1083         fi
1086 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
1087 AC_DEFINE_UNQUOTED([CONFIGURE_DEFINES], ["`echo ${CONFIGURE_DEFINES}`"], [Configuration settings])
1089 TAP_WIN_COMPONENT_ID="PRODUCT_TAP_WIN_COMPONENT_ID"
1090 TAP_WIN_MIN_MAJOR="PRODUCT_TAP_WIN_MIN_MAJOR"
1091 TAP_WIN_MIN_MINOR="PRODUCT_TAP_WIN_MIN_MINOR"
1092 AC_DEFINE_UNQUOTED([TAP_WIN_COMPONENT_ID], ["${TAP_WIN_COMPONENT_ID}"], [The tap-windows id])
1093 AC_DEFINE_UNQUOTED([TAP_WIN_MIN_MAJOR], [${TAP_WIN_MIN_MAJOR}], [The tap-windows version number is required for OpenVPN])
1094 AC_DEFINE_UNQUOTED([TAP_WIN_MIN_MINOR], [${TAP_WIN_MIN_MINOR}], [The tap-windows version number is required for OpenVPN])
1095 AC_SUBST([TAP_WIN_COMPONENT_ID])
1096 AC_SUBST([TAP_WIN_MIN_MAJOR])
1097 AC_SUBST([TAP_WIN_MIN_MINOR])
1099 AC_SUBST([OPTIONAL_DL_LIBS])
1100 AC_SUBST([OPTIONAL_SELINUX_LIBS])
1101 AC_SUBST([OPTIONAL_CRYPTO_CFLAGS])
1102 AC_SUBST([OPTIONAL_CRYPTO_LIBS])
1103 AC_SUBST([OPTIONAL_LZO_CFLAGS])
1104 AC_SUBST([OPTIONAL_LZO_LIBS])
1105 AC_SUBST([OPTIONAL_SYSTEMD_LIBS])
1106 AC_SUBST([OPTIONAL_PKCS11_HELPER_CFLAGS])
1107 AC_SUBST([OPTIONAL_PKCS11_HELPER_LIBS])
1109 AC_SUBST([PLUGIN_AUTH_PAM_CFLAGS])
1110 AC_SUBST([PLUGIN_AUTH_PAM_LIBS])
1112 AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
1113 AM_CONDITIONAL([GIT_CHECKOUT], [test "${GIT_CHECKOUT}" = "yes"])
1114 AM_CONDITIONAL([ENABLE_PLUGIN_AUTH_PAM], [test "${enable_plugin_auth_pam}" = "yes"])
1115 AM_CONDITIONAL([ENABLE_PLUGIN_DOWN_ROOT], [test "${enable_plugin_down_root}" = "yes"])
1117 plugindir="${with_plugindir}"
1118 sampledir="\$(docdir)/sample"
1119 AC_SUBST([plugindir])
1120 AC_SUBST([sampledir])
1122 AC_CONFIG_FILES([
1123         version.sh
1124         Makefile
1125         build/Makefile
1126         build/msvc/Makefile
1127         build/msvc/msvc-generate/Makefile
1128         distro/Makefile
1129         distro/rpm/Makefile
1130         distro/rpm/openvpn.spec
1131         include/Makefile
1132         src/Makefile
1133         src/compat/Makefile
1134         src/openvpn/Makefile
1135         src/openvpnserv/Makefile
1136         src/plugins/Makefile
1137         src/plugins/auth-pam/Makefile
1138         src/plugins/down-root/Makefile
1139         tests/Makefile
1140         sample/Makefile
1141         doc/Makefile
1143 AC_CONFIG_FILES([tests/t_client.sh], [chmod +x tests/t_client.sh])
1144 AC_OUTPUT