Skip to content
Snippets Groups Projects
Select Git revision
  • f2b218bcaba3b7d50cfbad1b1029c954c54a0df6
  • master default
  • support_pre_UAL_arm_asm
  • skein
  • rsa-crt-hardening
  • chacha96
  • fat-library
  • versioned-symbols
  • curve25519
  • dsa-reorg
  • aead-api
  • set_key-changes
  • poly1305
  • aes-reorg
  • nettle-2.7-fixes
  • size_t-changes
  • ecc-support
  • experimental-20050201
  • lsh-1.4.2
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
  • nettle_2.2_release_20110711
  • nettle_2.1_release_20100725
  • camellia_32bit_20100720
  • nettle_2.0_release_20090608
  • nettle_1.15_release_20061128
39 results

configure.ac

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    configure.ac 11.02 KiB
    dnl -*- mode: shell-script; sh-indentation: 2; -*-
    
    dnl Process this file with autoconf to produce a configure script.
    
    AC_INIT([nettle], [1.15], [nettle-bugs@lists.lysator.liu.se])
    AC_PREREQ(2.50)
    AC_CONFIG_SRCDIR([arcfour.c])
    # Needed to stop autoconf from looking for files in parent directories.
    AC_CONFIG_AUX_DIR([.])
    
    AC_CONFIG_HEADER([config.h])
    
    SHLIBMAJOR=2
    SHLIBMINOR=5
    
    AC_CANONICAL_HOST
    
    # Command line options
    AC_ARG_WITH(include-path,
      AC_HELP_STRING([--with-include-path], [A colon-separated list of directories to search for include files]),,
      [with_include_path=''])
    
    if test x$with_include_path != x ; then
      CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
    fi
    
    AC_ARG_WITH(lib-path,
      AC_HELP_STRING([--with-lib-path], [A colon-separated list of directories to search for libraries]),,
      [with_lib_path=''])
    
    if test x$with_lib_path != x ; then
      LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
    fi
    
    AC_ARG_ENABLE(public-key,
      AC_HELP_STRING([--disable-public-key], [Disable public key algorithms]),,
      [enable_public_key=yes])
    
    AC_ARG_ENABLE(assembler,
      AC_HELP_STRING([--disable-assembler],[Disable assembler code]),,
      [enable_assembler=yes])
    
    AC_ARG_ENABLE(shared,
      AC_HELP_STRING([--enable-shared], [Build a shared library]),,
      [enable_shared=no])
    
    AC_ARG_ENABLE(pic,
      AC_HELP_STRING([--disable-pic],
      [Do not try to compile library files as position independent code]),,
      [enable_pic=yes])
    
    AC_ARG_ENABLE(openssl,
      AC_HELP_STRING([--disable-openssl], [Do not include openssl glue in the benchmark program]),,
      [enable_openssl=yes])
      
    LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \
        `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
        /usr/local/lib /sw/local/lib /sw/lib \
        /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib])
    
    # Checks for programs.
    AC_PROG_CC
    
    # When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks
    # up the foo.exe and sets exeext to .exe. That is correct for cygwin,
    # which has some kind of magic link from foo to foo.exe, but not for
    # rntcl. A better check for the cygwin case would check if the
    # contents of foo and foo.exe are equal; in the rntcl case, foo is a
    # sh script, and foo.exe is a windows executable.