File: configure.ac

package info (click to toggle)
paperkey 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,340 kB
  • sloc: ansic: 4,648; sh: 3,844; makefile: 28
file content (56 lines) | stat: -rw-r--r-- 1,556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT([paperkey],[1.6],[dshaw@jabberwocky.com])
m4_define(_COPYRIGHT_STRING,
   [[Copyright (C) 2007, 2008, 2009, 2012, 2013, 2016, 2017, 2018 David Shaw <dshaw@jabberwocky.com>]])
AC_COPYRIGHT(_COPYRIGHT_STRING)
AC_USE_SYSTEM_EXTENSIONS
AC_CONFIG_SRCDIR([paperkey.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([std-options])
AC_CANONICAL_HOST
AC_DEFINE(COPYRIGHT_STRING,"_COPYRIGHT_STRING",[The copyright string])
AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = "yes")
AM_CONDITIONAL(MINGW32_BUILD, test "$host_os" = "mingw32")

# This is so "make dist" when cross compiling has a "-win32" at the
# end of the name.
if test "$host_os" = "mingw32" ; then
   VERSION="$VERSION-win32"
fi

# Checks for programs.
AC_PROG_CC
gl_EARLY
AC_PROG_RANLIB

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T

# Checks for library functions.

# Gnulib.
gl_INIT

AC_ARG_ENABLE(optimization,
   AS_HELP_STRING([--disable-optimization],[disable compiler optimization]),
   [if test $enableval = no ; then
      CFLAGS=`echo $CFLAGS | sed 's/-O[[0-9]]//'`
   fi])

AM_CONDITIONAL(USING_GCC, test "$GCC" = yes)

AC_DEFINE_UNQUOTED(HOST_OS,"$host_os",[Build host OS])

AC_CONFIG_FILES([gl/Makefile Makefile checks/Makefile paperkey.spec])
AC_OUTPUT