File: configure.ac

package info (click to toggle)
hexcurse 1.58-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 796 kB
  • ctags: 225
  • sloc: sh: 4,016; ansic: 2,084; makefile: 9
file content (40 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (2)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT([hexcurse], [1.58])
AC_CONFIG_SRCDIR(src/file.c)
AM_INIT_AUTOMAKE([-Wall])

AC_CONFIG_HEADERS([config.h])
dnl AC_PROG_MAKE_SET

AC_CANONICAL_HOST

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_INSTALL

dnl Checks for libraries.
dnl Replace `main' with a function in -lncurses:
AC_CHECK_LIB(ncurses, initscr,,[AC_CHECK_LIB(curses, initscr,,[AC_MSG_ERROR([ncurses library not found])])])

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)

dnl Checks for string libraries
AC_CHECK_HEADERS(string.h)
AC_CHECK_HEADERS(strings.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INTMAX_T
AC_TYPE_OFF_T
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO

dnl Checks for library functions.
AC_TYPE_SIGNAL

dnl Checks for BIG ENDIAN
dnl AC_C_BIGENDIAN 

AC_OUTPUT(Makefile src/Makefile man/Makefile)