~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2008-10-07 16:30:44 UTC
  • mfrom: (1.1.11 upstream) (10.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081007163044-ixx04wg588z1972e
Tags: 2.1~rc11-1ubuntu1
* Merge with Debian (LP: #279655), remaining diffs:
  - debian/openvpn.init.d: Added 'status' action to init script, show
    per-VPN result messages and add "--script-security 2" by default for
    backwards compatibility
  - debian/control: Added lsb-base>=3.2-14 depend to allow status_of_proc()
* Fixes regression when calling commands with arguments (LP: #277447)

Show diffs side-by-side

added added

removed removed

Lines of Context:
458
458
 
459
459
AC_CACHE_SAVE
460
460
 
 
461
AC_CHECK_FUNCS([ctime memset vsnprintf strdup], ,
 
462
               [AC_MSG_ERROR([Required library function not found])])
461
463
AC_CHECK_FUNCS(daemon chroot getpwnam setuid nice system getpid dup dup2 dnl
462
464
               getpass strerror syslog openlog mlockall getgrnam setgid dnl
463
 
               setgroups stat flock readv writev setsockopt getsockopt dnl
 
465
               setgroups stat flock readv writev time dnl
464
466
               setsid chdir putenv getpeername unlink dnl
465
 
               poll chsize ftruncate sendmsg recvmsg getsockname dnl
466
 
               execve)
467
 
AC_CACHE_SAVE
 
467
               chsize ftruncate execve)
 
468
 
 
469
# Windows use stdcall for winsock so we cannot auto detect these
 
470
m4_define([SOCKET_FUNCS], [socket recv recvfrom send sendto listen dnl
 
471
          accept connect bind select gethostbyname inet_ntoa])
 
472
m4_define([SOCKET_OPT_FUNCS], [setsockopt getsockopt getsockname poll])
468
473
 
469
474
if test "${WIN32}" = "yes"; then
470
475
 
471
476
        AC_DEFINE([HAVE_GETTIMEOFDAY], [1], [We fake gettimeofday for win32 at otime.c])
 
477
        m4_foreach([F], m4_split(SOCKET_FUNCS SOCKET_OPT_FUNCS),
 
478
                m4_define(UF, [[m4_join([_], [HAVE], m4_toupper(F))]])
 
479
                AC_DEFINE([UF], [1], [Win32 builtin]))
472
480
 
473
481
else
474
482
 
489
497
 
490
498
        AC_CHECK_FUNCS(gettimeofday)
491
499
 
492
 
        AC_CHECK_FUNCS(socket recv recvfrom send sendto listen dnl
493
 
                       accept connect bind select gethostbyname dnl
494
 
                       inet_ntoa time ctime memset vsnprintf strdup, [],
495
 
                       [AC_MSG_ERROR([Required library function not found])])
 
500
        AC_CHECK_FUNCS(SOCKET_FUNCS, ,
 
501
               [AC_MSG_ERROR([Required library function not found])])
 
502
        AC_CHECK_FUNCS(SOCKET_OPT_FUNCS sendmsg recvmsg)
496
503
 
497
504
fi
498
505