File: configure.ac

package info (click to toggle)
uniutils 2.25-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,432 kB
  • ctags: 166
  • sloc: ansic: 26,417; sh: 790; makefile: 58; awk: 55
file content (34 lines) | stat: -rw-r--r-- 849 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
AC_PREREQ(2.59)
AC_INIT(uniutils, 2.25,billposer@alum.mit.edu)
AC_CONFIG_SRCDIR([unidesc.c])
AM_CONFIG_HEADER([config.h])

AC_DEFUN([AC_HAVE_NUMBER_SEPARATOR],
[AC_CACHE_CHECK(for number separator, ac_numsep,
     AC_TRY_RUN([printf("%'6d",123456)],
   ac_numsep=yes,
   ac_numsep=no)
   if test $ac_numsep = yes; then
     AC_DEFINE(HAVE_NUMBER_GROUP_SEPARATOR, 1, [printf understands number group separator])
   fi
])

# Checks for programs.
AC_PROG_CC

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h libintl.h locale.h stdlib.h string.h unistd.h stdio.h string.h])

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

# Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([malloc setlocale strtol strtoul])

AC_CONFIG_FILES([Makefile])
AM_INIT_AUTOMAKE
AC_OUTPUT