test-autotools-static/configure.ac

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-01-26 21:17:24 +01:00
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
2015-01-28 23:05:38 +01:00
AM_INIT_AUTOMAKE([foreign subdir-objects]) # Does not require NEWS, COPYING, AUTHORS, ChangeLog or README
2015-01-28 22:40:18 +01:00
AM_SILENT_RULES([yes]) # less verbose make output https://autotools.io/automake/silent.html
2015-01-26 21:17:24 +01:00
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
2015-01-28 22:22:23 +01:00
AC_LANG([C]) # Use C not C++
2015-01-26 21:17:24 +01:00
# Checks for programs.
AC_PROG_CC
2015-01-28 22:22:23 +01:00
# In case that you want to check for specific versions of gcc
# For example in case that you need C11 support you want to
# check for gcc-4.9
#AC_PROG_CC([gcc-4.9 gcc cc])
2015-01-26 21:17:24 +01:00
AC_PROG_INSTALL
# Checks for libraries.
2015-01-31 20:40:55 +01:00
# Found libraries are automatically addded to LIBS
# AC_SEARCH_LIBS([pthread_cond_wait], [pthread],[],[
# AC_MSG_ERROR([You need to install pthreads library.])
# ])
2015-01-26 21:17:24 +01:00
# Checks for header files.
2015-01-28 22:22:23 +01:00
AC_CHECK_HEADER([stdlib.h])
# Check for C11's optional Atomic operations library
# AC_CHECK_HEADER([stdatomic.h], [], [
# AC_MSG_ERROR([C11 with atomic support needed.])
# ])
2015-01-26 21:17:24 +01:00
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
2015-01-28 23:05:38 +01:00
AC_CONFIG_FILES([Makefile])
2015-01-26 21:17:24 +01:00
AC_OUTPUT