~ubuntu-branches/ubuntu/raring/gnupg2/raring-security

« back to all changes in this revision

Viewing changes to .pc/01-gnupg2-rename.diff/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-05-25 14:27:35 UTC
  • mfrom: (1.1.15 upstream) (7.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110525142735-jccyw0fopnyv728q
Tags: 2.0.17-2ubuntu1
* Merge from debian unstable. Remaining changes:
  - Add udev rules to give gpg access to some smartcard readers;
    Debian #543217.
    . debian/gnupg2.dev: udev rules to set ACLs on SCM smartcard readers.
    . debian/rules: Call dh_installudev.
  - debian/control: Rename Vcs-* to XS-Debian-Vcs-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# configure.ac - for GnuPG 2.0
2
2
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
3
 
#               2006, 2007, 2008 Free Software Foundation, Inc.
 
3
#               2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
4
4
5
5
# This file is part of GnuPG.
6
6
24
24
# Remember to change the version number immediately *after* a release.
25
25
# Set my_issvn to "yes" for non-released code.  Remember to run an
26
26
# "svn up" and "autogen.sh" right before creating a distribution.
27
 
m4_define([my_version], [2.0.14])
 
27
m4_define([my_version], [2.0.17])
28
28
m4_define([my_issvn], [no])
29
29
 
30
30
m4_define([svn_revision], m4_esyscmd([printf "%d" $(svn info 2>/dev/null \
31
31
          | sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)]))
 
32
m4_define([git_revision], m4_esyscmd([git branch -v 2>/dev/null \
 
33
          | awk '/^\* / {printf "%s",$3}']))
32
34
AC_INIT([gnupg], 
33
 
        [my_version[]m4_if(my_issvn,[yes],[-svn[]svn_revision])],
 
35
        [my_version[]m4_if(my_issvn,[yes],
 
36
        [m4_if(git_revision,[],[-svn[]svn_revision],[-git[]git_revision])])],
34
37
        [http://bugs.gnupg.org])
35
38
# Set development_version to yes if the minor number is odd or you
36
39
# feel that the default check for a development version is not
37
40
# sufficient.
38
41
development_version=no
39
42
 
40
 
NEED_GPG_ERROR_VERSION=1.4
 
43
NEED_GPG_ERROR_VERSION=1.7
41
44
 
42
45
NEED_LIBGCRYPT_API=1
43
46
NEED_LIBGCRYPT_VERSION=1.4.0
44
47
 
45
 
NEED_LIBASSUAN_API=1
46
 
NEED_LIBASSUAN_VERSION=1.0.4
 
48
NEED_LIBASSUAN_API=2
 
49
NEED_LIBASSUAN_VERSION=2.0.0
47
50
 
48
51
NEED_KSBA_API=1
49
 
NEED_KSBA_VERSION=1.0.2
 
52
NEED_KSBA_VERSION=1.0.7
50
53
 
51
54
 
52
55
PACKAGE=$PACKAGE_NAME
74
77
use_bzip2=yes
75
78
use_exec=yes
76
79
disable_keyserver_path=no
77
 
 
 
80
use_ccid_driver=yes
 
81
use_standard_socket=no
78
82
 
79
83
GNUPG_BUILD_PROGRAM(gpg, yes)
80
84
GNUPG_BUILD_PROGRAM(gpgsm, yes)
83
87
GNUPG_BUILD_PROGRAM(tools, yes)
84
88
GNUPG_BUILD_PROGRAM(doc, yes)
85
89
GNUPG_BUILD_PROGRAM(symcryptrun, no)
 
90
GNUPG_BUILD_PROGRAM(gpgtar, no)
 
91
 
86
92
 
87
93
AC_SUBST(PACKAGE)
88
94
AC_SUBST(PACKAGE_GT)
251
257
        [enable email keyserver interface only]),
252
258
      try_mailto=$enableval, try_mailto=no)
253
259
    AC_MSG_RESULT($try_mailto)
254
 
    fi
 
260
  fi
255
261
 
256
 
    AC_MSG_CHECKING([whether keyserver exec-path is enabled])
257
 
    AC_ARG_ENABLE(keyserver-path,
 
262
  AC_MSG_CHECKING([whether keyserver exec-path is enabled])
 
263
  AC_ARG_ENABLE(keyserver-path,
258
264
      AC_HELP_STRING([--disable-keyserver-path],
259
 
        [disable the exec-path option for keyserver helpers]),
260
 
      [if test "$enableval" = no ; then
261
 
         disable_keyserver_path=yes
262
 
      fi],enableval=yes)
263
 
    AC_MSG_RESULT($enableval)
264
 
  fi
 
265
           [disable the exec-path option for keyserver helpers]),
 
266
           [if test "$enableval" = no ; then
 
267
              disable_keyserver_path=yes
 
268
           fi],enableval=yes)
 
269
  AC_MSG_RESULT($enableval)
 
270
fi
265
271
 
266
272
 
267
273
#
298
304
[use_capabilities="$withval"],[use_capabilities=no])
299
305
AC_MSG_RESULT($use_capabilities)
300
306
 
 
307
 
 
308
#
 
309
# Allow disabling of internal CCID support.
 
310
# It is defined only after we confirm the library is available later
 
311
#
 
312
AC_MSG_CHECKING([whether to enable the internal CCID driver])
 
313
AC_ARG_ENABLE(ccid-driver,
 
314
              AC_HELP_STRING([--disable-ccid-driver],
 
315
                             [disable the internal CCID driver]),
 
316
              use_ccid_driver=$enableval)
 
317
AC_MSG_RESULT($use_ccid_driver)
 
318
 
 
319
 
