"Fossies" - the Fresh Open Source Software Archive

Member "cryptofs-0.6.0/configure.ac" (3 Feb 2007, 1641 Bytes) of package /linux/misc/old/cryptofs-0.6.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT(configure.ac)
    3 AC_CONFIG_AUX_DIR(config)
    4 AC_CANONICAL_TARGET
    5 AM_INIT_AUTOMAKE(cryptofs, 0.6.0)
    6 AM_CONFIG_HEADER(config.h)
    7 
    8 AC_PROG_CC
    9 AC_PROG_LIBTOOL
   10 
   11 AM_PATH_LIBGCRYPT(1.1.44, 
   12     :,
   13     AC_MSG_ERROR([libgcrypt >= 1.1.44 is required to build CryptoFS]))
   14 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0)
   15 
   16 case $target_os in
   17     *bsd* | *darwin*)
   18 	AC_DEFINE(BSD, 1, [Build for BSD])
   19 	enable_lufs=no
   20 	;;
   21 esac
   22 
   23 # --- LUFS ---
   24 AC_ARG_ENABLE(lufs, 
   25 	      [  --disable-lufs          don't build CryptoFS for LUFS ], 
   26 	      [ enable_lufs=$enableval ])
   27 AM_CONDITIONAL(BUILD_LUFS, [ test x"$enable_lufs" != x"no" ])
   28 
   29 # --- FUSE ---
   30 AC_ARG_ENABLE(fuse, 
   31 	      [  --disable-fuse          don't build CryptoFS for FUSE ], 
   32 	      [ enable_fuse=$enableval ])
   33 if test x"$enable_fuse" != x"no"; then
   34     PKG_CHECK_MODULES(FUSE, [ fuse ], [], [ enable_fuse="no" ])
   35 fi
   36 AM_CONDITIONAL(BUILD_FUSE, [ test x"$enable_fuse" != x"no" ])
   37 
   38 # --- PinEntry ---
   39 AC_ARG_WITH(pinentry, 
   40 	    [  --with-pinentry         Enable support for pinentry program to enter passwords], 
   41 	    [ with_pinentry=$withval ])
   42 if test x"$with_pinentry" != x"no"; then
   43     AC_CHECK_PROG(have_pinentry, "pinentry", "yes", "no")
   44     with_pinentry=$have_pinentry
   45 fi
   46 AM_CONDITIONAL(WITH_PINENTRY, [ test x"$with_pinentry" != x"no" ])
   47 if test x"$with_pinentry" != x"no"; then
   48     AC_DEFINE(WITH_PINENTRY, 1, [Enable pinentry support])
   49 fi
   50 
   51 AC_OUTPUT([
   52 Makefile
   53 config/Makefile
   54 doc/Makefile
   55 src/Makefile
   56 src/cryptofs/Makefile
   57 src/lufs/Makefile
   58 src/fuse/Makefile
   59 tests/Makefile
   60 tests/cryptofs/Makefile
   61 tests/fuse/Makefile
   62 ])