-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
60 lines (54 loc) · 1.74 KB
/
configure.in
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
57
58
dnl configure.in for awka
dnl
dnl Log: configure.in
dnl
dnl Revision 1.1 1998/01/12 16:23:03 andrew
dnl initial write, borrowing heavily from mawk
dnl
dnl
AC_INIT
AC_CONFIG_SRCDIR([lib/libawka.h.in])
builtin(include,awka.ac.m4)
dnl AC_ARG_ENABLE(portals, [ --enable-portals Enable /p as path prefix for portals], AC_DEFINE(HAVE_PORTALS))
AC_ARG_ENABLE(portals, [ --enable-portals Enable /p as path prefix for portals], [HAVE_PORTALS=1])
GET_USER_DEFAULTS
PROG_CC_NO_MINUS_G_NONSENSE
AC_PROG_CPP
NOTSET_THEN_DEFAULT(CFLAGS,-O)
LOOK_FOR_MATH_LIBRARY
GOT_INLINE
WHICH_AWK
WHICH_SH
WHICH_YACC
WHICH_AR
WHICH_RANLIB
WHICH_CMP
COMPILER_ATTRIBUTES
WHERE_SIZE_T
CHECK_HEADERS(fcntl.h,errno.h,time.h,stdarg.h,netdb.h,"netinet/in.h","sys/socket.h","sys/wait.h","sys/select.h",unistd.h)
CHECK_FUNCTIONS(memcpy,strchr,strstr,strerror,vfprintf,fmod,matherr)
FPRINTF_IN_STDIO
FIND_OR_COMPUTE_MAX__INT
AWKA_AC_LIB_SOCKETS
dnl DREADED_FPE_TESTS
dnl checks for structure members
m4_warn([obsolete],
[Update your code to rely only on HAVE_SYS_TIME_H,
then remove this warning and the obsolete code below it.
All current systems provide time.h; it need not be checked for.
Not all systems provide sys/time.h, but those that do, all allow
you to include it and time.h simultaneously.])dnl
AC_CHECK_HEADERS_ONCE([sys/time.h])
# Obsolete code to be removed.
if test $ac_cv_header_sys_time_h = yes; then
AC_DEFINE([TIME_WITH_SYS_TIME],[1],[Define to 1 if you can safely include both <sys/time.h>
and <time.h>. This macro is obsolete.])
fi
# End of obsolete code.
AC_STRUCT_TM
AC_STRUCT_TIMEZONE
CHECK_FUNCTIONS(time,mktime,asctime,localtime,gmtime)
EXE_EXTENSION
DO_CONFIG_H
AC_CONFIG_FILES([Makefile lib/Makefile awka/Makefile test/Makefile benchmark/Makefile])
AC_OUTPUT