301
320
#
302
321
# To avoid double inclusion of config.h which might happen at some
303
322
# places, we add the usual double inclusion protection at the top of
573
592
              [Defined to disable exec-path for keyserver helpers])
574
593
fi
575
594
 
 
595
#
 
596
# Allows enabling the use of a standard socket by default This is
 
597
# gpg-agent's option --[no-]use-standard-socket.  For Windows we force
 
598
# the use of this.
 
599
#
 
600
AC_MSG_CHECKING([whether to use a standard socket by default])
 
601
AC_ARG_ENABLE(standard-socket,
 
602
              AC_HELP_STRING([--enable-standard-socket],
 
603
                             [use a standard socket for the agent by default]),
 
604
              use_standard_socket=$enableval)
 
605
tmp=""
 
606
if test "$use_standard_socket" != yes; then
 
607
  if test "$have_w32_system" = yes; then
 
608
    use_standard_socket=yes
 
609
    tmp=" (forced)"
 
610
  fi
 
611
fi
 
612
AC_MSG_RESULT($use_standard_socket$tmp)
 
613
if test "$use_standard_socket" = yes; then
 
614
  AC_DEFINE(USE_STANDARD_SOCKET,1,
 
615
            [Use a standard socket for the agent by default])
 
616
fi
 
617
 
 
618
 
576
619
# (These need to go after AC_PROG_CC so that $EXEEXT is defined)
577
620
AC_DEFINE_UNQUOTED(EXEEXT,"$EXEEXT",[The executable file extension, if any])
578
621
 
613
656
AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
614
657
                  have_libassuan=yes,have_libassuan=no)
615
658
if test "$have_libassuan" = "yes"; then
616
 
  have_libassuan=no
617
 
  AM_PATH_LIBASSUAN_PTH("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
618
 
                        have_libassuan=yes,have_libassuan=no)
619
 
  AM_CHECK_LIBASSUAN("$NEED_LIBASSUAN_API:1.0.1",
620
 
       [AC_DEFINE(HAVE_ASSUAN_SET_IO_MONITOR, 1,
621
 
         [Define to 1 if you have the `assuan_set_io_monitor' function.])],)  
622
659
  AC_DEFINE_UNQUOTED(GNUPG_LIBASSUAN_VERSION, "$libassuan_version",
623
660
            [version of the libbassuan library])
624
661
fi
635
672
# libusb allows us to use the integrated CCID smartcard reader driver.
636
673
#
637
674
# FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
638
 
AC_CHECK_LIB(usb, usb_bulk_write,
639
 
              [ LIBUSB_LIBS="$LIBUSB_LIBS -lusb"
640
 
                AC_DEFINE(HAVE_LIBUSB,1,
641
 
                         [defined if libusb is available])
642
 
                have_libusb=yes
643
 
             ])
 
675
if test "$use_ccid_driver" = yes ; then
 
676
  AC_CHECK_LIB(usb, usb_bulk_write,
 
677
                [ LIBUSB_LIBS="$LIBUSB_LIBS -lusb"
 
678
                  AC_DEFINE(HAVE_LIBUSB,1,
 
679
                           [defined if libusb is available])
 
680
                  have_libusb=yes
 
681
               ])
 
682
  AC_CHECK_FUNCS(usb_create_match)
 
683
fi
644
684
AC_SUBST(LIBUSB_LIBS)
645
 
AC_CHECK_FUNCS(usb_create_match)
646
685
 
647
686
#
648
687
# Check wether it is necessary to link against libdl.
1071
1110
AC_CHECK_FUNCS([gettimeofday getrusage getrlimit setrlimit clock_gettime])
1072
1111
AC_CHECK_FUNCS([atexit raise getpagesize strftime nl_langinfo setlocale])
1073
1112
AC_CHECK_FUNCS([waitpid wait4 sigaction sigprocmask pipe stat getaddrinfo])
1074
 
AC_CHECK_FUNCS([ttyname rand ftello fsync])
 
1113
AC_CHECK_FUNCS([ttyname rand ftello fsync stat])
1075
1114
 
1076
1115
AC_CHECK_TYPES([struct sigaction, sigset_t],,,[#include <signal.h>])
1077
1116
 
1375
1414
AM_CONDITIONAL(BUILD_TOOLS, test "$build_tools" = "yes")
1376
1415
AM_CONDITIONAL(BUILD_DOC,   test "$build_doc" = "yes")
1377
1416
AM_CONDITIONAL(BUILD_SYMCRYPTRUN, test "$build_symcryptrun" = "yes")
 
1417
AM_CONDITIONAL(BUILD_GPGTAR,      test "$build_gpgtar" = "yes")
1378
1418
 
1379
1419
AM_CONDITIONAL(RUN_GPG_TESTS,
1380
1420
        test x$cross_compiling = xno -a "$build_gpg" = yes )
1409
1449
   die=yes
1410
1450
   AC_MSG_NOTICE([[
1411
1451
***
1412
 
*** You need libassuan with Pth support to build this program.
 
1452
*** You need libassuan to build this program.
1413
1453
*** This library is for example available at
1414
1454
***   ftp://ftp.gnupg.org/gcrypt/libassuan/
1415
1455
*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
1484
1524
        S/MIME:    $build_gpgsm
1485
1525
        Agent:     $build_agent $build_agent_threaded
1486
1526
        Smartcard: $build_scdaemon $build_scdaemon_extra
 
1527
        Gpgtar:    $build_gpgtar
1487
1528
 
1488
1529
        Protect tool:      $show_gnupg_protect_tool_pgm
1489
1530
        Default agent:     $show_gnupg_agent_pgm